var Jx=e=>{throw TypeError(e)};var sy=(e,t,n)=>t.has(e)||Jx("Cannot "+n);var T=(e,t,n)=>(sy(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?Jx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Y=(e,t,n,r)=>(sy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fe=(e,t,n)=>(sy(e,t,"access private method"),n);var Qc=(e,t,n,r)=>({set _(a){Y(e,t,a,n)},get _(){return T(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var Wc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yj={exports:{}},kh={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var yR=Symbol.for("react.transitional.element"),mR=Symbol.for("react.fragment");function mj(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:yR,type:e,key:r,ref:t!==void 0?t:null,props:n}}kh.Fragment=mR;kh.jsx=mj;kh.jsxs=mj;yj.exports=kh;var d=yj.exports,vj={exports:{}},le={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var S0=Symbol.for("react.transitional.element"),vR=Symbol.for("react.portal"),gR=Symbol.for("react.fragment"),bR=Symbol.for("react.strict_mode"),xR=Symbol.for("react.profiler"),SR=Symbol.for("react.consumer"),wR=Symbol.for("react.context"),OR=Symbol.for("react.forward_ref"),AR=Symbol.for("react.suspense"),jR=Symbol.for("react.memo"),gj=Symbol.for("react.lazy"),ER=Symbol.for("react.activity"),e1=Symbol.iterator;function _R(e){return e===null||typeof e!="object"?null:(e=e1&&e[e1]||e["@@iterator"],typeof e=="function"?e:null)}var bj={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xj=Object.assign,Sj={};function Jl(e,t,n){this.props=e,this.context=t,this.refs=Sj,this.updater=n||bj}Jl.prototype.isReactComponent={};Jl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wj(){}wj.prototype=Jl.prototype;function w0(e,t,n){this.props=e,this.context=t,this.refs=Sj,this.updater=n||bj}var O0=w0.prototype=new wj;O0.constructor=w0;xj(O0,Jl.prototype);O0.isPureReactComponent=!0;var t1=Array.isArray;function Nm(){}var We={H:null,A:null,T:null,S:null},Oj=Object.prototype.hasOwnProperty;function A0(e,t,n){var r=n.ref;return{$$typeof:S0,type:e,key:t,ref:r!==void 0?r:null,props:n}}function TR(e,t){return A0(e.type,t,e.props)}function j0(e){return typeof e=="object"&&e!==null&&e.$$typeof===S0}function NR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var n1=/\/+/g;function uy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?NR(""+e.key):t.toString(36)}function CR(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Nm,Nm):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function jo(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case S0:case vR:o=!0;break;case gj:return o=e._init,jo(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+uy(e,0):r,t1(a)?(n="",o!=null&&(n=o.replace(n1,"$&/")+"/"),jo(a,t,n,"",function(u){return u})):a!=null&&(j0(a)&&(a=TR(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(n1,"$&/")+"/")+o)),t.push(a)),1;o=0;var l=r===""?".":r+":";if(t1(e))for(var s=0;s<e.length;s++)r=e[s],i=l+uy(r,s),o+=jo(r,t,n,i,a);else if(s=_R(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,i=l+uy(r,s++),o+=jo(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return jo(CR(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function Zc(e,t,n){if(e==null)return e;var r=[],a=0;return jo(e,r,"","",function(i){return t.call(n,i,a++)}),r}function MR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var r1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},PR={map:Zc,forEach:function(e,t,n){Zc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zc(e,function(){t++}),t},toArray:function(e){return Zc(e,function(t){return t})||[]},only:function(e){if(!j0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Activity=ER;le.Children=PR;le.Component=Jl;le.Fragment=gR;le.Profiler=xR;le.PureComponent=w0;le.StrictMode=bR;le.Suspense=AR;le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=We;le.__COMPILER_RUNTIME={__proto__:null,c:function(e){return We.H.useMemoCache(e)}};le.cache=function(e){return function(){return e.apply(null,arguments)}};le.cacheSignal=function(){return null};le.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=xj({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!Oj.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var o=Array(i),l=0;l<i;l++)o[l]=arguments[l+2];r.children=o}return A0(e.type,a,r)};le.createContext=function(e){return e={$$typeof:wR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:SR,_context:e},e};le.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)Oj.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var l=Array(o),s=0;s<o;s++)l[s]=arguments[s+2];a.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)a[r]===void 0&&(a[r]=o[r]);return A0(e,i,a)};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:OR,render:e}};le.isValidElement=j0;le.lazy=function(e){return{$$typeof:gj,_payload:{_status:-1,_result:e},_init:MR}};le.memo=function(e,t){return{$$typeof:jR,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=We.T,n={};We.T=n;try{var r=e(),a=We.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Nm,r1)}catch(i){r1(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),We.T=t}};le.unstable_useCacheRefresh=function(){return We.H.useCacheRefresh()};le.use=function(e){return We.H.use(e)};le.useActionState=function(e,t,n){return We.H.useActionState(e,t,n)};le.useCallback=function(e,t){return We.H.useCallback(e,t)};le.useContext=function(e){return We.H.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e,t){return We.H.useDeferredValue(e,t)};le.useEffect=function(e,t){return We.H.useEffect(e,t)};le.useEffectEvent=function(e){return We.H.useEffectEvent(e)};le.useId=function(){return We.H.useId()};le.useImperativeHandle=function(e,t,n){return We.H.useImperativeHandle(e,t,n)};le.useInsertionEffect=function(e,t){return We.H.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return We.H.useLayoutEffect(e,t)};le.useMemo=function(e,t){return We.H.useMemo(e,t)};le.useOptimistic=function(e,t){return We.H.useOptimistic(e,t)};le.useReducer=function(e,t,n){return We.H.useReducer(e,t,n)};le.useRef=function(e){return We.H.useRef(e)};le.useState=function(e){return We.H.useState(e)};le.useSyncExternalStore=function(e,t,n){return We.H.useSyncExternalStore(e,t,n)};le.useTransition=function(){return We.H.useTransition()};le.version="19.2.7";vj.exports=le;var j=vj.exports;const M=Be(j);var Aj={exports:{}},Lh={},jj={exports:{}},Ej={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(R,k){var U=R.length;R.push(k);e:for(;0<U;){var q=U-1>>>1,F=R[q];if(0<a(F,k))R[q]=k,R[U]=F,U=q;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var k=R[0],U=R.pop();if(U!==k){R[0]=U;e:for(var q=0,F=R.length,V=F>>>1;q<V;){var G=2*(q+1)-1,ee=R[G],he=G+1,$e=R[he];if(0>a(ee,U))he<F&&0>a($e,ee)?(R[q]=$e,R[he]=U,q=he):(R[q]=ee,R[G]=U,q=G);else if(he<F&&0>a($e,U))R[q]=$e,R[he]=U,q=he;else break e}}return k}function a(R,k){var U=R.sortIndex-k.sortIndex;return U!==0?U:R.id-k.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],f=1,c=null,h=3,p=!1,b=!1,v=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(R){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=R)r(u),k.sortIndex=k.expirationTime,t(s,k);else break;k=n(u)}}function S(R){if(v=!1,w(R),!b)if(n(s)!==null)b=!0,O||(O=!0,P());else{var k=n(u);k!==null&&D(S,k.startTime-R)}}var O=!1,A=-1,E=5,_=-1;function C(){return g?!0:!(e.unstable_now()-_<E)}function $(){if(g=!1,O){var R=e.unstable_now();_=R;var k=!0;try{e:{b=!1,v&&(v=!1,m(A),A=-1),p=!0;var U=h;try{t:{for(w(R),c=n(s);c!==null&&!(c.expirationTime>R&&C());){var q=c.callback;if(typeof q=="function"){c.callback=null,h=c.priorityLevel;var F=q(c.expirationTime<=R);if(R=e.unstable_now(),typeof F=="function"){c.callback=F,w(R),k=!0;break t}c===n(s)&&r(s),w(R)}else r(s);c=n(s)}if(c!==null)k=!0;else{var V=n(u);V!==null&&D(S,V.startTime-R),k=!1}}break e}finally{c=null,h=U,p=!1}k=void 0}}finally{k?P():O=!1}}}var P;if(typeof x=="function")P=function(){x($)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,L=B.port2;B.port1.onmessage=$,P=function(){L.postMessage(null)}}else P=function(){y($,0)};function D(R,k){A=y(function(){R(e.unstable_now())},k)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(R){switch(h){case 1:case 2:case 3:var k=3;break;default:k=h}var U=h;h=k;try{return R()}finally{h=U}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(R,k){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var U=h;h=R;try{return k()}finally{h=U}},e.unstable_scheduleCallback=function(R,k,U){var q=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?q+U:q):U=q,R){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=U+F,R={id:f++,callback:k,priorityLevel:R,startTime:U,expirationTime:F,sortIndex:-1},U>q?(R.sortIndex=U,t(u,R),n(s)===null&&R===n(u)&&(v?(m(A),A=-1):v=!0,D(S,U-q))):(R.sortIndex=F,t(s,R),b||p||(b=!0,O||(O=!0,P()))),R},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(R){var k=h;return function(){var U=h;h=k;try{return R.apply(this,arguments)}finally{h=U}}}})(Ej);jj.exports=Ej;var RR=jj.exports,_j={exports:{}},en={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $R=j;function Tj(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ga(){}var Qt={d:{f:ga,r:function(){throw Error(Tj(522))},D:ga,C:ga,L:ga,m:ga,X:ga,S:ga,M:ga},p:0,findDOMNode:null},DR=Symbol.for("react.portal");function kR(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:DR,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var eu=$R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function zh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}en.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Qt;en.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Tj(299));return kR(e,t,null,n)};en.flushSync=function(e){var t=eu.T,n=Qt.p;try{if(eu.T=null,Qt.p=2,e)return e()}finally{eu.T=t,Qt.p=n,Qt.d.f()}};en.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Qt.d.C(e,t))};en.prefetchDNS=function(e){typeof e=="string"&&Qt.d.D(e)};en.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=zh(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Qt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&Qt.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};en.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=zh(t.as,t.crossOrigin);Qt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Qt.d.M(e)};en.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=zh(n,t.crossOrigin);Qt.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};en.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=zh(t.as,t.crossOrigin);Qt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Qt.d.m(e)};en.requestFormReset=function(e){Qt.d.r(e)};en.unstable_batchedUpdates=function(e,t){return e(t)};en.useFormState=function(e,t,n){return eu.H.useFormState(e,t,n)};en.useFormStatus=function(){return eu.H.useHostTransitionStatus()};en.version="19.2.7";function Nj(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nj)}catch(e){console.error(e)}}Nj(),_j.exports=en;var LR=_j.exports;/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ot=RR,Cj=j,zR=LR;function I(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Mj(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ac(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Pj(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Rj(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function a1(e){if(Ac(e)!==e)throw Error(I(188))}function BR(e){var t=e.alternate;if(!t){if(t=Ac(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return a1(a),e;if(i===r)return a1(a),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function $j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=$j(e),t!==null)return t;e=e.sibling}return null}var Ze=Object.assign,UR=Symbol.for("react.element"),Jc=Symbol.for("react.transitional.element"),Ys=Symbol.for("react.portal"),No=Symbol.for("react.fragment"),Dj=Symbol.for("react.strict_mode"),Cm=Symbol.for("react.profiler"),kj=Symbol.for("react.consumer"),Gr=Symbol.for("react.context"),E0=Symbol.for("react.forward_ref"),Mm=Symbol.for("react.suspense"),Pm=Symbol.for("react.suspense_list"),_0=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),Rm=Symbol.for("react.activity"),IR=Symbol.for("react.memo_cache_sentinel"),i1=Symbol.iterator;function Ts(e){return e===null||typeof e!="object"?null:(e=i1&&e[i1]||e["@@iterator"],typeof e=="function"?e:null)}var HR=Symbol.for("react.client.reference");function $m(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===HR?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case No:return"Fragment";case Cm:return"Profiler";case Dj:return"StrictMode";case Mm:return"Suspense";case Pm:return"SuspenseList";case Rm:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ys:return"Portal";case Gr:return e.displayName||"Context";case kj:return(e._context.displayName||"Context")+".Consumer";case E0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _0:return t=e.displayName||null,t!==null?t:$m(e.type)||"Memo";case xa:t=e._payload,e=e._init;try{return $m(e(t))}catch{}}return null}var Xs=Array.isArray,re=Cj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=zR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ui={pending:!1,data:null,method:null,action:null},Dm=[],Co=-1;function Er(e){return{current:e}}function Ct(e){0>Co||(e.current=Dm[Co],Dm[Co]=null,Co--)}function Fe(e,t){Co++,Dm[Co]=e.current,e.current=t}var wr=Er(null),xu=Er(null),qa=Er(null),ed=Er(null);function td(e,t){switch(Fe(qa,t),Fe(xu,e),Fe(wr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?fS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fS(t),e=nT(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ct(wr),Fe(wr,e)}function ml(){Ct(wr),Ct(xu),Ct(qa)}function km(e){e.memoizedState!==null&&Fe(ed,e);var t=wr.current,n=nT(t,e.type);t!==n&&(Fe(xu,e),Fe(wr,n))}function nd(e){xu.current===e&&(Ct(wr),Ct(xu)),ed.current===e&&(Ct(ed),Mu._currentValue=Ui)}var cy,o1;function vi(e){if(cy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);cy=t&&t[1]||"",o1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+cy+e+o1}var fy=!1;function dy(e,t){if(!e||fy)return"";fy=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(p){var h=p}Reflect.construct(e,[],c)}else{try{c.call()}catch(p){h=p}e.call(c.prototype)}}else{try{throw Error()}catch(p){h=p}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(p){if(p&&h&&typeof p.stack=="string")return[p.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),o=i[0],l=i[1];if(o&&l){var s=o.split(`
`),u=l.split(`
`);for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||s[r]!==u[a]){var f=`
`+s[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{fy=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?vi(n):""}function qR(e,t){switch(e.tag){case 26:case 27:case 5:return vi(e.type);case 16:return vi("Lazy");case 13:return e.child!==t&&t!==null?vi("Suspense Fallback"):vi("Suspense");case 19:return vi("SuspenseList");case 0:case 15:return dy(e.type,!1);case 11:return dy(e.type.render,!1);case 1:return dy(e.type,!0);case 31:return vi("Activity");default:return""}}function l1(e){try{var t="",n=null;do t+=qR(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Lm=Object.prototype.hasOwnProperty,T0=Ot.unstable_scheduleCallback,hy=Ot.unstable_cancelCallback,FR=Ot.unstable_shouldYield,GR=Ot.unstable_requestPaint,_n=Ot.unstable_now,KR=Ot.unstable_getCurrentPriorityLevel,Lj=Ot.unstable_ImmediatePriority,zj=Ot.unstable_UserBlockingPriority,rd=Ot.unstable_NormalPriority,YR=Ot.unstable_LowPriority,Bj=Ot.unstable_IdlePriority,XR=Ot.log,VR=Ot.unstable_setDisableYieldValue,jc=null,Tn=null;function La(e){if(typeof XR=="function"&&VR(e),Tn&&typeof Tn.setStrictMode=="function")try{Tn.setStrictMode(jc,e)}catch{}}var Nn=Math.clz32?Math.clz32:ZR,QR=Math.log,WR=Math.LN2;function ZR(e){return e>>>=0,e===0?32:31-(QR(e)/WR|0)|0}var ef=256,tf=262144,nf=4194304;function gi(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Bh(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~i,r!==0?a=gi(r):(o&=l,o!==0?a=gi(o):n||(n=l&~e,n!==0&&(a=gi(n))))):(l=r&~i,l!==0?a=gi(l):o!==0?a=gi(o):n||(n=r&~e,n!==0&&(a=gi(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function Ec(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function JR(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Uj(){var e=nf;return nf<<=1,!(nf&62914560)&&(nf=4194304),e}function py(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _c(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function e$(e,t,n,r,a,i){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Nn(n),c=1<<f;l[f]=0,s[f]=-1;var h=u[f];if(h!==null)for(u[f]=null,f=0;f<h.length;f++){var p=h[f];p!==null&&(p.lane&=-536870913)}n&=~c}r!==0&&Ij(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Ij(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Nn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Hj(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function qj(e,t){var n=t&-t;return n=n&42?1:N0(n),n&(e.suspendedLanes|t)?0:n}function N0(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function C0(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Fj(){var e=Ae.p;return e!==0?e:(e=window.event,e===void 0?32:hT(e.type))}function s1(e,t){var n=Ae.p;try{return Ae.p=e,t()}finally{Ae.p=n}}var ii=Math.random().toString(36).slice(2),kt="__reactFiber$"+ii,hn="__reactProps$"+ii,es="__reactContainer$"+ii,zm="__reactEvents$"+ii,t$="__reactListeners$"+ii,n$="__reactHandles$"+ii,u1="__reactResources$"+ii,Tc="__reactMarker$"+ii;function M0(e){delete e[kt],delete e[hn],delete e[zm],delete e[t$],delete e[n$]}function Mo(e){var t=e[kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[es]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mS(e);e!==null;){if(n=e[kt])return n;e=mS(e)}return t}e=n,n=e.parentNode}return null}function ts(e){if(e=e[kt]||e[es]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(I(33))}function Ko(e){var t=e[u1];return t||(t=e[u1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Tt(e){e[Tc]=!0}var Gj=new Set,Kj={};function lo(e,t){vl(e,t),vl(e+"Capture",t)}function vl(e,t){for(Kj[e]=t,e=0;e<t.length;e++)Gj.add(t[e])}var r$=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),c1={},f1={};function a$(e){return Lm.call(f1,e)?!0:Lm.call(c1,e)?!1:r$.test(e)?f1[e]=!0:(c1[e]=!0,!1)}function Pf(e,t,n){if(a$(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function rf(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Mr(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function Un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i$(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bm(e){if(!e._valueTracker){var t=Yj(e)?"checked":"value";e._valueTracker=i$(e,t,""+e[t])}}function Xj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yj(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ad(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var o$=/[\n"\\]/g;function qn(e){return e.replace(o$,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Um(e,t,n,r,a,i,o,l){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Un(t)):e.value!==""+Un(t)&&(e.value=""+Un(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Im(e,o,Un(t)):n!=null?Im(e,o,Un(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+Un(l):e.removeAttribute("name")}function Vj(e,t,n,r,a,i,o,l){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Bm(e);return}n=n!=null?""+Un(n):"",t=t!=null?""+Un(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Bm(e)}function Im(e,t,n){t==="number"&&ad(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Yo(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Un(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Qj(e,t,n){if(t!=null&&(t=""+Un(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Un(n):""}function Wj(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(I(92));if(Xs(r)){if(1<r.length)throw Error(I(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Un(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Bm(e)}function gl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var l$=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function d1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||l$.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Zj(e,t,n){if(t!=null&&typeof t!="object")throw Error(I(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&d1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&d1(e,i,t[i])}function P0(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var s$=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),u$=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rf(e){return u$.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kr(){}var Hm=null;function R0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Po=null,Xo=null;function h1(e){var t=ts(e);if(t&&(e=t.stateNode)){var n=e[hn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Um(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+qn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[hn]||null;if(!a)throw Error(I(90));Um(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Xj(r)}break e;case"textarea":Qj(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Yo(e,!!n.multiple,t,!1)}}}var yy=!1;function Jj(e,t,n){if(yy)return e(t,n);yy=!0;try{var r=e(t);return r}finally{if(yy=!1,(Po!==null||Xo!==null)&&(Wh(),Po&&(t=Po,e=Xo,Xo=Po=null,h1(t),e)))for(t=0;t<e.length;t++)h1(e[t])}}function Su(e,t){var n=e.stateNode;if(n===null)return null;var r=n[hn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qm=!1;if(ra)try{var Ns={};Object.defineProperty(Ns,"passive",{get:function(){qm=!0}}),window.addEventListener("test",Ns,Ns),window.removeEventListener("test",Ns,Ns)}catch{qm=!1}var za=null,$0=null,$f=null;function eE(){if($f)return $f;var e,t=$0,n=t.length,r,a="value"in za?za.value:za.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===a[i-r];r++);return $f=a.slice(e,1<r?1-r:void 0)}function Df(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function af(){return!0}function p1(){return!1}function pn(e){function t(n,r,a,i,o){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?af:p1,this.isPropagationStopped=p1,this}return Ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=af)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=af)},persist:function(){},isPersistent:af}),t}var so={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uh=pn(so),Nc=Ze({},so,{view:0,detail:0}),c$=pn(Nc),my,vy,Cs,Ih=Ze({},Nc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:D0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Cs&&(Cs&&e.type==="mousemove"?(my=e.screenX-Cs.screenX,vy=e.screenY-Cs.screenY):vy=my=0,Cs=e),my)},movementY:function(e){return"movementY"in e?e.movementY:vy}}),y1=pn(Ih),f$=Ze({},Ih,{dataTransfer:0}),d$=pn(f$),h$=Ze({},Nc,{relatedTarget:0}),gy=pn(h$),p$=Ze({},so,{animationName:0,elapsedTime:0,pseudoElement:0}),y$=pn(p$),m$=Ze({},so,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v$=pn(m$),g$=Ze({},so,{data:0}),m1=pn(g$),b$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},S$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=S$[e])?!!t[e]:!1}function D0(){return w$}var O$=Ze({},Nc,{key:function(e){if(e.key){var t=b$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Df(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?x$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:D0,charCode:function(e){return e.type==="keypress"?Df(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Df(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),A$=pn(O$),j$=Ze({},Ih,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),v1=pn(j$),E$=Ze({},Nc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:D0}),_$=pn(E$),T$=Ze({},so,{propertyName:0,elapsedTime:0,pseudoElement:0}),N$=pn(T$),C$=Ze({},Ih,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),M$=pn(C$),P$=Ze({},so,{newState:0,oldState:0}),R$=pn(P$),$$=[9,13,27,32],k0=ra&&"CompositionEvent"in window,tu=null;ra&&"documentMode"in document&&(tu=document.documentMode);var D$=ra&&"TextEvent"in window&&!tu,tE=ra&&(!k0||tu&&8<tu&&11>=tu),g1=" ",b1=!1;function nE(e,t){switch(e){case"keyup":return $$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ro=!1;function k$(e,t){switch(e){case"compositionend":return rE(t);case"keypress":return t.which!==32?null:(b1=!0,g1);case"textInput":return e=t.data,e===g1&&b1?null:e;default:return null}}function L$(e,t){if(Ro)return e==="compositionend"||!k0&&nE(e,t)?(e=eE(),$f=$0=za=null,Ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tE&&t.locale!=="ko"?null:t.data;default:return null}}var z$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function x1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!z$[e.type]:t==="textarea"}function aE(e,t,n,r){Po?Xo?Xo.push(r):Xo=[r]:Po=r,t=wd(t,"onChange"),0<t.length&&(n=new Uh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nu=null,wu=null;function B$(e){J_(e,0)}function Hh(e){var t=Vs(e);if(Xj(t))return e}function S1(e,t){if(e==="change")return t}var iE=!1;if(ra){var by;if(ra){var xy="oninput"in document;if(!xy){var w1=document.createElement("div");w1.setAttribute("oninput","return;"),xy=typeof w1.oninput=="function"}by=xy}else by=!1;iE=by&&(!document.documentMode||9<document.documentMode)}function O1(){nu&&(nu.detachEvent("onpropertychange",oE),wu=nu=null)}function oE(e){if(e.propertyName==="value"&&Hh(wu)){var t=[];aE(t,wu,e,R0(e)),Jj(B$,t)}}function U$(e,t,n){e==="focusin"?(O1(),nu=t,wu=n,nu.attachEvent("onpropertychange",oE)):e==="focusout"&&O1()}function I$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hh(wu)}function H$(e,t){if(e==="click")return Hh(t)}function q$(e,t){if(e==="input"||e==="change")return Hh(t)}function F$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pn=typeof Object.is=="function"?Object.is:F$;function Ou(e,t){if(Pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Lm.call(t,a)||!Pn(e[a],t[a]))return!1}return!0}function A1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function j1(e,t){var n=A1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=A1(n)}}function lE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ad(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ad(e.document)}return t}function L0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var G$=ra&&"documentMode"in document&&11>=document.documentMode,$o=null,Fm=null,ru=null,Gm=!1;function E1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gm||$o==null||$o!==ad(r)||(r=$o,"selectionStart"in r&&L0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ru&&Ou(ru,r)||(ru=r,r=wd(Fm,"onSelect"),0<r.length&&(t=new Uh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$o)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Do={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionrun:hi("Transition","TransitionRun"),transitionstart:hi("Transition","TransitionStart"),transitioncancel:hi("Transition","TransitionCancel"),transitionend:hi("Transition","TransitionEnd")},Sy={},uE={};ra&&(uE=document.createElement("div").style,"AnimationEvent"in window||(delete Do.animationend.animation,delete Do.animationiteration.animation,delete Do.animationstart.animation),"TransitionEvent"in window||delete Do.transitionend.transition);function uo(e){if(Sy[e])return Sy[e];if(!Do[e])return e;var t=Do[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in uE)return Sy[e]=t[n];return e}var cE=uo("animationend"),fE=uo("animationiteration"),dE=uo("animationstart"),K$=uo("transitionrun"),Y$=uo("transitionstart"),X$=uo("transitioncancel"),hE=uo("transitionend"),pE=new Map,Km="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Km.push("scrollEnd");function fr(e,t){pE.set(e,t),lo(t,[e])}var id=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Bn=[],ko=0,z0=0;function qh(){for(var e=ko,t=z0=ko=0;t<e;){var n=Bn[t];Bn[t++]=null;var r=Bn[t];Bn[t++]=null;var a=Bn[t];Bn[t++]=null;var i=Bn[t];if(Bn[t++]=null,r!==null&&a!==null){var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}i!==0&&yE(n,a,i)}}function Fh(e,t,n,r){Bn[ko++]=e,Bn[ko++]=t,Bn[ko++]=n,Bn[ko++]=r,z0|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function B0(e,t,n,r){return Fh(e,t,n,r),od(e)}function co(e,t){return Fh(e,null,null,t),od(e)}function yE(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,r=i.alternate,r!==null&&(r.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Nn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function od(e){if(50<du)throw du=0,hv=null,Error(I(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Lo={};function V$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function An(e,t,n,r){return new V$(e,t,n,r)}function U0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qr(e,t){var n=e.alternate;return n===null?(n=An(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function mE(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function kf(e,t,n,r,a,i){var o=0;if(r=e,typeof e=="function")U0(e)&&(o=1);else if(typeof e=="string")o=eD(e,n,wr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Rm:return e=An(31,n,t,a),e.elementType=Rm,e.lanes=i,e;case No:return Ii(n.children,a,i,t);case Dj:o=8,a|=24;break;case Cm:return e=An(12,n,t,a|2),e.elementType=Cm,e.lanes=i,e;case Mm:return e=An(13,n,t,a),e.elementType=Mm,e.lanes=i,e;case Pm:return e=An(19,n,t,a),e.elementType=Pm,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gr:o=10;break e;case kj:o=9;break e;case E0:o=11;break e;case _0:o=14;break e;case xa:o=16,r=null;break e}o=29,n=Error(I(130,e===null?"null":typeof e,"")),r=null}return t=An(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Ii(e,t,n,r){return e=An(7,e,r,t),e.lanes=n,e}function wy(e,t,n){return e=An(6,e,null,t),e.lanes=n,e}function vE(e){var t=An(18,null,null,0);return t.stateNode=e,t}function Oy(e,t,n){return t=An(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _1=new WeakMap;function Fn(e,t){if(typeof e=="object"&&e!==null){var n=_1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:l1(t)},_1.set(e,t),t)}return{value:e,source:t,stack:l1(t)}}var zo=[],Bo=0,ld=null,Au=0,In=[],Hn=0,ti=null,gr=1,br="";function Br(e,t){zo[Bo++]=Au,zo[Bo++]=ld,ld=e,Au=t}function gE(e,t,n){In[Hn++]=gr,In[Hn++]=br,In[Hn++]=ti,ti=e;var r=gr;e=br;var a=32-Nn(r)-1;r&=~(1<<a),n+=1;var i=32-Nn(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,gr=1<<32-Nn(t)+a|n<<a|r,br=i+e}else gr=1<<i|n<<a|r,br=e}function I0(e){e.return!==null&&(Br(e,1),gE(e,1,0))}function H0(e){for(;e===ld;)ld=zo[--Bo],zo[Bo]=null,Au=zo[--Bo],zo[Bo]=null;for(;e===ti;)ti=In[--Hn],In[Hn]=null,br=In[--Hn],In[Hn]=null,gr=In[--Hn],In[Hn]=null}function bE(e,t){In[Hn++]=gr,In[Hn++]=br,In[Hn++]=ti,gr=t.id,br=t.overflow,ti=e}var Lt=null,Qe=null,Se=!1,Fa=null,Gn=!1,Ym=Error(I(519));function ni(e){var t=Error(I(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ju(Fn(t,e)),Ym}function T1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[kt]=e,t[hn]=r,n){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(n=0;n<Nu.length;n++)ve(Nu[n],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),Vj(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Wj(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||tT(t.textContent,n)?(r.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),r.onScroll!=null&&ve("scroll",t),r.onScrollEnd!=null&&ve("scrollend",t),r.onClick!=null&&(t.onclick=Kr),t=!0):t=!1,t||ni(e,!0)}function N1(e){for(Lt=e.return;Lt;)switch(Lt.tag){case 5:case 31:case 13:Gn=!1;return;case 27:case 3:Gn=!0;return;default:Lt=Lt.return}}function bo(e){if(e!==Lt)return!1;if(!Se)return N1(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||gv(e.type,e.memoizedProps)),n=!n),n&&Qe&&ni(e),N1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));Qe=yS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));Qe=yS(e)}else t===27?(t=Qe,oi(e.type)?(e=wv,wv=null,Qe=e):Qe=t):Qe=Lt?Vn(e.stateNode.nextSibling):null;return!0}function Xi(){Qe=Lt=null,Se=!1}function Ay(){var e=Fa;return e!==null&&(un===null?un=e:un.push.apply(un,e),Fa=null),e}function ju(e){Fa===null?Fa=[e]:Fa.push(e)}var Xm=Er(null),fo=null,Yr=null;function Aa(e,t,n){Fe(Xm,t._currentValue),t._currentValue=n}function Wr(e){e._currentValue=Xm.current,Ct(Xm)}function Vm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Qm(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;e:for(;i!==null;){var l=i;i=a;for(var s=0;s<t.length;s++)if(l.context===t[s]){i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Vm(i.return,n,e),r||(o=null);break e}i=l.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(I(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),Vm(o,n,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function ns(e,t,n,r){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(I(387));if(o=o.memoizedProps,o!==null){var l=a.type;Pn(a.pendingProps.value,o.value)||(e!==null?e.push(l):e=[l])}}else if(a===ed.current){if(o=a.alternate,o===null)throw Error(I(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Mu):e=[Mu])}a=a.return}e!==null&&Qm(t,e,n,r),t.flags|=262144}function sd(e){for(e=e.firstContext;e!==null;){if(!Pn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vi(e){fo=e,Yr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return xE(fo,e)}function of(e,t){return fo===null&&Vi(e),xE(e,t)}function xE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yr===null){if(e===null)throw Error(I(308));Yr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yr=Yr.next=t;return n}var Q$=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},W$=Ot.unstable_scheduleCallback,Z$=Ot.unstable_NormalPriority,pt={$$typeof:Gr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function q0(){return{controller:new Q$,data:new Map,refCount:0}}function Cc(e){e.refCount--,e.refCount===0&&W$(Z$,function(){e.controller.abort()})}var au=null,Wm=0,bl=0,Vo=null;function J$(e,t){if(au===null){var n=au=[];Wm=0,bl=pb(),Vo={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Wm++,t.then(C1,C1),t}function C1(){if(--Wm===0&&au!==null){Vo!==null&&(Vo.status="fulfilled");var e=au;au=null,bl=0,Vo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function e3(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var M1=re.S;re.S=function(e,t){$_=_n(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&J$(e,t),M1!==null&&M1(e,t)};var Hi=Er(null);function F0(){var e=Hi.current;return e!==null?e:Ie.pooledCache}function Lf(e,t){t===null?Fe(Hi,Hi.current):Fe(Hi,t.pool)}function SE(){var e=F0();return e===null?null:{parent:pt._currentValue,pool:e}}var rs=Error(I(460)),G0=Error(I(474)),Gh=Error(I(542)),ud={then:function(){}};function P1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Kr,Kr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$1(e),e;default:if(typeof t.status=="string")t.then(Kr,Kr);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(I(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$1(e),e}throw qi=t,rs}}function bi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(qi=n,rs):n}}var qi=null;function R1(){if(qi===null)throw Error(I(459));var e=qi;return qi=null,e}function $1(e){if(e===rs||e===Gh)throw Error(I(483))}var Qo=null,Eu=0;function lf(e){var t=Eu;return Eu+=1,Qo===null&&(Qo=[]),wE(Qo,e,t)}function Ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sf(e,t){throw t.$$typeof===UR?Error(I(525)):(e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function OE(e){function t(y,m){if(e){var x=y.deletions;x===null?(y.deletions=[m],y.flags|=16):x.push(m)}}function n(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function r(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function a(y,m){return y=Qr(y,m),y.index=0,y.sibling=null,y}function i(y,m,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<m?(y.flags|=67108866,m):x):(y.flags|=67108866,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function l(y,m,x,w){return m===null||m.tag!==6?(m=wy(x,y.mode,w),m.return=y,m):(m=a(m,x),m.return=y,m)}function s(y,m,x,w){var S=x.type;return S===No?f(y,m,x.props.children,w,x.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xa&&bi(S)===m.type)?(m=a(m,x.props),Ms(m,x),m.return=y,m):(m=kf(x.type,x.key,x.props,null,y.mode,w),Ms(m,x),m.return=y,m)}function u(y,m,x,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=Oy(x,y.mode,w),m.return=y,m):(m=a(m,x.children||[]),m.return=y,m)}function f(y,m,x,w,S){return m===null||m.tag!==7?(m=Ii(x,y.mode,w,S),m.return=y,m):(m=a(m,x),m.return=y,m)}function c(y,m,x){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=wy(""+m,y.mode,x),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Jc:return x=kf(m.type,m.key,m.props,null,y.mode,x),Ms(x,m),x.return=y,x;case Ys:return m=Oy(m,y.mode,x),m.return=y,m;case xa:return m=bi(m),c(y,m,x)}if(Xs(m)||Ts(m))return m=Ii(m,y.mode,x,null),m.return=y,m;if(typeof m.then=="function")return c(y,lf(m),x);if(m.$$typeof===Gr)return c(y,of(y,m),x);sf(y,m)}return null}function h(y,m,x,w){var S=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:l(y,m,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Jc:return x.key===S?s(y,m,x,w):null;case Ys:return x.key===S?u(y,m,x,w):null;case xa:return x=bi(x),h(y,m,x,w)}if(Xs(x)||Ts(x))return S!==null?null:f(y,m,x,w,null);if(typeof x.then=="function")return h(y,m,lf(x),w);if(x.$$typeof===Gr)return h(y,m,of(y,x),w);sf(y,x)}return null}function p(y,m,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return y=y.get(x)||null,l(m,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Jc:return y=y.get(w.key===null?x:w.key)||null,s(m,y,w,S);case Ys:return y=y.get(w.key===null?x:w.key)||null,u(m,y,w,S);case xa:return w=bi(w),p(y,m,x,w,S)}if(Xs(w)||Ts(w))return y=y.get(x)||null,f(m,y,w,S,null);if(typeof w.then=="function")return p(y,m,x,lf(w),S);if(w.$$typeof===Gr)return p(y,m,x,of(m,w),S);sf(m,w)}return null}function b(y,m,x,w){for(var S=null,O=null,A=m,E=m=0,_=null;A!==null&&E<x.length;E++){A.index>E?(_=A,A=null):_=A.sibling;var C=h(y,A,x[E],w);if(C===null){A===null&&(A=_);break}e&&A&&C.alternate===null&&t(y,A),m=i(C,m,E),O===null?S=C:O.sibling=C,O=C,A=_}if(E===x.length)return n(y,A),Se&&Br(y,E),S;if(A===null){for(;E<x.length;E++)A=c(y,x[E],w),A!==null&&(m=i(A,m,E),O===null?S=A:O.sibling=A,O=A);return Se&&Br(y,E),S}for(A=r(A);E<x.length;E++)_=p(A,y,E,x[E],w),_!==null&&(e&&_.alternate!==null&&A.delete(_.key===null?E:_.key),m=i(_,m,E),O===null?S=_:O.sibling=_,O=_);return e&&A.forEach(function($){return t(y,$)}),Se&&Br(y,E),S}function v(y,m,x,w){if(x==null)throw Error(I(151));for(var S=null,O=null,A=m,E=m=0,_=null,C=x.next();A!==null&&!C.done;E++,C=x.next()){A.index>E?(_=A,A=null):_=A.sibling;var $=h(y,A,C.value,w);if($===null){A===null&&(A=_);break}e&&A&&$.alternate===null&&t(y,A),m=i($,m,E),O===null?S=$:O.sibling=$,O=$,A=_}if(C.done)return n(y,A),Se&&Br(y,E),S;if(A===null){for(;!C.done;E++,C=x.next())C=c(y,C.value,w),C!==null&&(m=i(C,m,E),O===null?S=C:O.sibling=C,O=C);return Se&&Br(y,E),S}for(A=r(A);!C.done;E++,C=x.next())C=p(A,y,E,C.value,w),C!==null&&(e&&C.alternate!==null&&A.delete(C.key===null?E:C.key),m=i(C,m,E),O===null?S=C:O.sibling=C,O=C);return e&&A.forEach(function(P){return t(y,P)}),Se&&Br(y,E),S}function g(y,m,x,w){if(typeof x=="object"&&x!==null&&x.type===No&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Jc:e:{for(var S=x.key;m!==null;){if(m.key===S){if(S=x.type,S===No){if(m.tag===7){n(y,m.sibling),w=a(m,x.props.children),w.return=y,y=w;break e}}else if(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xa&&bi(S)===m.type){n(y,m.sibling),w=a(m,x.props),Ms(w,x),w.return=y,y=w;break e}n(y,m);break}else t(y,m);m=m.sibling}x.type===No?(w=Ii(x.props.children,y.mode,w,x.key),w.return=y,y=w):(w=kf(x.type,x.key,x.props,null,y.mode,w),Ms(w,x),w.return=y,y=w)}return o(y);case Ys:e:{for(S=x.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(y,m.sibling),w=a(m,x.children||[]),w.return=y,y=w;break e}else{n(y,m);break}else t(y,m);m=m.sibling}w=Oy(x,y.mode,w),w.return=y,y=w}return o(y);case xa:return x=bi(x),g(y,m,x,w)}if(Xs(x))return b(y,m,x,w);if(Ts(x)){if(S=Ts(x),typeof S!="function")throw Error(I(150));return x=S.call(x),v(y,m,x,w)}if(typeof x.then=="function")return g(y,m,lf(x),w);if(x.$$typeof===Gr)return g(y,m,of(y,x),w);sf(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,m!==null&&m.tag===6?(n(y,m.sibling),w=a(m,x),w.return=y,y=w):(n(y,m),w=wy(x,y.mode,w),w.return=y,y=w),o(y)):n(y,m)}return function(y,m,x,w){try{Eu=0;var S=g(y,m,x,w);return Qo=null,S}catch(A){if(A===rs||A===Gh)throw A;var O=An(29,A,null,y.mode);return O.lanes=w,O.return=y,O}finally{}}}var Qi=OE(!0),AE=OE(!1),Sa=!1;function K0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Oe&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=od(e),yE(e,null,n),t}return Fh(e,r,t,n),od(e)}function iu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hj(e,n)}}function jy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Jm=!1;function ou(){if(Jm){var e=Vo;if(e!==null)throw e}}function lu(e,t,n,r){Jm=!1;var a=e.updateQueue;Sa=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?i=u:o.next=u,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=s))}if(i!==null){var c=a.baseState;o=0,f=u=s=null,l=i;do{var h=l.lane&-536870913,p=h!==l.lane;if(p?(be&h)===h:(r&h)===h){h!==0&&h===bl&&(Jm=!0),f!==null&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var b=e,v=l;h=t;var g=n;switch(v.tag){case 1:if(b=v.payload,typeof b=="function"){c=b.call(g,c,h);break e}c=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(g,c,h):b,h==null)break e;c=Ze({},c,h);break e;case 2:Sa=!0}}h=l.callback,h!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,s=c):f=f.next=p,o|=h;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;p=l,l=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);f===null&&(s=c),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),ai|=o,e.lanes=o,e.memoizedState=c}}function jE(e,t){if(typeof e!="function")throw Error(I(191,e));e.call(t)}function EE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jE(n[e],t)}var xl=Er(null),cd=Er(0);function D1(e,t){e=la,Fe(cd,e),Fe(xl,t),la=e|t.baseLanes}function ev(){Fe(cd,la),Fe(xl,xl.current)}function Y0(){la=cd.current,Ct(xl),Ct(cd)}var Rn=Er(null),Xn=null;function ja(e){var t=e.alternate;Fe(st,st.current&1),Fe(Rn,e),Xn===null&&(t===null||xl.current!==null||t.memoizedState!==null)&&(Xn=e)}function tv(e){Fe(st,st.current),Fe(Rn,e),Xn===null&&(Xn=e)}function _E(e){e.tag===22?(Fe(st,st.current),Fe(Rn,e),Xn===null&&(Xn=e)):Ea()}function Ea(){Fe(st,st.current),Fe(Rn,Rn.current)}function On(e){Ct(Rn),Xn===e&&(Xn=null),Ct(st)}var st=Er(0);function fd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||xv(n)||Sv(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var aa=0,ce=null,ze=null,dt=null,dd=!1,Wo=!1,Wi=!1,hd=0,_u=0,Zo=null,t3=0;function at(){throw Error(I(321))}function X0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pn(e[n],t[n]))return!1;return!0}function V0(e,t,n,r,a,i){return aa=i,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,re.H=e===null||e.memoizedState===null?a_:ob,Wi=!1,i=n(r,a),Wi=!1,Wo&&(i=NE(t,n,r,a)),TE(e),i}function TE(e){re.H=Tu;var t=ze!==null&&ze.next!==null;if(aa=0,dt=ze=ce=null,dd=!1,_u=0,Zo=null,t)throw Error(I(300));e===null||yt||(e=e.dependencies,e!==null&&sd(e)&&(yt=!0))}function NE(e,t,n,r){ce=e;var a=0;do{if(Wo&&(Zo=null),_u=0,Wo=!1,25<=a)throw Error(I(301));if(a+=1,dt=ze=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}re.H=i_,i=t(n,r)}while(Wo);return i}function n3(){var e=re.H,t=e.useState()[0];return t=typeof t.then=="function"?Mc(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ce.flags|=1024),t}function Q0(){var e=hd!==0;return hd=0,e}function W0(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Z0(e){if(dd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}dd=!1}aa=0,dt=ze=ce=null,Wo=!1,_u=hd=0,Zo=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?ce.memoizedState=dt=e:dt=dt.next=e,dt}function ut(){if(ze===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=dt===null?ce.memoizedState:dt.next;if(t!==null)dt=t,ze=e;else{if(e===null)throw ce.alternate===null?Error(I(467)):Error(I(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},dt===null?ce.memoizedState=dt=e:dt=dt.next=e}return dt}function Kh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mc(e){var t=_u;return _u+=1,Zo===null&&(Zo=[]),e=wE(Zo,e,t),t=ce,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,re.H=t===null||t.memoizedState===null?a_:ob),e}function Yh(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mc(e);if(e.$$typeof===Gr)return Bt(e)}throw Error(I(438,String(e)))}function J0(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ce.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Kh(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=IR;return t.index++,n}function ia(e,t){return typeof t=="function"?t(e):t}function zf(e){var t=ut();return eb(t,ze,e)}function eb(e,t,n){var r=e.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var l=o=null,s=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(be&c)===c:(aa&c)===c){var h=u.revertLane;if(h===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===bl&&(f=!0);else if((aa&h)===h){u=u.next,h===bl&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=c,o=i):s=s.next=c,ce.lanes|=h,ai|=h;c=u.action,Wi&&n(i,c),i=u.hasEagerState?u.eagerState:n(i,c)}else h={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=h,o=i):s=s.next=h,ce.lanes|=c,ai|=c;u=u.next}while(u!==null&&u!==t);if(s===null?o=i:s.next=l,!Pn(i,e.memoizedState)&&(yt=!0,f&&(n=Vo,n!==null)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=s,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ey(e){var t=ut(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);Pn(i,t.memoizedState)||(yt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function CE(e,t,n){var r=ce,a=ut(),i=Se;if(i){if(n===void 0)throw Error(I(407));n=n()}else n=t();var o=!Pn((ze||a).memoizedState,n);if(o&&(a.memoizedState=n,yt=!0),a=a.queue,tb(RE.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||dt!==null&&dt.memoizedState.tag&1){if(r.flags|=2048,Sl(9,{destroy:void 0},PE.bind(null,r,a,n,t),null),Ie===null)throw Error(I(349));i||aa&127||ME(r,t,n)}return n}function ME(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=Kh(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function PE(e,t,n,r){t.value=n,t.getSnapshot=r,$E(t)&&DE(e)}function RE(e,t,n){return n(function(){$E(t)&&DE(e)})}function $E(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pn(e,n)}catch{return!0}}function DE(e){var t=co(e,2);t!==null&&fn(t,e,2)}function nv(e){var t=Xt();if(typeof e=="function"){var n=e;if(e=n(),Wi){La(!0);try{n()}finally{La(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e},t}function kE(e,t,n,r){return e.baseState=n,eb(e,ze,typeof r=="function"?r:ia)}function r3(e,t,n,r,a){if(Vh(e))throw Error(I(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};re.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,LE(t,i)):(i.next=n.next,t.pending=n.next=i)}}function LE(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=re.T,o={};re.T=o;try{var l=n(a,r),s=re.S;s!==null&&s(o,l),k1(e,t,l)}catch(u){rv(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),re.T=i}}else try{i=n(a,r),k1(e,t,i)}catch(u){rv(e,t,u)}}function k1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){L1(e,t,r)},function(r){return rv(e,t,r)}):L1(e,t,n)}function L1(e,t,n){t.status="fulfilled",t.value=n,zE(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,LE(e,n)))}function rv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,zE(t),t=t.next;while(t!==r)}e.action=null}function zE(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function BE(e,t){return t}function z1(e,t){if(Se){var n=Ie.formState;if(n!==null){e:{var r=ce;if(Se){if(Qe){t:{for(var a=Qe,i=Gn;a.nodeType!==8;){if(!i){a=null;break t}if(a=Vn(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Qe=Vn(a.nextSibling),r=a.data==="F!";break e}}ni(r)}r=!1}r&&(t=n[0])}}return n=Xt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:BE,lastRenderedState:t},n.queue=r,n=t_.bind(null,ce,r),r.dispatch=n,r=nv(!1),i=ib.bind(null,ce,!1,r.queue),r=Xt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=r3.bind(null,ce,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function B1(e){var t=ut();return UE(t,ze,e)}function UE(e,t,n){if(t=eb(e,t,BE)[0],e=zf(ia)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Mc(t)}catch(o){throw o===rs?Gh:o}else r=t;t=ut();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,Sl(9,{destroy:void 0},a3.bind(null,a,n),null)),[r,i,e]}function a3(e,t){e.action=t}function U1(e){var t=ut(),n=ze;if(n!==null)return UE(t,n,e);ut(),t=t.memoizedState,n=ut();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Sl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Kh(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function IE(){return ut().memoizedState}function Bf(e,t,n,r){var a=Xt();ce.flags|=e,a.memoizedState=Sl(1|t,{destroy:void 0},n,r===void 0?null:r)}function Xh(e,t,n,r){var a=ut();r=r===void 0?null:r;var i=a.memoizedState.inst;ze!==null&&r!==null&&X0(r,ze.memoizedState.deps)?a.memoizedState=Sl(t,i,n,r):(ce.flags|=e,a.memoizedState=Sl(1|t,i,n,r))}function I1(e,t){Bf(8390656,8,e,t)}function tb(e,t){Xh(2048,8,e,t)}function i3(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Kh(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function HE(e){var t=ut().memoizedState;return i3({ref:t,nextImpl:e}),function(){if(Oe&2)throw Error(I(440));return t.impl.apply(void 0,arguments)}}function qE(e,t){return Xh(4,2,e,t)}function FE(e,t){return Xh(4,4,e,t)}function GE(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function KE(e,t,n){n=n!=null?n.concat([e]):null,Xh(4,4,GE.bind(null,t,e),n)}function nb(){}function YE(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&X0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function XE(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&X0(t,r[1]))return r[0];if(r=e(),Wi){La(!0);try{e()}finally{La(!1)}}return n.memoizedState=[r,t],r}function rb(e,t,n){return n===void 0||aa&1073741824&&!(be&261930)?e.memoizedState=t:(e.memoizedState=n,e=k_(),ce.lanes|=e,ai|=e,n)}function VE(e,t,n,r){return Pn(n,t)?n:xl.current!==null?(e=rb(e,n,r),Pn(e,t)||(yt=!0),e):!(aa&42)||aa&1073741824&&!(be&261930)?(yt=!0,e.memoizedState=n):(e=k_(),ce.lanes|=e,ai|=e,t)}function QE(e,t,n,r,a){var i=Ae.p;Ae.p=i!==0&&8>i?i:8;var o=re.T,l={};re.T=l,ib(e,!1,t,n);try{var s=a(),u=re.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=e3(s,r);su(e,t,f,Cn(e))}else su(e,t,r,Cn(e))}catch(c){su(e,t,{then:function(){},status:"rejected",reason:c},Cn())}finally{Ae.p=i,o!==null&&l.types!==null&&(o.types=l.types),re.T=o}}function o3(){}function av(e,t,n,r){if(e.tag!==5)throw Error(I(476));var a=WE(e).queue;QE(e,a,t,Ui,n===null?o3:function(){return ZE(e),n(r)})}function WE(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ui,baseState:Ui,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:Ui},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ZE(e){var t=WE(e);t.next===null&&(t=e.alternate.memoizedState),su(e,t.next.queue,{},Cn())}function ab(){return Bt(Mu)}function JE(){return ut().memoizedState}function e_(){return ut().memoizedState}function l3(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=Ga(n);var r=Ka(t,e,n);r!==null&&(fn(r,t,n),iu(r,t,n)),t={cache:q0()},e.payload=t;return}t=t.return}}function s3(e,t,n){var r=Cn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vh(e)?n_(t,n):(n=B0(e,t,n,r),n!==null&&(fn(n,e,r),r_(n,t,r)))}function t_(e,t,n){var r=Cn();su(e,t,n,r)}function su(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vh(e))n_(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,Pn(l,o))return Fh(e,t,a,0),Ie===null&&qh(),!1}catch{}finally{}if(n=B0(e,t,a,r),n!==null)return fn(n,e,r),r_(n,t,r),!0}return!1}function ib(e,t,n,r){if(r={lane:2,revertLane:pb(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Vh(e)){if(t)throw Error(I(479))}else t=B0(e,n,r,2),t!==null&&fn(t,e,2)}function Vh(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function n_(e,t){Wo=dd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function r_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hj(e,n)}}var Tu={readContext:Bt,use:Yh,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};Tu.useEffectEvent=at;var a_={readContext:Bt,use:Yh,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:I1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Bf(4194308,4,GE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bf(4194308,4,e,t)},useInsertionEffect:function(e,t){Bf(4,2,e,t)},useMemo:function(e,t){var n=Xt();t=t===void 0?null:t;var r=e();if(Wi){La(!0);try{e()}finally{La(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Xt();if(n!==void 0){var a=n(t);if(Wi){La(!0);try{n(t)}finally{La(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=s3.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=nv(e);var t=e.queue,n=t_.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:nb,useDeferredValue:function(e,t){var n=Xt();return rb(n,e,t)},useTransition:function(){var e=nv(!1);return e=QE.bind(null,ce,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ce,a=Xt();if(Se){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Ie===null)throw Error(I(349));be&127||ME(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,I1(RE.bind(null,r,i,e),[e]),r.flags|=2048,Sl(9,{destroy:void 0},PE.bind(null,r,i,n,t),null),n},useId:function(){var e=Xt(),t=Ie.identifierPrefix;if(Se){var n=br,r=gr;n=(r&~(1<<32-Nn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=hd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=t3++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ab,useFormState:z1,useActionState:z1,useOptimistic:function(e){var t=Xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ib.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:J0,useCacheRefresh:function(){return Xt().memoizedState=l3.bind(null,ce)},useEffectEvent:function(e){var t=Xt(),n={impl:e};return t.memoizedState=n,function(){if(Oe&2)throw Error(I(440));return n.impl.apply(void 0,arguments)}}},ob={readContext:Bt,use:Yh,useCallback:YE,useContext:Bt,useEffect:tb,useImperativeHandle:KE,useInsertionEffect:qE,useLayoutEffect:FE,useMemo:XE,useReducer:zf,useRef:IE,useState:function(){return zf(ia)},useDebugValue:nb,useDeferredValue:function(e,t){var n=ut();return VE(n,ze.memoizedState,e,t)},useTransition:function(){var e=zf(ia)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Mc(e),t]},useSyncExternalStore:CE,useId:JE,useHostTransitionStatus:ab,useFormState:B1,useActionState:B1,useOptimistic:function(e,t){var n=ut();return kE(n,ze,e,t)},useMemoCache:J0,useCacheRefresh:e_};ob.useEffectEvent=HE;var i_={readContext:Bt,use:Yh,useCallback:YE,useContext:Bt,useEffect:tb,useImperativeHandle:KE,useInsertionEffect:qE,useLayoutEffect:FE,useMemo:XE,useReducer:Ey,useRef:IE,useState:function(){return Ey(ia)},useDebugValue:nb,useDeferredValue:function(e,t){var n=ut();return ze===null?rb(n,e,t):VE(n,ze.memoizedState,e,t)},useTransition:function(){var e=Ey(ia)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Mc(e),t]},useSyncExternalStore:CE,useId:JE,useHostTransitionStatus:ab,useFormState:U1,useActionState:U1,useOptimistic:function(e,t){var n=ut();return ze!==null?kE(n,ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:J0,useCacheRefresh:e_};i_.useEffectEvent=HE;function _y(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ze({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var iv={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=Ga(r);a.payload=t,n!=null&&(a.callback=n),t=Ka(e,a,r),t!==null&&(fn(t,e,r),iu(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=Ga(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Ka(e,a,r),t!==null&&(fn(t,e,r),iu(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),r=Ga(n);r.tag=2,t!=null&&(r.callback=t),t=Ka(e,r,n),t!==null&&(fn(t,e,n),iu(t,e,n))}};function H1(e,t,n,r,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Ou(n,r)||!Ou(a,i):!0}function q1(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&iv.enqueueReplaceState(t,t.state,null)}function Zi(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=Ze({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function o_(e){id(e)}function l_(e){console.error(e)}function s_(e){id(e)}function pd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function F1(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ov(e,t,n){return n=Ga(n),n.tag=3,n.payload={element:null},n.callback=function(){pd(e,t)},n}function u_(e){return e=Ga(e),e.tag=3,e}function c_(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=r.value;e.payload=function(){return a(i)},e.callback=function(){F1(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){F1(t,n,r),typeof a!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function u3(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&ns(t,n,a,!0),n=Rn.current,n!==null){switch(n.tag){case 31:case 13:return Xn===null?bd():n.alternate===null&&lt===0&&(lt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ud?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),zy(e,r,a)),!1;case 22:return n.flags|=65536,r===ud?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),zy(e,r,a)),!1}throw Error(I(435,n.tag))}return zy(e,r,a),bd(),!1}if(Se)return t=Rn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ym&&(e=Error(I(422),{cause:r}),ju(Fn(e,n)))):(r!==Ym&&(t=Error(I(423),{cause:r}),ju(Fn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Fn(r,n),a=ov(e.stateNode,r,a),jy(e,a),lt!==4&&(lt=2)),!1;var i=Error(I(520),{cause:r});if(i=Fn(i,n),fu===null?fu=[i]:fu.push(i),lt!==4&&(lt=2),t===null)return!0;r=Fn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ov(n.stateNode,r,e),jy(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ya===null||!Ya.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=u_(a),c_(a,e,n,r),jy(n,a),!1}n=n.return}while(n!==null);return!1}var lb=Error(I(461)),yt=!1;function Dt(e,t,n,r){t.child=e===null?AE(t,null,n,r):Qi(t,e.child,n,r)}function G1(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var o={};for(var l in r)l!=="ref"&&(o[l]=r[l])}else o=r;return Vi(t),r=V0(e,t,n,o,i,a),l=Q0(),e!==null&&!yt?(W0(e,t,a),oa(e,t,a)):(Se&&l&&I0(t),t.flags|=1,Dt(e,t,r,a),t.child)}function K1(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!U0(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,f_(e,t,i,r,a)):(e=kf(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!sb(e,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ou,n(o,r)&&e.ref===t.ref)return oa(e,t,a)}return t.flags|=1,e=Qr(i,r),e.ref=t.ref,e.return=t,t.child=e}function f_(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Ou(i,r)&&e.ref===t.ref)if(yt=!1,t.pendingProps=r=i,sb(e,a))e.flags&131072&&(yt=!0);else return t.lanes=e.lanes,oa(e,t,a)}return lv(e,t,n,r,a)}function d_(e,t,n,r){var a=r.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~i}else r=0,t.child=null;return Y1(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Lf(t,i!==null?i.cachePool:null),i!==null?D1(t,i):ev(),_E(t);else return r=t.lanes=536870912,Y1(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Lf(t,i.cachePool),D1(t,i),Ea(),t.memoizedState=null):(e!==null&&Lf(t,null),ev(),Ea());return Dt(e,t,a,n),t.child}function Qs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Y1(e,t,n,r,a){var i=F0();return i=i===null?null:{parent:pt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Lf(t,null),ev(),_E(t),e!==null&&ns(e,t,r,!0),t.childLanes=a,null}function Uf(e,t){return t=yd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function X1(e,t,n){return Qi(t,e.child,null,n),e=Uf(t,t.pendingProps),e.flags|=2,On(t),t.memoizedState=null,e}function c3(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(r.mode==="hidden")return e=Uf(t,r),t.lanes=536870912,Qs(null,e);if(tv(t),(e=Qe)?(e=aT(e,Gn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ti!==null?{id:gr,overflow:br}:null,retryLane:536870912,hydrationErrors:null},n=vE(e),n.return=t,t.child=n,Lt=t,Qe=null)):e=null,e===null)throw ni(t);return t.lanes=536870912,null}return Uf(t,r)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(tv(t),a)if(t.flags&256)t.flags&=-257,t=X1(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(I(558));else if(yt||ns(e,t,n,!1),a=(n&e.childLanes)!==0,yt||a){if(r=Ie,r!==null&&(o=qj(r,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,co(e,o),fn(r,e,o),lb;bd(),t=X1(e,t,n)}else e=i.treeContext,Qe=Vn(o.nextSibling),Lt=t,Se=!0,Fa=null,Gn=!1,e!==null&&bE(t,e),t=Uf(t,r),t.flags|=4096;return t}return e=Qr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function If(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(I(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lv(e,t,n,r,a){return Vi(t),n=V0(e,t,n,r,void 0,a),r=Q0(),e!==null&&!yt?(W0(e,t,a),oa(e,t,a)):(Se&&r&&I0(t),t.flags|=1,Dt(e,t,n,a),t.child)}function V1(e,t,n,r,a,i){return Vi(t),t.updateQueue=null,n=NE(t,r,n,a),TE(e),r=Q0(),e!==null&&!yt?(W0(e,t,i),oa(e,t,i)):(Se&&r&&I0(t),t.flags|=1,Dt(e,t,n,i),t.child)}function Q1(e,t,n,r,a){if(Vi(t),t.stateNode===null){var i=Lo,o=n.contextType;typeof o=="object"&&o!==null&&(i=Bt(o)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=iv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},K0(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?Bt(o):Lo,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(_y(t,n,o,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&iv.enqueueReplaceState(i,i.state,null),lu(t,r,i,a),ou(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var l=t.memoizedProps,s=Zi(n,l);i.props=s;var u=i.context,f=n.contextType;o=Lo,typeof f=="object"&&f!==null&&(o=Bt(f));var c=n.getDerivedStateFromProps;f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l||u!==o)&&q1(t,i,r,o),Sa=!1;var h=t.memoizedState;i.state=h,lu(t,r,i,a),ou(),u=t.memoizedState,l||h!==u||Sa?(typeof c=="function"&&(_y(t,n,c,r),u=t.memoizedState),(s=Sa||H1(t,n,s,r,h,u,o))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=o,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Zm(e,t),o=t.memoizedProps,f=Zi(n,o),i.props=f,c=t.pendingProps,h=i.context,u=n.contextType,s=Lo,typeof u=="object"&&u!==null&&(s=Bt(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==c||h!==s)&&q1(t,i,r,s),Sa=!1,h=t.memoizedState,i.state=h,lu(t,r,i,a),ou();var p=t.memoizedState;o!==c||h!==p||Sa||e!==null&&e.dependencies!==null&&sd(e.dependencies)?(typeof l=="function"&&(_y(t,n,l,r),p=t.memoizedState),(f=Sa||H1(t,n,f,r,h,p,s)||e!==null&&e.dependencies!==null&&sd(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,r=f):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,If(e,t),r=(t.flags&128)!==0,i||r?(i=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&r?(t.child=Qi(t,e.child,null,a),t.child=Qi(t,null,n,a)):Dt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=oa(e,t,a),e}function W1(e,t,n,r){return Xi(),t.flags|=256,Dt(e,t,n,r),t.child}var Ty={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ny(e){return{baseLanes:e,cachePool:SE()}}function Cy(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=En),e}function h_(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(a?ja(t):Ea(),(e=Qe)?(e=aT(e,Gn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ti!==null?{id:gr,overflow:br}:null,retryLane:536870912,hydrationErrors:null},n=vE(e),n.return=t,t.child=n,Lt=t,Qe=null)):e=null,e===null)throw ni(t);return Sv(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,a?(Ea(),a=t.mode,l=yd({mode:"hidden",children:l},a),r=Ii(r,a,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=Ny(n),r.childLanes=Cy(e,o,n),t.memoizedState=Ty,Qs(null,r)):(ja(t),sv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(i)t.flags&256?(ja(t),t.flags&=-257,t=My(e,t,n)):t.memoizedState!==null?(Ea(),t.child=e.child,t.flags|=128,t=null):(Ea(),l=r.fallback,a=t.mode,r=yd({mode:"visible",children:r.children},a),l=Ii(l,a,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,Qi(t,e.child,null,n),r=t.child,r.memoizedState=Ny(n),r.childLanes=Cy(e,o,n),t.memoizedState=Ty,t=Qs(null,r));else if(ja(t),Sv(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(I(419)),r.stack="",r.digest=o,ju({value:r,source:null,stack:null}),t=My(e,t,n)}else if(yt||ns(e,t,n,!1),o=(n&e.childLanes)!==0,yt||o){if(o=Ie,o!==null&&(r=qj(o,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,co(e,r),fn(o,e,r),lb;xv(l)||bd(),t=My(e,t,n)}else xv(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Qe=Vn(l.nextSibling),Lt=t,Se=!0,Fa=null,Gn=!1,e!==null&&bE(t,e),t=sv(t,r.children),t.flags|=4096);return t}return a?(Ea(),l=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=Qr(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=Qr(u,l):(l=Ii(l,a,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,Qs(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Ny(n):(a=l.cachePool,a!==null?(s=pt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=SE(),l={baseLanes:l.baseLanes|n,cachePool:a}),r.memoizedState=l,r.childLanes=Cy(e,o,n),t.memoizedState=Ty,Qs(e.child,r)):(ja(t),n=e.child,e=n.sibling,n=Qr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function sv(e,t){return t=yd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yd(e,t){return e=An(22,e,null,t),e.lanes=0,e}function My(e,t,n){return Qi(t,e.child,null,n),e=sv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Z1(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vm(e.return,t,n)}function Py(e,t,n,r,a,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.treeForkCount=i)}function p_(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var o=st.current,l=(o&2)!==0;if(l?(o=o&1|2,t.flags|=128):o&=1,Fe(st,o),Dt(e,t,r,n),r=Se?Au:0,!l&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Z1(e,n,t);else if(e.tag===19)Z1(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&fd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Py(t,!1,a,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&fd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Py(t,!0,n,null,i,r);break;case"together":Py(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function oa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ai|=t.lanes,!(n&t.childLanes))if(e!==null){if(ns(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=Qr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sb(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&sd(e)))}function f3(e,t,n){switch(t.tag){case 3:td(t,t.stateNode.containerInfo),Aa(t,pt,e.memoizedState.cache),Xi();break;case 27:case 5:km(t);break;case 4:td(t,t.stateNode.containerInfo);break;case 10:Aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,tv(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ja(t),t.flags|=128,null):n&t.child.childLanes?h_(e,t,n):(ja(t),e=oa(e,t,n),e!==null?e.sibling:null);ja(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(ns(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return p_(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Fe(st,st.current),r)break;return null;case 22:return t.lanes=0,d_(e,t,n,t.pendingProps);case 24:Aa(t,pt,e.memoizedState.cache)}return oa(e,t,n)}function y_(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!sb(e,n)&&!(t.flags&128))return yt=!1,f3(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Se&&t.flags&1048576&&gE(t,Au,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=bi(t.elementType),t.type=e,typeof e=="function")U0(e)?(r=Zi(e,r),t.tag=1,t=Q1(null,t,e,r,n)):(t.tag=0,t=lv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===E0){t.tag=11,t=G1(null,t,e,r,n);break e}else if(a===_0){t.tag=14,t=K1(null,t,e,r,n);break e}}throw t=$m(e)||e,Error(I(306,t,""))}}return t;case 0:return lv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Zi(r,t.pendingProps),Q1(e,t,r,a,n);case 3:e:{if(td(t,t.stateNode.containerInfo),e===null)throw Error(I(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,Zm(e,t),lu(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Aa(t,pt,r),r!==i.cache&&Qm(t,[pt],n,!0),ou(),r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=W1(e,t,r,n);break e}else if(r!==a){a=Fn(Error(I(424)),t),ju(a),t=W1(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=Vn(e.firstChild),Lt=t,Se=!0,Fa=null,Gn=!0,n=AE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Xi(),r===a){t=oa(e,t,n);break e}Dt(e,t,r,n)}t=t.child}return t;case 26:return If(e,t),e===null?(n=gS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,r=Od(qa.current).createElement(n),r[kt]=t,r[hn]=e,Ut(r,n,e),Tt(r),t.stateNode=r):t.memoizedState=gS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return km(t),e===null&&Se&&(r=t.stateNode=iT(t.type,t.pendingProps,qa.current),Lt=t,Gn=!0,a=Qe,oi(t.type)?(wv=a,Qe=Vn(r.firstChild)):Qe=a),Dt(e,t,t.pendingProps.children,n),If(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((a=r=Qe)&&(r=I3(r,t.type,t.pendingProps,Gn),r!==null?(t.stateNode=r,Lt=t,Qe=Vn(r.firstChild),Gn=!1,a=!0):a=!1),a||ni(t)),km(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,gv(a,i)?r=null:o!==null&&gv(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=V0(e,t,n3,null,null,n),Mu._currentValue=a),If(e,t),Dt(e,t,r,n),t.child;case 6:return e===null&&Se&&((e=n=Qe)&&(n=H3(n,t.pendingProps,Gn),n!==null?(t.stateNode=n,Lt=t,Qe=null,e=!0):e=!1),e||ni(t)),null;case 13:return h_(e,t,n);case 4:return td(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qi(t,null,r,n):Dt(e,t,r,n),t.child;case 11:return G1(e,t,t.type,t.pendingProps,n);case 7:return Dt(e,t,t.pendingProps,n),t.child;case 8:return Dt(e,t,t.pendingProps.children,n),t.child;case 12:return Dt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Aa(t,t.type,r.value),Dt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Vi(t),a=Bt(a),r=r(a),t.flags|=1,Dt(e,t,r,n),t.child;case 14:return K1(e,t,t.type,t.pendingProps,n);case 15:return f_(e,t,t.type,t.pendingProps,n);case 19:return p_(e,t,n);case 31:return c3(e,t,n);case 22:return d_(e,t,n,t.pendingProps);case 24:return Vi(t),r=Bt(pt),e===null?(a=F0(),a===null&&(a=Ie,i=q0(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},K0(t),Aa(t,pt,a)):(e.lanes&n&&(Zm(e,t),lu(t,null,null,n),ou()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Aa(t,pt,r)):(r=i.cache,Aa(t,pt,r),r!==a.cache&&Qm(t,[pt],n,!0))),Dt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(I(156,t.tag))}function Pr(e){e.flags|=4}function Ry(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(B_())e.flags|=8192;else throw qi=ud,G0}else e.flags&=-16777217}function J1(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!sT(t))if(B_())e.flags|=8192;else throw qi=ud,G0}function uf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Uj():536870912,e.lanes|=t,wl|=t)}function Ps(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function d3(e,t,n){var r=t.pendingProps;switch(H0(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Wr(pt),ml(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(bo(t)?Pr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ay())),Ye(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Pr(t),i!==null?(Ye(t),J1(t,i)):(Ye(t),Ry(t,a,null,r,n))):i?i!==e.memoizedState?(Pr(t),Ye(t),J1(t,i)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Pr(t),Ye(t),Ry(t,a,e,r,n)),null;case 27:if(nd(t),n=qa.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pr(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ye(t),null}e=wr.current,bo(t)?T1(t):(e=iT(a,r,n),t.stateNode=e,Pr(t))}return Ye(t),null;case 5:if(nd(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pr(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ye(t),null}if(i=wr.current,bo(t))T1(t);else{var o=Od(qa.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?o.createElement(a,{is:r.is}):o.createElement(a)}}i[kt]=t,i[hn]=r;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(Ut(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Pr(t)}}return Ye(t),Ry(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(e=qa.current,bo(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Lt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[kt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||tT(e.nodeValue,n)),e||ni(t,!0)}else e=Od(e).createTextNode(r),e[kt]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=bo(t),n!==null){if(e===null){if(!r)throw Error(I(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(557));e[kt]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=Ay(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(On(t),t):(On(t),null);if(t.flags&128)throw Error(I(558))}return Ye(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=bo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(I(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(I(317));a[kt]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),a=!1}else a=Ay(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(On(t),t):(On(t),null)}return On(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),uf(t,t.updateQueue),Ye(t),null);case 4:return ml(),e===null&&yb(t.stateNode.containerInfo),Ye(t),null;case 10:return Wr(t.type),Ye(t),null;case 19:if(Ct(st),r=t.memoizedState,r===null)return Ye(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Ps(r,!1);else{if(lt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=fd(e),i!==null){for(t.flags|=128,Ps(r,!1),e=i.updateQueue,t.updateQueue=e,uf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mE(n,e),n=n.sibling;return Fe(st,st.current&1|2),Se&&Br(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_n()>vd&&(t.flags|=128,a=!0,Ps(r,!1),t.lanes=4194304)}else{if(!a)if(e=fd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,uf(t,e),Ps(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Se)return Ye(t),null}else 2*_n()-r.renderingStartTime>vd&&n!==536870912&&(t.flags|=128,a=!0,Ps(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(e=r.last,e!==null?e.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_n(),e.sibling=null,n=st.current,Fe(st,a?n&1|2:n&1),Se&&Br(t,r.treeForkCount),e):(Ye(t),null);case 22:case 23:return On(t),Y0(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&uf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Ct(Hi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wr(pt),Ye(t),null;case 25:return null;case 30:return null}throw Error(I(156,t.tag))}function h3(e,t){switch(H0(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wr(pt),ml(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nd(t),null;case 31:if(t.memoizedState!==null){if(On(t),t.alternate===null)throw Error(I(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(On(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ct(st),null;case 4:return ml(),null;case 10:return Wr(t.type),null;case 22:case 23:return On(t),Y0(),e!==null&&Ct(Hi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wr(pt),null;case 25:return null;default:return null}}function m_(e,t){switch(H0(t),t.tag){case 3:Wr(pt),ml();break;case 26:case 27:case 5:nd(t);break;case 4:ml();break;case 31:t.memoizedState!==null&&On(t);break;case 13:On(t);break;case 19:Ct(st);break;case 10:Wr(t.type);break;case 22:case 23:On(t),Y0(),e!==null&&Ct(Hi);break;case 24:Wr(pt)}}function Pc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,o=n.inst;r=i(),o.destroy=r}n=n.next}while(n!==a)}}catch(l){Ce(t,t.return,l)}}function ri(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var o=r.inst,l=o.destroy;if(l!==void 0){o.destroy=void 0,a=t;var s=n,u=l;try{u()}catch(f){Ce(a,s,f)}}}r=r.next}while(r!==i)}}catch(f){Ce(t,t.return,f)}}function v_(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{EE(t,n)}catch(r){Ce(e,e.return,r)}}}function g_(e,t,n){n.props=Zi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Ce(e,t,r)}}function uu(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){Ce(e,t,a)}}function xr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Ce(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ce(e,t,a)}else n.current=null}function b_(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){Ce(e,e.return,a)}}function $y(e,t,n){try{var r=e.stateNode;D3(r,e.type,n,t),r[hn]=t}catch(a){Ce(e,e.return,a)}}function x_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&oi(e.type)||e.tag===4}function Dy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||x_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&oi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(r===27&&oi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(uv(e,t,n),e=e.sibling;e!==null;)uv(e,t,n),e=e.sibling}function md(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&oi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(md(e,t,n),e=e.sibling;e!==null;)md(e,t,n),e=e.sibling}function S_(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Ut(t,r,n),t[kt]=e,t[hn]=n}catch(i){Ce(e,e.return,i)}}var Fr=!1,ht=!1,ky=!1,eS=typeof WeakSet=="function"?WeakSet:Set,_t=null;function p3(e,t){if(e=e.containerInfo,mv=_d,e=sE(e),L0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,f=0,c=e,h=null;t:for(;;){for(var p;c!==n||a!==0&&c.nodeType!==3||(l=o+a),c!==i||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)h=c,c=p;for(;;){if(c===e)break t;if(h===n&&++u===a&&(l=o),h===i&&++f===r&&(s=o),(p=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vv={focusedElem:e,selectionRange:n},_d=!1,_t=t;_t!==null;)if(t=_t,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_t=e;else for(;_t!==null;){switch(t=_t,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var b=Zi(n.type,a);e=r.getSnapshotBeforeUpdate(b,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){Ce(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)bv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bv(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(I(163))}if(e=t.sibling,e!==null){e.return=t.return,_t=e;break}_t=t.return}}function w_(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:$r(e,n),r&4&&Pc(5,n);break;case 1:if($r(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){Ce(n,n.return,o)}else{var a=Zi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ce(n,n.return,o)}}r&64&&v_(n),r&512&&uu(n,n.return);break;case 3:if($r(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{EE(e,t)}catch(o){Ce(n,n.return,o)}}break;case 27:t===null&&r&4&&S_(n);case 26:case 5:$r(e,n),t===null&&r&4&&b_(n),r&512&&uu(n,n.return);break;case 12:$r(e,n);break;case 31:$r(e,n),r&4&&j_(e,n);break;case 13:$r(e,n),r&4&&E_(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=O3.bind(null,n),q3(e,n))));break;case 22:if(r=n.memoizedState!==null||Fr,!r){t=t!==null&&t.memoizedState!==null||ht,a=Fr;var i=ht;Fr=r,(ht=t)&&!i?kr(e,n,(n.subtreeFlags&8772)!==0):$r(e,n),Fr=a,ht=i}break;case 30:break;default:$r(e,n)}}function O_(e){var t=e.alternate;t!==null&&(e.alternate=null,O_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&M0(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,sn=!1;function Rr(e,t,n){for(n=n.child;n!==null;)A_(e,t,n),n=n.sibling}function A_(e,t,n){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(jc,n)}catch{}switch(n.tag){case 26:ht||xr(n,t),Rr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ht||xr(n,t);var r=et,a=sn;oi(n.type)&&(et=n.stateNode,sn=!1),Rr(e,t,n),hu(n.stateNode),et=r,sn=a;break;case 5:ht||xr(n,t);case 6:if(r=et,a=sn,et=null,Rr(e,t,n),et=r,sn=a,et!==null)if(sn)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(n.stateNode)}catch(i){Ce(n,t,i)}else try{et.removeChild(n.stateNode)}catch(i){Ce(n,t,i)}break;case 18:et!==null&&(sn?(e=et,hS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),El(e)):hS(et,n.stateNode));break;case 4:r=et,a=sn,et=n.stateNode.containerInfo,sn=!0,Rr(e,t,n),et=r,sn=a;break;case 0:case 11:case 14:case 15:ri(2,n,t),ht||ri(4,n,t),Rr(e,t,n);break;case 1:ht||(xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&g_(n,t,r)),Rr(e,t,n);break;case 21:Rr(e,t,n);break;case 22:ht=(r=ht)||n.memoizedState!==null,Rr(e,t,n),ht=r;break;default:Rr(e,t,n)}}function j_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{El(e)}catch(n){Ce(t,t.return,n)}}}function E_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{El(e)}catch(n){Ce(t,t.return,n)}}function y3(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new eS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new eS),t;default:throw Error(I(435,e.tag))}}function cf(e,t){var n=y3(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=A3.bind(null,e,r);r.then(a,a)}})}function rn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 27:if(oi(l.type)){et=l.stateNode,sn=!1;break e}break;case 5:et=l.stateNode,sn=!1;break e;case 3:case 4:et=l.stateNode.containerInfo,sn=!0;break e}l=l.return}if(et===null)throw Error(I(160));A_(i,o,a),et=null,sn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)__(t,e),t=t.sibling}var ar=null;function __(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),an(e),r&4&&(ri(3,e,e.return),Pc(3,e),ri(5,e,e.return));break;case 1:rn(t,e),an(e),r&512&&(ht||n===null||xr(n,n.return)),r&64&&Fr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=ar;if(rn(t,e),an(e),r&512&&(ht||n===null||xr(n,n.return)),r&4){var i=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Tc]||i[kt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),Ut(i,r,n),i[kt]=e,Tt(i),r=i;break e;case"link":var o=xS("link","href",a).get(r+(n.href||""));if(o){for(var l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(r),Ut(i,r,n),a.head.appendChild(i);break;case"meta":if(o=xS("meta","content",a).get(r+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(r),Ut(i,r,n),a.head.appendChild(i);break;default:throw Error(I(468,r))}i[kt]=e,Tt(i),r=i}e.stateNode=r}else SS(a,e.type,e.stateNode);else e.stateNode=bS(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?SS(a,e.type,e.stateNode):bS(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&$y(e,e.memoizedProps,n.memoizedProps)}break;case 27:rn(t,e),an(e),r&512&&(ht||n===null||xr(n,n.return)),n!==null&&r&4&&$y(e,e.memoizedProps,n.memoizedProps);break;case 5:if(rn(t,e),an(e),r&512&&(ht||n===null||xr(n,n.return)),e.flags&32){a=e.stateNode;try{gl(a,"")}catch(b){Ce(e,e.return,b)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,$y(e,a,n!==null?n.memoizedProps:a)),r&1024&&(ky=!0);break;case 6:if(rn(t,e),an(e),r&4){if(e.stateNode===null)throw Error(I(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(b){Ce(e,e.return,b)}}break;case 3:if(Ff=null,a=ar,ar=Ad(t.containerInfo),rn(t,e),ar=a,an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{El(t.containerInfo)}catch(b){Ce(e,e.return,b)}ky&&(ky=!1,T_(e));break;case 4:r=ar,ar=Ad(e.stateNode.containerInfo),rn(t,e),an(e),ar=r;break;case 12:rn(t,e),an(e);break;case 31:rn(t,e),an(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cf(e,r)));break;case 13:rn(t,e),an(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Qh=_n()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cf(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Fr,f=ht;if(Fr=u||a,ht=f||s,rn(t,e),ht=f,Fr=u,an(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||Fr||ht||xi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(i=s.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{l=s.stateNode;var c=s.memoizedProps.style,h=c!=null&&c.hasOwnProperty("display")?c.display:null;l.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(b){Ce(s,s.return,b)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(b){Ce(s,s.return,b)}}}else if(t.tag===18){if(n===null){s=t;try{var p=s.stateNode;a?pS(p,!0):pS(s.stateNode,!1)}catch(b){Ce(s,s.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,cf(e,n))));break;case 19:rn(t,e),an(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cf(e,r)));break;case 30:break;case 21:break;default:rn(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(x_(r)){n=r;break}r=r.return}if(n==null)throw Error(I(160));switch(n.tag){case 27:var a=n.stateNode,i=Dy(e);md(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(gl(o,""),n.flags&=-33);var l=Dy(e);md(e,l,o);break;case 3:case 4:var s=n.stateNode.containerInfo,u=Dy(e);uv(e,u,s);break;default:throw Error(I(161))}}catch(f){Ce(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function T_(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;T_(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $r(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)w_(e,t.alternate,t),t=t.sibling}function xi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ri(4,t,t.return),xi(t);break;case 1:xr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&g_(t,t.return,n),xi(t);break;case 27:hu(t.stateNode);case 26:case 5:xr(t,t.return),xi(t);break;case 22:t.memoizedState===null&&xi(t);break;case 30:xi(t);break;default:xi(t)}e=e.sibling}}function kr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:kr(a,i,n),Pc(4,i);break;case 1:if(kr(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Ce(r,r.return,u)}if(r=i,a=r.updateQueue,a!==null){var l=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)jE(s[a],l)}catch(u){Ce(r,r.return,u)}}n&&o&64&&v_(i),uu(i,i.return);break;case 27:S_(i);case 26:case 5:kr(a,i,n),n&&r===null&&o&4&&b_(i),uu(i,i.return);break;case 12:kr(a,i,n);break;case 31:kr(a,i,n),n&&o&4&&j_(a,i);break;case 13:kr(a,i,n),n&&o&4&&E_(a,i);break;case 22:i.memoizedState===null&&kr(a,i,n),uu(i,i.return);break;case 30:break;default:kr(a,i,n)}t=t.sibling}}function ub(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Cc(n))}function cb(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cc(e))}function tr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)N_(e,t,n,r),t=t.sibling}function N_(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:tr(e,t,n,r),a&2048&&Pc(9,t);break;case 1:tr(e,t,n,r);break;case 3:tr(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cc(e)));break;case 12:if(a&2048){tr(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,l=i.onPostCommit;typeof l=="function"&&l(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Ce(t,t.return,s)}}else tr(e,t,n,r);break;case 31:tr(e,t,n,r);break;case 13:tr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?tr(e,t,n,r):cu(e,t):i._visibility&2?tr(e,t,n,r):(i._visibility|=2,Eo(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&ub(o,t);break;case 24:tr(e,t,n,r),a&2048&&cb(t.alternate,t);break;default:tr(e,t,n,r)}}function Eo(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,l=n,s=r,u=o.flags;switch(o.tag){case 0:case 11:case 15:Eo(i,o,l,s,a),Pc(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Eo(i,o,l,s,a):cu(i,o):(f._visibility|=2,Eo(i,o,l,s,a)),a&&u&2048&&ub(o.alternate,o);break;case 24:Eo(i,o,l,s,a),a&&u&2048&&cb(o.alternate,o);break;default:Eo(i,o,l,s,a)}t=t.sibling}}function cu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:cu(n,r),a&2048&&ub(r.alternate,r);break;case 24:cu(n,r),a&2048&&cb(r.alternate,r);break;default:cu(n,r)}t=t.sibling}}var Ws=8192;function xo(e,t,n){if(e.subtreeFlags&Ws)for(e=e.child;e!==null;)C_(e,t,n),e=e.sibling}function C_(e,t,n){switch(e.tag){case 26:xo(e,t,n),e.flags&Ws&&e.memoizedState!==null&&tD(n,ar,e.memoizedState,e.memoizedProps);break;case 5:xo(e,t,n);break;case 3:case 4:var r=ar;ar=Ad(e.stateNode.containerInfo),xo(e,t,n),ar=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ws,Ws=16777216,xo(e,t,n),Ws=r):xo(e,t,n));break;default:xo(e,t,n)}}function M_(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Rs(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];_t=r,R_(r,e)}M_(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)P_(e),e=e.sibling}function P_(e){switch(e.tag){case 0:case 11:case 15:Rs(e),e.flags&2048&&ri(9,e,e.return);break;case 3:Rs(e);break;case 12:Rs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hf(e)):Rs(e);break;default:Rs(e)}}function Hf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];_t=r,R_(r,e)}M_(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ri(8,t,t.return),Hf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Hf(t));break;default:Hf(t)}e=e.sibling}}function R_(e,t){for(;_t!==null;){var n=_t;switch(n.tag){case 0:case 11:case 15:ri(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Cc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,_t=r;else e:for(n=e;_t!==null;){r=_t;var a=r.sibling,i=r.return;if(O_(r),r===n){_t=null;break e}if(a!==null){a.return=i,_t=a;break e}_t=i}}}var m3={getCacheForType:function(e){var t=Bt(pt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Bt(pt).controller.signal}},v3=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Ie=null,ge=null,be=0,Ne=0,bn=null,Ba=!1,as=!1,fb=!1,la=0,lt=0,ai=0,Fi=0,db=0,En=0,wl=0,fu=null,un=null,cv=!1,Qh=0,$_=0,vd=1/0,gd=null,Ya=null,St=0,Xa=null,Ol=null,Zr=0,fv=0,dv=null,D_=null,du=0,hv=null;function Cn(){return Oe&2&&be!==0?be&-be:re.T!==null?pb():Fj()}function k_(){if(En===0)if(!(be&536870912)||Se){var e=tf;tf<<=1,!(tf&3932160)&&(tf=262144),En=e}else En=536870912;return e=Rn.current,e!==null&&(e.flags|=32),En}function fn(e,t,n){(e===Ie&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(Al(e,0),Ua(e,be,En,!1)),_c(e,n),(!(Oe&2)||e!==Ie)&&(e===Ie&&(!(Oe&2)&&(Fi|=n),lt===4&&Ua(e,be,En,!1)),_r(e))}function L_(e,t,n){if(Oe&6)throw Error(I(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ec(e,t),a=r?x3(e,t):Ly(e,t,!0),i=r;do{if(a===0){as&&!r&&Ua(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!g3(n)){a=Ly(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var l=e;a=fu;var s=l.current.memoizedState.isDehydrated;if(s&&(Al(l,o).flags|=256),o=Ly(l,o,!1),o!==2){if(fb&&!s){l.errorRecoveryDisabledLanes|=i,Fi|=i,a=4;break e}i=un,un=a,i!==null&&(un===null?un=i:un.push.apply(un,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Al(e,0),Ua(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(I(345));case 4:if((t&4194048)!==t)break;case 6:Ua(r,t,En,!Ba);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(I(329))}if((t&62914560)===t&&(a=Qh+300-_n(),10<a)){if(Ua(r,t,En,!Ba),Bh(r,0,!0)!==0)break e;Zr=t,r.timeoutHandle=rT(tS.bind(null,r,n,un,gd,cv,t,En,Fi,wl,Ba,i,"Throttled",-0,0),a);break e}tS(r,n,un,gd,cv,t,En,Fi,wl,Ba,i,null,-0,0)}}break}while(!0);_r(e)}function tS(e,t,n,r,a,i,o,l,s,u,f,c,h,p){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kr},C_(t,i,c);var b=(i&62914560)===i?Qh-_n():(i&4194048)===i?$_-_n():0;if(b=nD(c,b),b!==null){Zr=i,e.cancelPendingCommit=b(rS.bind(null,e,t,i,n,r,a,o,l,s,f,c,null,h,p)),Ua(e,i,o,!u);return}}rS(e,t,i,n,r,a,o,l,s)}function g3(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!Pn(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ua(e,t,n,r){t&=~db,t&=~Fi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Nn(a),o=1<<i;r[i]=-1,a&=~o}n!==0&&Ij(e,n,t)}function Wh(){return Oe&6?!0:(Rc(0),!1)}function hb(){if(ge!==null){if(Ne===0)var e=ge.return;else e=ge,Yr=fo=null,Z0(e),Qo=null,Eu=0,e=ge;for(;e!==null;)m_(e.alternate,e),e=e.return;ge=null}}function Al(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,z3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Zr=0,hb(),Ie=e,ge=n=Qr(e.current,null),be=t,Ne=0,bn=null,Ba=!1,as=Ec(e,t),fb=!1,wl=En=db=Fi=ai=lt=0,un=fu=null,cv=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Nn(r),i=1<<a;t|=e[a],r&=~i}return la=t,qh(),n}function z_(e,t){ce=null,re.H=Tu,t===rs||t===Gh?(t=R1(),Ne=3):t===G0?(t=R1(),Ne=4):Ne=t===lb?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bn=t,ge===null&&(lt=1,pd(e,Fn(t,e.current)))}function B_(){var e=Rn.current;return e===null?!0:(be&4194048)===be?Xn===null:(be&62914560)===be||be&536870912?e===Xn:!1}function U_(){var e=re.H;return re.H=Tu,e===null?Tu:e}function I_(){var e=re.A;return re.A=m3,e}function bd(){lt=4,Ba||(be&4194048)!==be&&Rn.current!==null||(as=!0),!(ai&134217727)&&!(Fi&134217727)||Ie===null||Ua(Ie,be,En,!1)}function Ly(e,t,n){var r=Oe;Oe|=2;var a=U_(),i=I_();(Ie!==e||be!==t)&&(gd=null,Al(e,t)),t=!1;var o=lt;e:do try{if(Ne!==0&&ge!==null){var l=ge,s=bn;switch(Ne){case 8:hb(),o=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(t=!0);var u=Ne;if(Ne=0,bn=null,Uo(e,l,s,u),n&&as){o=0;break e}break;default:u=Ne,Ne=0,bn=null,Uo(e,l,s,u)}}b3(),o=lt;break}catch(f){z_(e,f)}while(!0);return t&&e.shellSuspendCounter++,Yr=fo=null,Oe=r,re.H=a,re.A=i,ge===null&&(Ie=null,be=0,qh()),o}function b3(){for(;ge!==null;)H_(ge)}function x3(e,t){var n=Oe;Oe|=2;var r=U_(),a=I_();Ie!==e||be!==t?(gd=null,vd=_n()+500,Al(e,t)):as=Ec(e,t);e:do try{if(Ne!==0&&ge!==null){t=ge;var i=bn;t:switch(Ne){case 1:Ne=0,bn=null,Uo(e,t,i,1);break;case 2:case 9:if(P1(i)){Ne=0,bn=null,nS(t);break}t=function(){Ne!==2&&Ne!==9||Ie!==e||(Ne=7),_r(e)},i.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:P1(i)?(Ne=0,bn=null,nS(t)):(Ne=0,bn=null,Uo(e,t,i,7));break;case 5:var o=null;switch(ge.tag){case 26:o=ge.memoizedState;case 5:case 27:var l=ge;if(o?sT(o):l.stateNode.complete){Ne=0,bn=null;var s=l.sibling;if(s!==null)ge=s;else{var u=l.return;u!==null?(ge=u,Zh(u)):ge=null}break t}}Ne=0,bn=null,Uo(e,t,i,5);break;case 6:Ne=0,bn=null,Uo(e,t,i,6);break;case 8:hb(),lt=6;break e;default:throw Error(I(462))}}S3();break}catch(f){z_(e,f)}while(!0);return Yr=fo=null,re.H=r,re.A=a,Oe=n,ge!==null?0:(Ie=null,be=0,qh(),lt)}function S3(){for(;ge!==null&&!FR();)H_(ge)}function H_(e){var t=y_(e.alternate,e,la);e.memoizedProps=e.pendingProps,t===null?Zh(e):ge=t}function nS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=V1(n,t,t.pendingProps,t.type,void 0,be);break;case 11:t=V1(n,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:Z0(t);default:m_(n,t),t=ge=mE(t,la),t=y_(n,t,la)}e.memoizedProps=e.pendingProps,t===null?Zh(e):ge=t}function Uo(e,t,n,r){Yr=fo=null,Z0(t),Qo=null,Eu=0;var a=t.return;try{if(u3(e,a,t,n,be)){lt=1,pd(e,Fn(n,e.current)),ge=null;return}}catch(i){if(a!==null)throw ge=a,i;lt=1,pd(e,Fn(n,e.current)),ge=null;return}t.flags&32768?(Se||r===1?e=!0:as||be&536870912?e=!1:(Ba=e=!0,(r===2||r===9||r===3||r===6)&&(r=Rn.current,r!==null&&r.tag===13&&(r.flags|=16384))),q_(t,e)):Zh(t)}function Zh(e){var t=e;do{if(t.flags&32768){q_(t,Ba);return}e=t.return;var n=d3(t.alternate,t,la);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);lt===0&&(lt=5)}function q_(e,t){do{var n=h3(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);lt=6,ge=null}function rS(e,t,n,r,a,i,o,l,s){e.cancelPendingCommit=null;do Jh();while(St!==0);if(Oe&6)throw Error(I(327));if(t!==null){if(t===e.current)throw Error(I(177));if(i=t.lanes|t.childLanes,i|=z0,e$(e,n,i,o,l,s),e===Ie&&(ge=Ie=null,be=0),Ol=t,Xa=e,Zr=n,fv=i,dv=a,D_=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,j3(rd,function(){return X_(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=re.T,re.T=null,a=Ae.p,Ae.p=2,o=Oe,Oe|=4;try{p3(e,t,n)}finally{Oe=o,Ae.p=a,re.T=r}}St=1,F_(),G_(),K_()}}function F_(){if(St===1){St=0;var e=Xa,t=Ol,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=re.T,re.T=null;var r=Ae.p;Ae.p=2;var a=Oe;Oe|=4;try{__(t,e);var i=vv,o=sE(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&lE(l.ownerDocument.documentElement,l)){if(s!==null&&L0(l)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(f,l.value.length);else{var c=l.ownerDocument||document,h=c&&c.defaultView||window;if(h.getSelection){var p=h.getSelection(),b=l.textContent.length,v=Math.min(s.start,b),g=s.end===void 0?v:Math.min(s.end,b);!p.extend&&v>g&&(o=g,g=v,v=o);var y=j1(l,v),m=j1(l,g);if(y&&m&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==m.node||p.focusOffset!==m.offset)){var x=c.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),v>g?(p.addRange(x),p.extend(m.node,m.offset)):(x.setEnd(m.node,m.offset),p.addRange(x))}}}}for(c=[],p=l;p=p.parentNode;)p.nodeType===1&&c.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<c.length;l++){var w=c[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}_d=!!mv,vv=mv=null}finally{Oe=a,Ae.p=r,re.T=n}}e.current=t,St=2}}function G_(){if(St===2){St=0;var e=Xa,t=Ol,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=re.T,re.T=null;var r=Ae.p;Ae.p=2;var a=Oe;Oe|=4;try{w_(e,t.alternate,t)}finally{Oe=a,Ae.p=r,re.T=n}}St=3}}function K_(){if(St===4||St===3){St=0,GR();var e=Xa,t=Ol,n=Zr,r=D_;t.subtreeFlags&10256||t.flags&10256?St=5:(St=0,Ol=Xa=null,Y_(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Ya=null),C0(n),t=t.stateNode,Tn&&typeof Tn.onCommitFiberRoot=="function")try{Tn.onCommitFiberRoot(jc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=re.T,a=Ae.p,Ae.p=2,re.T=null;try{for(var i=e.onRecoverableError,o=0;o<r.length;o++){var l=r[o];i(l.value,{componentStack:l.stack})}}finally{re.T=t,Ae.p=a}}Zr&3&&Jh(),_r(e),a=e.pendingLanes,n&261930&&a&42?e===hv?du++:(du=0,hv=e):du=0,Rc(0)}}function Y_(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cc(t)))}function Jh(){return F_(),G_(),K_(),X_()}function X_(){if(St!==5)return!1;var e=Xa,t=fv;fv=0;var n=C0(Zr),r=re.T,a=Ae.p;try{Ae.p=32>n?32:n,re.T=null,n=dv,dv=null;var i=Xa,o=Zr;if(St=0,Ol=Xa=null,Zr=0,Oe&6)throw Error(I(331));var l=Oe;if(Oe|=4,P_(i.current),N_(i,i.current,o,n),Oe=l,Rc(0,!1),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(jc,i)}catch{}return!0}finally{Ae.p=a,re.T=r,Y_(e,t)}}function aS(e,t,n){t=Fn(n,t),t=ov(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(_c(e,2),_r(e))}function Ce(e,t,n){if(e.tag===3)aS(e,e,n);else for(;t!==null;){if(t.tag===3){aS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ya===null||!Ya.has(r))){e=Fn(n,e),n=u_(2),r=Ka(t,n,2),r!==null&&(c_(n,r,t,e),_c(r,2),_r(r));break}}t=t.return}}function zy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new v3;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(fb=!0,a.add(n),e=w3.bind(null,e,t,n),t.then(e,e))}function w3(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ie===e&&(be&n)===n&&(lt===4||lt===3&&(be&62914560)===be&&300>_n()-Qh?!(Oe&2)&&Al(e,0):db|=n,wl===be&&(wl=0)),_r(e)}function V_(e,t){t===0&&(t=Uj()),e=co(e,t),e!==null&&(_c(e,t),_r(e))}function O3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),V_(e,n)}function A3(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(I(314))}r!==null&&r.delete(t),V_(e,n)}function j3(e,t){return T0(e,t)}var xd=null,_o=null,pv=!1,Sd=!1,By=!1,Ia=0;function _r(e){e!==_o&&e.next===null&&(_o===null?xd=_o=e:_o=_o.next=e),Sd=!0,pv||(pv=!0,_3())}function Rc(e,t){if(!By&&Sd){By=!0;do for(var n=!1,r=xd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var o=r.suspendedLanes,l=r.pingedLanes;i=(1<<31-Nn(42|e)+1)-1,i&=a&~(o&~l),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,iS(r,i))}else i=be,i=Bh(r,r===Ie?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||Ec(r,i)||(n=!0,iS(r,i));r=r.next}while(n);By=!1}}function E3(){Q_()}function Q_(){Sd=pv=!1;var e=0;Ia!==0&&L3()&&(e=Ia);for(var t=_n(),n=null,r=xd;r!==null;){var a=r.next,i=W_(r,t);i===0?(r.next=null,n===null?xd=a:n.next=a,a===null&&(_o=n)):(n=r,(e!==0||i&3)&&(Sd=!0)),r=a}St!==0&&St!==5||Rc(e),Ia!==0&&(Ia=0)}function W_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Nn(i),l=1<<o,s=a[o];s===-1?(!(l&n)||l&r)&&(a[o]=JR(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(t=Ie,n=be,n=Bh(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&hy(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ec(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&hy(r),C0(n)){case 2:case 8:n=zj;break;case 32:n=rd;break;case 268435456:n=Bj;break;default:n=rd}return r=Z_.bind(null,e),n=T0(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&hy(r),e.callbackPriority=2,e.callbackNode=null,2}function Z_(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Jh()&&e.callbackNode!==n)return null;var r=be;return r=Bh(e,e===Ie?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(L_(e,r,t),W_(e,_n()),e.callbackNode!=null&&e.callbackNode===n?Z_.bind(null,e):null)}function iS(e,t){if(Jh())return null;L_(e,t,!0)}function _3(){B3(function(){Oe&6?T0(Lj,E3):Q_()})}function pb(){if(Ia===0){var e=bl;e===0&&(e=ef,ef<<=1,!(ef&261888)&&(ef=256)),Ia=e}return Ia}function oS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rf(""+e)}function lS(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function T3(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=oS((a[hn]||null).action),o=r.submitter;o&&(t=(t=o[hn]||null)?oS(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var l=new Uh("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ia!==0){var s=o?lS(a,o):new FormData(a);av(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(l.preventDefault(),s=o?lS(a,o):new FormData(a),av(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var Uy=0;Uy<Km.length;Uy++){var Iy=Km[Uy],N3=Iy.toLowerCase(),C3=Iy[0].toUpperCase()+Iy.slice(1);fr(N3,"on"+C3)}fr(cE,"onAnimationEnd");fr(fE,"onAnimationIteration");fr(dE,"onAnimationStart");fr("dblclick","onDoubleClick");fr("focusin","onFocus");fr("focusout","onBlur");fr(K$,"onTransitionRun");fr(Y$,"onTransitionStart");fr(X$,"onTransitionCancel");fr(hE,"onTransitionEnd");vl("onMouseEnter",["mouseout","mouseover"]);vl("onMouseLeave",["mouseout","mouseover"]);vl("onPointerEnter",["pointerout","pointerover"]);vl("onPointerLeave",["pointerout","pointerover"]);lo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));lo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));lo("onBeforeInput",["compositionend","keypress","textInput","paste"]);lo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));lo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));lo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),M3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function J_(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&a.isPropagationStopped())break e;i=l,a.currentTarget=u;try{i(a)}catch(f){id(f)}a.currentTarget=null,i=s}else for(o=0;o<r.length;o++){if(l=r[o],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&a.isPropagationStopped())break e;i=l,a.currentTarget=u;try{i(a)}catch(f){id(f)}a.currentTarget=null,i=s}}}}function ve(e,t){var n=t[zm];n===void 0&&(n=t[zm]=new Set);var r=e+"__bubble";n.has(r)||(eT(t,e,2,!1),n.add(r))}function Hy(e,t,n){var r=0;t&&(r|=4),eT(n,e,r,t)}var ff="_reactListening"+Math.random().toString(36).slice(2);function yb(e){if(!e[ff]){e[ff]=!0,Gj.forEach(function(n){n!=="selectionchange"&&(M3.has(n)||Hy(n,!1,e),Hy(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ff]||(t[ff]=!0,Hy("selectionchange",!1,t))}}function eT(e,t,n,r){switch(hT(t)){case 2:var a=iD;break;case 8:a=oD;break;default:a=bb}n=a.bind(null,t,n,e),a=void 0,!qm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function qy(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===a)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;l!==null;){if(o=Mo(l),o===null)return;if(s=o.tag,s===5||s===6||s===26||s===27){r=i=o;continue e}l=l.parentNode}}r=r.return}Jj(function(){var u=i,f=R0(n),c=[];e:{var h=pE.get(e);if(h!==void 0){var p=Uh,b=e;switch(e){case"keypress":if(Df(n)===0)break e;case"keydown":case"keyup":p=A$;break;case"focusin":b="focus",p=gy;break;case"focusout":b="blur",p=gy;break;case"beforeblur":case"afterblur":p=gy;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=y1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=d$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=_$;break;case cE:case fE:case dE:p=y$;break;case hE:p=N$;break;case"scroll":case"scrollend":p=c$;break;case"wheel":p=M$;break;case"copy":case"cut":case"paste":p=v$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=v1;break;case"toggle":case"beforetoggle":p=R$}var v=(t&4)!==0,g=!v&&(e==="scroll"||e==="scrollend"),y=v?h!==null?h+"Capture":null:h;v=[];for(var m=u,x;m!==null;){var w=m;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||y===null||(w=Su(m,y),w!=null&&v.push(Cu(m,w,x))),g)break;m=m.return}0<v.length&&(h=new p(h,b,null,n,f),c.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Hm&&(b=n.relatedTarget||n.fromElement)&&(Mo(b)||b[es]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=u,b=b?Mo(b):null,b!==null&&(g=Ac(b),v=b.tag,b!==g||v!==5&&v!==27&&v!==6)&&(b=null)):(p=null,b=u),p!==b)){if(v=y1,w="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=v1,w="onPointerLeave",y="onPointerEnter",m="pointer"),g=p==null?h:Vs(p),x=b==null?h:Vs(b),h=new v(w,m+"leave",p,n,f),h.target=g,h.relatedTarget=x,w=null,Mo(f)===u&&(v=new v(y,m+"enter",b,n,f),v.target=x,v.relatedTarget=g,w=v),g=w,p&&b)t:{for(v=P3,y=p,m=b,x=0,w=y;w;w=v(w))x++;w=0;for(var S=m;S;S=v(S))w++;for(;0<x-w;)y=v(y),x--;for(;0<w-x;)m=v(m),w--;for(;x--;){if(y===m||m!==null&&y===m.alternate){v=y;break t}y=v(y),m=v(m)}v=null}else v=null;p!==null&&sS(c,h,p,v,!1),b!==null&&g!==null&&sS(c,g,b,v,!0)}}e:{if(h=u?Vs(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var O=S1;else if(x1(h))if(iE)O=q$;else{O=I$;var A=U$}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&P0(u.elementType)&&(O=S1):O=H$;if(O&&(O=O(e,u))){aE(c,O,n,f);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&Im(h,"number",h.value)}switch(A=u?Vs(u):window,e){case"focusin":(x1(A)||A.contentEditable==="true")&&($o=A,Fm=u,ru=null);break;case"focusout":ru=Fm=$o=null;break;case"mousedown":Gm=!0;break;case"contextmenu":case"mouseup":case"dragend":Gm=!1,E1(c,n,f);break;case"selectionchange":if(G$)break;case"keydown":case"keyup":E1(c,n,f)}var E;if(k0)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Ro?nE(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(tE&&n.locale!=="ko"&&(Ro||_!=="onCompositionStart"?_==="onCompositionEnd"&&Ro&&(E=eE()):(za=f,$0="value"in za?za.value:za.textContent,Ro=!0)),A=wd(u,_),0<A.length&&(_=new m1(_,e,null,n,f),c.push({event:_,listeners:A}),E?_.data=E:(E=rE(n),E!==null&&(_.data=E)))),(E=D$?k$(e,n):L$(e,n))&&(_=wd(u,"onBeforeInput"),0<_.length&&(A=new m1("onBeforeInput","beforeinput",null,n,f),c.push({event:A,listeners:_}),A.data=E)),T3(c,e,u,n,f)}J_(c,t)})}function Cu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wd(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Su(e,n),a!=null&&r.unshift(Cu(e,a,i)),a=Su(e,t),a!=null&&r.push(Cu(e,a,i))),e.tag===3)return r;e=e.return}return[]}function P3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sS(e,t,n,r,a){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(l=l.tag,s!==null&&s===r)break;l!==5&&l!==26&&l!==27||u===null||(s=u,a?(u=Su(n,i),u!=null&&o.unshift(Cu(n,u,s))):a||(u=Su(n,i),u!=null&&o.push(Cu(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var R3=/\r\n?/g,$3=/\u0000|\uFFFD/g;function uS(e){return(typeof e=="string"?e:""+e).replace(R3,`
`).replace($3,"")}function tT(e,t){return t=uS(t),uS(e)===t}function ke(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||gl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&gl(e,""+r);break;case"className":rf(e,"class",r);break;case"tabIndex":rf(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":rf(e,n,r);break;case"style":Zj(e,r,i);break;case"data":if(t!=="object"){rf(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Rf(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&ke(e,t,"name",a.name,a,null),ke(e,t,"formEncType",a.formEncType,a,null),ke(e,t,"formMethod",a.formMethod,a,null),ke(e,t,"formTarget",a.formTarget,a,null)):(ke(e,t,"encType",a.encType,a,null),ke(e,t,"method",a.method,a,null),ke(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Rf(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Kr);break;case"onScroll":r!=null&&ve("scroll",e);break;case"onScrollEnd":r!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Rf(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":ve("beforetoggle",e),ve("toggle",e),Pf(e,"popover",r);break;case"xlinkActuate":Mr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Mr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Mr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Mr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Mr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Mr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Mr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Mr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Mr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Pf(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=s$.get(n)||n,Pf(e,n,r))}}function yv(e,t,n,r,a,i){switch(n){case"style":Zj(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"children":typeof r=="string"?gl(e,r):(typeof r=="number"||typeof r=="bigint")&&gl(e,""+r);break;case"onScroll":r!=null&&ve("scroll",e);break;case"onScrollEnd":r!=null&&ve("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Kr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kj.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[hn]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof r=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Pf(e,n,r)}}}function Ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var o=n[i];if(o!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:ke(e,t,i,o,n,null)}}a&&ke(e,t,"srcSet",n.srcSet,n,null),r&&ke(e,t,"src",n.src,n,null);return;case"input":ve("invalid",e);var l=i=o=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":o=f;break;case"checked":s=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(I(137,t));break;default:ke(e,t,r,f,n,null)}}Vj(e,i,l,s,u,o,a,!1);return;case"select":ve("invalid",e),r=o=i=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":i=l;break;case"defaultValue":o=l;break;case"multiple":r=l;default:ke(e,t,a,l,n,null)}t=i,n=o,e.multiple=!!r,t!=null?Yo(e,!!r,t,!1):n!=null&&Yo(e,!!r,n,!0);return;case"textarea":ve("invalid",e),i=a=r=null;for(o in n)if(n.hasOwnProperty(o)&&(l=n[o],l!=null))switch(o){case"value":r=l;break;case"defaultValue":a=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(I(91));break;default:ke(e,t,o,l,n,null)}Wj(e,r,a,i);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(r=n[s],r!=null))switch(s){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:ke(e,t,s,r,n,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(r=0;r<Nu.length;r++)ve(Nu[r],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:ke(e,t,u,r,n,null)}return;default:if(P0(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&yv(e,t,f,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&ke(e,t,l,r,n,null))}function D3(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,l=null,s=null,u=null,f=null;for(p in n){var c=n[p];if(n.hasOwnProperty(p)&&c!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=c;default:r.hasOwnProperty(p)||ke(e,t,p,null,r,c)}}for(var h in r){var p=r[h];if(c=n[h],r.hasOwnProperty(h)&&(p!=null||c!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":f=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(I(137,t));break;default:p!==c&&ke(e,t,h,p,r,c)}}Um(e,o,l,s,u,f,i,a);return;case"select":p=o=l=h=null;for(i in n)if(s=n[i],n.hasOwnProperty(i)&&s!=null)switch(i){case"value":break;case"multiple":p=s;default:r.hasOwnProperty(i)||ke(e,t,i,null,r,s)}for(a in r)if(i=r[a],s=n[a],r.hasOwnProperty(a)&&(i!=null||s!=null))switch(a){case"value":h=i;break;case"defaultValue":l=i;break;case"multiple":o=i;default:i!==s&&ke(e,t,a,i,r,s)}t=l,n=o,r=p,h!=null?Yo(e,!!n,h,!1):!!r!=!!n&&(t!=null?Yo(e,!!n,t,!0):Yo(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(l in n)if(a=n[l],n.hasOwnProperty(l)&&a!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:ke(e,t,l,null,r,a)}for(o in r)if(a=r[o],i=n[o],r.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":h=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(I(91));break;default:a!==i&&ke(e,t,o,a,r,i)}Qj(e,h,p);return;case"option":for(var b in n)if(h=n[b],n.hasOwnProperty(b)&&h!=null&&!r.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:ke(e,t,b,null,r,h)}for(s in r)if(h=r[s],p=n[s],r.hasOwnProperty(s)&&h!==p&&(h!=null||p!=null))switch(s){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ke(e,t,s,h,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!=null&&!r.hasOwnProperty(v)&&ke(e,t,v,null,r,h);for(u in r)if(h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(h!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(I(137,t));break;default:ke(e,t,u,h,r,p)}return;default:if(P0(t)){for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!==void 0&&!r.hasOwnProperty(g)&&yv(e,t,g,void 0,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h===void 0&&p===void 0||yv(e,t,f,h,r,p);return}}for(var y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&ke(e,t,y,null,r,h);for(c in r)h=r[c],p=n[c],!r.hasOwnProperty(c)||h===p||h==null&&p==null||ke(e,t,c,h,r,p)}function cS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function k3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,o=a.initiatorType,l=a.duration;if(i&&l&&cS(o)){for(o=0,l=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>l)break;var f=s.transferSize,c=s.initiatorType;f&&cS(c)&&(s=s.responseEnd,o+=f*(s<l?1:(l-u)/(s-u)))}if(--r,t+=8*(i+o)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var mv=null,vv=null;function Od(e){return e.nodeType===9?e:e.ownerDocument}function fS(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nT(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fy=null;function L3(){var e=window.event;return e&&e.type==="popstate"?e===Fy?!1:(Fy=e,!0):(Fy=null,!1)}var rT=typeof setTimeout=="function"?setTimeout:void 0,z3=typeof clearTimeout=="function"?clearTimeout:void 0,dS=typeof Promise=="function"?Promise:void 0,B3=typeof queueMicrotask=="function"?queueMicrotask:typeof dS<"u"?function(e){return dS.resolve(null).then(e).catch(U3)}:rT;function U3(e){setTimeout(function(){throw e})}function oi(e){return e==="head"}function hS(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),El(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")hu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,hu(n);for(var i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[Tc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}else n==="body"&&hu(e.ownerDocument.body);n=a}while(n);El(t)}function pS(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function bv(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":bv(n),M0(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function I3(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Tc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Vn(e.nextSibling),e===null)break}return null}function H3(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Vn(e.nextSibling),e===null))return null;return e}function aT(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vn(e.nextSibling),e===null))return null;return e}function xv(e){return e.data==="$?"||e.data==="$~"}function Sv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function q3(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var wv=null;function yS(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Vn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function mS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function iT(e,t,n){switch(t=Od(n),e){case"html":if(e=t.documentElement,!e)throw Error(I(452));return e;case"head":if(e=t.head,!e)throw Error(I(453));return e;case"body":if(e=t.body,!e)throw Error(I(454));return e;default:throw Error(I(451))}}function hu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);M0(e)}var Wn=new Map,vS=new Set;function Ad(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ha=Ae.d;Ae.d={f:F3,r:G3,D:K3,C:Y3,L:X3,m:V3,X:W3,S:Q3,M:Z3};function F3(){var e=ha.f(),t=Wh();return e||t}function G3(e){var t=ts(e);t!==null&&t.tag===5&&t.type==="form"?ZE(t):ha.r(e)}var is=typeof document>"u"?null:document;function oT(e,t,n){var r=is;if(r&&typeof t=="string"&&t){var a=qn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),vS.has(a)||(vS.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Ut(t,"link",e),Tt(t),r.head.appendChild(t)))}}function K3(e){ha.D(e),oT("dns-prefetch",e,null)}function Y3(e,t){ha.C(e,t),oT("preconnect",e,t)}function X3(e,t,n){ha.L(e,t,n);var r=is;if(r&&e&&t){var a='link[rel="preload"][as="'+qn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+qn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+qn(n.imageSizes)+'"]')):a+='[href="'+qn(e)+'"]';var i=a;switch(t){case"style":i=jl(e);break;case"script":i=os(e)}Wn.has(i)||(e=Ze({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Wn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector($c(i))||t==="script"&&r.querySelector(Dc(i))||(t=r.createElement("link"),Ut(t,"link",e),Tt(t),r.head.appendChild(t)))}}function V3(e,t){ha.m(e,t);var n=is;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+qn(r)+'"][href="'+qn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=os(e)}if(!Wn.has(i)&&(e=Ze({rel:"modulepreload",href:e},t),Wn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Dc(i)))return}r=n.createElement("link"),Ut(r,"link",e),Tt(r),n.head.appendChild(r)}}}function Q3(e,t,n){ha.S(e,t,n);var r=is;if(r&&e){var a=Ko(r).hoistableStyles,i=jl(e);t=t||"default";var o=a.get(i);if(!o){var l={loading:0,preload:null};if(o=r.querySelector($c(i)))l.loading=5;else{e=Ze({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Wn.get(i))&&mb(e,n);var s=o=r.createElement("link");Tt(s),Ut(s,"link",e),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,qf(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},a.set(i,o)}}}function W3(e,t){ha.X(e,t);var n=is;if(n&&e){var r=Ko(n).hoistableScripts,a=os(e),i=r.get(a);i||(i=n.querySelector(Dc(a)),i||(e=Ze({src:e,async:!0},t),(t=Wn.get(a))&&vb(e,t),i=n.createElement("script"),Tt(i),Ut(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Z3(e,t){ha.M(e,t);var n=is;if(n&&e){var r=Ko(n).hoistableScripts,a=os(e),i=r.get(a);i||(i=n.querySelector(Dc(a)),i||(e=Ze({src:e,async:!0,type:"module"},t),(t=Wn.get(a))&&vb(e,t),i=n.createElement("script"),Tt(i),Ut(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function gS(e,t,n,r){var a=(a=qa.current)?Ad(a):null;if(!a)throw Error(I(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=jl(n.href),n=Ko(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=jl(n.href);var i=Ko(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector($c(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Wn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Wn.set(e,n),i||J3(a,e,n,o.state))),t&&r===null)throw Error(I(528,""));return o}if(t&&r!==null)throw Error(I(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=os(n),n=Ko(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,e))}}function jl(e){return'href="'+qn(e)+'"'}function $c(e){return'link[rel="stylesheet"]['+e+"]"}function lT(e){return Ze({},e,{"data-precedence":e.precedence,precedence:null})}function J3(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Ut(t,"link",n),Tt(t),e.head.appendChild(t))}function os(e){return'[src="'+qn(e)+'"]'}function Dc(e){return"script[async]"+e}function bS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+qn(n.href)+'"]');if(r)return t.instance=r,Tt(r),r;var a=Ze({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Tt(r),Ut(r,"style",a),qf(r,n.precedence,e),t.instance=r;case"stylesheet":a=jl(n.href);var i=e.querySelector($c(a));if(i)return t.state.loading|=4,t.instance=i,Tt(i),i;r=lT(n),(a=Wn.get(a))&&mb(r,a),i=(e.ownerDocument||e).createElement("link"),Tt(i);var o=i;return o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),Ut(i,"link",r),t.state.loading|=4,qf(i,n.precedence,e),t.instance=i;case"script":return i=os(n.src),(a=e.querySelector(Dc(i)))?(t.instance=a,Tt(a),a):(r=n,(a=Wn.get(i))&&(r=Ze({},n),vb(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Tt(a),Ut(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(I(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,qf(r,n.precedence,e));return t.instance}function qf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,o=0;o<r.length;o++){var l=r[o];if(l.dataset.precedence===t)i=l;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function mb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ff=null;function xS(e,t,n){if(Ff===null){var r=new Map,a=Ff=new Map;a.set(n,r)}else a=Ff,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[Tc]||i[kt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var l=r.get(o);l?l.push(i):r.set(o,[i])}}return r}function SS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function eD(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function tD(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=jl(r.href),i=t.querySelector($c(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Tt(i);return}i=t.ownerDocument||t,r=lT(r),(a=Wn.get(a))&&mb(r,a),i=i.createElement("link"),Tt(i);var o=i;o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),Ut(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=jd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Gy=0;function nD(e,t){return e.stylesheets&&e.count===0&&Gf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Gf(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Gy===0&&(Gy=62500*k3());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gf(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Gy?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function jd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ed=null;function Gf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ed=new Map,t.forEach(rD,e),Ed=null,jd.call(e))}function rD(e,t){if(!(t.state.loading&4)){var n=Ed.get(e);if(n)var r=n.get(null);else{n=new Map,Ed.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}a=t.instance,o=a.getAttribute("data-precedence"),i=n.get(o)||r,i===r&&n.set(null,a),n.set(o,a),this.count++,r=jd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Mu={$$typeof:Gr,Provider:null,Consumer:null,_currentValue:Ui,_currentValue2:Ui,_threadCount:0};function aD(e,t,n,r,a,i,o,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=py(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=py(0),this.hiddenUpdates=py(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function uT(e,t,n,r,a,i,o,l,s,u,f,c){return e=new aD(e,t,n,o,s,u,f,c,l),t=1,i===!0&&(t|=24),i=An(3,null,null,t),e.current=i,i.stateNode=e,t=q0(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},K0(i),e}function cT(e){return e?(e=Lo,e):Lo}function fT(e,t,n,r,a,i){a=cT(a),r.context===null?r.context=a:r.pendingContext=a,r=Ga(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Ka(e,r,t),n!==null&&(fn(n,e,t),iu(n,e,t))}function wS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gb(e,t){wS(e,t),(e=e.alternate)&&wS(e,t)}function dT(e){if(e.tag===13||e.tag===31){var t=co(e,67108864);t!==null&&fn(t,e,67108864),gb(e,67108864)}}function OS(e){if(e.tag===13||e.tag===31){var t=Cn();t=N0(t);var n=co(e,t);n!==null&&fn(n,e,t),gb(e,t)}}var _d=!0;function iD(e,t,n,r){var a=re.T;re.T=null;var i=Ae.p;try{Ae.p=2,bb(e,t,n,r)}finally{Ae.p=i,re.T=a}}function oD(e,t,n,r){var a=re.T;re.T=null;var i=Ae.p;try{Ae.p=8,bb(e,t,n,r)}finally{Ae.p=i,re.T=a}}function bb(e,t,n,r){if(_d){var a=Ov(r);if(a===null)qy(e,t,r,Td,n),AS(e,r);else if(sD(a,e,t,n,r))r.stopPropagation();else if(AS(e,r),t&4&&-1<lD.indexOf(e)){for(;a!==null;){var i=ts(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=gi(i.pendingLanes);if(o!==0){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;o;){var s=1<<31-Nn(o);l.entanglements[1]|=s,o&=~s}_r(i),!(Oe&6)&&(vd=_n()+500,Rc(0))}}break;case 31:case 13:l=co(i,2),l!==null&&fn(l,i,2),Wh(),gb(i,2)}if(i=Ov(r),i===null&&qy(e,t,r,Td,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else qy(e,t,r,null,n)}}function Ov(e){return e=R0(e),xb(e)}var Td=null;function xb(e){if(Td=null,e=Mo(e),e!==null){var t=Ac(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Pj(t),e!==null)return e;e=null}else if(n===31){if(e=Rj(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Td=e,null}function hT(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(KR()){case Lj:return 2;case zj:return 8;case rd:case YR:return 32;case Bj:return 268435456;default:return 32}default:return 32}}var Av=!1,Va=null,Qa=null,Wa=null,Pu=new Map,Ru=new Map,_a=[],lD="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function AS(e,t){switch(e){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":Pu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ru.delete(t.pointerId)}}function $s(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=ts(t),t!==null&&dT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function sD(e,t,n,r,a){switch(t){case"focusin":return Va=$s(Va,e,t,n,r,a),!0;case"dragenter":return Qa=$s(Qa,e,t,n,r,a),!0;case"mouseover":return Wa=$s(Wa,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Pu.set(i,$s(Pu.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Ru.set(i,$s(Ru.get(i)||null,e,t,n,r,a)),!0}return!1}function pT(e){var t=Mo(e.target);if(t!==null){var n=Ac(t);if(n!==null){if(t=n.tag,t===13){if(t=Pj(n),t!==null){e.blockedOn=t,s1(e.priority,function(){OS(n)});return}}else if(t===31){if(t=Rj(n),t!==null){e.blockedOn=t,s1(e.priority,function(){OS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ov(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Hm=r,n.target.dispatchEvent(r),Hm=null}else return t=ts(n),t!==null&&dT(t),e.blockedOn=n,!1;t.shift()}return!0}function jS(e,t,n){Kf(e)&&n.delete(t)}function uD(){Av=!1,Va!==null&&Kf(Va)&&(Va=null),Qa!==null&&Kf(Qa)&&(Qa=null),Wa!==null&&Kf(Wa)&&(Wa=null),Pu.forEach(jS),Ru.forEach(jS)}function df(e,t){e.blockedOn===t&&(e.blockedOn=null,Av||(Av=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,uD)))}var hf=null;function ES(e){hf!==e&&(hf=e,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,function(){hf===e&&(hf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(xb(r||n)===null)continue;break}var i=ts(n);i!==null&&(e.splice(t,3),t-=3,av(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function El(e){function t(s){return df(s,e)}Va!==null&&df(Va,e),Qa!==null&&df(Qa,e),Wa!==null&&df(Wa,e),Pu.forEach(t),Ru.forEach(t);for(var n=0;n<_a.length;n++){var r=_a[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<_a.length&&(n=_a[0],n.blockedOn===null);)pT(n),n.blockedOn===null&&_a.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],o=a[hn]||null;if(typeof i=="function")o||ES(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[hn]||null)l=o.formAction;else if(xb(a)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),ES(n)}}}function yT(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Sb(e){this._internalRoot=e}ep.prototype.render=Sb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));var n=t.current,r=Cn();fT(n,r,e,t,null,null)};ep.prototype.unmount=Sb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fT(e.current,2,null,e,null,null),Wh(),t[es]=null}};function ep(e){this._internalRoot=e}ep.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fj();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_a.length&&t!==0&&t<_a[n].priority;n++);_a.splice(n,0,e),n===0&&pT(e)}};var _S=Cj.version;if(_S!=="19.2.7")throw Error(I(527,_S,"19.2.7"));Ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=BR(t),e=e!==null?$j(e):null,e=e===null?null:e.stateNode,e};var cD={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:re,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pf.isDisabled&&pf.supportsFiber)try{jc=pf.inject(cD),Tn=pf}catch{}}Lh.createRoot=function(e,t){if(!Mj(e))throw Error(I(299));var n=!1,r="",a=o_,i=l_,o=s_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=uT(e,1,!1,null,null,n,r,null,a,i,o,yT),e[es]=t.current,yb(e),new Sb(t)};Lh.hydrateRoot=function(e,t,n){if(!Mj(e))throw Error(I(299));var r=!1,a="",i=o_,o=l_,l=s_,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=uT(e,1,!0,t,n??null,r,a,s,i,o,l,yT),t.context=cT(null),n=t.current,r=Cn(),r=N0(r),a=Ga(r),a.callback=null,Ka(n,a,r),n=r,t.current.lanes=n,_c(t,n),_r(t),e[es]=t.current,yb(e),new ep(t)};Lh.version="19.2.7";function mT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mT)}catch(e){console.error(e)}}mT(),Aj.exports=Lh;var fD=Aj.exports;/**
 * react-router v7.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var TS="popstate";function NS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function dD(e={}){function t(r,a){var u;let i=(u=a.state)==null?void 0:u.masked,{pathname:o,search:l,hash:s}=i||r.location;return jv("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:$u(a)}return pD(t,n,null,e)}function nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hD(){return Math.random().toString(36).substring(2,10)}function CS(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function jv(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ls(t):t,state:n,key:t&&t.key||r||hD(),mask:a}}function $u({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ls(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function pD(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l="POP",s=null,u=f();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function f(){return(o.state||{idx:null}).idx}function c(){l="POP";let g=f(),y=g==null?null:g-u;u=g,s&&s({action:l,location:v.location,delta:y})}function h(g,y){l="PUSH";let m=NS(g)?g:jv(v.location,g,y);u=f()+1;let x=CS(m,u),w=v.createHref(m.mask||m);try{o.pushState(x,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(w)}i&&s&&s({action:l,location:v.location,delta:1})}function p(g,y){l="REPLACE";let m=NS(g)?g:jv(v.location,g,y);u=f();let x=CS(m,u),w=v.createHref(m.mask||m);o.replaceState(x,"",w),i&&s&&s({action:l,location:v.location,delta:0})}function b(g){return yD(a,g)}let v={get action(){return l},get location(){return e(a,o)},listen(g){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(TS,c),s=g,()=>{a.removeEventListener(TS,c),s=null}},createHref(g){return t(a,g)},createURL:b,encodeLocation(g){let y=b(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(g){return o.go(g)}};return v}function yD(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),nt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:$u(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function vT(e,t,n="/"){return mD(e,t,n,!1)}function mD(e,t,n,r,a){let i=typeof t=="string"?ls(t):t,o=sa(i.pathname||"/",n);if(o==null)return null;let l=vD(e),s=null,u=ND(o);for(let f=0;s==null&&f<l.length;++f)s=_D(l[f],u,r);return s}function vD(e){let t=gT(e);return gD(t),t}function gT(e,t=[],n=[],r="",a=!1){let i=(o,l,s=a,u)=>{let f={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&s)return;nt(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let c=ur([r,f.relativePath]),h=n.concat(f);o.children&&o.children.length>0&&(nt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),gT(o.children,t,h,c,s)),!(o.path==null&&!o.index)&&t.push({path:c,score:jD(c,o.index),routesMeta:h})};return e.forEach((o,l)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,l);else for(let u of bT(o.path))i(o,l,!0,u)}),t}function bT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=bT(r.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),a&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function gD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ED(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var bD=/^:[\w-]+$/,xD=3,SD=2,wD=1,OD=10,AD=-2,MS=e=>e==="*";function jD(e,t){let n=e.split("/"),r=n.length;return n.some(MS)&&(r+=AD),t&&(r+=SD),n.filter(a=>!MS(a)).reduce((a,i)=>a+(bD.test(i)?xD:i===""?wD:OD),r)}function ED(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function _D(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l<r.length;++l){let s=r[l],u=l===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",c=Nd({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},f),h=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Nd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!c)return null;Object.assign(a,c.params),o.push({params:a,pathname:ur([i,c.pathname]),pathnameBase:RD(ur([i,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(i=ur([i,c.pathnameBase]))}return o}function Nd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TD(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:c},h)=>{if(f==="*"){let b=l[h]||"";o=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const p=l[h];return c&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function TD(e,t=!1,n=!0){cr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s,u,f)=>{if(r.push({paramName:l,isOptional:s!=null}),s){let c=f.charAt(u+o.length);return c&&c!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function ND(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function sa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var CD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function MD(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ls(e):e,i;return n?(n=xT(n),n.startsWith("/")?i=PS(n.substring(1),"/"):i=PS(n,t)):i=t,{pathname:i,search:$D(r),hash:DD(a)}}function PS(e,t){let n=Cd(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Ky(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function PD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wb(e){let t=PD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function tp(e,t,n,r=!1){let a;typeof e=="string"?a=ls(e):(a={...e},nt(!a.pathname||!a.pathname.includes("?"),Ky("?","pathname","search",a)),nt(!a.pathname||!a.pathname.includes("#"),Ky("#","pathname","hash",a)),nt(!a.search||!a.search.includes("#"),Ky("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),c-=1;a.pathname=h.join("/")}l=c>=0?t[c]:"/"}let s=MD(a,l),u=o&&o!=="/"&&o.endsWith("/"),f=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}var xT=e=>e.replace(/\/\/+/g,"/"),ur=e=>xT(e.join("/")),Cd=e=>e.replace(/\/+$/,""),RD=e=>Cd(e).replace(/^\/*/,"/"),$D=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,kD=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function LD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function zD(e){let t=e.map(n=>n.route.path).filter(Boolean);return ur(t)||"/"}var ST=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function wT(e,t){let n=e;if(typeof n!="string"||!CD.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(ST)try{let i=new URL(window.location.href),o=n.startsWith("//")?new URL(i.protocol+n):new URL(n),l=sa(o.pathname,t);o.origin===i.origin&&l!=null?n=l+o.search+o.hash:a=!0}catch{cr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var OT=["POST","PUT","PATCH","DELETE"];new Set(OT);var BD=["GET",...OT];new Set(BD);var ss=j.createContext(null);ss.displayName="DataRouter";var np=j.createContext(null);np.displayName="DataRouterState";var AT=j.createContext(!1);function UD(){return j.useContext(AT)}var jT=j.createContext({isTransitioning:!1});jT.displayName="ViewTransition";var ID=j.createContext(new Map);ID.displayName="Fetchers";var HD=j.createContext(null);HD.displayName="Await";var $n=j.createContext(null);$n.displayName="Navigation";var kc=j.createContext(null);kc.displayName="Location";var dr=j.createContext({outlet:null,matches:[],isDataRoute:!1});dr.displayName="Route";var Ob=j.createContext(null);Ob.displayName="RouteError";var ET="REACT_ROUTER_ERROR",qD="REDIRECT",FD="ROUTE_ERROR_RESPONSE";function GD(e){if(e.startsWith(`${ET}:${qD}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function KD(e){if(e.startsWith(`${ET}:${FD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new kD(t.status,t.statusText,t.data)}catch{}}function YD(e,{relative:t}={}){nt(us(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=j.useContext($n),{hash:a,pathname:i,search:o}=Lc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:ur([n,i])),r.createHref({pathname:l,search:o,hash:a})}function us(){return j.useContext(kc)!=null}function Tr(){return nt(us(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(kc).location}var _T="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function TT(e){j.useContext($n).static||j.useLayoutEffect(e)}function rp(){let{isDataRoute:e}=j.useContext(dr);return e?s4():XD()}function XD(){nt(us(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(ss),{basename:t,navigator:n}=j.useContext($n),{matches:r}=j.useContext(dr),{pathname:a}=Tr(),i=JSON.stringify(wb(r)),o=j.useRef(!1);return TT(()=>{o.current=!0}),j.useCallback((s,u={})=>{if(cr(o.current,_T),!o.current)return;if(typeof s=="number"){n.go(s);return}let f=tp(s,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ur([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,i,a,e])}var VD=j.createContext(null);function QD(e){let t=j.useContext(dr).outlet;return j.useMemo(()=>t&&j.createElement(VD.Provider,{value:e},t),[t,e])}function Lc(e,{relative:t}={}){let{matches:n}=j.useContext(dr),{pathname:r}=Tr(),a=JSON.stringify(wb(n));return j.useMemo(()=>tp(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function WD(e,t){return NT(e,t)}function NT(e,t,n){var g;nt(us(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext($n),{matches:a}=j.useContext(dr),i=a[a.length-1],o=i?i.params:{},l=i?i.pathname:"/",s=i?i.pathnameBase:"/",u=i&&i.route;{let y=u&&u.path||"";MT(l,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=Tr(),c;if(t){let y=typeof t=="string"?ls(t):t;nt(s==="/"||((g=y.pathname)==null?void 0:g.startsWith(s)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${y.pathname}" was given in the \`location\` prop.`),c=y}else c=f;let h=c.pathname||"/",p=h;if(s!=="/"){let y=s.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=n&&n.state.matches.length?n.state.matches.map(y=>Object.assign(y,{route:n.manifest[y.route.id]||y.route})):vT(e,{pathname:p});cr(u||b!=null,`No routes matched location "${c.pathname}${c.search}${c.hash}" `),cr(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${c.pathname}${c.search}${c.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=n4(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:ur([s,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ur([s,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&v?j.createElement(kc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...c},navigationType:"POP"}},v):v}function ZD(){let e=l4(),t=LD(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:i},"ErrorBoundary")," or"," ",j.createElement("code",{style:i},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:a},n):null,o)}var JD=j.createElement(ZD,null),CT=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=KD(e.digest);n&&(e=n)}let t=e!==void 0?j.createElement(dr.Provider,{value:this.props.routeContext},j.createElement(Ob.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(e4,{error:e},t):t}};CT.contextType=AT;var Yy=new WeakMap;function e4({children:e,error:t}){let{basename:n}=j.useContext($n);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=GD(t.digest);if(r){let a=Yy.get(t);if(a)throw a;let i=wT(r.location,n);if(ST&&!Yy.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Yy.set(t,o),o}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function t4({routeContext:e,match:t,children:n}){let r=j.useContext(ss);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),j.createElement(dr.Provider,{value:e},n)}function n4(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let f=a.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);nt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let f=0;f<a.length;f++){let c=a[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=f),c.route.id){let{loaderData:h,errors:p}=r,b=c.route.loader&&!h.hasOwnProperty(c.route.id)&&(!p||p[c.route.id]===void 0);if(c.route.lazy||b){n.isStatic&&(o=!0),l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}}let s=n==null?void 0:n.onError,u=r&&s?(f,c)=>{var h,p;s(f,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:zD(r.matches),errorInfo:c})}:void 0;return a.reduceRight((f,c,h)=>{let p,b=!1,v=null,g=null;r&&(p=i&&c.route.id?i[c.route.id]:void 0,v=c.route.errorElement||JD,o&&(l<0&&h===0?(MT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,g=null):l===h&&(b=!0,g=c.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),m=()=>{let x;return p?x=v:b?x=g:c.route.Component?x=j.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,j.createElement(t4,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:r!=null},children:x})};return r&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?j.createElement(CT,{location:r.location,revalidation:r.revalidation,component:v,error:p,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):m()},null)}function Ab(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function r4(e){let t=j.useContext(ss);return nt(t,Ab(e)),t}function a4(e){let t=j.useContext(np);return nt(t,Ab(e)),t}function i4(e){let t=j.useContext(dr);return nt(t,Ab(e)),t}function jb(e){let t=i4(e),n=t.matches[t.matches.length-1];return nt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function o4(){return jb("useRouteId")}function l4(){var r;let e=j.useContext(Ob),t=a4("useRouteError"),n=jb("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function s4(){let{router:e}=r4("useNavigate"),t=jb("useNavigate"),n=j.useRef(!1);return TT(()=>{n.current=!0}),j.useCallback(async(a,i={})=>{cr(n.current,_T),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var RS={};function MT(e,t,n){!t&&!RS[e]&&(RS[e]=!0,cr(!1,n))}j.memo(u4);function u4({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return NT(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function PT({to:e,replace:t,state:n,relative:r}){nt(us(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=j.useContext($n);cr(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=j.useContext(dr),{pathname:o}=Tr(),l=rp(),s=tp(e,wb(i),o,r==="path"),u=JSON.stringify(s);return j.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function c4(e){return QD(e.context)}function Je(e){nt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function f4({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:o}){nt(!us(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=j.useMemo(()=>({basename:l,navigator:a,static:i,useTransitions:o,future:{}}),[l,a,i,o]);typeof n=="string"&&(n=ls(n));let{pathname:u="/",search:f="",hash:c="",state:h=null,key:p="default",mask:b}=n,v=j.useMemo(()=>{let g=sa(u,l);return g==null?null:{location:{pathname:g,search:f,hash:c,state:h,key:p,mask:b},navigationType:r}},[l,u,f,c,h,p,r,b]);return cr(v!=null,`<Router basename="${l}"> is not able to match the URL "${u}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:j.createElement($n.Provider,{value:s},j.createElement(kc.Provider,{children:t,value:v}))}function d4({children:e,location:t}){return WD(Ev(e),t)}function Ev(e,t=[]){let n=[];return j.Children.forEach(e,(r,a)=>{if(!j.isValidElement(r))return;let i=[...t,a];if(r.type===j.Fragment){n.push.apply(n,Ev(r.props.children,i));return}nt(r.type===Je,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),nt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Ev(r.props.children,i)),n.push(o)}),n}var Yf="get",Xf="application/x-www-form-urlencoded";function ap(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function h4(e){return ap(e)&&e.tagName.toLowerCase()==="button"}function p4(e){return ap(e)&&e.tagName.toLowerCase()==="form"}function y4(e){return ap(e)&&e.tagName.toLowerCase()==="input"}function m4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function v4(e,t){return e.button===0&&(!t||t==="_self")&&!m4(e)}var yf=null;function g4(){if(yf===null)try{new FormData(document.createElement("form"),0),yf=!1}catch{yf=!0}return yf}var b4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xy(e){return e!=null&&!b4.has(e)?(cr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xf}"`),null):e}function x4(e,t){let n,r,a,i,o;if(p4(e)){let l=e.getAttribute("action");r=l?sa(l,t):null,n=e.getAttribute("method")||Yf,a=Xy(e.getAttribute("enctype"))||Xf,i=new FormData(e)}else if(h4(e)||y4(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?sa(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Yf,a=Xy(e.getAttribute("formenctype"))||Xy(l.getAttribute("enctype"))||Xf,i=new FormData(l,e),!g4()){let{name:u,type:f,value:c}=e;if(f==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,c)}}else{if(ap(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Yf,r=null,a=Xf,o=e}return i&&a==="text/plain"&&(o=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Eb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function RT(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&sa(a.pathname,t)==="/"?a.pathname=`${Cd(t)}/_root.${r}`:a.pathname=`${Cd(a.pathname)}.${r}`,a}async function S4(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function w4(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function O4(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await S4(i,n);return o.links?o.links():[]}return[]}));return _4(r.flat(1).filter(w4).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function $S(e,t,n,r,a,i){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var f;return n[u].pathname!==s.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return i==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):i==="data"?t.filter((s,u)=>{var c;let f=r.routes[s.route.id];if(!f||!f.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let h=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function A4(e,t,{includeHydrateFallback:n}={}){return j4(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function j4(e){return[...new Set(e)]}function E4(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function _4(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(E4(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function _b(){let e=j.useContext(ss);return Eb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function T4(){let e=j.useContext(np);return Eb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Tb=j.createContext(void 0);Tb.displayName="FrameworkContext";function Nb(){let e=j.useContext(Tb);return Eb(e,"You must render this element inside a <HydratedRouter> element"),e}function N4(e,t){let n=j.useContext(Tb),[r,a]=j.useState(!1),[i,o]=j.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:f,onTouchStart:c}=t,h=j.useRef(null);j.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let v=y=>{y.forEach(m=>{o(m.isIntersecting)})},g=new IntersectionObserver(v,{threshold:.5});return h.current&&g.observe(h.current),()=>{g.disconnect()}}},[e]),j.useEffect(()=>{if(r){let v=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(v)}}},[r]);let p=()=>{a(!0)},b=()=>{a(!1),o(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Ds(l,p),onBlur:Ds(s,b),onMouseEnter:Ds(u,p),onMouseLeave:Ds(f,b),onTouchStart:Ds(c,p)}]:[!1,h,{}]}function Ds(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function C4({page:e,...t}){let n=UD(),{router:r}=_b(),a=j.useMemo(()=>vT(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?j.createElement(P4,{page:e,matches:a,...t}):j.createElement(R4,{page:e,matches:a,...t}):null}function M4(e){let{manifest:t,routeModules:n}=Nb(),[r,a]=j.useState([]);return j.useEffect(()=>{let i=!1;return O4(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function P4({page:e,matches:t,...n}){let r=Tr(),{future:a}=Nb(),{basename:i}=_b(),o=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=RT(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,u=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?s=!0:u.push(f.route.id);return s&&u.length>0&&l.searchParams.set("_routes",u.join(",")),[l.pathname+l.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return j.createElement(j.Fragment,null,o.map(l=>j.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function R4({page:e,matches:t,...n}){let r=Tr(),{future:a,manifest:i,routeModules:o}=Nb(),{basename:l}=_b(),{loaderData:s,matches:u}=T4(),f=j.useMemo(()=>$S(e,t,u,i,r,"data"),[e,t,u,i,r]),c=j.useMemo(()=>$S(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,g=!1;if(t.forEach(m=>{var w;let x=i.routes[m.route.id];!x||!x.hasLoader||(!f.some(S=>S.route.id===m.route.id)&&m.route.id in s&&((w=o[m.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?g=!0:v.add(m.route.id))}),v.size===0)return[];let y=RT(e,l,a.v8_trailingSlashAwareDataRequests,"data");return g&&v.size>0&&y.searchParams.set("_routes",t.filter(m=>v.has(m.route.id)).map(m=>m.route.id).join(",")),[y.pathname+y.search]},[l,a.v8_trailingSlashAwareDataRequests,s,r,i,f,t,e,o]),p=j.useMemo(()=>A4(c,i),[c,i]),b=M4(c);return j.createElement(j.Fragment,null,h.map(v=>j.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),p.map(v=>j.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),b.map(({key:v,link:g})=>j.createElement("link",{key:v,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function $4(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var D4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{D4&&(window.__reactRouterVersion="7.17.0")}catch{}function k4({basename:e,children:t,useTransitions:n,window:r}){let a=j.useRef();a.current==null&&(a.current=dD({window:r,v5Compat:!0}));let i=a.current,[o,l]=j.useState({action:i.action,location:i.location}),s=j.useCallback(u=>{n===!1?l(u):j.startTransition(()=>l(u))},[n]);return j.useLayoutEffect(()=>i.listen(s),[i,s]),j.createElement(f4,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var $T=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,DT=j.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,mask:l,state:s,target:u,to:f,preventScrollReset:c,viewTransition:h,defaultShouldRevalidate:p,...b},v){let{basename:g,navigator:y,useTransitions:m}=j.useContext($n),x=typeof f=="string"&&$T.test(f),w=wT(f,g);f=w.to;let S=YD(f,{relative:a}),O=Tr(),A=null;if(l){let D=tp(l,[],O.mask?O.mask.pathname:"/",!0);g!=="/"&&(D.pathname=D.pathname==="/"?g:ur([g,D.pathname])),A=y.createHref(D)}let[E,_,C]=N4(r,b),$=B4(f,{replace:o,mask:l,state:s,target:u,preventScrollReset:c,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:m});function P(D){t&&t(D),D.defaultPrevented||$(D)}let B=!(w.isExternal||i),L=j.createElement("a",{...b,...C,href:(B?A:void 0)||w.absoluteURL||S,onClick:B?P:t,ref:$4(v,_),target:u,"data-discover":!x&&n==="render"?"true":void 0});return E&&!x?j.createElement(j.Fragment,null,L,j.createElement(C4,{page:S})):L});DT.displayName="Link";var kT=j.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:l,children:s,...u},f){let c=Lc(o,{relative:u.relative}),h=Tr(),p=j.useContext(np),{navigator:b,basename:v}=j.useContext($n),g=p!=null&&F4(c)&&l===!0,y=b.encodeLocation?b.encodeLocation(c).pathname:c.pathname,m=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(m=m.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&v&&(x=sa(x,v)||x);const w=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=m===y||!a&&m.startsWith(y)&&m.charAt(w)==="/",O=x!=null&&(x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/"),A={isActive:S,isPending:O,isTransitioning:g},E=S?t:void 0,_;typeof r=="function"?_=r(A):_=[r,S?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let C=typeof i=="function"?i(A):i;return j.createElement(DT,{...u,"aria-current":E,className:_,ref:f,style:C,to:o,viewTransition:l},typeof s=="function"?s(A):s)});kT.displayName="NavLink";var L4=j.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=Yf,action:l,onSubmit:s,relative:u,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:h,...p},b)=>{let{useTransitions:v}=j.useContext($n),g=H4(),y=q4(l,{relative:u}),m=o.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&$T.test(l),w=S=>{if(s&&s(S),S.defaultPrevented)return;S.preventDefault();let O=S.nativeEvent.submitter,A=(O==null?void 0:O.getAttribute("formmethod"))||o,E=()=>g(O||S.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:u,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:h});v&&n!==!1?j.startTransition(()=>E()):E()};return j.createElement("form",{ref:b,method:m,action:y,onSubmit:r?s:w,...p,"data-discover":!x&&e==="render"?"true":void 0})});L4.displayName="Form";function z4(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function LT(e){let t=j.useContext(ss);return nt(t,z4(e)),t}function B4(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s,useTransitions:u}={}){let f=rp(),c=Tr(),h=Lc(e,{relative:o});return j.useCallback(p=>{if(v4(p,t)){p.preventDefault();let b=n!==void 0?n:$u(c)===$u(h),v=()=>f(e,{replace:b,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s});u?j.startTransition(()=>v()):v()}},[c,f,h,n,r,a,t,e,i,o,l,s,u])}var U4=0,I4=()=>`__${String(++U4)}__`;function H4(){let{router:e}=LT("useSubmit"),{basename:t}=j.useContext($n),n=o4(),r=e.fetch,a=e.navigate;return j.useCallback(async(i,o={})=>{let{action:l,method:s,encType:u,formData:f,body:c}=x4(i,t);if(o.navigate===!1){let h=o.fetcherKey||I4();await r(h,n,o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:c,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await a(o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:c,formMethod:o.method||s,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,a,t,n])}function q4(e,{relative:t}={}){let{basename:n}=j.useContext($n),r=j.useContext(dr);nt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Lc(e||".",{relative:t})},o=Tr();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),s=l.getAll("index");if(s.some(f=>f==="")){l.delete("index"),s.filter(c=>c).forEach(c=>l.append("index",c));let f=l.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:ur([n,i.pathname])),$u(i)}function F4(e,{relative:t}={}){let n=j.useContext(jT);nt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=LT("useViewTransitionState"),a=Lc(e,{relative:t});if(!n.isTransitioning)return!1;let i=sa(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=sa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Nd(a.pathname,o)!=null||Nd(a.pathname,i)!=null}var cs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Mi,Ta,rl,aj,G4=(aj=class extends cs{constructor(){super();te(this,Mi);te(this,Ta);te(this,rl);Y(this,rl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Ta)||this.setEventListener(T(this,rl))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ta))==null||t.call(this),Y(this,Ta,void 0))}setEventListener(t){var n;Y(this,rl,t),(n=T(this,Ta))==null||n.call(this),Y(this,Ta,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Mi)!==t&&(Y(this,Mi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Mi)=="boolean"?T(this,Mi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Mi=new WeakMap,Ta=new WeakMap,rl=new WeakMap,aj),Cb=new G4,K4={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Na,x0,ij,Y4=(ij=class{constructor(){te(this,Na,K4);te(this,x0,!1)}setTimeoutProvider(e){Y(this,Na,e)}setTimeout(e,t){return T(this,Na).setTimeout(e,t)}clearTimeout(e){T(this,Na).clearTimeout(e)}setInterval(e,t){return T(this,Na).setInterval(e,t)}clearInterval(e){T(this,Na).clearInterval(e)}},Na=new WeakMap,x0=new WeakMap,ij),ji=new Y4;function X4(e){setTimeout(e,0)}var V4=typeof window>"u"||"Deno"in globalThis;function Vt(){}function Q4(e,t){return typeof e=="function"?e(t):e}function _v(e){return typeof e=="number"&&e>=0&&e!==1/0}function zT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Za(e,t){return typeof e=="function"?e(t):e}function wn(e,t){return typeof e=="function"?e(t):e}function DS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Mb(o,t.options))return!1}else if(!Du(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function kS(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Ji(t.options.mutationKey)!==Ji(i))return!1}else if(!Du(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Mb(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ji)(e)}function Ji(e){return JSON.stringify(e,(t,n)=>Tv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Du(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Du(e[n],t[n])):!1}var W4=Object.prototype.hasOwnProperty;function BT(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=LS(e)&&LS(t);if(!r&&!(Tv(e)&&Tv(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),l=o.length,s=r?new Array(l):{};let u=0;for(let f=0;f<l;f++){const c=r?f:o[f],h=e[c],p=t[c];if(h===p){s[c]=h,(r?f<i:W4.call(e,c))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){s[c]=p;continue}const b=BT(h,p,n+1);s[c]=b,b===h&&u++}return i===l&&u===i?e:s}function Md(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function LS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Tv(e){if(!zS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!zS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function zS(e){return Object.prototype.toString.call(e)==="[object Object]"}function Z4(e){return new Promise(t=>{ji.setTimeout(t,e)})}function Nv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?BT(e,t):t}function J4(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ek(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Pb=Symbol();function UT(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Pb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Rb(e,t){return typeof e=="function"?e(...t):!!e}function tk(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var ku=(()=>{let e=()=>V4;return{isServer(){return e()},setIsServer(t){e=t}}})();function Cv(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var nk=X4;function rk(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=nk;const i=l=>{t?e.push(l):a(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(s=>{n(s)})})})};return{batch:l=>{let s;t++;try{s=l()}finally{t--,t||o()}return s},batchCalls:l=>(...s)=>{i(()=>{l(...s)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var xt=rk(),al,Ca,il,oj,ak=(oj=class extends cs{constructor(){super();te(this,al,!0);te(this,Ca);te(this,il);Y(this,il,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,Ca)||this.setEventListener(T(this,il))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ca))==null||t.call(this),Y(this,Ca,void 0))}setEventListener(t){var n;Y(this,il,t),(n=T(this,Ca))==null||n.call(this),Y(this,Ca,t(this.setOnline.bind(this)))}setOnline(t){T(this,al)!==t&&(Y(this,al,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,al)}},al=new WeakMap,Ca=new WeakMap,il=new WeakMap,oj),Pd=new ak;function ik(e){return Math.min(1e3*2**e,3e4)}function IT(e){return(e??"online")==="online"?Pd.isOnline():!0}var Mv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function HT(e){let t=!1,n=0,r;const a=Cv(),i=()=>a.status!=="pending",o=v=>{var g;if(!i()){const y=new Mv(v);h(y),(g=e.onCancel)==null||g.call(e,y)}},l=()=>{t=!0},s=()=>{t=!1},u=()=>Cb.isFocused()&&(e.networkMode==="always"||Pd.isOnline())&&e.canRun(),f=()=>IT(e.networkMode)&&e.canRun(),c=v=>{i()||(r==null||r(),a.resolve(v))},h=v=>{i()||(r==null||r(),a.reject(v))},p=()=>new Promise(v=>{var g;r=y=>{(i()||u())&&v(y)},(g=e.onPause)==null||g.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(i())return;let v;const g=n===0?e.initialPromise:void 0;try{v=g??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(c).catch(y=>{var O;if(i())return;const m=e.retry??(ku.isServer()?0:3),x=e.retryDelay??ik,w=typeof x=="function"?x(n,y):x,S=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,y);if(t||!S){h(y);return}n++,(O=e.onFail)==null||O.call(e,n,y),Z4(w).then(()=>u()?void 0:p()).then(()=>{t?h(y):b()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(r==null||r(),a),cancelRetry:l,continueRetry:s,canStart:f,start:()=>(f()?b():p().then(b),a)}}var Pi,lj,qT=(lj=class{constructor(){te(this,Pi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_v(this.gcTime)&&Y(this,Pi,ji.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ku.isServer()?1/0:5*60*1e3))}clearGcTimeout(){T(this,Pi)!==void 0&&(ji.clearTimeout(T(this,Pi)),Y(this,Pi,void 0))}},Pi=new WeakMap,lj);function ok(e){return{onFetch:(t,n)=>{var f,c,h,p,b;const r=t.options,a=(h=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let v=!1;const g=x=>{tk(x,()=>t.signal,()=>v=!0)},y=UT(t.options,t.fetchOptions),m=async(x,w,S)=>{if(v)return Promise.reject(t.signal.reason);if(w==null&&x.pages.length)return Promise.resolve(x);const A=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return g($),$})(),E=await y(A),{maxPages:_}=t.options,C=S?ek:J4;return{pages:C(x.pages,E,_),pageParams:C(x.pageParams,w,_)}};if(a&&i.length){const x=a==="backward",w=x?lk:BS,S={pages:i,pageParams:o},O=w(r,S);l=await m(S,O,x)}else{const x=e??i.length;do{const w=s===0?o[0]??r.initialPageParam:BS(r,l);if(s>0&&w==null)break;l=await m(l,w),s++}while(s<x)}return l};t.options.persister?t.fetchFn=()=>{var v,g;return(g=(v=t.options).persister)==null?void 0:g.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function BS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function lk(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ol,Ri,ll,zn,$i,jt,bc,Di,Sn,FT,Lr,sj,sk=(sj=class extends qT{constructor(t){super();te(this,Sn);te(this,ol);te(this,Ri);te(this,ll);te(this,zn);te(this,$i);te(this,jt);te(this,bc);te(this,Di);Y(this,Di,!1),Y(this,bc,t.defaultOptions),this.setOptions(t.options),this.observers=[],Y(this,$i,t.client),Y(this,zn,T(this,$i).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Y(this,Ri,IS(this.options)),this.state=t.state??T(this,Ri),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,ol)}get promise(){var t;return(t=T(this,jt))==null?void 0:t.promise}setOptions(t){if(this.options={...T(this,bc),...t},t!=null&&t._type&&Y(this,ol,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=IS(this.options);n.data!==void 0&&(this.setState(US(n.data,n.dataUpdatedAt)),Y(this,Ri,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,zn).remove(this)}setData(t,n){const r=Nv(this.state.data,t,this.options);return fe(this,Sn,Lr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){fe(this,Sn,Lr).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=T(this,jt))==null?void 0:r.promise;return(a=T(this,jt))==null||a.cancel(t),n?n.then(Vt).catch(Vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,Ri)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>wn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Za(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!zT(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,jt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,jt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,zn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,jt)&&(T(this,Di)||fe(this,Sn,FT).call(this)?T(this,jt).cancel({revert:!0}):T(this,jt).cancelRetry()),this.scheduleGc()),T(this,zn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fe(this,Sn,Lr).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,c,h,p,b,v,g,y,m,x;if(this.state.fetchStatus!=="idle"&&((u=T(this,jt))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,jt))return T(this,jt).continueRetry(),T(this,jt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(S=>S.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(Y(this,Di,!0),r.signal)})},i=()=>{const w=UT(this.options,n),O=(()=>{const A={client:T(this,$i),queryKey:this.queryKey,meta:this.meta};return a(A),A})();return Y(this,Di,!1),this.options.persister?this.options.persister(w,O,this):w(O)},l=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,$i),state:this.state,fetchFn:i};return a(w),w})(),s=T(this,ol)==="infinite"?ok(this.options.pages):this.options.behavior;s==null||s.onFetch(l,this),Y(this,ll,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&fe(this,Sn,Lr).call(this,{type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta}),Y(this,jt,HT({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:w=>{w instanceof Mv&&w.revert&&this.setState({...T(this,ll),fetchStatus:"idle"}),r.abort()},onFail:(w,S)=>{fe(this,Sn,Lr).call(this,{type:"failed",failureCount:w,error:S})},onPause:()=>{fe(this,Sn,Lr).call(this,{type:"pause"})},onContinue:()=>{fe(this,Sn,Lr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await T(this,jt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(p=(h=T(this,zn).config).onSuccess)==null||p.call(h,w,this),(v=(b=T(this,zn).config).onSettled)==null||v.call(b,w,this.state.error,this),w}catch(w){if(w instanceof Mv){if(w.silent)return T(this,jt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw fe(this,Sn,Lr).call(this,{type:"error",error:w}),(y=(g=T(this,zn).config).onError)==null||y.call(g,w,this),(x=(m=T(this,zn).config).onSettled)==null||x.call(m,this.state.data,w,this),w}finally{this.scheduleGc()}}},ol=new WeakMap,Ri=new WeakMap,ll=new WeakMap,zn=new WeakMap,$i=new WeakMap,jt=new WeakMap,bc=new WeakMap,Di=new WeakMap,Sn=new WeakSet,FT=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Lr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...GT(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...US(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Y(this,ll,t.manual?a:void 0),a;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,zn).notify({query:this,type:"updated",action:t})})},sj);function GT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:IT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function US(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function IS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var on,xe,xc,Yt,ki,sl,Ur,Ma,Sc,ul,cl,Li,zi,Pa,fl,_e,Zs,Pv,Rv,$v,Dv,kv,Lv,zv,KT,uj,uk=(uj=class extends cs{constructor(t,n){super();te(this,_e);te(this,on);te(this,xe);te(this,xc);te(this,Yt);te(this,ki);te(this,sl);te(this,Ur);te(this,Ma);te(this,Sc);te(this,ul);te(this,cl);te(this,Li);te(this,zi);te(this,Pa);te(this,fl,new Set);this.options=n,Y(this,on,t),Y(this,Ma,null),Y(this,Ur,Cv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,xe).addObserver(this),HS(T(this,xe),this.options)?fe(this,_e,Zs).call(this):this.updateResult(),fe(this,_e,Dv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bv(T(this,xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bv(T(this,xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,_e,kv).call(this),fe(this,_e,Lv).call(this),T(this,xe).removeObserver(this)}setOptions(t){const n=this.options,r=T(this,xe);if(this.options=T(this,on).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,T(this,xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,_e,zv).call(this),T(this,xe).setOptions(this.options),n._defaulted&&!Md(this.options,n)&&T(this,on).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,xe),observer:this});const a=this.hasListeners();a&&qS(T(this,xe),r,this.options,n)&&fe(this,_e,Zs).call(this),this.updateResult(),a&&(T(this,xe)!==r||wn(this.options.enabled,T(this,xe))!==wn(n.enabled,T(this,xe))||Za(this.options.staleTime,T(this,xe))!==Za(n.staleTime,T(this,xe)))&&fe(this,_e,Pv).call(this);const i=fe(this,_e,Rv).call(this);a&&(T(this,xe)!==r||wn(this.options.enabled,T(this,xe))!==wn(n.enabled,T(this,xe))||i!==T(this,Pa))&&fe(this,_e,$v).call(this,i)}getOptimisticResult(t){const n=T(this,on).getQueryCache().build(T(this,on),t),r=this.createResult(n,t);return fk(this,r)&&(Y(this,Yt,r),Y(this,sl,this.options),Y(this,ki,T(this,xe).state)),r}getCurrentResult(){return T(this,Yt)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&T(this,Ur).status==="pending"&&T(this,Ur).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){T(this,fl).add(t)}getCurrentQuery(){return T(this,xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,on).defaultQueryOptions(t),r=T(this,on).getQueryCache().build(T(this,on),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return fe(this,_e,Zs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Yt)))}createResult(t,n){var _;const r=T(this,xe),a=this.options,i=T(this,Yt),o=T(this,ki),l=T(this,sl),u=t!==r?t.state:T(this,xc),{state:f}=t;let c={...f},h=!1,p;if(n._optimisticResults){const C=this.hasListeners(),$=!C&&HS(t,n),P=C&&qS(t,r,n,a);($||P)&&(c={...c,...GT(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:g}=c;p=c.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&g==="pending"){let C;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(C=i.data,y=!0):C=typeof n.placeholderData=="function"?n.placeholderData((_=T(this,cl))==null?void 0:_.state.data,T(this,cl)):n.placeholderData,C!==void 0&&(g="success",p=Nv(i==null?void 0:i.data,C,n),h=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(o==null?void 0:o.data)&&n.select===T(this,Sc))p=T(this,ul);else try{Y(this,Sc,n.select),p=n.select(p),p=Nv(i==null?void 0:i.data,p,n),Y(this,ul,p),Y(this,Ma,null)}catch(C){Y(this,Ma,C)}T(this,Ma)&&(b=T(this,Ma),p=T(this,ul),v=Date.now(),g="error");const m=c.fetchStatus==="fetching",x=g==="pending",w=g==="error",S=x&&m,O=p!==void 0,E={status:g,fetchStatus:c.fetchStatus,isPending:x,isSuccess:g==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:c.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!x,isLoadingError:w&&!O,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&O,isStale:$b(t,n),refetch:this.refetch,promise:T(this,Ur),isEnabled:wn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const C=E.data!==void 0,$=E.status==="error"&&!C,P=D=>{$?D.reject(E.error):C&&D.resolve(E.data)},B=()=>{const D=Y(this,Ur,E.promise=Cv());P(D)},L=T(this,Ur);switch(L.status){case"pending":t.queryHash===r.queryHash&&P(L);break;case"fulfilled":($||E.data!==L.value)&&B();break;case"rejected":(!$||E.error!==L.reason)&&B();break}}return E}updateResult(){const t=T(this,Yt),n=this.createResult(T(this,xe),this.options);if(Y(this,ki,T(this,xe).state),Y(this,sl,this.options),T(this,ki).data!==void 0&&Y(this,cl,T(this,xe)),Md(n,t))return;Y(this,Yt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!T(this,fl).size)return!0;const o=new Set(i??T(this,fl));return this.options.throwOnError&&o.add("error"),Object.keys(T(this,Yt)).some(l=>{const s=l;return T(this,Yt)[s]!==t[s]&&o.has(s)})};fe(this,_e,KT).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,_e,Dv).call(this)}},on=new WeakMap,xe=new WeakMap,xc=new WeakMap,Yt=new WeakMap,ki=new WeakMap,sl=new WeakMap,Ur=new WeakMap,Ma=new WeakMap,Sc=new WeakMap,ul=new WeakMap,cl=new WeakMap,Li=new WeakMap,zi=new WeakMap,Pa=new WeakMap,fl=new WeakMap,_e=new WeakSet,Zs=function(t){fe(this,_e,zv).call(this);let n=T(this,xe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Vt)),n},Pv=function(){fe(this,_e,kv).call(this);const t=Za(this.options.staleTime,T(this,xe));if(ku.isServer()||T(this,Yt).isStale||!_v(t))return;const r=zT(T(this,Yt).dataUpdatedAt,t)+1;Y(this,Li,ji.setTimeout(()=>{T(this,Yt).isStale||this.updateResult()},r))},Rv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,xe)):this.options.refetchInterval)??!1},$v=function(t){fe(this,_e,Lv).call(this),Y(this,Pa,t),!(ku.isServer()||wn(this.options.enabled,T(this,xe))===!1||!_v(T(this,Pa))||T(this,Pa)===0)&&Y(this,zi,ji.setInterval(()=>{(this.options.refetchIntervalInBackground||Cb.isFocused())&&fe(this,_e,Zs).call(this)},T(this,Pa)))},Dv=function(){fe(this,_e,Pv).call(this),fe(this,_e,$v).call(this,fe(this,_e,Rv).call(this))},kv=function(){T(this,Li)!==void 0&&(ji.clearTimeout(T(this,Li)),Y(this,Li,void 0))},Lv=function(){T(this,zi)!==void 0&&(ji.clearInterval(T(this,zi)),Y(this,zi,void 0))},zv=function(){const t=T(this,on).getQueryCache().build(T(this,on),this.options);if(t===T(this,xe))return;const n=T(this,xe);Y(this,xe,t),Y(this,xc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},KT=function(t){xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,Yt))}),T(this,on).getQueryCache().notify({query:T(this,xe),type:"observerResultsUpdated"})})},uj);function ck(e,t){return wn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&wn(t.retryOnMount,e)===!1)}function HS(e,t){return ck(e,t)||e.state.data!==void 0&&Bv(e,t,t.refetchOnMount)}function Bv(e,t,n){if(wn(t.enabled,e)!==!1&&Za(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&$b(e,t)}return!1}function qS(e,t,n,r){return(e!==t||wn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&$b(e,n)}function $b(e,t){return wn(t.enabled,e)!==!1&&e.isStaleByTime(Za(t.staleTime,e))}function fk(e,t){return!Md(e.getCurrentResult(),t)}var wc,yr,Ht,Bi,mr,ba,cj,dk=(cj=class extends qT{constructor(t){super();te(this,mr);te(this,wc);te(this,yr);te(this,Ht);te(this,Bi);Y(this,wc,t.client),this.mutationId=t.mutationId,Y(this,Ht,t.mutationCache),Y(this,yr,[]),this.state=t.state||YT(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,yr).includes(t)||(T(this,yr).push(t),this.clearGcTimeout(),T(this,Ht).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Y(this,yr,T(this,yr).filter(n=>n!==t)),this.scheduleGc(),T(this,Ht).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,yr).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ht).remove(this))}continue(){var t;return((t=T(this,Bi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,s,u,f,c,h,p,b,v,g,y,m,x,w,S,O,A;const n=()=>{fe(this,mr,ba).call(this,{type:"continue"})},r={client:T(this,wc),meta:this.options.meta,mutationKey:this.options.mutationKey};Y(this,Bi,HT({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,_)=>{fe(this,mr,ba).call(this,{type:"failed",failureCount:E,error:_})},onPause:()=>{fe(this,mr,ba).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ht).canRun(this)}));const a=this.state.status==="pending",i=!T(this,Bi).canStart();try{if(a)n();else{fe(this,mr,ba).call(this,{type:"pending",variables:t,isPaused:i}),T(this,Ht).config.onMutate&&await T(this,Ht).config.onMutate(t,this,r);const _=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,r));_!==this.state.context&&fe(this,mr,ba).call(this,{type:"pending",context:_,variables:t,isPaused:i})}const E=await T(this,Bi).start();return await((u=(s=T(this,Ht).config).onSuccess)==null?void 0:u.call(s,E,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,E,t,this.state.context,r)),await((p=(h=T(this,Ht).config).onSettled)==null?void 0:p.call(h,E,null,this.state.variables,this.state.context,this,r)),await((v=(b=this.options).onSettled)==null?void 0:v.call(b,E,null,t,this.state.context,r)),fe(this,mr,ba).call(this,{type:"success",data:E}),E}catch(E){try{await((y=(g=T(this,Ht).config).onError)==null?void 0:y.call(g,E,t,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((x=(m=this.options).onError)==null?void 0:x.call(m,E,t,this.state.context,r))}catch(_){Promise.reject(_)}try{await((S=(w=T(this,Ht).config).onSettled)==null?void 0:S.call(w,void 0,E,this.state.variables,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((A=(O=this.options).onSettled)==null?void 0:A.call(O,void 0,E,t,this.state.context,r))}catch(_){Promise.reject(_)}throw fe(this,mr,ba).call(this,{type:"error",error:E}),E}finally{T(this,Ht).runNext(this)}}},wc=new WeakMap,yr=new WeakMap,Ht=new WeakMap,Bi=new WeakMap,mr=new WeakSet,ba=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xt.batch(()=>{T(this,yr).forEach(r=>{r.onMutationUpdate(t)}),T(this,Ht).notify({mutation:this,type:"updated",action:t})})},cj);function YT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ir,rr,Oc,fj,hk=(fj=class extends cs{constructor(t={}){super();te(this,Ir);te(this,rr);te(this,Oc);this.config=t,Y(this,Ir,new Set),Y(this,rr,new Map),Y(this,Oc,0)}build(t,n,r){const a=new dk({client:t,mutationCache:this,mutationId:++Qc(this,Oc)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){T(this,Ir).add(t);const n=mf(t);if(typeof n=="string"){const r=T(this,rr).get(n);r?r.push(t):T(this,rr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Ir).delete(t)){const n=mf(t);if(typeof n=="string"){const r=T(this,rr).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&T(this,rr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=mf(t);if(typeof n=="string"){const r=T(this,rr).get(n),a=r==null?void 0:r.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=mf(t);if(typeof n=="string"){const a=(r=T(this,rr).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xt.batch(()=>{T(this,Ir).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Ir).clear(),T(this,rr).clear()})}getAll(){return Array.from(T(this,Ir))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kS(n,r))}findAll(t={}){return this.getAll().filter(n=>kS(t,n))}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Vt))))}},Ir=new WeakMap,rr=new WeakMap,Oc=new WeakMap,fj);function mf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Hr,Ra,ln,qr,na,Vf,Uv,dj,pk=(dj=class extends cs{constructor(n,r){super();te(this,na);te(this,Hr);te(this,Ra);te(this,ln);te(this,qr);Y(this,Hr,n),this.setOptions(r),this.bindMethods(),fe(this,na,Vf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const r=this.options;this.options=T(this,Hr).defaultMutationOptions(n),Md(this.options,r)||T(this,Hr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,ln),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ji(r.mutationKey)!==Ji(this.options.mutationKey)?this.reset():((a=T(this,ln))==null?void 0:a.state.status)==="pending"&&T(this,ln).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=T(this,ln))==null||n.removeObserver(this)}onMutationUpdate(n){fe(this,na,Vf).call(this),fe(this,na,Uv).call(this,n)}getCurrentResult(){return T(this,Ra)}reset(){var n;(n=T(this,ln))==null||n.removeObserver(this),Y(this,ln,void 0),fe(this,na,Vf).call(this),fe(this,na,Uv).call(this)}mutate(n,r){var a;return Y(this,qr,r),(a=T(this,ln))==null||a.removeObserver(this),Y(this,ln,T(this,Hr).getMutationCache().build(T(this,Hr),this.options)),T(this,ln).addObserver(this),T(this,ln).execute(n)}},Hr=new WeakMap,Ra=new WeakMap,ln=new WeakMap,qr=new WeakMap,na=new WeakSet,Vf=function(){var r;const n=((r=T(this,ln))==null?void 0:r.state)??YT();Y(this,Ra,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Uv=function(n){xt.batch(()=>{var r,a,i,o,l,s,u,f;if(T(this,qr)&&this.hasListeners()){const c=T(this,Ra).variables,h=T(this,Ra).context,p={client:T(this,Hr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=T(this,qr)).onSuccess)==null||a.call(r,n.data,c,h,p)}catch(b){Promise.reject(b)}try{(o=(i=T(this,qr)).onSettled)==null||o.call(i,n.data,null,c,h,p)}catch(b){Promise.reject(b)}}else if((n==null?void 0:n.type)==="error"){try{(s=(l=T(this,qr)).onError)==null||s.call(l,n.error,c,h,p)}catch(b){Promise.reject(b)}try{(f=(u=T(this,qr)).onSettled)==null||f.call(u,void 0,n.error,c,h,p)}catch(b){Promise.reject(b)}}}this.listeners.forEach(c=>{c(T(this,Ra))})})},dj),vr,hj,yk=(hj=class extends cs{constructor(t={}){super();te(this,vr);this.config=t,Y(this,vr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??Mb(a,n);let o=this.get(i);return o||(o=new sk({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){T(this,vr).has(t.queryHash)||(T(this,vr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,vr).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,vr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,vr).get(t)}getAll(){return[...T(this,vr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>DS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>DS(t,r)):n}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},vr=new WeakMap,hj),it,$a,Da,dl,hl,ka,pl,yl,pj,mk=(pj=class{constructor(e={}){te(this,it);te(this,$a);te(this,Da);te(this,dl);te(this,hl);te(this,ka);te(this,pl);te(this,yl);Y(this,it,e.queryCache||new yk),Y(this,$a,e.mutationCache||new hk),Y(this,Da,e.defaultOptions||{}),Y(this,dl,new Map),Y(this,hl,new Map),Y(this,ka,0)}mount(){Qc(this,ka)._++,T(this,ka)===1&&(Y(this,pl,Cb.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,it).onFocus())})),Y(this,yl,Pd.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,it).onOnline())})))}unmount(){var e,t;Qc(this,ka)._--,T(this,ka)===0&&((e=T(this,pl))==null||e.call(this),Y(this,pl,void 0),(t=T(this,yl))==null||t.call(this),Y(this,yl,void 0))}isFetching(e){return T(this,it).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,$a).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,it).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,it).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Za(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,it).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=T(this,it).get(r.queryHash),i=a==null?void 0:a.state.data,o=Q4(t,i);if(o!==void 0)return T(this,it).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>T(this,it).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,it).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,it);xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,it);return xt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xt.batch(()=>T(this,it).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Vt).catch(Vt)}invalidateQueries(e,t={}){return xt.batch(()=>(T(this,it).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=xt.batch(()=>T(this,it).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Vt)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Vt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,it).build(this,t);return n.isStaleByTime(Za(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Vt).catch(Vt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Vt).catch(Vt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Pd.isOnline()?T(this,$a).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,it)}getMutationCache(){return T(this,$a)}getDefaultOptions(){return T(this,Da)}setDefaultOptions(e){Y(this,Da,e)}setQueryDefaults(e,t){T(this,dl).set(Ji(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,dl).values()],n={};return t.forEach(r=>{Du(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,hl).set(Ji(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,hl).values()],n={};return t.forEach(r=>{Du(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Da).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Mb(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Pb&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Da).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,it).clear(),T(this,$a).clear()}},it=new WeakMap,$a=new WeakMap,Da=new WeakMap,dl=new WeakMap,hl=new WeakMap,ka=new WeakMap,pl=new WeakMap,yl=new WeakMap,pj),XT=j.createContext(void 0),yn=e=>{const t=j.useContext(XT);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vk=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(XT.Provider,{value:e,children:t})),VT=j.createContext(!1),gk=()=>j.useContext(VT);VT.Provider;function bk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xk=j.createContext(bk()),Sk=()=>j.useContext(xk),wk=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Rb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ok=e=>{j.useEffect(()=>{e.clearReset()},[e])},Ak=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Rb(n,[e.error,r])),jk=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ek=(e,t)=>e.isLoading&&e.isFetching&&!t,_k=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,FS=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Tk(e,t,n){var p,b,v,g;const r=gk(),a=Sk(),i=yn(),o=i.defaultQueryOptions(e);(b=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||b.call(p,o);const l=i.getQueryCache().get(o.queryHash),s=e.subscribed!==!1;o._optimisticResults=r?"isRestoring":s?"optimistic":void 0,jk(o),wk(o,a,l),Ok(a);const u=!i.getQueryCache().get(o.queryHash),[f]=j.useState(()=>new t(i,o)),c=f.getOptimisticResult(o),h=!r&&s;if(j.useSyncExternalStore(j.useCallback(y=>{const m=h?f.subscribe(xt.batchCalls(y)):Vt;return f.updateResult(),m},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),j.useEffect(()=>{f.setOptions(o)},[o,f]),_k(o,c))throw FS(o,f,a);if(Ak({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw c.error;if((g=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||g.call(v,o,c),o.experimental_prefetchInRender&&!ku.isServer()&&Ek(c,r)){const y=u?FS(o,f,a):l==null?void 0:l.promise;y==null||y.catch(Vt).finally(()=>{f.updateResult()})}return o.notifyOnChangeProps?c:f.trackResult(c)}function tn(e,t){return Tk(e,uk)}function rt(e,t){const n=yn(),[r]=j.useState(()=>new pk(n,e));j.useEffect(()=>{r.setOptions(e)},[r,e]);const a=j.useSyncExternalStore(j.useCallback(o=>r.subscribe(xt.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=j.useCallback((o,l)=>{r.mutate(o,l).catch(Vt)},[r]);if(a.error&&Rb(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),QT=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ck={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mk=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},s)=>j.createElement("svg",{ref:s,...Ck,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:QT("lucide",a),...l},[...o.map(([u,f])=>j.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const de=(e,t)=>{const n=j.forwardRef(({className:r,...a},i)=>j.createElement(Mk,{ref:i,iconNode:t,className:QT(`lucide-${Nk(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pk=de("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WT=de("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZT=de("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JT=de("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eN=de("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rk=de("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $k=de("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Db=de("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dk=de("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kk=de("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lk=de("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zk=de("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kb=de("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bk=de("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uk=de("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ik=de("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tN=de("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hk=de("ListOrdered",[["line",{x1:"10",x2:"21",y1:"6",y2:"6",key:"76qw6h"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12",key:"16nom4"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18",key:"u3jurt"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qk=de("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fk=de("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gk=de("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kk=de("NotebookPen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yk=de("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fs=de("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lb=de("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xk=de("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GS=de("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vk=de("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zc=de("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qk=de("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Iv=de("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wk=de("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ho=de("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zb=de("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zk=de("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jk=de("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nN=de("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rN=de("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ds=de("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hv=de("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),e5=[{to:"/dashboard",icon:Uk,label:"대시보드"},{to:"/stores",icon:Iv,label:"매장 관리"},{to:"/templates",icon:Bk,label:"ESL 템플릿"},{to:"/pos-cvt",icon:Lb,label:"POS 가격변환"},{to:"/tag-binding",icon:tN,label:"태그 바인딩"},{to:"/update-queue",icon:Hk,label:"업데이트 큐"},{to:"/alarms",icon:ZT,label:"알람 관리"},{to:"/hcore",icon:kb,label:"HCore 장치"},{to:"/works",icon:Lk,label:"작업 이력"},{to:"/firmware",icon:Hv,label:"펌웨어"},{to:"/products",icon:Yk,label:"상품/가격"},{to:"/users",icon:Jk,label:"사용자"},{to:"/tenants",icon:eN,label:"테넌트 관리"},{to:"/audit",icon:Xk,label:"감사 로그"},{to:"/settings",icon:Vk,label:"시스템 설정"},{to:"/ai",icon:JT,label:"AI 분석"},{to:"/worklogs",icon:Kk,label:"업무일지"},{to:"/schedules",icon:Rk,label:"일정 관리"},{to:"/messages",icon:Fk,label:"쪽지"},{to:"/work-stats",icon:Pk,label:"업무 통계"}];function t5(){return d.jsxs("aside",{className:"w-56 bg-panel flex flex-col border-r border-edge flex-shrink-0",children:[d.jsxs("div",{className:"h-14 flex items-center px-4 border-b border-edge",children:[d.jsx("span",{className:"text-brand font-bold text-sm tracking-wide",children:"ESN"}),d.jsx("span",{className:"ml-2 text-xs text-gray-400",children:"ESL 통합 관리"})]}),d.jsx("nav",{className:"flex-1 overflow-y-auto py-3",children:e5.map(({to:e,icon:t,label:n})=>d.jsxs(kT,{to:e,className:({isActive:r})=>`flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${r?"bg-brand/15 text-brand border-r-2 border-brand":"text-gray-400 hover:text-white hover:bg-edge/50"}`,children:[d.jsx(t,{size:16}),n]},e))}),d.jsx("div",{className:"p-4 border-t border-edge text-xs text-gray-500",children:"zioinfo-esn v1.0"})]})}function n5(){const e=rp(),t=localStorage.getItem("esn_user")||"admin",n=localStorage.getItem("esn_role")||"ADMIN",r=localStorage.getItem("esn_tenant")||"ALL";function a(){localStorage.removeItem("esn_token"),localStorage.removeItem("esn_role"),localStorage.removeItem("esn_user"),localStorage.removeItem("esn_tenant"),e("/login")}return d.jsxs("header",{className:"h-14 bg-panel border-b border-edge flex items-center px-6 gap-4 flex-shrink-0",children:[d.jsx("div",{className:"flex-1"}),d.jsxs("span",{className:"text-xs text-gray-400",children:["테넌트: ",d.jsx("span",{className:"text-brand",children:r})]}),d.jsx("span",{className:"text-xs text-gray-400",children:"|"}),d.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[d.jsx(Zk,{size:14}),d.jsx("span",{children:t}),d.jsx("span",{className:"text-xs text-brand bg-brand/10 px-2 py-0.5 rounded",children:n})]}),d.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-gray-400 hover:text-white text-sm",children:[d.jsx(qk,{size:14}),"로그아웃"]})]})}function aN(e,t){return function(){return e.apply(t,arguments)}}const{toString:r5}=Object.prototype,{getPrototypeOf:_l}=Object,{iterator:Bc,toStringTag:iN}=Symbol,Rd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Lu=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Rd(n,t))return!0;n=_l(n)}return!1},a5=(e,t)=>e!=null&&Lu(e,t)?e[t]:void 0,Bb=(e=>t=>{const n=r5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hr=e=>(e=e.toLowerCase(),t=>Bb(t)===e),ip=e=>t=>typeof t===e,{isArray:eo}=Array,Tl=ip("undefined");function hs(e){return e!==null&&!Tl(e)&&e.constructor!==null&&!Tl(e.constructor)&&dn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oN=hr("ArrayBuffer");function i5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oN(e.buffer),t}const o5=ip("string"),dn=ip("function"),lN=ip("number"),ps=e=>e!==null&&typeof e=="object",l5=e=>e===!0||e===!1,Qf=e=>{if(!ps(e))return!1;const t=_l(e);return(t===null||t===Object.prototype||_l(t)===null)&&!Lu(e,iN)&&!Lu(e,Bc)},s5=e=>{if(!ps(e)||hs(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},u5=hr("Date"),c5=hr("File"),f5=e=>!!(e&&typeof e.uri<"u"),d5=e=>e&&typeof e.getParts<"u",h5=hr("Blob"),p5=hr("FileList"),y5=e=>ps(e)&&dn(e.pipe);function m5(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const KS=m5(),YS=typeof KS.FormData<"u"?KS.FormData:void 0,v5=e=>{if(!e)return!1;if(YS&&e instanceof YS)return!0;const t=_l(e);if(!t||t===Object.prototype||!dn(e.append))return!1;const n=Bb(e);return n==="formdata"||n==="object"&&dn(e.toString)&&e.toString()==="[object FormData]"},g5=hr("URLSearchParams"),[b5,x5,S5,w5]=["ReadableStream","Request","Response","Headers"].map(hr),O5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Uc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),eo(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(hs(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(r=0;r<o;r++)l=i[r],t.call(null,e[l],l,e)}}function sN(e,t){if(hs(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Ei=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uN=e=>!Tl(e)&&e!==Ei;function qv(...e){const{caseless:t,skipUndefined:n}=uN(this)&&this||{},r={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&sN(r,o)||o,s=Rd(r,l)?r[l]:void 0;Qf(s)&&Qf(i)?r[l]=qv(s,i):Qf(i)?r[l]=qv({},i):eo(i)?r[l]=i.slice():(!n||!Tl(i))&&(r[l]=i)};for(let i=0,o=e.length;i<o;i++){const l=e[i];if(!l||hs(l)||(Uc(l,a),typeof l!="object"||eo(l)))continue;const s=Object.getOwnPropertySymbols(l);for(let u=0;u<s.length;u++){const f=s[u];D5.call(l,f)&&a(l[f],f)}}return r}const A5=(e,t,n,{allOwnKeys:r}={})=>(Uc(t,(a,i)=>{n&&dn(a)?Object.defineProperty(e,i,{__proto__:null,value:aN(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),j5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),E5=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},_5=(e,t,n,r)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&_l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},T5=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},N5=e=>{if(!e)return null;if(eo(e))return e;let t=e.length;if(!lN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},C5=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_l(Uint8Array)),M5=(e,t)=>{const r=(e&&e[Bc]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},P5=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},R5=hr("HTMLFormElement"),$5=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:D5}=Object.prototype,k5=hr("RegExp"),cN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Uc(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},L5=e=>{cN(e,(t,n)=>{if(dn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(dn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},z5=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return eo(e)?r(e):r(String(e).split(t)),n},B5=()=>{},U5=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function I5(e){return!!(e&&dn(e.append)&&e[iN]==="FormData"&&e[Bc])}const H5=e=>{const t=new WeakSet,n=r=>{if(ps(r)){if(t.has(r))return;if(hs(r))return r;if(!("toJSON"in r)){t.add(r);const a=eo(r)?[]:{};return Uc(r,(i,o)=>{const l=n(i);!Tl(l)&&(a[o]=l)}),t.delete(r),a}}return r};return n(e)},q5=hr("AsyncFunction"),F5=e=>e&&(ps(e)||dn(e))&&dn(e.then)&&dn(e.catch),fN=((e,t)=>e?setImmediate:t?((n,r)=>(Ei.addEventListener("message",({source:a,data:i})=>{a===Ei&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ei.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",dn(Ei.postMessage)),G5=typeof queueMicrotask<"u"?queueMicrotask.bind(Ei):typeof process<"u"&&process.nextTick||fN,dN=e=>e!=null&&dn(e[Bc]),K5=e=>e!=null&&Lu(e,Bc)&&dN(e),N={isArray:eo,isArrayBuffer:oN,isBuffer:hs,isFormData:v5,isArrayBufferView:i5,isString:o5,isNumber:lN,isBoolean:l5,isObject:ps,isPlainObject:Qf,isEmptyObject:s5,isReadableStream:b5,isRequest:x5,isResponse:S5,isHeaders:w5,isUndefined:Tl,isDate:u5,isFile:c5,isReactNativeBlob:f5,isReactNative:d5,isBlob:h5,isRegExp:k5,isFunction:dn,isStream:y5,isURLSearchParams:g5,isTypedArray:C5,isFileList:p5,forEach:Uc,merge:qv,extend:A5,trim:O5,stripBOM:j5,inherits:E5,toFlatObject:_5,kindOf:Bb,kindOfTest:hr,endsWith:T5,toArray:N5,forEachEntry:M5,matchAll:P5,isHTMLForm:R5,hasOwnProperty:Rd,hasOwnProp:Rd,hasOwnInPrototypeChain:Lu,getSafeProp:a5,reduceDescriptors:cN,freezeMethods:L5,toObjectSet:z5,toCamelCase:$5,noop:B5,toFiniteNumber:U5,findKey:sN,global:Ei,isContextDefined:uN,isSpecCompliantForm:I5,toJSONObject:H5,isAsyncFn:q5,isThenable:F5,setImmediate:fN,asap:G5,isIterable:dN,isSafeIterable:K5},Y5=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),X5=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&Y5[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function V5(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Q5=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),W5=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ub(e,t){return N.isArray(e)?e.map(n=>Ub(n,t)):V5(String(e).replace(t,""))}const Z5=e=>Ub(e,Q5),J5=e=>Ub(e,W5);function hN(e){const t=Object.create(null);return N.forEach(e.toJSON(),(n,r)=>{t[r]=J5(n)}),t}const XS=Symbol("internals");function ks(e){return e&&String(e).trim().toLowerCase()}function Wf(e){return e===!1||e==null?e:N.isArray(e)?e.map(Wf):Z5(String(e))}function eL(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const tL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vy(e,t,n,r,a){if(N.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!N.isString(t)){if(N.isString(r))return t.indexOf(r)!==-1;if(N.isRegExp(r))return r.test(t)}}function nL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rL(e,t){const n=N.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}let Kt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const f=ks(s);if(!f)return;const c=N.findKey(a,f);(!c||a[c]===void 0||u===!0||u===void 0&&a[c]!==!1)&&(a[c||s]=Wf(l))}const o=(l,s)=>N.forEach(l,(u,f)=>i(u,f,s));if(N.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(N.isString(t)&&(t=t.trim())&&!tL(t))o(X5(t),n);else if(N.isObject(t)&&N.isSafeIterable(t)){let l=Object.create(null),s,u;for(const f of t){if(!N.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],N.hasOwnProp(l,u)?(s=l[u],l[u]=N.isArray(s)?[...s,f[1]]:[s,f[1]]):l[u]=f[1]}o(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=ks(t),t){const r=N.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return eL(a);if(N.isFunction(n))return n.call(this,a,r);if(N.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ks(t),t){const r=N.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=ks(o),o){const l=N.findKey(r,o);l&&(!n||Vy(r,r[l],l,n))&&(delete r[l],a=!0)}}return N.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Vy(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return N.forEach(this,(a,i)=>{const o=N.findKey(r,i);if(o){n[o]=Wf(a),delete n[i];return}const l=t?nL(i):String(i).trim();l!==i&&delete n[i],n[l]=Wf(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return N.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&N.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[XS]=this[XS]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=ks(o);r[l]||(rL(a,o),r[l]=!0)}return N.isArray(t)?t.forEach(i):i(t),this}};Kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(Kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});N.freezeMethods(Kt);const aL="[REDACTED ****]";function iL(e){if(N.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(N.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function oL(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||N.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Kt&&(i=i.toJSON()),r.push(i);let o;if(N.isArray(i))o=[],i.forEach((l,s)=>{const u=a(l);N.isUndefined(u)||(o[s]=u)});else{if(!N.isPlainObject(i)&&iL(i))return r.pop(),i;o=Object.create(null);for(const[l,s]of Object.entries(i)){const u=n.has(l.toLowerCase())?aL:a(s);N.isUndefined(u)||(o[l]=u)}}return r.pop(),o};return a(e)}let Q=class pN extends Error{static from(t,n,r,a,i,o){const l=new pN(t.message,n||t.code,r,a,i);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),o&&Object.assign(l,o),l}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&N.hasOwnProp(t,"redact")?t.redact:void 0,r=N.isArray(n)&&n.length>0?oL(t,n):N.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Q.ERR_BAD_OPTION="ERR_BAD_OPTION";Q.ECONNABORTED="ECONNABORTED";Q.ETIMEDOUT="ETIMEDOUT";Q.ECONNREFUSED="ECONNREFUSED";Q.ERR_NETWORK="ERR_NETWORK";Q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Q.ERR_DEPRECATED="ERR_DEPRECATED";Q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Q.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Q.ERR_CANCELED="ERR_CANCELED";Q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Q.ERR_INVALID_URL="ERR_INVALID_URL";Q.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const lL=null,yN=100;function Fv(e){return N.isPlainObject(e)||N.isArray(e)}function mN(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function Qy(e,t,n){return e?e.concat(t).map(function(a,i){return a=mN(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function sL(e){return N.isArray(e)&&!e.some(Fv)}const uL=N.toFlatObject(N,{},null,function(t){return/^is[A-Z]/.test(t)});function op(e,t,n){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!N.isUndefined(x[m])});const r=n.metaTokens,a=n.visitor||b,i=n.dots,o=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,s=n.maxDepth===void 0?yN:n.maxDepth,u=l&&N.isSpecCompliantForm(t),f=[];if(!N.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(N.isDate(y))return y.toISOString();if(N.isBoolean(y))return y.toString();if(!u&&N.isBlob(y))throw new Q("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(y)||N.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y){if(y>s)throw new Q("Object is too deeply nested ("+y+" levels). Max depth: "+s,Q.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(y,m){if(s===1/0)return JSON.stringify(y);const x=[];return JSON.stringify(y,function(S,O){if(!N.isObject(O))return O;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(O),h(m+x.length-1),O})}function b(y,m,x){let w=y;if(N.isReactNative(t)&&N.isReactNativeBlob(y))return t.append(Qy(x,m,i),c(y)),!1;if(y&&!x&&typeof y=="object"){if(N.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=p(y,1);else if(N.isArray(y)&&sL(y)||(N.isFileList(y)||N.endsWith(m,"[]"))&&(w=N.toArray(y)))return m=mN(m),w.forEach(function(O,A){!(N.isUndefined(O)||O===null)&&t.append(o===!0?Qy([m],A,i):o===null?m:m+"[]",c(O))}),!1}return Fv(y)?!0:(t.append(Qy(x,m,i),c(y)),!1)}const v=Object.assign(uL,{defaultVisitor:b,convertValue:c,isVisitable:Fv});function g(y,m,x=0){if(!N.isUndefined(y)){if(h(x),f.indexOf(y)!==-1)throw new Error("Circular reference detected in "+m.join("."));f.push(y),N.forEach(y,function(S,O){(!(N.isUndefined(S)||S===null)&&a.call(t,S,N.isString(O)?O.trim():O,m,v))===!0&&g(S,m?m.concat(O):[O],x+1)}),f.pop()}}if(!N.isObject(e))throw new TypeError("data must be an object");return g(e),t}function VS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Ib(e,t){this._pairs=[],e&&op(e,this,t)}const vN=Ib.prototype;vN.append=function(t,n){this._pairs.push([t,n])};vN.toString=function(t){const n=t?function(r){return t.call(this,r,VS)}:VS;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function cL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function gN(e,t,n){if(!t)return e;const r=N.isFunction(n)?{serialize:n}:n,a=N.getSafeProp(r,"encode")||cL,i=N.getSafeProp(r,"serialize");let o;if(i?o=i(t,r):o=N.isURLSearchParams(t)?t.toString():new Ib(t,r).toString(a),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class QS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},fL=typeof URLSearchParams<"u"?URLSearchParams:Ib,dL=typeof FormData<"u"?FormData:null,hL=typeof Blob<"u"?Blob:null,pL={isBrowser:!0,classes:{URLSearchParams:fL,FormData:dL,Blob:hL},protocols:["http","https","file","blob","url","data"]},qb=typeof window<"u"&&typeof document<"u",Gv=typeof navigator=="object"&&navigator||void 0,yL=qb&&(!Gv||["ReactNative","NativeScript","NS"].indexOf(Gv.product)<0),mL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vL=qb&&window.location.href||"http://localhost",gL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qb,hasStandardBrowserEnv:yL,hasStandardBrowserWebWorkerEnv:mL,navigator:Gv,origin:vL},Symbol.toStringTag,{value:"Module"})),zt={...gL,...pL};function bL(e,t){return op(e,new zt.classes.URLSearchParams,{visitor:function(n,r,a,i){return zt.isNode&&N.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const WS=yN;function bN(e){if(e>WS)throw new Q("FormData field is too deeply nested ("+e+" levels). Max depth: "+WS,Q.ERR_FORM_DATA_DEPTH_EXCEEDED)}function xL(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)bN(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function SL(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function xN(e){function t(n,r,a,i){bN(i);let o=n[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=i>=n.length;return o=!o&&N.isArray(a)?a.length:o,s?(N.hasOwnProp(a,o)?a[o]=N.isArray(a[o])?a[o].concat(r):[a[o],r]:a[o]=r,!l):((!N.hasOwnProp(a,o)||!N.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&N.isArray(a[o])&&(a[o]=SL(a[o])),!l)}if(N.isFormData(e)&&N.isFunction(e.entries)){const n={};return N.forEachEntry(e,(r,a)=>{t(xL(r),a,n,0)}),n}return null}const So=(e,t)=>e!=null&&N.hasOwnProp(e,t)?e[t]:void 0;function wL(e,t,n){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ic={transitional:Hb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=N.isObject(t);if(i&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return a?JSON.stringify(xN(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t)||N.isReadableStream(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const s=So(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return bL(t,s).toString();if((l=N.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=So(this,"env"),f=u&&u.FormData;return op(l?{"files[]":t}:t,f&&new f,s)}}return i||a?(n.setContentType("application/json",!1),wL(t)):t}],transformResponse:[function(t){const n=So(this,"transitional")||Ic.transitional,r=n&&n.forcedJSONParsing,a=So(this,"responseType"),i=a==="json";if(N.isResponse(t)||N.isReadableStream(t))return t;if(t&&N.isString(t)&&(r&&!a||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,So(this,"parseReviver"))}catch(s){if(l)throw s.name==="SyntaxError"?Q.from(s,Q.ERR_BAD_RESPONSE,this,null,So(this,"response")):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch","query"],e=>{Ic.headers[e]={}});function Wy(e,t){const n=this||Ic,r=t||n,a=Kt.from(r.headers);let i=r.data;return N.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function SN(e){return!!(e&&e.__CANCEL__)}let Hc=class extends Q{constructor(t,n,r){super(t??"canceled",Q.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function wN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,n.status>=400&&n.status<500?Q.ERR_BAD_REQUEST:Q.ERR_BAD_RESPONSE,n.config,n.request,n))}function OL(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function AL(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),f=r[i];o||(o=u),n[a]=s,r[a]=u;let c=i,h=0;for(;c!==a;)h+=n[c++],c=c%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const p=f&&u-f;return p?Math.round(h*1e3/p):void 0}}function jL(e,t){let n=0,r=1e3/t,a,i;const o=(u,f=Date.now())=>{n=f,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-n;c>=r?o(u,f):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-c)))},()=>a&&o(a)]}const $d=(e,t,n=3)=>{let r=0;const a=AL(50,250);return jL(i=>{if(!i||typeof i.loaded!="number")return;const o=i.loaded,l=i.lengthComputable?i.total:void 0,s=l!=null?Math.min(o,l):o,u=Math.max(0,s-r),f=a(u);r=Math.max(r,s);const c={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:f||void 0,estimated:f&&l?(l-s)/f:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(c)},n)},ZS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},JS=e=>(...t)=>N.asap(()=>e(...t)),EL=zt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,zt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(zt.origin),zt.navigator&&/(msie|trident)/i.test(zt.navigator.userAgent)):()=>!0,_L=zt.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];N.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),N.isString(r)&&l.push(`path=${r}`),N.isString(a)&&l.push(`domain=${a}`),i===!0&&l.push("secure"),N.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function TL(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function NL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const CL=/^https?:(?!\/\/)/i,ML=/[\t\n\r]/g;function PL(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function RL(e){return PL(e).replace(ML,"")}function ew(e,t){if(typeof e=="string"&&CL.test(RL(e)))throw new Q('Invalid URL: missing "//" after protocol',Q.ERR_INVALID_URL,t)}function ON(e,t,n,r){ew(t,r);let a=!TL(t);return e&&(a||n===!1)?(ew(e,r),NL(e,t)):t}const tw=e=>e instanceof Kt?{...e}:e;function to(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,c,h,p){return N.isPlainObject(f)&&N.isPlainObject(c)?N.merge.call({caseless:p},f,c):N.isPlainObject(c)?N.merge({},c):N.isArray(c)?c.slice():c}function a(f,c,h,p){if(N.isUndefined(c)){if(!N.isUndefined(f))return r(void 0,f,h,p)}else return r(f,c,h,p)}function i(f,c){if(!N.isUndefined(c))return r(void 0,c)}function o(f,c){if(N.isUndefined(c)){if(!N.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function l(f){const c=N.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!N.isUndefined(c))if(N.isPlainObject(c)){if(N.hasOwnProp(c,f))return c[f]}else return;const h=N.hasOwnProp(e,"transitional")?e.transitional:void 0;if(N.isPlainObject(h)&&N.hasOwnProp(h,f))return h[f]}function s(f,c,h){if(N.hasOwnProp(t,h))return r(f,c);if(N.hasOwnProp(e,h))return r(void 0,f)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(f,c,h)=>a(tw(f),tw(c),h,!0)};return N.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const h=N.hasOwnProp(u,c)?u[c]:a,p=N.hasOwnProp(e,c)?e[c]:void 0,b=N.hasOwnProp(t,c)?t[c]:void 0,v=h(p,b,c);N.isUndefined(v)&&h!==s||(n[c]=v)}),N.hasOwnProp(t,"validateStatus")&&N.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(N.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const $L=["content-type","content-length"];function DL(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{$L.includes(r.toLowerCase())&&e.set(r,a)})}const kL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function AN(e){const t=to({},e),n=h=>N.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),o=n("xsrfCookieName");let l=n("headers");const s=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),c=n("url");if(t.headers=l=Kt.from(l),t.url=gN(ON(u,c,f,t),n("params"),n("paramsSerializer")),s){const h=N.getSafeProp(s,"username")||"",p=N.getSafeProp(s,"password")||"";l.set("Authorization","Basic "+btoa(h+":"+(p?kL(p):"")))}if(N.isFormData(r)&&(zt.hasStandardBrowserEnv||zt.hasStandardBrowserWebWorkerEnv||N.isReactNative(r)?l.setContentType(void 0):N.isFunction(r.getHeaders)&&DL(l,r.getHeaders(),n("formDataHeaderPolicy"))),zt.hasStandardBrowserEnv&&(N.isFunction(a)&&(a=a(t)),a===!0||a==null&&EL(t.url))){const p=i&&o&&_L.read(o);p&&l.set(i,p)}return t}const LL=typeof XMLHttpRequest<"u",zL=LL&&function(e){return new Promise(function(n,r){const a=AN(e);let i=a.data;const o=Kt.from(a.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=a,f,c,h,p,b;function v(){p&&p(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const x=Kt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:x,config:e,request:g};wN(function(A){n(A),v()},function(A){r(A),v()},S),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(y)},g.onabort=function(){g&&(r(new Q("Request aborted",Q.ECONNABORTED,e,g)),v(),g=null)},g.onerror=function(w){const S=w&&w.message?w.message:"Network Error",O=new Q(S,Q.ERR_NETWORK,e,g);O.event=w||null,r(O),v(),g=null},g.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||Hb;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new Q(w,S.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,g)),v(),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&N.forEach(hN(o),function(w,S){g.setRequestHeader(S,w)}),N.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),l&&l!=="json"&&(g.responseType=a.responseType),u&&([h,b]=$d(u,!0),g.addEventListener("progress",h)),s&&g.upload&&([c,p]=$d(s),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(f=x=>{g&&(r(!x||x.type?new Hc(null,e,g):x),g.abort(),v(),g=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const m=OL(a.url);if(m&&!zt.protocols.includes(m)){r(new Q("Unsupported protocol "+m+":",Q.ERR_BAD_REQUEST,e));return}g.send(i||null)})},BL=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(s){if(!r){r=!0,o();const u=s instanceof Error?s:this.reason;n.abort(u instanceof Q?u:new Hc(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new Q(`timeout of ${t}ms exceeded`,Q.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s.unsubscribe?s.unsubscribe(a):s.removeEventListener("abort",a)}),e=null)};e.forEach(s=>s.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>N.asap(o),l},UL=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},IL=async function*(e,t){for await(const n of HL(e))yield*UL(n,t)},HL=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},nw=(e,t,n,r)=>{const a=IL(e,t);let i=0,o,l=s=>{o||(o=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:u,value:f}=await a.next();if(u){l(),s.close();return}let c=f.byteLength;if(n){let h=i+=c;n(h)}s.enqueue(new Uint8Array(f))}catch(u){throw l(u),u}},cancel(s){return l(s),a.return()}},{highWaterMark:2})},Dd=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,qL=(e,t,n)=>t+2<n&&Dd(e.charCodeAt(t+1))&&Dd(e.charCodeAt(t+2));function FL(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const l=r.length;for(let p=0;p<l;p++)if(r.charCodeAt(p)===37&&p+2<l){const b=r.charCodeAt(p+1),v=r.charCodeAt(p+2);Dd(b)&&Dd(v)&&(o-=2,p+=2)}let s=0,u=l-1;const f=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);u>=0&&(r.charCodeAt(u)===61?(s++,u--):f(u)&&(s++,u-=3)),s===1&&u>=0&&(r.charCodeAt(u)===61||f(u))&&s++;const h=Math.floor(o/4)*3-(s||0);return h>0?h:0}let i=0;for(let o=0,l=r.length;o<l;o++){const s=r.charCodeAt(o);if(s===37&&qL(r,o,l))i+=1,o+=2;else if(s<128)i+=1;else if(s<2048)i+=2;else if(s>=55296&&s<=56319&&o+1<l){const u=r.charCodeAt(o+1);u>=56320&&u<=57343?(i+=4,o++):i+=3}else i+=3}return i}const Fb="1.18.0",rw=64*1024,{isFunction:vf}=N,GL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),aw=e=>{if(!N.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},iw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},KL=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},YL=e=>{const t=N.global!==void 0&&N.global!==null?N.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=N.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,l=a?vf(a):typeof fetch=="function",s=vf(i),u=vf(o);if(!l)return!1;const f=l&&vf(n),c=l&&(typeof r=="function"?(y=>m=>y.encode(m))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),h=s&&f&&iw(()=>{let y=!1;const m=new i(zt.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),x=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),y&&!x}),p=u&&f&&iw(()=>N.isReadableStream(new o("").body)),b={stream:p&&(y=>y.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!b[y]&&(b[y]=(m,x)=>{let w=m&&m[y];if(w)return w.call(m);throw new Q(`Response type '${y}' is not supported`,Q.ERR_NOT_SUPPORT,x)})});const v=async y=>{if(y==null)return 0;if(N.isBlob(y))return y.size;if(N.isSpecCompliantForm(y))return(await new i(zt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(N.isArrayBufferView(y)||N.isArrayBuffer(y))return y.byteLength;if(N.isURLSearchParams(y)&&(y=y+""),N.isString(y))return(await c(y)).byteLength},g=async(y,m)=>{const x=N.toFiniteNumber(y.getContentLength());return x??v(m)};return async y=>{let{url:m,method:x,data:w,signal:S,cancelToken:O,timeout:A,onDownloadProgress:E,onUploadProgress:_,responseType:C,headers:$,withCredentials:P="same-origin",fetchOptions:B,maxContentLength:L,maxBodyLength:D}=AN(y);const R=N.isNumber(L)&&L>-1,k=N.isNumber(D)&&D>-1,U=se=>N.hasOwnProp(y,se)?y[se]:void 0;let q=a||fetch;C=C?(C+"").toLowerCase():"text";let F=BL([S,O&&O.toAbortSignal()],A),V=null;const G=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let ee,he=null;const $e=()=>new Q("Request body larger than maxBodyLength limit",Q.ERR_BAD_REQUEST,y,V);try{let se;const Pt=U("auth");if(Pt){const J=N.getSafeProp(Pt,"username")||"",De=N.getSafeProp(Pt,"password")||"";se={username:J,password:De}}if(KL(m)){const J=new URL(m,zt.origin);if(!se&&(J.username||J.password)){const De=aw(J.username),Rt=aw(J.password);se={username:De,password:Rt}}(J.username||J.password)&&(J.username="",J.password="",m=J.href)}if(se&&($.delete("authorization"),$.set("Authorization","Basic "+btoa(GL((se.username||"")+":"+(se.password||""))))),R&&typeof m=="string"&&m.startsWith("data:")&&FL(m)>L)throw new Q("maxContentLength size of "+L+" exceeded",Q.ERR_BAD_RESPONSE,y,V);if(k&&x!=="get"&&x!=="head"){const J=await v(w);if(typeof J=="number"&&isFinite(J)&&(ee=J,J>D))throw $e()}const vt=k&&(N.isReadableStream(w)||N.isStream(w)),X=(J,De,Rt)=>nw(J,rw,nn=>{if(k&&nn>D)throw he=$e();De&&De(nn)},Rt);if(h&&x!=="get"&&x!=="head"&&(_||vt)){if(ee=ee??await g($,w),ee!==0||vt){let J=new i(m,{method:"POST",body:w,duplex:"half"}),De;if(N.isFormData(w)&&(De=J.headers.get("content-type"))&&$.setContentType(De),J.body){const[Rt,nn]=_&&ZS(ee,$d(JS(_)))||[];w=X(J.body,Rt,nn)}}}else if(vt&&!s&&f&&x!=="get"&&x!=="head")w=X(w);else if(vt&&s&&!h&&x!=="get"&&x!=="head")throw new Q("Stream request bodies are not supported by the current fetch implementation",Q.ERR_NOT_SUPPORT,y,V);N.isString(P)||(P=P?"include":"omit");const ie=s&&"credentials"in i.prototype;if(N.isFormData(w)){const J=$.getContentType();J&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&$.delete("content-type")}$.set("User-Agent","axios/"+Fb,!1);const ue={...B,signal:F,method:x.toUpperCase(),headers:hN($.normalize()),body:w,duplex:"half",credentials:ie?P:void 0};V=s&&new i(m,ue);let H=await(s?q(V,B):q(m,ue));const Ke=Kt.from(H.headers);if(R){const J=N.toFiniteNumber(Ke.getContentLength());if(J!=null&&J>L)throw new Q("maxContentLength size of "+L+" exceeded",Q.ERR_BAD_RESPONSE,y,V)}const me=p&&(C==="stream"||C==="response");if(p&&H.body&&(E||R||me&&G)){const J={};["status","statusText","headers"].forEach(vn=>{J[vn]=H[vn]});const De=N.toFiniteNumber(Ke.getContentLength()),[Rt,nn]=E&&ZS(De,$d(JS(E),!0))||[];let di=0;const Cr=vn=>{if(R&&(di=vn,di>L))throw new Q("maxContentLength size of "+L+" exceeded",Q.ERR_BAD_RESPONSE,y,V);Rt&&Rt(vn)};H=new o(nw(H.body,rw,Cr,()=>{nn&&nn(),G&&G()}),J)}C=C||"text";let Te=await b[N.findKey(b,C)||"text"](H,y);if(R&&!p&&!me){let J;if(Te!=null&&(typeof Te.byteLength=="number"?J=Te.byteLength:typeof Te.size=="number"?J=Te.size:typeof Te=="string"&&(J=typeof r=="function"?new r().encode(Te).byteLength:Te.length)),typeof J=="number"&&J>L)throw new Q("maxContentLength size of "+L+" exceeded",Q.ERR_BAD_RESPONSE,y,V)}return!me&&G&&G(),await new Promise((J,De)=>{wN(J,De,{data:Te,headers:Kt.from(H.headers),status:H.status,statusText:H.statusText,config:y,request:V})})}catch(se){if(G&&G(),F&&F.aborted&&F.reason instanceof Q){const Pt=F.reason;throw Pt.config=y,V&&(Pt.request=V),se!==Pt&&(Pt.cause=se),Pt}throw he?(V&&!he.request&&(he.request=V),he):se instanceof Q?(V&&!se.request&&(se.request=V),se):se&&se.name==="TypeError"&&/Load failed|fetch/i.test(se.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,y,V,se&&se.response),{cause:se.cause||se}):Q.from(se,se&&se.code,y,V,se&&se.response)}}},XL=new Map,jN=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let o=i.length,l=o,s,u,f=XL;for(;l--;)s=i[l],u=f.get(s),u===void 0&&f.set(s,u=l?new Map:YL(t)),f=u;return u};jN();const Gb={http:lL,xhr:zL,fetch:{get:jN}};N.forEach(Gb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ow=e=>`- ${e}`,VL=e=>N.isFunction(e)||e===null||e===!1;function QL(e,t){e=N.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let o=0;o<n;o++){r=e[o];let l;if(a=r,!VL(r)&&(a=Gb[(l=String(r)).toLowerCase()],a===void 0))throw new Q(`Unknown adapter '${l}'`);if(a&&(N.isFunction(a)||(a=a.get(t))))break;i[l||"#"+o]=a}if(!a){const o=Object.entries(i).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
`+o.map(ow).join(`
`):" "+ow(o[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a}const EN={getAdapter:QL,adapters:Gb};function Zy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hc(null,e)}function lw(e){return Zy(e),e.headers=Kt.from(e.headers),e.data=Wy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),EN.getAdapter(e.adapter||Ic.adapter,e)(e).then(function(r){Zy(e),e.response=r;try{r.data=Wy.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Kt.from(r.headers),r},function(r){if(!SN(r)&&(Zy(e),r&&r.response)){e.response=r.response;try{r.response.data=Wy.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Kt.from(r.response.headers)}return Promise.reject(r)})}const lp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sw={};lp.transitional=function(t,n,r){function a(i,o){return"[Axios v"+Fb+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new Q(a(o," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!sw[o]&&(sw[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};lp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function WL(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const l=e[i],s=l===void 0||o(l,i,e);if(s!==!0)throw new Q("option "+i+" must be "+s,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+i,Q.ERR_BAD_OPTION)}}const Zf={assertOptions:WL,validators:lp},It=Zf.validators;let Gi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new QS,response:new QS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const o=a.stack.indexOf(`
`);return o===-1?"":a.stack.slice(o+1)})();try{if(!r.stack)r.stack=i;else if(i){const o=i.indexOf(`
`),l=o===-1?-1:i.indexOf(`
`,o+1),s=l===-1?"":i.slice(l+1);String(r.stack).endsWith(s)||(r.stack+=`
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=to(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Zf.assertOptions(r,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean),legacyInterceptorReqResOrdering:It.transitional(It.boolean),advertiseZstdAcceptEncoding:It.transitional(It.boolean),validateStatusUndefinedResolves:It.transitional(It.boolean)},!1),a!=null&&(N.isFunction(a)?n.paramsSerializer={serialize:a}:Zf.assertOptions(a,{encode:It.function,serialize:It.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Zf.assertOptions(n,{baseUrl:It.spelling("baseURL"),withXsrfToken:It.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&N.merge(i.common,i[n.method]);i&&N.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete i[b]}),n.headers=Kt.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;s=s&&v.synchronous;const g=n.transitional||Hb;g&&g.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let f,c=0,h;if(!s){const b=[lw.bind(this),void 0];for(b.unshift(...l),b.push(...u),h=b.length,f=Promise.resolve(n);c<h;)f=f.then(b[c++],b[c++]);return f}h=l.length;let p=n;for(;c<h;){const b=l[c++],v=l[c++];try{p=b(p)}catch(g){v.call(this,g);break}}try{f=lw.call(this,p)}catch(b){return Promise.reject(b)}for(c=0,h=u.length;c<h;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=to(this.defaults,t);const n=ON(t.baseURL,t.url,t.allowAbsoluteUrls,t);return gN(n,t.params,t.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(t){Gi.prototype[t]=function(n,r){return this.request(to(r||{},{method:t,url:n,data:r&&N.hasOwnProp(r,"data")?r.data:void 0}))}});N.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,o,l){return this.request(to(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Gi.prototype[t]=n(),t!=="query"&&(Gi.prototype[t+"Form"]=n(!0))});let ZL=class _N{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new Hc(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _N(function(a){t=a}),cancel:t}}};function JL(e){return function(n){return e.apply(null,n)}}function ez(e){return N.isObject(e)&&e.isAxiosError===!0}const Kv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Kv).forEach(([e,t])=>{Kv[t]=e});function TN(e){const t=new Gi(e),n=aN(Gi.prototype.request,t);return N.extend(n,Gi.prototype,t,{allOwnKeys:!0}),N.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return TN(to(e,a))},n}const ct=TN(Ic);ct.Axios=Gi;ct.CanceledError=Hc;ct.CancelToken=ZL;ct.isCancel=SN;ct.VERSION=Fb;ct.toFormData=op;ct.AxiosError=Q;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=JL;ct.isAxiosError=ez;ct.mergeConfig=to;ct.AxiosHeaders=Kt;ct.formToJSON=e=>xN(N.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=EN.getAdapter;ct.HttpStatusCode=Kv;ct.default=ct;const{Axios:Xue,AxiosError:Vue,CanceledError:Que,isCancel:Wue,CancelToken:Zue,VERSION:Jue,all:ece,Cancel:tce,isAxiosError:nce,spread:rce,toFormData:ace,AxiosHeaders:ice,HttpStatusCode:oce,formToJSON:lce,getAdapter:sce,mergeConfig:uce,create:cce}=ct,Z=ct.create({baseURL:""});Z.interceptors.request.use(e=>{const t=localStorage.getItem("esn_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});Z.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("esn_token"),location.pathname!=="/login"&&(location.href="/login")),Promise.reject(e)});const je=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),tz=(e,t)=>Z.post("/api/auth/login",{username:e,password:t}),nz=()=>Z.get("/api/auth/me"),rz=e=>je(Z.get(`/api/dashboard${e?`?tenantCode=${e}`:""}`)),az=()=>je(Z.get("/api/tenants")),iz=e=>je(Z.post("/api/tenants",e)),oz=(e,t)=>je(Z.put(`/api/tenants/${e}`,t)),lz=e=>Z.delete(`/api/tenants/${e}`),sz=e=>je(Z.get("/api/stores",{params:e})),uz=e=>je(Z.post("/api/stores",e)),cz=(e,t)=>je(Z.put(`/api/stores/${e}`,t)),fz=e=>Z.delete(`/api/stores/${e}`),dz=e=>je(Z.get("/api/templates",{params:e})),hz=e=>je(Z.post("/api/templates",e)),pz=(e,t)=>je(Z.put(`/api/templates/${e}`,t)),yz=e=>Z.delete(`/api/templates/${e}`),mz=e=>je(Z.get("/api/pos-cvt",{params:e})),vz=e=>je(Z.put(`/api/pos-cvt/${e}/process`)),gz=e=>je(Z.put(`/api/pos-cvt/${e}/ignore`)),bz=e=>je(Z.get("/api/alarms",{params:e})),xz=(e,t)=>je(Z.put(`/api/alarms/${e}/resolve`,{resolution:t})),Sz=e=>Z.delete(`/api/alarms/${e}`),wz=e=>je(Z.get("/api/hcore",{params:e})),Oz=(e,t)=>je(Z.put(`/api/hcore/${e}/status`,{status:t})),Az=e=>je(Z.get("/api/works",{params:e})),jz=e=>je(Z.get("/api/firmware",{params:e})),Ez=e=>je(Z.post("/api/firmware",e)),_z=e=>Z.delete(`/api/firmware/${e}`),Tz=e=>je(Z.get("/api/users",{params:e})),Nz=e=>je(Z.post("/api/users",e)),Cz=(e,t)=>je(Z.put(`/api/users/${e}`,t)),Mz=e=>Z.delete(`/api/users/${e}`),Pz=e=>je(Z.get("/api/products",{params:e})),Rz=e=>je(Z.post("/api/products",e)),$z=(e,t)=>je(Z.put(`/api/products/${e}`,t)),Dz=e=>Z.delete(`/api/products/${e}`),kz=e=>je(Z.get("/api/admin/audit",{params:e})),Lz=e=>je(Z.get("/api/admin/settings",{params:{}})),zz=(e,t)=>je(Z.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t})),Bz=e=>je(Z.post("/api/ai/analyze-alarm",e)),Uz=e=>je(Z.post("/api/ai/classify-pos",e));function Iz(){const e=localStorage.getItem("esn_token");return j.useEffect(()=>{e&&nz().then(t=>{var r;const n=((r=t.data)==null?void 0:r.data)||{};n.role&&localStorage.setItem("esn_role",n.role),n.username&&localStorage.setItem("esn_user",n.username),n.tenant&&localStorage.setItem("esn_tenant",n.tenant)}).catch(()=>{})},[e]),e?d.jsxs("div",{className:"flex h-screen bg-ink",children:[d.jsx(t5,{}),d.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[d.jsx(n5,{}),d.jsx("main",{className:"flex-1 overflow-auto p-6",children:d.jsx(c4,{})})]})]}):d.jsx(PT,{to:"/login",replace:!0})}const Hz=(e,t)=>Z.post("/api/auth/verify",{verifyToken:e,code:t}),qz=e=>Z.post("/api/messages",e),Fz=e=>Z.get("/api/messages/sent",{params:e}),Gz=e=>Z.get(`/api/messages/sent/${e}`),Kz=e=>Z.get("/api/messages/received",{params:e}),Yz=e=>Z.get(`/api/messages/received/${e}`),Xz=e=>Z.get("/api/schedules",{params:e}),Vz=e=>Z.post("/api/schedules",e),Qz=e=>Z.get(`/api/schedules/${e}`),Wz=e=>Z.delete(`/api/schedules/${e}`),Zz=e=>Z.get("/api/worklogs",{params:e}),Jz=e=>Z.get("/api/worklogs/dashboard/progress",{params:e}),e8=e=>Z.post("/api/worklogs",e),t8=e=>Z.get(`/api/worklogs/${e}`),n8=e=>Z.delete(`/api/worklogs/${e}`),r8=(e,t)=>Z.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),a8=e=>Z.get("/api/stats/personal-work",{params:e}),i8=e=>Z.get("/api/stats/company-work",{params:e});function o8(){const e=rp(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,f]=j.useState("login"),[c,h]=j.useState(""),[p,b]=j.useState(""),[v,g]=j.useState("");function y(w){localStorage.setItem("esn_token",w),localStorage.setItem("esn_user",t),e("/dashboard")}async function m(w){var S;w.preventDefault(),s(!0),o("");try{const A=(S=(await tz(t,r)).data)==null?void 0:S.data;if((A==null?void 0:A.twofa)==="true")h(A.verifyToken),b(A.maskedEmail||""),f("verify");else{if(!(A!=null&&A.token))throw new Error("토큰 없음");y(A.token)}}catch{o("아이디/비밀번호가 올바르지 않거나 계정이 잠겼습니다.")}finally{s(!1)}}async function x(w){var S,O;w.preventDefault(),s(!0),o("");try{const A=await Hz(c,v);y((O=(S=A.data)==null?void 0:S.data)==null?void 0:O.token)}catch{o("인증 코드가 올바르지 않거나 만료되었습니다.")}finally{s(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"GUARDiA ESN"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:u==="login"?"ESL 통합 관리 플랫폼":"2차 인증"})]}),u==="login"?d.jsxs("form",{onSubmit:m,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),d.jsx("input",{value:t,onChange:w=>n(w.target.value),placeholder:"admin",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호"}),d.jsx("input",{type:"password",value:r,onChange:w=>a(w.target.value),placeholder:"••••••••",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsx("p",{className:"text-red-400 text-xs",children:i}),d.jsx("button",{type:"submit",disabled:l,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:l?"로그인 중...":"로그인"})]}):d.jsxs("form",{onSubmit:x,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:p?`${p} 로 발송된 인증코드를 입력하세요.`:"발송된 인증코드를 입력하세요."}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"인증코드 6자리"}),d.jsx("input",{inputMode:"numeric",maxLength:6,value:v,onChange:w=>g(w.target.value),placeholder:"000000",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white text-center tracking-[0.4em] placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsx("p",{className:"text-red-400 text-xs",children:i}),d.jsx("button",{type:"submit",disabled:l,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:l?"인증 중...":"인증하고 로그인"}),d.jsx("button",{type:"button",onClick:()=>{f("login"),g(""),o("")},className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"뒤로"})]})]})})}function NN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=NN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pe(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=NN(e))&&(r&&(r+=" "),r+=t);return r}var l8=Array.isArray,mn=l8,s8=typeof Wc=="object"&&Wc&&Wc.Object===Object&&Wc,CN=s8,u8=CN,c8=typeof self=="object"&&self&&self.Object===Object&&self,f8=u8||c8||Function("return this")(),Nr=f8,d8=Nr,h8=d8.Symbol,qc=h8,uw=qc,MN=Object.prototype,p8=MN.hasOwnProperty,y8=MN.toString,Ls=uw?uw.toStringTag:void 0;function m8(e){var t=p8.call(e,Ls),n=e[Ls];try{e[Ls]=void 0;var r=!0}catch{}var a=y8.call(e);return r&&(t?e[Ls]=n:delete e[Ls]),a}var v8=m8,g8=Object.prototype,b8=g8.toString;function x8(e){return b8.call(e)}var S8=x8,cw=qc,w8=v8,O8=S8,A8="[object Null]",j8="[object Undefined]",fw=cw?cw.toStringTag:void 0;function E8(e){return e==null?e===void 0?j8:A8:fw&&fw in Object(e)?w8(e):O8(e)}var pa=E8;function _8(e){return e!=null&&typeof e=="object"}var ya=_8,T8=pa,N8=ya,C8="[object Symbol]";function M8(e){return typeof e=="symbol"||N8(e)&&T8(e)==C8}var ys=M8,P8=mn,R8=ys,$8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D8=/^\w*$/;function k8(e,t){if(P8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||R8(e)?!0:D8.test(e)||!$8.test(e)||t!=null&&e in Object(t)}var Kb=k8;function L8(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var li=L8;const ms=Be(li);var z8=pa,B8=li,U8="[object AsyncFunction]",I8="[object Function]",H8="[object GeneratorFunction]",q8="[object Proxy]";function F8(e){if(!B8(e))return!1;var t=z8(e);return t==I8||t==H8||t==U8||t==q8}var Yb=F8;const oe=Be(Yb);var G8=Nr,K8=G8["__core-js_shared__"],Y8=K8,Jy=Y8,dw=function(){var e=/[^.]+$/.exec(Jy&&Jy.keys&&Jy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function X8(e){return!!dw&&dw in e}var V8=X8,Q8=Function.prototype,W8=Q8.toString;function Z8(e){if(e!=null){try{return W8.call(e)}catch{}try{return e+""}catch{}}return""}var PN=Z8,J8=Yb,e6=V8,t6=li,n6=PN,r6=/[\\^$.*+?()[\]{}|]/g,a6=/^\[object .+?Constructor\]$/,i6=Function.prototype,o6=Object.prototype,l6=i6.toString,s6=o6.hasOwnProperty,u6=RegExp("^"+l6.call(s6).replace(r6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c6(e){if(!t6(e)||e6(e))return!1;var t=J8(e)?u6:a6;return t.test(n6(e))}var f6=c6;function d6(e,t){return e==null?void 0:e[t]}var h6=d6,p6=f6,y6=h6;function m6(e,t){var n=y6(e,t);return p6(n)?n:void 0}var po=m6,v6=po,g6=v6(Object,"create"),sp=g6,hw=sp;function b6(){this.__data__=hw?hw(null):{},this.size=0}var x6=b6;function S6(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var w6=S6,O6=sp,A6="__lodash_hash_undefined__",j6=Object.prototype,E6=j6.hasOwnProperty;function _6(e){var t=this.__data__;if(O6){var n=t[e];return n===A6?void 0:n}return E6.call(t,e)?t[e]:void 0}var T6=_6,N6=sp,C6=Object.prototype,M6=C6.hasOwnProperty;function P6(e){var t=this.__data__;return N6?t[e]!==void 0:M6.call(t,e)}var R6=P6,$6=sp,D6="__lodash_hash_undefined__";function k6(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$6&&t===void 0?D6:t,this}var L6=k6,z6=x6,B6=w6,U6=T6,I6=R6,H6=L6;function vs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vs.prototype.clear=z6;vs.prototype.delete=B6;vs.prototype.get=U6;vs.prototype.has=I6;vs.prototype.set=H6;var q6=vs;function F6(){this.__data__=[],this.size=0}var G6=F6;function K6(e,t){return e===t||e!==e&&t!==t}var Xb=K6,Y6=Xb;function X6(e,t){for(var n=e.length;n--;)if(Y6(e[n][0],t))return n;return-1}var up=X6,V6=up,Q6=Array.prototype,W6=Q6.splice;function Z6(e){var t=this.__data__,n=V6(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():W6.call(t,n,1),--this.size,!0}var J6=Z6,eB=up;function tB(e){var t=this.__data__,n=eB(t,e);return n<0?void 0:t[n][1]}var nB=tB,rB=up;function aB(e){return rB(this.__data__,e)>-1}var iB=aB,oB=up;function lB(e,t){var n=this.__data__,r=oB(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var sB=lB,uB=G6,cB=J6,fB=nB,dB=iB,hB=sB;function gs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gs.prototype.clear=uB;gs.prototype.delete=cB;gs.prototype.get=fB;gs.prototype.has=dB;gs.prototype.set=hB;var cp=gs,pB=po,yB=Nr,mB=pB(yB,"Map"),Vb=mB,pw=q6,vB=cp,gB=Vb;function bB(){this.size=0,this.__data__={hash:new pw,map:new(gB||vB),string:new pw}}var xB=bB;function SB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var wB=SB,OB=wB;function AB(e,t){var n=e.__data__;return OB(t)?n[typeof t=="string"?"string":"hash"]:n.map}var fp=AB,jB=fp;function EB(e){var t=jB(this,e).delete(e);return this.size-=t?1:0,t}var _B=EB,TB=fp;function NB(e){return TB(this,e).get(e)}var CB=NB,MB=fp;function PB(e){return MB(this,e).has(e)}var RB=PB,$B=fp;function DB(e,t){var n=$B(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var kB=DB,LB=xB,zB=_B,BB=CB,UB=RB,IB=kB;function bs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bs.prototype.clear=LB;bs.prototype.delete=zB;bs.prototype.get=BB;bs.prototype.has=UB;bs.prototype.set=IB;var Qb=bs,RN=Qb,HB="Expected a function";function Wb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(HB);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Wb.Cache||RN),n}Wb.Cache=RN;var $N=Wb;const qB=Be($N);var FB=$N,GB=500;function KB(e){var t=FB(e,function(r){return n.size===GB&&n.clear(),r}),n=t.cache;return t}var YB=KB,XB=YB,VB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,QB=/\\(\\)?/g,WB=XB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(VB,function(n,r,a,i){t.push(a?i.replace(QB,"$1"):r||n)}),t}),ZB=WB;function JB(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Zb=JB,yw=qc,eU=Zb,tU=mn,nU=ys,mw=yw?yw.prototype:void 0,vw=mw?mw.toString:void 0;function DN(e){if(typeof e=="string")return e;if(tU(e))return eU(e,DN)+"";if(nU(e))return vw?vw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var rU=DN,aU=rU;function iU(e){return e==null?"":aU(e)}var kN=iU,oU=mn,lU=Kb,sU=ZB,uU=kN;function cU(e,t){return oU(e)?e:lU(e,t)?[e]:sU(uU(e))}var LN=cU,fU=ys;function dU(e){if(typeof e=="string"||fU(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var dp=dU,hU=LN,pU=dp;function yU(e,t){t=hU(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[pU(t[n++])];return n&&n==r?e:void 0}var Jb=yU,mU=Jb;function vU(e,t,n){var r=e==null?void 0:mU(e,t);return r===void 0?n:r}var zN=vU;const Mn=Be(zN);function gU(e){return e==null}var bU=gU;const ye=Be(bU);var xU=pa,SU=mn,wU=ya,OU="[object String]";function AU(e){return typeof e=="string"||!SU(e)&&wU(e)&&xU(e)==OU}var jU=AU;const no=Be(jU);var BN={exports:{}},Re={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ex=Symbol.for("react.element"),tx=Symbol.for("react.portal"),hp=Symbol.for("react.fragment"),pp=Symbol.for("react.strict_mode"),yp=Symbol.for("react.profiler"),mp=Symbol.for("react.provider"),vp=Symbol.for("react.context"),EU=Symbol.for("react.server_context"),gp=Symbol.for("react.forward_ref"),bp=Symbol.for("react.suspense"),xp=Symbol.for("react.suspense_list"),Sp=Symbol.for("react.memo"),wp=Symbol.for("react.lazy"),_U=Symbol.for("react.offscreen"),UN;UN=Symbol.for("react.module.reference");function Jn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ex:switch(e=e.type,e){case hp:case yp:case pp:case bp:case xp:return e;default:switch(e=e&&e.$$typeof,e){case EU:case vp:case gp:case wp:case Sp:case mp:return e;default:return t}}case tx:return t}}}Re.ContextConsumer=vp;Re.ContextProvider=mp;Re.Element=ex;Re.ForwardRef=gp;Re.Fragment=hp;Re.Lazy=wp;Re.Memo=Sp;Re.Portal=tx;Re.Profiler=yp;Re.StrictMode=pp;Re.Suspense=bp;Re.SuspenseList=xp;Re.isAsyncMode=function(){return!1};Re.isConcurrentMode=function(){return!1};Re.isContextConsumer=function(e){return Jn(e)===vp};Re.isContextProvider=function(e){return Jn(e)===mp};Re.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ex};Re.isForwardRef=function(e){return Jn(e)===gp};Re.isFragment=function(e){return Jn(e)===hp};Re.isLazy=function(e){return Jn(e)===wp};Re.isMemo=function(e){return Jn(e)===Sp};Re.isPortal=function(e){return Jn(e)===tx};Re.isProfiler=function(e){return Jn(e)===yp};Re.isStrictMode=function(e){return Jn(e)===pp};Re.isSuspense=function(e){return Jn(e)===bp};Re.isSuspenseList=function(e){return Jn(e)===xp};Re.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hp||e===yp||e===pp||e===bp||e===xp||e===_U||typeof e=="object"&&e!==null&&(e.$$typeof===wp||e.$$typeof===Sp||e.$$typeof===mp||e.$$typeof===vp||e.$$typeof===gp||e.$$typeof===UN||e.getModuleId!==void 0)};Re.typeOf=Jn;BN.exports=Re;var TU=BN.exports,NU=pa,CU=ya,MU="[object Number]";function PU(e){return typeof e=="number"||CU(e)&&NU(e)==MU}var IN=PU;const RU=Be(IN);var $U=IN;function DU(e){return $U(e)&&e!=+e}var kU=DU;const Fc=Be(kU);var Wt=function(t){return t===0?0:t>0?1:-1},_i=function(t){return no(t)&&t.indexOf("%")===t.length-1},K=function(t){return RU(t)&&!Fc(t)},LU=function(t){return ye(t)},wt=function(t){return K(t)||no(t)},zU=0,Gc=function(t){var n=++zU;return"".concat(t||"").concat(n)},Zt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!no(t))return r;var i;if(_i(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return Fc(i)&&(i=r),a&&i>n&&(i=n),i},To=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},BU=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},wa=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function Yv(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Mn(r,t))===n})}var UU=function(t,n){return K(t)&&K(n)?t-n:no(t)&&no(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Jo(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Xv(e){"@babel/helpers - typeof";return Xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xv(e)}var IU=["viewBox","children"],HU=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],gw=["points","pathLength"],em={svg:IU,polygon:gw,polyline:gw},nx=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],kd=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!ms(r))return null;var a={};return Object.keys(r).forEach(function(i){nx.includes(i)&&(a[i]=n||function(o){return r[i](r,o)})}),a},qU=function(t,n,r){return function(a){return t(n,r,a),null}},ro=function(t,n,r){if(!ms(t)||Xv(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];nx.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=qU(o,n,r))}),a},FU=["children"],GU=["children"];function bw(e,t){if(e==null)return{};var n=KU(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KU(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var xw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Jr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Sw=null,tm=null,rx=function e(t){if(t===Sw&&Array.isArray(tm))return tm;var n=[];return j.Children.forEach(t,function(r){ye(r)||(TU.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),tm=n,Sw=t,n};function Qn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Jr(a)}):r=[Jr(t)],rx(e).forEach(function(a){var i=Mn(a,"type.displayName")||Mn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function xn(e,t){var n=Qn(e,t);return n&&n[0]}var ww=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!K(r)||r<=0||!K(a)||a<=0)},YU=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],XU=function(t){return t&&t.type&&no(t.type)&&YU.indexOf(t.type)>=0},VU=function(t,n,r,a){var i,o=(i=em==null?void 0:em[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!oe(t)&&(a&&o.includes(n)||HU.includes(n))||r&&nx.includes(n)},ae=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(j.isValidElement(t)&&(a=t.props),!ms(a))return null;var i={};return Object.keys(a).forEach(function(o){var l;VU((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},Vv=function e(t,n){if(t===n)return!0;var r=j.Children.count(t);if(r!==j.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Ow(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],o=n[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!Ow(i,o))return!1}return!0},Ow=function(t,n){if(ye(t)&&ye(n))return!0;if(!ye(t)&&!ye(n)){var r=t.props||{},a=r.children,i=bw(r,FU),o=n.props||{},l=o.children,s=bw(o,GU);return a&&l?Jo(i,s)&&Vv(a,l):!a&&!l?Jo(i,s):!1}return!1},Aw=function(t,n){var r=[],a={};return rx(t).forEach(function(i,o){if(XU(i))r.push(i);else if(i){var l=Jr(i.type),s=n[l]||{},u=s.handler,f=s.once;if(u&&(!f||!a[l])){var c=u(i,l,o);r.push(c),a[l]=!0}}}),r},QU=function(t){var n=t&&t.type;return n&&xw[n]?xw[n]:null},WU=function(t,n){return rx(n).indexOf(t)},ZU=["children","width","height","viewBox","className","style","title","desc"];function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qv.apply(this,arguments)}function JU(e,t){if(e==null)return{};var n=eI(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eI(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Wv(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,l=e.title,s=e.desc,u=JU(e,ZU),f=a||{width:n,height:r,x:0,y:0},c=pe("recharts-surface",i);return M.createElement("svg",Qv({},ae(u,!0,"svg"),{className:c,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),M.createElement("title",null,l),M.createElement("desc",null,s),t)}var tI=["children","className"];function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zv.apply(this,arguments)}function nI(e,t){if(e==null)return{};var n=rI(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rI(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Me=M.forwardRef(function(e,t){var n=e.children,r=e.className,a=nI(e,tI),i=pe("recharts-layer",r);return M.createElement("g",Zv({className:i},ae(a,!0),{ref:t}),n)}),ea=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i]};function aI(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var iI=aI,oI=iI;function lI(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:oI(e,t,n)}var sI=lI,uI="\\ud800-\\udfff",cI="\\u0300-\\u036f",fI="\\ufe20-\\ufe2f",dI="\\u20d0-\\u20ff",hI=cI+fI+dI,pI="\\ufe0e\\ufe0f",yI="\\u200d",mI=RegExp("["+yI+uI+hI+pI+"]");function vI(e){return mI.test(e)}var HN=vI;function gI(e){return e.split("")}var bI=gI,qN="\\ud800-\\udfff",xI="\\u0300-\\u036f",SI="\\ufe20-\\ufe2f",wI="\\u20d0-\\u20ff",OI=xI+SI+wI,AI="\\ufe0e\\ufe0f",jI="["+qN+"]",Jv="["+OI+"]",eg="\\ud83c[\\udffb-\\udfff]",EI="(?:"+Jv+"|"+eg+")",FN="[^"+qN+"]",GN="(?:\\ud83c[\\udde6-\\uddff]){2}",KN="[\\ud800-\\udbff][\\udc00-\\udfff]",_I="\\u200d",YN=EI+"?",XN="["+AI+"]?",TI="(?:"+_I+"(?:"+[FN,GN,KN].join("|")+")"+XN+YN+")*",NI=XN+YN+TI,CI="(?:"+[FN+Jv+"?",Jv,GN,KN,jI].join("|")+")",MI=RegExp(eg+"(?="+eg+")|"+CI+NI,"g");function PI(e){return e.match(MI)||[]}var RI=PI,$I=bI,DI=HN,kI=RI;function LI(e){return DI(e)?kI(e):$I(e)}var zI=LI,BI=sI,UI=HN,II=zI,HI=kN;function qI(e){return function(t){t=HI(t);var n=UI(t)?II(t):void 0,r=n?n[0]:t.charAt(0),a=n?BI(n,1).join(""):t.slice(1);return r[e]()+a}}var FI=qI,GI=FI,KI=GI("toUpperCase"),YI=KI;const Op=Be(YI);function qe(e){return function(){return e}}const VN=Math.cos,Ld=Math.sin,pr=Math.sqrt,zd=Math.PI,Ap=2*zd,tg=Math.PI,ng=2*tg,Si=1e-6,XI=ng-Si;function QN(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function VI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return QN;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class QI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?QN:VI(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,s=r-t,u=a-n,f=o-t,c=l-n,h=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Si)if(!(Math.abs(c*s-u*f)>Si)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,b=a-l,v=s*s+u*u,g=p*p+b*b,y=Math.sqrt(v),m=Math.sqrt(h),x=i*Math.tan((tg-Math.acos((v+h-g)/(2*y*m)))/2),w=x/m,S=x/y;Math.abs(w-1)>Si&&this._append`L${t+w*f},${n+w*c}`,this._append`A${i},${i},0,0,${+(c*p>f*b)},${this._x1=t+S*s},${this._y1=n+S*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),u=t+l,f=n+s,c=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Si||Math.abs(this._y1-f)>Si)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%ng+ng),h>XI?this._append`A${r},${r},0,1,${c},${t-l},${n-s}A${r},${r},0,1,${c},${this._x1=u},${this._y1=f}`:h>Si&&this._append`A${r},${r},0,${+(h>=tg)},${c},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function ax(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new QI(t)}function ix(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function WN(e){this._context=e}WN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function jp(e){return new WN(e)}function ZN(e){return e[0]}function JN(e){return e[1]}function eC(e,t){var n=qe(!0),r=null,a=jp,i=null,o=ax(l);e=typeof e=="function"?e:e===void 0?ZN:qe(e),t=typeof t=="function"?t:t===void 0?JN:qe(t);function l(s){var u,f=(s=ix(s)).length,c,h=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=f;++u)!(u<f&&n(c=s[u],u,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(c,u,s),+t(c,u,s));if(p)return i=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:qe(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:qe(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:qe(!!s),l):n},l.curve=function(s){return arguments.length?(a=s,r!=null&&(i=a(r)),l):a},l.context=function(s){return arguments.length?(s==null?r=i=null:i=a(r=s),l):r},l}function gf(e,t,n){var r=null,a=qe(!0),i=null,o=jp,l=null,s=ax(u);e=typeof e=="function"?e:e===void 0?ZN:qe(+e),t=typeof t=="function"?t:qe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?JN:qe(+n);function u(c){var h,p,b,v=(c=ix(c)).length,g,y=!1,m,x=new Array(v),w=new Array(v);for(i==null&&(l=o(m=s())),h=0;h<=v;++h){if(!(h<v&&a(g=c[h],h,c))===y)if(y=!y)p=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=h-1;b>=p;--b)l.point(x[b],w[b]);l.lineEnd(),l.areaEnd()}y&&(x[h]=+e(g,h,c),w[h]=+t(g,h,c),l.point(r?+r(g,h,c):x[h],n?+n(g,h,c):w[h]))}if(m)return l=null,m+""||null}function f(){return eC().defined(a).curve(o).context(i)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:qe(+c),r=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:qe(+c),u):e},u.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:qe(+c),u):r},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:qe(+c),n=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:qe(+c),u):t},u.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:qe(+c),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(c){return arguments.length?(a=typeof c=="function"?c:qe(!!c),u):a},u.curve=function(c){return arguments.length?(o=c,i!=null&&(l=o(i)),u):o},u.context=function(c){return arguments.length?(c==null?i=l=null:l=o(i=c),u):i},u}class tC{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function WI(e){return new tC(e,!0)}function ZI(e){return new tC(e,!1)}const ox={draw(e,t){const n=pr(t/zd);e.moveTo(n,0),e.arc(0,0,n,0,Ap)}},JI={draw(e,t){const n=pr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},nC=pr(1/3),e7=nC*2,t7={draw(e,t){const n=pr(t/e7),r=n*nC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},n7={draw(e,t){const n=pr(t),r=-n/2;e.rect(r,r,n,n)}},r7=.8908130915292852,rC=Ld(zd/10)/Ld(7*zd/10),a7=Ld(Ap/10)*rC,i7=-VN(Ap/10)*rC,o7={draw(e,t){const n=pr(t*r7),r=a7*n,a=i7*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=Ap*i/5,l=VN(o),s=Ld(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},nm=pr(3),l7={draw(e,t){const n=-pr(t/(nm*3));e.moveTo(0,n*2),e.lineTo(-nm*n,-n),e.lineTo(nm*n,-n),e.closePath()}},Dn=-.5,kn=pr(3)/2,rg=1/pr(12),s7=(rg/2+1)*3,u7={draw(e,t){const n=pr(t/s7),r=n/2,a=n*rg,i=r,o=n*rg+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(Dn*r-kn*a,kn*r+Dn*a),e.lineTo(Dn*i-kn*o,kn*i+Dn*o),e.lineTo(Dn*l-kn*s,kn*l+Dn*s),e.lineTo(Dn*r+kn*a,Dn*a-kn*r),e.lineTo(Dn*i+kn*o,Dn*o-kn*i),e.lineTo(Dn*l+kn*s,Dn*s-kn*l),e.closePath()}};function c7(e,t){let n=null,r=ax(a);e=typeof e=="function"?e:qe(e||ox),t=typeof t=="function"?t:qe(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:qe(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:qe(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Bd(){}function Ud(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function aC(e){this._context=e}aC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ud(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ud(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function f7(e){return new aC(e)}function iC(e){this._context=e}iC.prototype={areaStart:Bd,areaEnd:Bd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ud(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function d7(e){return new iC(e)}function oC(e){this._context=e}oC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ud(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function h7(e){return new oC(e)}function lC(e){this._context=e}lC.prototype={areaStart:Bd,areaEnd:Bd,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function p7(e){return new lC(e)}function jw(e){return e<0?-1:1}function Ew(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(jw(i)+jw(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function _w(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function rm(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Id(e){this._context=e}Id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:rm(this,this._t0,_w(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,rm(this,_w(this,n=Ew(this,e,t)),n);break;default:rm(this,this._t0,n=Ew(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sC(e){this._context=new uC(e)}(sC.prototype=Object.create(Id.prototype)).point=function(e,t){Id.prototype.point.call(this,t,e)};function uC(e){this._context=e}uC.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function y7(e){return new Id(e)}function m7(e){return new sC(e)}function cC(e){this._context=e}cC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Tw(e),a=Tw(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Tw(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function v7(e){return new cC(e)}function Ep(e,t){this._context=e,this._t=t}Ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function g7(e){return new Ep(e,.5)}function b7(e){return new Ep(e,0)}function x7(e){return new Ep(e,1)}function Nl(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<l;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function ag(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function S7(e,t){return e[t]}function w7(e){const t=[];return t.key=e,t}function O7(){var e=qe([]),t=ag,n=Nl,r=S7;function a(i){var o=Array.from(e.apply(this,arguments),w7),l,s=o.length,u=-1,f;for(const c of i)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(c,o[l].key,u,i)]).data=c;for(l=0,f=ix(t(o));l<s;++l)o[f[l]].index=l;return n(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:qe(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:qe(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?ag:typeof i=="function"?i:qe(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Nl,a):n},a}function A7(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,o;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}Nl(e,t)}}function j7(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var o=0,l=0;o<a;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}Nl(e,t)}}function E7(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r<i;++r){for(var l=0,s=0,u=0;l<o;++l){for(var f=e[t[l]],c=f[r][1]||0,h=f[r-1][1]||0,p=(c-h)/2,b=0;b<l;++b){var v=e[t[b]],g=v[r][1]||0,y=v[r-1][1]||0;p+=g-y}s+=c,u+=p*c}a[r-1][1]+=a[r-1][0]=n,s&&(n-=u/s)}a[r-1][1]+=a[r-1][0]=n,Nl(e,t)}}function zu(e){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(e)}var _7=["type","size","sizeType"];function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ig.apply(this,arguments)}function Nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(n),!0).forEach(function(r){T7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T7(e,t,n){return t=N7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N7(e){var t=C7(e,"string");return zu(t)=="symbol"?t:t+""}function C7(e,t){if(zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M7(e,t){if(e==null)return{};var n=P7(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var fC={symbolCircle:ox,symbolCross:JI,symbolDiamond:t7,symbolSquare:n7,symbolStar:o7,symbolTriangle:l7,symbolWye:u7},R7=Math.PI/180,$7=function(t){var n="symbol".concat(Op(t));return fC[n]||ox},D7=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*R7;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},k7=function(t,n){fC["symbol".concat(Op(t))]=n},lx=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,l=o===void 0?"area":o,s=M7(t,_7),u=Cw(Cw({},s),{},{type:r,size:i,sizeType:l}),f=function(){var g=$7(r),y=c7().type(g).size(D7(i,l,r));return y()},c=u.className,h=u.cx,p=u.cy,b=ae(u,!0);return h===+h&&p===+p&&i===+i?M.createElement("path",ig({},b,{className:pe("recharts-symbols",c),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};lx.registerSymbol=k7;function Cl(e){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},og.apply(this,arguments)}function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function L7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mw(Object(n),!0).forEach(function(r){Bu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hC(r.key),r)}}function U7(e,t,n){return t&&B7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function I7(e,t,n){return t=Hd(t),H7(e,dC()?Reflect.construct(t,n||[],Hd(e).constructor):t.apply(e,n))}function H7(e,t){if(t&&(Cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q7(e)}function q7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dC=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hd(e)}function F7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lg(e,t)}function lg(e,t){return lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lg(e,t)}function Bu(e,t,n){return t=hC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hC(e){var t=G7(e,"string");return Cl(t)=="symbol"?t:t+""}function G7(e,t){if(Cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ln=32,sx=function(e){function t(){return z7(this,t),I7(this,t,arguments)}return F7(t,e),U7(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=Ln/2,o=Ln/6,l=Ln/3,s=r.inactive?a:r.color;if(r.type==="plainline")return M.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:Ln,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return M.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(l,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,`
            H`).concat(Ln,"M").concat(2*l,",").concat(i,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return M.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ln/8,"h").concat(Ln,"v").concat(Ln*3/4,"h").concat(-Ln,"z"),className:"recharts-legend-icon"});if(M.isValidElement(r.legendIcon)){var u=L7({},r);return delete u.legendIcon,M.cloneElement(r.legendIcon,u)}return M.createElement(lx,{fill:s,cx:i,cy:i,size:Ln,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,o=a.iconSize,l=a.layout,s=a.formatter,u=a.inactiveColor,f={x:0,y:0,width:Ln,height:Ln},c={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,b){var v=p.formatter||s,g=pe(Bu(Bu({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=oe(p.value)?null:p.value;ea(!oe(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var m=p.inactive?u:p.color;return M.createElement("li",og({className:g,style:c,key:"legend-item-".concat(b)},ro(r.props,p,b)),M.createElement(Wv,{width:o,height:o,viewBox:f,style:h},r.renderIcon(p)),M.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},v?v(y,p,b):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,o=r.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return M.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Bu(sx,"displayName","Legend");Bu(sx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var K7=cp;function Y7(){this.__data__=new K7,this.size=0}var X7=Y7;function V7(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Q7=V7;function W7(e){return this.__data__.get(e)}var Z7=W7;function J7(e){return this.__data__.has(e)}var eH=J7,tH=cp,nH=Vb,rH=Qb,aH=200;function iH(e,t){var n=this.__data__;if(n instanceof tH){var r=n.__data__;if(!nH||r.length<aH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new rH(r)}return n.set(e,t),this.size=n.size,this}var oH=iH,lH=cp,sH=X7,uH=Q7,cH=Z7,fH=eH,dH=oH;function xs(e){var t=this.__data__=new lH(e);this.size=t.size}xs.prototype.clear=sH;xs.prototype.delete=uH;xs.prototype.get=cH;xs.prototype.has=fH;xs.prototype.set=dH;var pC=xs,hH="__lodash_hash_undefined__";function pH(e){return this.__data__.set(e,hH),this}var yH=pH;function mH(e){return this.__data__.has(e)}var vH=mH,gH=Qb,bH=yH,xH=vH;function qd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new gH;++t<n;)this.add(e[t])}qd.prototype.add=qd.prototype.push=bH;qd.prototype.has=xH;var yC=qd;function SH(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var mC=SH;function wH(e,t){return e.has(t)}var vC=wH,OH=yC,AH=mC,jH=vC,EH=1,_H=2;function TH(e,t,n,r,a,i){var o=n&EH,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,p=n&_H?new OH:void 0;for(i.set(e,t),i.set(t,e);++c<l;){var b=e[c],v=t[c];if(r)var g=o?r(v,b,c,t,e,i):r(b,v,c,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!AH(t,function(y,m){if(!jH(p,m)&&(b===y||a(b,y,n,r,i)))return p.push(m)})){h=!1;break}}else if(!(b===v||a(b,v,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var gC=TH,NH=Nr,CH=NH.Uint8Array,MH=CH;function PH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var RH=PH;function $H(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var ux=$H,Pw=qc,Rw=MH,DH=Xb,kH=gC,LH=RH,zH=ux,BH=1,UH=2,IH="[object Boolean]",HH="[object Date]",qH="[object Error]",FH="[object Map]",GH="[object Number]",KH="[object RegExp]",YH="[object Set]",XH="[object String]",VH="[object Symbol]",QH="[object ArrayBuffer]",WH="[object DataView]",$w=Pw?Pw.prototype:void 0,am=$w?$w.valueOf:void 0;function ZH(e,t,n,r,a,i,o){switch(n){case WH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case QH:return!(e.byteLength!=t.byteLength||!i(new Rw(e),new Rw(t)));case IH:case HH:case GH:return DH(+e,+t);case qH:return e.name==t.name&&e.message==t.message;case KH:case XH:return e==t+"";case FH:var l=LH;case YH:var s=r&BH;if(l||(l=zH),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=UH,o.set(e,t);var f=kH(l(e),l(t),r,a,i,o);return o.delete(e),f;case VH:if(am)return am.call(e)==am.call(t)}return!1}var JH=ZH;function e9(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var bC=e9,t9=bC,n9=mn;function r9(e,t,n){var r=t(e);return n9(e)?r:t9(r,n(e))}var a9=r9;function i9(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var o9=i9;function l9(){return[]}var s9=l9,u9=o9,c9=s9,f9=Object.prototype,d9=f9.propertyIsEnumerable,Dw=Object.getOwnPropertySymbols,h9=Dw?function(e){return e==null?[]:(e=Object(e),u9(Dw(e),function(t){return d9.call(e,t)}))}:c9,p9=h9;function y9(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var m9=y9,v9=pa,g9=ya,b9="[object Arguments]";function x9(e){return g9(e)&&v9(e)==b9}var S9=x9,kw=S9,w9=ya,xC=Object.prototype,O9=xC.hasOwnProperty,A9=xC.propertyIsEnumerable,j9=kw(function(){return arguments}())?kw:function(e){return w9(e)&&O9.call(e,"callee")&&!A9.call(e,"callee")},cx=j9,Fd={exports:{}};function E9(){return!1}var _9=E9;Fd.exports;(function(e,t){var n=Nr,r=_9,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Fd,Fd.exports);var SC=Fd.exports,T9=9007199254740991,N9=/^(?:0|[1-9]\d*)$/;function C9(e,t){var n=typeof e;return t=t??T9,!!t&&(n=="number"||n!="symbol"&&N9.test(e))&&e>-1&&e%1==0&&e<t}var fx=C9,M9=9007199254740991;function P9(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=M9}var dx=P9,R9=pa,$9=dx,D9=ya,k9="[object Arguments]",L9="[object Array]",z9="[object Boolean]",B9="[object Date]",U9="[object Error]",I9="[object Function]",H9="[object Map]",q9="[object Number]",F9="[object Object]",G9="[object RegExp]",K9="[object Set]",Y9="[object String]",X9="[object WeakMap]",V9="[object ArrayBuffer]",Q9="[object DataView]",W9="[object Float32Array]",Z9="[object Float64Array]",J9="[object Int8Array]",eq="[object Int16Array]",tq="[object Int32Array]",nq="[object Uint8Array]",rq="[object Uint8ClampedArray]",aq="[object Uint16Array]",iq="[object Uint32Array]",Xe={};Xe[W9]=Xe[Z9]=Xe[J9]=Xe[eq]=Xe[tq]=Xe[nq]=Xe[rq]=Xe[aq]=Xe[iq]=!0;Xe[k9]=Xe[L9]=Xe[V9]=Xe[z9]=Xe[Q9]=Xe[B9]=Xe[U9]=Xe[I9]=Xe[H9]=Xe[q9]=Xe[F9]=Xe[G9]=Xe[K9]=Xe[Y9]=Xe[X9]=!1;function oq(e){return D9(e)&&$9(e.length)&&!!Xe[R9(e)]}var lq=oq;function sq(e){return function(t){return e(t)}}var wC=sq,Gd={exports:{}};Gd.exports;(function(e,t){var n=CN,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Gd,Gd.exports);var uq=Gd.exports,cq=lq,fq=wC,Lw=uq,zw=Lw&&Lw.isTypedArray,dq=zw?fq(zw):cq,OC=dq,hq=m9,pq=cx,yq=mn,mq=SC,vq=fx,gq=OC,bq=Object.prototype,xq=bq.hasOwnProperty;function Sq(e,t){var n=yq(e),r=!n&&pq(e),a=!n&&!r&&mq(e),i=!n&&!r&&!a&&gq(e),o=n||r||a||i,l=o?hq(e.length,String):[],s=l.length;for(var u in e)(t||xq.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vq(u,s)))&&l.push(u);return l}var wq=Sq,Oq=Object.prototype;function Aq(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Oq;return e===n}var jq=Aq;function Eq(e,t){return function(n){return e(t(n))}}var AC=Eq,_q=AC,Tq=_q(Object.keys,Object),Nq=Tq,Cq=jq,Mq=Nq,Pq=Object.prototype,Rq=Pq.hasOwnProperty;function $q(e){if(!Cq(e))return Mq(e);var t=[];for(var n in Object(e))Rq.call(e,n)&&n!="constructor"&&t.push(n);return t}var Dq=$q,kq=Yb,Lq=dx;function zq(e){return e!=null&&Lq(e.length)&&!kq(e)}var _p=zq,Bq=wq,Uq=Dq,Iq=_p;function Hq(e){return Iq(e)?Bq(e):Uq(e)}var hx=Hq,qq=a9,Fq=p9,Gq=hx;function Kq(e){return qq(e,Gq,Fq)}var Yq=Kq,Bw=Yq,Xq=1,Vq=Object.prototype,Qq=Vq.hasOwnProperty;function Wq(e,t,n,r,a,i){var o=n&Xq,l=Bw(e),s=l.length,u=Bw(t),f=u.length;if(s!=f&&!o)return!1;for(var c=s;c--;){var h=l[c];if(!(o?h in t:Qq.call(t,h)))return!1}var p=i.get(e),b=i.get(t);if(p&&b)return p==t&&b==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=o;++c<s;){h=l[c];var y=e[h],m=t[h];if(r)var x=o?r(m,y,h,t,e,i):r(y,m,h,e,t,i);if(!(x===void 0?y===m||a(y,m,n,r,i):x)){v=!1;break}g||(g=h=="constructor")}if(v&&!g){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(v=!1)}return i.delete(e),i.delete(t),v}var Zq=Wq,Jq=po,eF=Nr,tF=Jq(eF,"DataView"),nF=tF,rF=po,aF=Nr,iF=rF(aF,"Promise"),oF=iF,lF=po,sF=Nr,uF=lF(sF,"Set"),jC=uF,cF=po,fF=Nr,dF=cF(fF,"WeakMap"),hF=dF,sg=nF,ug=Vb,cg=oF,fg=jC,dg=hF,EC=pa,Ss=PN,Uw="[object Map]",pF="[object Object]",Iw="[object Promise]",Hw="[object Set]",qw="[object WeakMap]",Fw="[object DataView]",yF=Ss(sg),mF=Ss(ug),vF=Ss(cg),gF=Ss(fg),bF=Ss(dg),wi=EC;(sg&&wi(new sg(new ArrayBuffer(1)))!=Fw||ug&&wi(new ug)!=Uw||cg&&wi(cg.resolve())!=Iw||fg&&wi(new fg)!=Hw||dg&&wi(new dg)!=qw)&&(wi=function(e){var t=EC(e),n=t==pF?e.constructor:void 0,r=n?Ss(n):"";if(r)switch(r){case yF:return Fw;case mF:return Uw;case vF:return Iw;case gF:return Hw;case bF:return qw}return t});var xF=wi,im=pC,SF=gC,wF=JH,OF=Zq,Gw=xF,Kw=mn,Yw=SC,AF=OC,jF=1,Xw="[object Arguments]",Vw="[object Array]",bf="[object Object]",EF=Object.prototype,Qw=EF.hasOwnProperty;function _F(e,t,n,r,a,i){var o=Kw(e),l=Kw(t),s=o?Vw:Gw(e),u=l?Vw:Gw(t);s=s==Xw?bf:s,u=u==Xw?bf:u;var f=s==bf,c=u==bf,h=s==u;if(h&&Yw(e)){if(!Yw(t))return!1;o=!0,f=!1}if(h&&!f)return i||(i=new im),o||AF(e)?SF(e,t,n,r,a,i):wF(e,t,s,n,r,a,i);if(!(n&jF)){var p=f&&Qw.call(e,"__wrapped__"),b=c&&Qw.call(t,"__wrapped__");if(p||b){var v=p?e.value():e,g=b?t.value():t;return i||(i=new im),a(v,g,n,r,i)}}return h?(i||(i=new im),OF(e,t,n,r,a,i)):!1}var TF=_F,NF=TF,Ww=ya;function _C(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ww(e)&&!Ww(t)?e!==e&&t!==t:NF(e,t,n,r,_C,a)}var px=_C,CF=pC,MF=px,PF=1,RF=2;function $F(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=n[a];var s=l[0],u=e[s],f=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var c=new CF;if(r)var h=r(u,f,s,e,t,c);if(!(h===void 0?MF(f,u,PF|RF,r,c):h))return!1}}return!0}var DF=$F,kF=li;function LF(e){return e===e&&!kF(e)}var TC=LF,zF=TC,BF=hx;function UF(e){for(var t=BF(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,zF(a)]}return t}var IF=UF;function HF(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var NC=HF,qF=DF,FF=IF,GF=NC;function KF(e){var t=FF(e);return t.length==1&&t[0][2]?GF(t[0][0],t[0][1]):function(n){return n===e||qF(n,e,t)}}var YF=KF;function XF(e,t){return e!=null&&t in Object(e)}var VF=XF,QF=LN,WF=cx,ZF=mn,JF=fx,eG=dx,tG=dp;function nG(e,t,n){t=QF(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=tG(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&eG(a)&&JF(o,a)&&(ZF(e)||WF(e)))}var rG=nG,aG=VF,iG=rG;function oG(e,t){return e!=null&&iG(e,t,aG)}var lG=oG,sG=px,uG=zN,cG=lG,fG=Kb,dG=TC,hG=NC,pG=dp,yG=1,mG=2;function vG(e,t){return fG(e)&&dG(t)?hG(pG(e),t):function(n){var r=uG(n,e);return r===void 0&&r===t?cG(n,e):sG(t,r,yG|mG)}}var gG=vG;function bG(e){return e}var ws=bG;function xG(e){return function(t){return t==null?void 0:t[e]}}var SG=xG,wG=Jb;function OG(e){return function(t){return wG(t,e)}}var AG=OG,jG=SG,EG=AG,_G=Kb,TG=dp;function NG(e){return _G(e)?jG(TG(e)):EG(e)}var CG=NG,MG=YF,PG=gG,RG=ws,$G=mn,DG=CG;function kG(e){return typeof e=="function"?e:e==null?RG:typeof e=="object"?$G(e)?PG(e[0],e[1]):MG(e):DG(e)}var si=kG;function LG(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var zG=LG;function BG(e){return e!==e}var UG=BG;function IG(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var HG=IG,qG=zG,FG=UG,GG=HG;function KG(e,t,n){return t===t?GG(e,t,n):qG(e,FG,n)}var YG=KG,XG=YG;function VG(e,t){var n=e==null?0:e.length;return!!n&&XG(e,t,0)>-1}var QG=VG;function WG(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var ZG=WG;function JG(){}var eK=JG,om=jC,tK=eK,nK=ux,rK=1/0,aK=om&&1/nK(new om([,-0]))[1]==rK?function(e){return new om(e)}:tK,iK=aK,oK=yC,lK=QG,sK=ZG,uK=vC,cK=iK,fK=ux,dK=200;function hK(e,t,n){var r=-1,a=lK,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=sK;else if(i>=dK){var u=t?null:cK(e);if(u)return fK(u);o=!1,a=uK,s=new oK}else s=t?[]:l;e:for(;++r<i;){var f=e[r],c=t?t(f):f;if(f=n||f!==0?f:0,o&&c===c){for(var h=s.length;h--;)if(s[h]===c)continue e;t&&s.push(c),l.push(f)}else a(s,c,n)||(s!==l&&s.push(c),l.push(f))}return l}var pK=hK,yK=si,mK=pK;function vK(e,t){return e&&e.length?mK(e,yK(t)):[]}var gK=vK;const Zw=Be(gK);function CC(e,t,n){return t===!0?Zw(e,n):oe(t)?Zw(e,t):e}function Ml(e){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ml(e)}var bK=["ref"];function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(n),!0).forEach(function(r){Tp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PC(r.key),r)}}function SK(e,t,n){return t&&eO(e.prototype,t),n&&eO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wK(e,t,n){return t=Kd(t),OK(e,MC()?Reflect.construct(t,n||[],Kd(e).constructor):t.apply(e,n))}function OK(e,t){if(t&&(Ml(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AK(e)}function AK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MC=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kd(e)}function jK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hg(e,t)}function hg(e,t){return hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hg(e,t)}function Tp(e,t,n){return t=PC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PC(e){var t=EK(e,"string");return Ml(t)=="symbol"?t:t+""}function EK(e,t){if(Ml(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ml(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _K(e,t){if(e==null)return{};var n=TK(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NK(e){return e.value}function CK(e,t){if(M.isValidElement(e))return M.cloneElement(e,t);if(typeof e=="function")return M.createElement(e,t);t.ref;var n=_K(t,bK);return M.createElement(sx,n)}var tO=1,el=function(e){function t(){var n;xK(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=wK(this,t,[].concat(a)),Tp(n,"lastBoundingBox",{width:-1,height:-1}),n}return jK(t,e),SK(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>tO||Math.abs(a.height-this.lastBoundingBox.height)>tO)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Dr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,o=a.align,l=a.verticalAlign,s=a.margin,u=a.chartWidth,f=a.chartHeight,c,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();h={top:((f||0)-b.height)/2}}else h=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Dr(Dr({},c),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,o=a.width,l=a.height,s=a.wrapperStyle,u=a.payloadUniqBy,f=a.payload,c=Dr(Dr({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return M.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){r.wrapperNode=p}},CK(i,Dr(Dr({},this.props),{},{payload:CC(f,u,NK)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Dr(Dr({},this.defaultProps),r.props),o=i.layout;return o==="vertical"&&K(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||a}:null}}])}(j.PureComponent);Tp(el,"displayName","Legend");Tp(el,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var nO=qc,MK=cx,PK=mn,rO=nO?nO.isConcatSpreadable:void 0;function RK(e){return PK(e)||MK(e)||!!(rO&&e&&e[rO])}var $K=RK,DK=bC,kK=$K;function RC(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=kK),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?RC(l,t-1,n,r,a):DK(a,l):r||(a[a.length]=l)}return a}var $C=RC;function LK(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++a];if(n(i[s],s,i)===!1)break}return t}}var zK=LK,BK=zK,UK=BK(),IK=UK,HK=IK,qK=hx;function FK(e,t){return e&&HK(e,t,qK)}var DC=FK,GK=_p;function KK(e,t){return function(n,r){if(n==null)return n;if(!GK(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var YK=KK,XK=DC,VK=YK,QK=VK(XK),yx=QK,WK=yx,ZK=_p;function JK(e,t){var n=-1,r=ZK(e)?Array(e.length):[];return WK(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var kC=JK;function eY(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var tY=eY,aO=ys;function nY(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=aO(e),o=t!==void 0,l=t===null,s=t===t,u=aO(t);if(!l&&!u&&!i&&e>t||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||l&&n&&a||!o&&a||!s)return-1}return 0}var rY=nY,aY=rY;function iY(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=aY(a[r],i[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var oY=iY,lm=Zb,lY=Jb,sY=si,uY=kC,cY=tY,fY=wC,dY=oY,hY=ws,pY=mn;function yY(e,t,n){t.length?t=lm(t,function(i){return pY(i)?function(o){return lY(o,i.length===1?i[0]:i)}:i}):t=[hY];var r=-1;t=lm(t,fY(sY));var a=uY(e,function(i,o,l){var s=lm(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return cY(a,function(i,o){return dY(i,o,n)})}var mY=yY;function vY(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var gY=vY,bY=gY,iO=Math.max;function xY(e,t,n){return t=iO(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=iO(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),bY(e,this,l)}}var SY=xY;function wY(e){return function(){return e}}var OY=wY,AY=po,jY=function(){try{var e=AY(Object,"defineProperty");return e({},"",{}),e}catch{}}(),LC=jY,EY=OY,oO=LC,_Y=ws,TY=oO?function(e,t){return oO(e,"toString",{configurable:!0,enumerable:!1,value:EY(t),writable:!0})}:_Y,NY=TY,CY=800,MY=16,PY=Date.now;function RY(e){var t=0,n=0;return function(){var r=PY(),a=MY-(r-n);if(n=r,a>0){if(++t>=CY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var $Y=RY,DY=NY,kY=$Y,LY=kY(DY),zY=LY,BY=ws,UY=SY,IY=zY;function HY(e,t){return IY(UY(e,t,BY),e+"")}var qY=HY,FY=Xb,GY=_p,KY=fx,YY=li;function XY(e,t,n){if(!YY(n))return!1;var r=typeof t;return(r=="number"?GY(n)&&KY(t,n.length):r=="string"&&t in n)?FY(n[t],e):!1}var Np=XY,VY=$C,QY=mY,WY=qY,lO=Np,ZY=WY(function(e,t){if(e==null)return[];var n=t.length;return n>1&&lO(e,t[0],t[1])?t=[]:n>2&&lO(t[0],t[1],t[2])&&(t=[t[0]]),QY(e,VY(t,1),[])}),JY=ZY;const mx=Be(JY);function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function pg(){return pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pg.apply(this,arguments)}function eX(e,t){return aX(e)||rX(e,t)||nX(e,t)||tX()}function tX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nX(e,t){if(e){if(typeof e=="string")return sO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sO(e,t)}}function sO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function aX(e){if(Array.isArray(e))return e}function uO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uO(Object(n),!0).forEach(function(r){iX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iX(e,t,n){return t=oX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oX(e){var t=lX(e,"string");return Uu(t)=="symbol"?t:t+""}function lX(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sX(e){return Array.isArray(e)&&wt(e[0])&&wt(e[1])?e.join(" ~ "):e}var uX=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,l=o===void 0?{}:o,s=t.labelStyle,u=s===void 0?{}:s,f=t.payload,c=t.formatter,h=t.itemSorter,p=t.wrapperClassName,b=t.labelClassName,v=t.label,g=t.labelFormatter,y=t.accessibilityLayer,m=y===void 0?!1:y,x=function(){if(f&&f.length){var P={padding:0,margin:0},B=(h?mx(f,h):f).map(function(L,D){if(L.type==="none")return null;var R=sm({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},l),k=L.formatter||c||sX,U=L.value,q=L.name,F=U,V=q;if(k&&F!=null&&V!=null){var G=k(U,q,L,D,f);if(Array.isArray(G)){var ee=eX(G,2);F=ee[0],V=ee[1]}else F=G}return M.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:R},wt(V)?M.createElement("span",{className:"recharts-tooltip-item-name"},V):null,wt(V)?M.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,M.createElement("span",{className:"recharts-tooltip-item-value"},F),M.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return M.createElement("ul",{className:"recharts-tooltip-item-list",style:P},B)}return null},w=sm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=sm({margin:0},u),O=!ye(v),A=O?v:"",E=pe("recharts-default-tooltip",p),_=pe("recharts-tooltip-label",b);O&&g&&f!==void 0&&f!==null&&(A=g(v,f));var C=m?{role:"status","aria-live":"assertive"}:{};return M.createElement("div",pg({className:E,style:w},C),M.createElement("p",{className:_,style:S},M.isValidElement(A)?A:"".concat(A)),x())};function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(e)}function xf(e,t,n){return t=cX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cX(e){var t=fX(e,"string");return Iu(t)=="symbol"?t:t+""}function fX(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zs="recharts-tooltip-wrapper",dX={visibility:"hidden"};function hX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return pe(zs,xf(xf(xf(xf({},"".concat(zs,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(zs,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(zs,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(zs,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function cO(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(i&&K(i[r]))return i[r];var f=n[r]-l-a,c=n[r]+a;if(t[r])return o[r]?f:c;if(o[r]){var h=f,p=s[r];return h<p?Math.max(c,s[r]):Math.max(f,s[r])}var b=c+l,v=s[r]+u;return b>v?Math.max(f,s[r]):Math.max(c,s[r])}function pX(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function yX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,s=e.viewBox,u,f,c;return o.height>0&&o.width>0&&n?(f=cO({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),c=cO({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=pX({translateX:f,translateY:c,useTranslate3d:l})):u=dX,{cssProperties:u,cssClasses:hX({translateX:f,translateY:c,coordinate:n})}}function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(e)}function fO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(n),!0).forEach(function(r){mg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BC(r.key),r)}}function gX(e,t,n){return t&&vX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bX(e,t,n){return t=Yd(t),xX(e,zC()?Reflect.construct(t,n||[],Yd(e).constructor):t.apply(e,n))}function xX(e,t){if(t&&(Pl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SX(e)}function SX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zC=function(){return!!e})()}function Yd(e){return Yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yd(e)}function wX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yg(e,t)}function yg(e,t){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},yg(e,t)}function mg(e,t,n){return t=BC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BC(e){var t=OX(e,"string");return Pl(t)=="symbol"?t:t+""}function OX(e,t){if(Pl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hO=1,AX=function(e){function t(){var n;mX(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=bX(this,t,[].concat(a)),mg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),mg(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(s=n.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&l!==void 0?l:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return wX(t,e),gX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>hO||Math.abs(r.height-this.state.lastBoundingBox.height)>hO)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,s=a.animationEasing,u=a.children,f=a.coordinate,c=a.hasPayload,h=a.isAnimationActive,p=a.offset,b=a.position,v=a.reverseDirection,g=a.useTranslate3d,y=a.viewBox,m=a.wrapperStyle,x=yX({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:b,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),w=x.cssClasses,S=x.cssProperties,O=dO(dO({transition:h&&i?"transform ".concat(l,"ms ").concat(s):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},m);return M.createElement("div",{tabIndex:-1,className:w,style:O,ref:function(E){r.wrapperNode=E}},u)}}])}(j.PureComponent),jX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Os={isSsr:jX()};function Rl(e){"@babel/helpers - typeof";return Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}function pO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pO(Object(n),!0).forEach(function(r){vx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IC(r.key),r)}}function TX(e,t,n){return t&&_X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NX(e,t,n){return t=Xd(t),CX(e,UC()?Reflect.construct(t,n||[],Xd(e).constructor):t.apply(e,n))}function CX(e,t){if(t&&(Rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MX(e)}function MX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UC=function(){return!!e})()}function Xd(e){return Xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xd(e)}function PX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vg(e,t)}function vg(e,t){return vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},vg(e,t)}function vx(e,t,n){return t=IC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IC(e){var t=RX(e,"string");return Rl(t)=="symbol"?t:t+""}function RX(e,t){if(Rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $X(e){return e.dataKey}function DX(e,t){return M.isValidElement(e)?M.cloneElement(e,t):typeof e=="function"?M.createElement(e,t):M.createElement(uX,t)}var ir=function(e){function t(){return EX(this,t),NX(this,t,arguments)}return PX(t,e),TX(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,s=a.animationEasing,u=a.content,f=a.coordinate,c=a.filterNull,h=a.isAnimationActive,p=a.offset,b=a.payload,v=a.payloadUniqBy,g=a.position,y=a.reverseDirection,m=a.useTranslate3d,x=a.viewBox,w=a.wrapperStyle,S=b??[];c&&S.length&&(S=CC(b.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),v,$X));var O=S.length>0;return M.createElement(AX,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:h,active:i,coordinate:f,hasPayload:O,offset:p,position:g,reverseDirection:y,useTranslate3d:m,viewBox:x,wrapperStyle:w},DX(u,yO(yO({},this.props),{},{payload:S})))}}])}(j.PureComponent);vx(ir,"displayName","Tooltip");vx(ir,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Os.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var kX=Nr,LX=function(){return kX.Date.now()},zX=LX,BX=/\s/;function UX(e){for(var t=e.length;t--&&BX.test(e.charAt(t)););return t}var IX=UX,HX=IX,qX=/^\s+/;function FX(e){return e&&e.slice(0,HX(e)+1).replace(qX,"")}var GX=FX,KX=GX,mO=li,YX=ys,vO=NaN,XX=/^[-+]0x[0-9a-f]+$/i,VX=/^0b[01]+$/i,QX=/^0o[0-7]+$/i,WX=parseInt;function ZX(e){if(typeof e=="number")return e;if(YX(e))return vO;if(mO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=KX(e);var n=VX.test(e);return n||QX.test(e)?WX(e.slice(2),n?2:8):XX.test(e)?vO:+e}var HC=ZX,JX=li,um=zX,gO=HC,eV="Expected a function",tV=Math.max,nV=Math.min;function rV(e,t,n){var r,a,i,o,l,s,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(eV);t=gO(t)||0,JX(n)&&(f=!!n.leading,c="maxWait"in n,i=c?tV(gO(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(O){var A=r,E=a;return r=a=void 0,u=O,o=e.apply(E,A),o}function b(O){return u=O,l=setTimeout(y,t),f?p(O):o}function v(O){var A=O-s,E=O-u,_=t-A;return c?nV(_,i-E):_}function g(O){var A=O-s,E=O-u;return s===void 0||A>=t||A<0||c&&E>=i}function y(){var O=um();if(g(O))return m(O);l=setTimeout(y,v(O))}function m(O){return l=void 0,h&&r?p(O):(r=a=void 0,o)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function w(){return l===void 0?o:m(um())}function S(){var O=um(),A=g(O);if(r=arguments,a=this,s=O,A){if(l===void 0)return b(s);if(c)return clearTimeout(l),l=setTimeout(y,t),p(s)}return l===void 0&&(l=setTimeout(y,t)),o}return S.cancel=x,S.flush=w,S}var aV=rV,iV=aV,oV=li,lV="Expected a function";function sV(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(lV);return oV(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),iV(e,t,{leading:r,maxWait:t,trailing:a})}var uV=sV;const qC=Be(uV);function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function bO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(n),!0).forEach(function(r){cV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cV(e,t,n){return t=fV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fV(e){var t=dV(e,"string");return Hu(t)=="symbol"?t:t+""}function dV(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hV(e,t){return vV(e)||mV(e,t)||yV(e,t)||pV()}function pV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yV(e,t){if(e){if(typeof e=="string")return xO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xO(e,t)}}function xO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function vV(e){if(Array.isArray(e))return e}var SO=j.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,o=i===void 0?"100%":i,l=e.height,s=l===void 0?"100%":l,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,h=e.maxHeight,p=e.children,b=e.debounce,v=b===void 0?0:b,g=e.id,y=e.className,m=e.onResize,x=e.style,w=x===void 0?{}:x,S=j.useRef(null),O=j.useRef();O.current=m,j.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var A=j.useState({containerWidth:a.width,containerHeight:a.height}),E=hV(A,2),_=E[0],C=E[1],$=j.useCallback(function(B,L){C(function(D){var R=Math.round(B),k=Math.round(L);return D.containerWidth===R&&D.containerHeight===k?D:{containerWidth:R,containerHeight:k}})},[]);j.useEffect(function(){var B=function(q){var F,V=q[0].contentRect,G=V.width,ee=V.height;$(G,ee),(F=O.current)===null||F===void 0||F.call(O,G,ee)};v>0&&(B=qC(B,v,{trailing:!0,leading:!1}));var L=new ResizeObserver(B),D=S.current.getBoundingClientRect(),R=D.width,k=D.height;return $(R,k),L.observe(S.current),function(){L.disconnect()}},[$,v]);var P=j.useMemo(function(){var B=_.containerWidth,L=_.containerHeight;if(B<0||L<0)return null;ea(_i(o)||_i(s),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,s),ea(!n||n>0,"The aspect(%s) must be greater than zero.",n);var D=_i(o)?B:o,R=_i(s)?L:s;n&&n>0&&(D?R=D/n:R&&(D=R*n),h&&R>h&&(R=h)),ea(D>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,D,R,o,s,f,c,n);var k=!Array.isArray(p)&&Jr(p.type).endsWith("Chart");return M.Children.map(p,function(U){return M.isValidElement(U)?j.cloneElement(U,Sf({width:D,height:R},k?{style:Sf({height:"100%",width:"100%",maxHeight:R,maxWidth:D},U.props.style)}:{})):U})},[n,p,s,h,c,f,_,o]);return M.createElement("div",{id:g?"".concat(g):void 0,className:pe("recharts-responsive-container",y),style:Sf(Sf({},w),{},{width:o,height:s,minWidth:f,minHeight:c,maxHeight:h}),ref:S},P)}),Cp=function(t){return null};Cp.displayName="Cell";function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}function wO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(n),!0).forEach(function(r){gV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gV(e,t,n){return t=bV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bV(e){var t=xV(e,"string");return qu(t)=="symbol"?t:t+""}function xV(e,t){if(qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wo={widthCache:{},cacheCount:0},SV=2e3,wV={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},OO="recharts_measurement_span";function OV(e){var t=gg({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var pu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Os.isSsr)return{width:0,height:0};var r=OV(n),a=JSON.stringify({text:t,copyStyle:r});if(wo.widthCache[a])return wo.widthCache[a];try{var i=document.getElementById(OO);i||(i=document.createElement("span"),i.setAttribute("id",OO),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=gg(gg({},wV),r);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return wo.widthCache[a]=s,++wo.cacheCount>SV&&(wo.cacheCount=0,wo.widthCache={}),s}catch{return{width:0,height:0}}},AV=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function Vd(e,t){return TV(e)||_V(e,t)||EV(e,t)||jV()}function jV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EV(e,t){if(e){if(typeof e=="string")return AO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AO(e,t)}}function AO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _V(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function TV(e){if(Array.isArray(e))return e}function NV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MV(r.key),r)}}function CV(e,t,n){return t&&jO(e.prototype,t),n&&jO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function MV(e){var t=PV(e,"string");return Fu(t)=="symbol"?t:t+""}function PV(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var EO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_O=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,RV=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,$V=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,FC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},DV=Object.keys(FC),Io="NaN";function kV(e,t){return e*FC[t]}var wf=function(){function e(t,n){NV(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!RV.test(n)&&(this.num=NaN,this.unit=""),DV.includes(n)&&(this.num=kV(t,n),this.unit="px")}return CV(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,a=(r=$V.exec(n))!==null&&r!==void 0?r:[],i=Vd(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function GC(e){if(e.includes(Io))return Io;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=EO.exec(t))!==null&&n!==void 0?n:[],a=Vd(r,4),i=a[1],o=a[2],l=a[3],s=wf.parse(i??""),u=wf.parse(l??""),f=o==="*"?s.multiply(u):s.divide(u);if(f.isNaN())return Io;t=t.replace(EO,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,h=(c=_O.exec(t))!==null&&c!==void 0?c:[],p=Vd(h,4),b=p[1],v=p[2],g=p[3],y=wf.parse(b??""),m=wf.parse(g??""),x=v==="+"?y.add(m):y.subtract(m);if(x.isNaN())return Io;t=t.replace(_O,x.toString())}return t}var TO=/\(([^()]*)\)/;function LV(e){for(var t=e;t.includes("(");){var n=TO.exec(t),r=Vd(n,2),a=r[1];t=t.replace(TO,GC(a))}return t}function zV(e){var t=e.replace(/\s+/g,"");return t=LV(t),t=GC(t),t}function BV(e){try{return zV(e)}catch{return Io}}function cm(e){var t=BV(e.slice(5,-1));return t===Io?"":t}var UV=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],IV=["dx","dy","angle","className","breakAll"];function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bg.apply(this,arguments)}function NO(e,t){if(e==null)return{};var n=HV(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CO(e,t){return KV(e)||GV(e,t)||FV(e,t)||qV()}function qV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FV(e,t){if(e){if(typeof e=="string")return MO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MO(e,t)}}function MO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function KV(e){if(Array.isArray(e))return e}var KC=/[ \f\n\r\t\v\u2028\u2029]+/,YC=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];ye(n)||(r?i=n.toString().split(""):i=n.toString().split(KC));var o=i.map(function(s){return{word:s,width:pu(s,a).width}}),l=r?0:pu(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},YV=function(t,n,r,a,i){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,f=K(o),c=l,h=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(R,k){var U=k.word,q=k.width,F=R[R.length-1];if(F&&(a==null||i||F.width+q+r<Number(a)))F.words.push(U),F.width+=q+r;else{var V={words:[U],width:q};R.push(V)}return R},[])},p=h(n),b=function(D){return D.reduce(function(R,k){return R.width>k.width?R:k})};if(!f)return p;for(var v="…",g=function(D){var R=c.slice(0,D),k=YC({breakAll:u,style:s,children:R+v}).wordsWithComputedWidth,U=h(k),q=U.length>o||b(U).width>Number(a);return[q,U]},y=0,m=c.length-1,x=0,w;y<=m&&x<=c.length-1;){var S=Math.floor((y+m)/2),O=S-1,A=g(O),E=CO(A,2),_=E[0],C=E[1],$=g(S),P=CO($,1),B=P[0];if(!_&&!B&&(y=S+1),_&&B&&(m=S-1),!_&&B){w=C;break}x++}return w||p},PO=function(t){var n=ye(t)?[]:t.toString().split(KC);return[{words:n}]},XV=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!Os.isSsr){var s,u,f=YC({breakAll:o,children:a,style:i});if(f){var c=f.wordsWithComputedWidth,h=f.spaceWidth;s=c,u=h}else return PO(a);return YV({breakAll:o,children:a,maxLines:l,style:i},s,u,n,r)}return PO(a)},RO="#808080",ao=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,l=o===void 0?"1em":o,s=t.capHeight,u=s===void 0?"0.71em":s,f=t.scaleToFit,c=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,b=t.verticalAnchor,v=b===void 0?"end":b,g=t.fill,y=g===void 0?RO:g,m=NO(t,UV),x=j.useMemo(function(){return XV({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:c,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,c,m.style,m.width]),w=m.dx,S=m.dy,O=m.angle,A=m.className,E=m.breakAll,_=NO(m,IV);if(!wt(r)||!wt(i))return null;var C=r+(K(w)?w:0),$=i+(K(S)?S:0),P;switch(v){case"start":P=cm("calc(".concat(u,")"));break;case"middle":P=cm("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:P=cm("calc(".concat(x.length-1," * -").concat(l,")"));break}var B=[];if(c){var L=x[0].width,D=m.width;B.push("scale(".concat((K(D)?D/L:1)/L,")"))}return O&&B.push("rotate(".concat(O,", ").concat(C,", ").concat($,")")),B.length&&(_.transform=B.join(" ")),M.createElement("text",bg({},ae(_,!0),{x:C,y:$,className:pe("recharts-text",A),textAnchor:p,fill:y.includes("url")?RO:y}),x.map(function(R,k){var U=R.words.join(E?"":" ");return M.createElement("tspan",{x:C,dy:k===0?P:l,key:"".concat(U,"-").concat(k)},U)}))};function Ja(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function VV(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gx(e){let t,n,r;e.length!==2?(t=Ja,n=(l,s)=>Ja(e(l),s),r=(l,s)=>e(l)-s):(t=e===Ja||e===VV?e:QV,n=e,r=e);function a(l,s,u=0,f=l.length){if(u<f){if(t(s,s)!==0)return f;do{const c=u+f>>>1;n(l[c],s)<0?u=c+1:f=c}while(u<f)}return u}function i(l,s,u=0,f=l.length){if(u<f){if(t(s,s)!==0)return f;do{const c=u+f>>>1;n(l[c],s)<=0?u=c+1:f=c}while(u<f)}return u}function o(l,s,u=0,f=l.length){const c=a(l,s,u,f-1);return c>u&&r(l[c-1],s)>-r(l[c],s)?c-1:c}return{left:a,center:o,right:i}}function QV(){return 0}function XC(e){return e===null?NaN:+e}function*WV(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const ZV=gx(Ja),Kc=ZV.right;gx(XC).center;class $O extends Map{constructor(t,n=tQ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(DO(this,t))}has(t){return super.has(DO(this,t))}set(t,n){return super.set(JV(this,t),n)}delete(t){return super.delete(eQ(this,t))}}function DO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function JV({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function eQ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function tQ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function nQ(e=Ja){if(e===Ja)return VC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function VC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const rQ=Math.sqrt(50),aQ=Math.sqrt(10),iQ=Math.sqrt(2);function Qd(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=rQ?10:i>=aQ?5:i>=iQ?2:1;let l,s,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?Qd(e,t,n*2):[l,s,u]}function xg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?Qd(t,e,n):Qd(e,t,n);if(!(i>=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)s[u]=(i-u)/-o;else for(let u=0;u<l;++u)s[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)s[u]=(a+u)/-o;else for(let u=0;u<l;++u)s[u]=(a+u)*o;return s}function Sg(e,t,n){return t=+t,e=+e,n=+n,Qd(e,t,n)[2]}function wg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Sg(t,e,n):Sg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function kO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function LO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function QC(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?VC:nQ(a);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,f=Math.log(s),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(s-c)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*c/s+h)),b=Math.min(r,Math.floor(t+(s-u)*c/s+h));QC(e,t,p,b,a)}const i=e[t];let o=n,l=r;for(Bs(e,n,t),a(e[r],i)>0&&Bs(e,n,r);o<l;){for(Bs(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Bs(e,n,l):(++l,Bs(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Bs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function oQ(e,t,n){if(e=Float64Array.from(WV(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return LO(e);if(t>=1)return kO(e);var r,a=(r-1)*t,i=Math.floor(a),o=kO(QC(e,i).subarray(0,i+1)),l=LO(e.subarray(i+1));return o+(l-o)*(a-i)}}function lQ(e,t,n=XC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function sQ(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function er(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ma(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Og=Symbol("implicit");function bx(){var e=new $O,t=[],n=[],r=Og;function a(i){let o=e.get(i);if(o===void 0){if(r!==Og)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new $O;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return bx(t,n).unknown(r)},er.apply(a,arguments),a}function Gu(){var e=bx().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,l=!1,s=0,u=0,f=.5;delete e.unknown;function c(){var h=t().length,p=a<r,b=p?a:r,v=p?r:a;i=(v-b)/Math.max(1,h-s+u*2),l&&(i=Math.floor(i)),b+=(v-b-i*(h-s))*f,o=i*(1-s),l&&(b=Math.round(b),o=Math.round(o));var g=sQ(h).map(function(y){return b+i*y});return n(p?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),c()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,c()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,l=!0,c()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(h){return arguments.length?(l=!!h,c()):l},e.padding=function(h){return arguments.length?(s=Math.min(1,u=+h),c()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),c()):s},e.paddingOuter=function(h){return arguments.length?(u=+h,c()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),c()):f},e.copy=function(){return Gu(t(),[r,a]).round(l).paddingInner(s).paddingOuter(u).align(f)},er.apply(c(),arguments)}function WC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return WC(t())},e}function yu(){return WC(Gu.apply(null,arguments).paddingInner(1))}function xx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ZC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Yc(){}var Ku=.7,Wd=1/Ku,tl="\\s*([+-]?\\d+)\\s*",Yu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Or="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",uQ=/^#([0-9a-f]{3,8})$/,cQ=new RegExp(`^rgb\\(${tl},${tl},${tl}\\)$`),fQ=new RegExp(`^rgb\\(${Or},${Or},${Or}\\)$`),dQ=new RegExp(`^rgba\\(${tl},${tl},${tl},${Yu}\\)$`),hQ=new RegExp(`^rgba\\(${Or},${Or},${Or},${Yu}\\)$`),pQ=new RegExp(`^hsl\\(${Yu},${Or},${Or}\\)$`),yQ=new RegExp(`^hsla\\(${Yu},${Or},${Or},${Yu}\\)$`),zO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};xx(Yc,Xu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:BO,formatHex:BO,formatHex8:mQ,formatHsl:vQ,formatRgb:UO,toString:UO});function BO(){return this.rgb().formatHex()}function mQ(){return this.rgb().formatHex8()}function vQ(){return JC(this).formatHsl()}function UO(){return this.rgb().formatRgb()}function Xu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=uQ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?IO(t):n===3?new cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Of(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Of(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=cQ.exec(e))?new cn(t[1],t[2],t[3],1):(t=fQ.exec(e))?new cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=dQ.exec(e))?Of(t[1],t[2],t[3],t[4]):(t=hQ.exec(e))?Of(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=pQ.exec(e))?FO(t[1],t[2]/100,t[3]/100,1):(t=yQ.exec(e))?FO(t[1],t[2]/100,t[3]/100,t[4]):zO.hasOwnProperty(e)?IO(zO[e]):e==="transparent"?new cn(NaN,NaN,NaN,0):null}function IO(e){return new cn(e>>16&255,e>>8&255,e&255,1)}function Of(e,t,n,r){return r<=0&&(e=t=n=NaN),new cn(e,t,n,r)}function gQ(e){return e instanceof Yc||(e=Xu(e)),e?(e=e.rgb(),new cn(e.r,e.g,e.b,e.opacity)):new cn}function Ag(e,t,n,r){return arguments.length===1?gQ(e):new cn(e,t,n,r??1)}function cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}xx(cn,Ag,ZC(Yc,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cn(Ki(this.r),Ki(this.g),Ki(this.b),Zd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:HO,formatHex:HO,formatHex8:bQ,formatRgb:qO,toString:qO}));function HO(){return`#${Ti(this.r)}${Ti(this.g)}${Ti(this.b)}`}function bQ(){return`#${Ti(this.r)}${Ti(this.g)}${Ti(this.b)}${Ti((isNaN(this.opacity)?1:this.opacity)*255)}`}function qO(){const e=Zd(this.opacity);return`${e===1?"rgb(":"rgba("}${Ki(this.r)}, ${Ki(this.g)}, ${Ki(this.b)}${e===1?")":`, ${e})`}`}function Zd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ki(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ti(e){return e=Ki(e),(e<16?"0":"")+e.toString(16)}function FO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lr(e,t,n,r)}function JC(e){if(e instanceof lr)return new lr(e.h,e.s,e.l,e.opacity);if(e instanceof Yc||(e=Xu(e)),!e)return new lr;if(e instanceof lr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(t===i?o=(n-r)/l+(n<r)*6:n===i?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?i+a:2-i-a,o*=60):l=s>0&&s<1?0:o,new lr(o,l,s,e.opacity)}function xQ(e,t,n,r){return arguments.length===1?JC(e):new lr(e,t,n,r??1)}function lr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}xx(lr,xQ,ZC(Yc,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new lr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new cn(fm(e>=240?e-240:e+120,a,r),fm(e,a,r),fm(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new lr(GO(this.h),Af(this.s),Af(this.l),Zd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Zd(this.opacity);return`${e===1?"hsl(":"hsla("}${GO(this.h)}, ${Af(this.s)*100}%, ${Af(this.l)*100}%${e===1?")":`, ${e})`}`}}));function GO(e){return e=(e||0)%360,e<0?e+360:e}function Af(e){return Math.max(0,Math.min(1,e||0))}function fm(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Sx=e=>()=>e;function SQ(e,t){return function(n){return e+n*t}}function wQ(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function OQ(e){return(e=+e)==1?eM:function(t,n){return n-t?wQ(t,n,e):Sx(isNaN(t)?n:t)}}function eM(e,t){var n=t-e;return n?SQ(e,n):Sx(isNaN(e)?t:e)}const KO=function e(t){var n=OQ(t);function r(a,i){var o=n((a=Ag(a)).r,(i=Ag(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=eM(a.opacity,i.opacity);return function(f){return a.r=o(f),a.g=l(f),a.b=s(f),a.opacity=u(f),a+""}}return r.gamma=e,r}(1);function AQ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function jQ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function EQ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=As(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(l){for(o=0;o<r;++o)i[o]=a[o](l);return i}}function _Q(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Jd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function TQ(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=As(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var jg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dm=new RegExp(jg.source,"g");function NQ(e){return function(){return e}}function CQ(e){return function(t){return e(t)+""}}function MQ(e,t){var n=jg.lastIndex=dm.lastIndex=0,r,a,i,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=jg.exec(e))&&(a=dm.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,s.push({i:o,x:Jd(r,a)})),n=dm.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?s[0]?CQ(s[0].x):NQ(t):(t=s.length,function(u){for(var f=0,c;f<t;++f)l[(c=s[f]).i]=c.x(u);return l.join("")})}function As(e,t){var n=typeof t,r;return t==null||n==="boolean"?Sx(t):(n==="number"?Jd:n==="string"?(r=Xu(t))?(t=r,KO):MQ:t instanceof Xu?KO:t instanceof Date?_Q:jQ(t)?AQ:Array.isArray(t)?EQ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?TQ:Jd)(e,t)}function wx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function PQ(e,t){t===void 0&&(t=e,e=As);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return i[l](o-l)}}function RQ(e){return function(){return e}}function eh(e){return+e}var YO=[0,1];function Jt(e){return e}function Eg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:RQ(isNaN(t)?NaN:.5)}function $Q(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function DQ(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Eg(a,r),i=n(o,i)):(r=Eg(r,a),i=n(i,o)),function(l){return i(r(l))}}function kQ(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=Eg(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var s=Kc(e,l,1,r)-1;return i[s](a[s](l))}}function Xc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mp(){var e=YO,t=YO,n=As,r,a,i,o=Jt,l,s,u;function f(){var h=Math.min(e.length,t.length);return o!==Jt&&(o=$Q(e[0],e[h-1])),l=h>2?kQ:DQ,s=u=null,c}function c(h){return h==null||isNaN(h=+h)?i:(s||(s=l(e.map(r),t,n)))(r(o(h)))}return c.invert=function(h){return o(a((u||(u=l(t,e.map(r),Jd)))(h)))},c.domain=function(h){return arguments.length?(e=Array.from(h,eh),f()):e.slice()},c.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},c.rangeRound=function(h){return t=Array.from(h),n=wx,f()},c.clamp=function(h){return arguments.length?(o=h?!0:Jt,f()):o!==Jt},c.interpolate=function(h){return arguments.length?(n=h,f()):n},c.unknown=function(h){return arguments.length?(i=h,c):i},function(h,p){return r=h,a=p,f()}}function Ox(){return Mp()(Jt,Jt)}function LQ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function th(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function $l(e){return e=th(Math.abs(e)),e?e[1]:NaN}function zQ(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(n.substring(a-=l,a+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function BQ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var UQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vu(e){if(!(t=UQ.exec(e)))throw new Error("invalid format: "+e);var t;return new Ax({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Vu.prototype=Ax.prototype;function Ax(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ax.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function IQ(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var nh;function HQ(e,t){var n=th(e,t);if(!n)return nh=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(nh=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+th(e,Math.max(0,t+i-1))[0]}function XO(e,t){var n=th(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const VO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:LQ,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>XO(e*100,t),r:XO,s:HQ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function QO(e){return e}var WO=Array.prototype.map,ZO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qQ(e){var t=e.grouping===void 0||e.thousands===void 0?QO:zQ(WO.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?QO:BQ(WO.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(c,h){c=Vu(c);var p=c.fill,b=c.align,v=c.sign,g=c.symbol,y=c.zero,m=c.width,x=c.comma,w=c.precision,S=c.trim,O=c.type;O==="n"?(x=!0,O="g"):VO[O]||(w===void 0&&(w=12),S=!0,O="g"),(y||p==="0"&&b==="=")&&(y=!0,p="0",b="=");var A=(h&&h.prefix!==void 0?h.prefix:"")+(g==="$"?n:g==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),E=(g==="$"?r:/[%p]/.test(O)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),_=VO[O],C=/[defgprs%]/.test(O);w=w===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function $(P){var B=A,L=E,D,R,k;if(O==="c")L=_(P)+L,P="";else{P=+P;var U=P<0||1/P<0;if(P=isNaN(P)?s:_(Math.abs(P),w),S&&(P=IQ(P)),U&&+P==0&&v!=="+"&&(U=!1),B=(U?v==="("?v:l:v==="-"||v==="("?"":v)+B,L=(O==="s"&&!isNaN(P)&&nh!==void 0?ZO[8+nh/3]:"")+L+(U&&v==="("?")":""),C){for(D=-1,R=P.length;++D<R;)if(k=P.charCodeAt(D),48>k||k>57){L=(k===46?a+P.slice(D+1):P.slice(D))+L,P=P.slice(0,D);break}}}x&&!y&&(P=t(P,1/0));var q=B.length+P.length+L.length,F=q<m?new Array(m-q+1).join(p):"";switch(x&&y&&(P=t(F+P,F.length?m-L.length:1/0),F=""),b){case"<":P=B+P+L+F;break;case"=":P=B+F+P+L;break;case"^":P=F.slice(0,q=F.length>>1)+B+P+L+F.slice(q);break;default:P=F+B+P+L;break}return i(P)}return $.toString=function(){return c+""},$}function f(c,h){var p=Math.max(-8,Math.min(8,Math.floor($l(h)/3)))*3,b=Math.pow(10,-p),v=u((c=Vu(c),c.type="f",c),{suffix:ZO[8+p/3]});return function(g){return v(b*g)}}return{format:u,formatPrefix:f}}var jf,jx,tM;FQ({thousands:",",grouping:[3],currency:["$",""]});function FQ(e){return jf=qQ(e),jx=jf.format,tM=jf.formatPrefix,jf}function GQ(e){return Math.max(0,-$l(Math.abs(e)))}function KQ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($l(t)/3)))*3-$l(Math.abs(e)))}function YQ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$l(t)-$l(e))+1}function nM(e,t,n,r){var a=wg(e,t,n),i;switch(r=Vu(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=KQ(a,o))&&(r.precision=i),tM(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=YQ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=GQ(a))&&(r.precision=i-(r.type==="%")*2);break}}return jx(r)}function ui(e){var t=e.domain;return e.ticks=function(n){var r=t();return xg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return nM(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],s,u,f=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);f-- >0;){if(u=Sg(o,l,n),u===s)return r[a]=o,r[i]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function rh(){var e=Ox();return e.copy=function(){return Xc(e,rh())},er.apply(e,arguments),ui(e)}function rM(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,eh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return rM(e).unknown(t)},e=arguments.length?Array.from(e,eh):[0,1],ui(n)}function aM(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function JO(e){return Math.log(e)}function eA(e){return Math.exp(e)}function XQ(e){return-Math.log(-e)}function VQ(e){return-Math.exp(-e)}function QQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function WQ(e){return e===10?QQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ZQ(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function tA(e){return(t,n)=>-e(-t,n)}function Ex(e){const t=e(JO,eA),n=t.domain;let r=10,a,i;function o(){return a=ZQ(r),i=WQ(r),n()[0]<0?(a=tA(a),i=tA(i),e(XQ,VQ)):e(JO,eA),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let u=s[0],f=s[s.length-1];const c=f<u;c&&([u,f]=[f,u]);let h=a(u),p=a(f),b,v;const g=l==null?10:+l;let y=[];if(!(r%1)&&p-h<g){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(b=1;b<r;++b)if(v=h<0?b/i(-h):b*i(h),!(v<u)){if(v>f)break;y.push(v)}}else for(;h<=p;++h)for(b=r-1;b>=1;--b)if(v=h>0?b/i(-h):b*i(h),!(v<u)){if(v>f)break;y.push(v)}y.length*2<g&&(y=xg(u,f,g))}else y=xg(h,p,Math.min(p-h,g)).map(i);return c?y.reverse():y},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Vu(s)).precision==null&&(s.trim=!0),s=jx(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return f=>{let c=f/i(Math.round(a(f)));return c*r<r-.5&&(c*=r),c<=u?s(f):""}},t.nice=()=>n(aM(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function iM(){const e=Ex(Mp()).domain([1,10]);return e.copy=()=>Xc(e,iM()).base(e.base()),er.apply(e,arguments),e}function nA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function rA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _x(e){var t=1,n=e(nA(t),rA(t));return n.constant=function(r){return arguments.length?e(nA(t=+r),rA(t)):t},ui(n)}function oM(){var e=_x(Mp());return e.copy=function(){return Xc(e,oM()).constant(e.constant())},er.apply(e,arguments)}function aA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function JQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function eW(e){return e<0?-e*e:e*e}function Tx(e){var t=e(Jt,Jt),n=1;function r(){return n===1?e(Jt,Jt):n===.5?e(JQ,eW):e(aA(n),aA(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},ui(t)}function Nx(){var e=Tx(Mp());return e.copy=function(){return Xc(e,Nx()).exponent(e.exponent())},er.apply(e,arguments),e}function tW(){return Nx.apply(null,arguments).exponent(.5)}function iA(e){return Math.sign(e)*e*e}function nW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function lM(){var e=Ox(),t=[0,1],n=!1,r;function a(i){var o=nW(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(iA(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,eh)).map(iA)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return lM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},er.apply(a,arguments),ui(a)}function sM(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=lQ(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[Kc(n,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Ja),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return sM().domain(e).range(t).unknown(r)},er.apply(i,arguments)}function uM(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(s){return s!=null&&s<=s?a[Kc(r,s,0,n)]:i}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(a=Array.from(s)).length-1,l()):a.slice()},o.invertExtent=function(s){var u=a.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(i=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return uM().domain([e,t]).range(a).unknown(i)},er.apply(ui(o),arguments)}function cM(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Kc(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return cM().domain(e).range(t).unknown(n)},er.apply(a,arguments)}const hm=new Date,pm=new Date;function At(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o<l-i?o:l},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const s=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return s;let u;do s.push(u=new Date(+i)),t(i,l),e(i);while(u<i&&i<o);return s},a.filter=i=>At(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(hm.setTime(+i),pm.setTime(+o),e(hm),e(pm),Math.floor(n(hm,pm))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const ah=At(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ah.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?At(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ah);ah.range;const Xr=1e3,Yn=Xr*60,Vr=Yn*60,ua=Vr*24,Cx=ua*7,oA=ua*30,ym=ua*365,Ni=At(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Xr)},(e,t)=>(t-e)/Xr,e=>e.getUTCSeconds());Ni.range;const Mx=At(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xr)},(e,t)=>{e.setTime(+e+t*Yn)},(e,t)=>(t-e)/Yn,e=>e.getMinutes());Mx.range;const Px=At(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Yn)},(e,t)=>(t-e)/Yn,e=>e.getUTCMinutes());Px.range;const Rx=At(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xr-e.getMinutes()*Yn)},(e,t)=>{e.setTime(+e+t*Vr)},(e,t)=>(t-e)/Vr,e=>e.getHours());Rx.range;const $x=At(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Vr)},(e,t)=>(t-e)/Vr,e=>e.getUTCHours());$x.range;const Vc=At(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yn)/ua,e=>e.getDate()-1);Vc.range;const Pp=At(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ua,e=>e.getUTCDate()-1);Pp.range;const fM=At(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ua,e=>Math.floor(e/ua));fM.range;function yo(e){return At(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yn)/Cx)}const Rp=yo(0),ih=yo(1),rW=yo(2),aW=yo(3),Dl=yo(4),iW=yo(5),oW=yo(6);Rp.range;ih.range;rW.range;aW.range;Dl.range;iW.range;oW.range;function mo(e){return At(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Cx)}const $p=mo(0),oh=mo(1),lW=mo(2),sW=mo(3),kl=mo(4),uW=mo(5),cW=mo(6);$p.range;oh.range;lW.range;sW.range;kl.range;uW.range;cW.range;const Dx=At(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Dx.range;const kx=At(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());kx.range;const ca=At(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ca.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:At(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ca.range;const fa=At(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());fa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:At(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});fa.range;function dM(e,t,n,r,a,i){const o=[[Ni,1,Xr],[Ni,5,5*Xr],[Ni,15,15*Xr],[Ni,30,30*Xr],[i,1,Yn],[i,5,5*Yn],[i,15,15*Yn],[i,30,30*Yn],[a,1,Vr],[a,3,3*Vr],[a,6,6*Vr],[a,12,12*Vr],[r,1,ua],[r,2,2*ua],[n,1,Cx],[t,1,oA],[t,3,3*oA],[e,1,ym]];function l(u,f,c){const h=f<u;h&&([u,f]=[f,u]);const p=c&&typeof c.range=="function"?c:s(u,f,c),b=p?p.range(u,+f+1):[];return h?b.reverse():b}function s(u,f,c){const h=Math.abs(f-u)/c,p=gx(([,,g])=>g).right(o,h);if(p===o.length)return e.every(wg(u/ym,f/ym,c));if(p===0)return ah.every(Math.max(wg(u,f,c),1));const[b,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return b.every(v)}return[l,s]}const[fW,dW]=dM(fa,kx,$p,fM,$x,Px),[hW,pW]=dM(ca,Dx,Rp,Vc,Rx,Mx);function mm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function vm(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Us(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function yW(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=Is(a),f=Hs(a),c=Is(i),h=Hs(i),p=Is(o),b=Hs(o),v=Is(l),g=Hs(l),y=Is(s),m=Hs(s),x={a:k,A:U,b:q,B:F,c:null,d:dA,e:dA,f:zW,g:XW,G:QW,H:DW,I:kW,j:LW,L:hM,m:BW,M:UW,p:V,q:G,Q:yA,s:mA,S:IW,u:HW,U:qW,V:FW,w:GW,W:KW,x:null,X:null,y:YW,Y:VW,Z:WW,"%":pA},w={a:ee,A:he,b:$e,B:se,c:null,d:hA,e:hA,f:tZ,g:fZ,G:hZ,H:ZW,I:JW,j:eZ,L:yM,m:nZ,M:rZ,p:Pt,q:vt,Q:yA,s:mA,S:aZ,u:iZ,U:oZ,V:lZ,w:sZ,W:uZ,x:null,X:null,y:cZ,Y:dZ,Z:pZ,"%":pA},S={a:C,A:$,b:P,B,c:L,d:cA,e:cA,f:MW,g:uA,G:sA,H:fA,I:fA,j:_W,L:CW,m:EW,M:TW,p:_,q:jW,Q:RW,s:$W,S:NW,u:xW,U:SW,V:wW,w:bW,W:OW,x:D,X:R,y:uA,Y:sA,Z:AW,"%":PW};x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),w.x=O(n,w),w.X=O(r,w),w.c=O(t,w);function O(X,ie){return function(ue){var H=[],Ke=-1,me=0,Te=X.length,J,De,Rt;for(ue instanceof Date||(ue=new Date(+ue));++Ke<Te;)X.charCodeAt(Ke)===37&&(H.push(X.slice(me,Ke)),(De=lA[J=X.charAt(++Ke)])!=null?J=X.charAt(++Ke):De=J==="e"?" ":"0",(Rt=ie[J])&&(J=Rt(ue,De)),H.push(J),me=Ke+1);return H.push(X.slice(me,Ke)),H.join("")}}function A(X,ie){return function(ue){var H=Us(1900,void 0,1),Ke=E(H,X,ue+="",0),me,Te;if(Ke!=ue.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(ie&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(me=vm(Us(H.y,0,1)),Te=me.getUTCDay(),me=Te>4||Te===0?oh.ceil(me):oh(me),me=Pp.offset(me,(H.V-1)*7),H.y=me.getUTCFullYear(),H.m=me.getUTCMonth(),H.d=me.getUTCDate()+(H.w+6)%7):(me=mm(Us(H.y,0,1)),Te=me.getDay(),me=Te>4||Te===0?ih.ceil(me):ih(me),me=Vc.offset(me,(H.V-1)*7),H.y=me.getFullYear(),H.m=me.getMonth(),H.d=me.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),Te="Z"in H?vm(Us(H.y,0,1)).getUTCDay():mm(Us(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Te+5)%7:H.w+H.U*7-(Te+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,vm(H)):mm(H)}}function E(X,ie,ue,H){for(var Ke=0,me=ie.length,Te=ue.length,J,De;Ke<me;){if(H>=Te)return-1;if(J=ie.charCodeAt(Ke++),J===37){if(J=ie.charAt(Ke++),De=S[J in lA?ie.charAt(Ke++):J],!De||(H=De(X,ue,H))<0)return-1}else if(J!=ue.charCodeAt(H++))return-1}return H}function _(X,ie,ue){var H=u.exec(ie.slice(ue));return H?(X.p=f.get(H[0].toLowerCase()),ue+H[0].length):-1}function C(X,ie,ue){var H=p.exec(ie.slice(ue));return H?(X.w=b.get(H[0].toLowerCase()),ue+H[0].length):-1}function $(X,ie,ue){var H=c.exec(ie.slice(ue));return H?(X.w=h.get(H[0].toLowerCase()),ue+H[0].length):-1}function P(X,ie,ue){var H=y.exec(ie.slice(ue));return H?(X.m=m.get(H[0].toLowerCase()),ue+H[0].length):-1}function B(X,ie,ue){var H=v.exec(ie.slice(ue));return H?(X.m=g.get(H[0].toLowerCase()),ue+H[0].length):-1}function L(X,ie,ue){return E(X,t,ie,ue)}function D(X,ie,ue){return E(X,n,ie,ue)}function R(X,ie,ue){return E(X,r,ie,ue)}function k(X){return o[X.getDay()]}function U(X){return i[X.getDay()]}function q(X){return s[X.getMonth()]}function F(X){return l[X.getMonth()]}function V(X){return a[+(X.getHours()>=12)]}function G(X){return 1+~~(X.getMonth()/3)}function ee(X){return o[X.getUTCDay()]}function he(X){return i[X.getUTCDay()]}function $e(X){return s[X.getUTCMonth()]}function se(X){return l[X.getUTCMonth()]}function Pt(X){return a[+(X.getUTCHours()>=12)]}function vt(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var ie=O(X+="",x);return ie.toString=function(){return X},ie},parse:function(X){var ie=A(X+="",!1);return ie.toString=function(){return X},ie},utcFormat:function(X){var ie=O(X+="",w);return ie.toString=function(){return X},ie},utcParse:function(X){var ie=A(X+="",!0);return ie.toString=function(){return X},ie}}}var lA={"-":"",_:" ",0:"0"},Mt=/^\s*\d+/,mW=/^%/,vW=/[\\^$*+?|[\]().{}]/g;function we(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function gW(e){return e.replace(vW,"\\$&")}function Is(e){return new RegExp("^(?:"+e.map(gW).join("|")+")","i")}function Hs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function bW(e,t,n){var r=Mt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function xW(e,t,n){var r=Mt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function SW(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function wW(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function OW(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function sA(e,t,n){var r=Mt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function uA(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function AW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function jW(e,t,n){var r=Mt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function EW(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cA(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _W(e,t,n){var r=Mt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function fA(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function TW(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function NW(e,t,n){var r=Mt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function CW(e,t,n){var r=Mt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function MW(e,t,n){var r=Mt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function PW(e,t,n){var r=mW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function RW(e,t,n){var r=Mt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $W(e,t,n){var r=Mt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function dA(e,t){return we(e.getDate(),t,2)}function DW(e,t){return we(e.getHours(),t,2)}function kW(e,t){return we(e.getHours()%12||12,t,2)}function LW(e,t){return we(1+Vc.count(ca(e),e),t,3)}function hM(e,t){return we(e.getMilliseconds(),t,3)}function zW(e,t){return hM(e,t)+"000"}function BW(e,t){return we(e.getMonth()+1,t,2)}function UW(e,t){return we(e.getMinutes(),t,2)}function IW(e,t){return we(e.getSeconds(),t,2)}function HW(e){var t=e.getDay();return t===0?7:t}function qW(e,t){return we(Rp.count(ca(e)-1,e),t,2)}function pM(e){var t=e.getDay();return t>=4||t===0?Dl(e):Dl.ceil(e)}function FW(e,t){return e=pM(e),we(Dl.count(ca(e),e)+(ca(e).getDay()===4),t,2)}function GW(e){return e.getDay()}function KW(e,t){return we(ih.count(ca(e)-1,e),t,2)}function YW(e,t){return we(e.getFullYear()%100,t,2)}function XW(e,t){return e=pM(e),we(e.getFullYear()%100,t,2)}function VW(e,t){return we(e.getFullYear()%1e4,t,4)}function QW(e,t){var n=e.getDay();return e=n>=4||n===0?Dl(e):Dl.ceil(e),we(e.getFullYear()%1e4,t,4)}function WW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+we(t/60|0,"0",2)+we(t%60,"0",2)}function hA(e,t){return we(e.getUTCDate(),t,2)}function ZW(e,t){return we(e.getUTCHours(),t,2)}function JW(e,t){return we(e.getUTCHours()%12||12,t,2)}function eZ(e,t){return we(1+Pp.count(fa(e),e),t,3)}function yM(e,t){return we(e.getUTCMilliseconds(),t,3)}function tZ(e,t){return yM(e,t)+"000"}function nZ(e,t){return we(e.getUTCMonth()+1,t,2)}function rZ(e,t){return we(e.getUTCMinutes(),t,2)}function aZ(e,t){return we(e.getUTCSeconds(),t,2)}function iZ(e){var t=e.getUTCDay();return t===0?7:t}function oZ(e,t){return we($p.count(fa(e)-1,e),t,2)}function mM(e){var t=e.getUTCDay();return t>=4||t===0?kl(e):kl.ceil(e)}function lZ(e,t){return e=mM(e),we(kl.count(fa(e),e)+(fa(e).getUTCDay()===4),t,2)}function sZ(e){return e.getUTCDay()}function uZ(e,t){return we(oh.count(fa(e)-1,e),t,2)}function cZ(e,t){return we(e.getUTCFullYear()%100,t,2)}function fZ(e,t){return e=mM(e),we(e.getUTCFullYear()%100,t,2)}function dZ(e,t){return we(e.getUTCFullYear()%1e4,t,4)}function hZ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?kl(e):kl.ceil(e),we(e.getUTCFullYear()%1e4,t,4)}function pZ(){return"+0000"}function pA(){return"%"}function yA(e){return+e}function mA(e){return Math.floor(+e/1e3)}var Oo,vM,gM;yZ({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yZ(e){return Oo=yW(e),vM=Oo.format,Oo.parse,gM=Oo.utcFormat,Oo.utcParse,Oo}function mZ(e){return new Date(e)}function vZ(e){return e instanceof Date?+e:+new Date(+e)}function Lx(e,t,n,r,a,i,o,l,s,u){var f=Ox(),c=f.invert,h=f.domain,p=u(".%L"),b=u(":%S"),v=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),m=u("%b %d"),x=u("%B"),w=u("%Y");function S(O){return(s(O)<O?p:l(O)<O?b:o(O)<O?v:i(O)<O?g:r(O)<O?a(O)<O?y:m:n(O)<O?x:w)(O)}return f.invert=function(O){return new Date(c(O))},f.domain=function(O){return arguments.length?h(Array.from(O,vZ)):h().map(mZ)},f.ticks=function(O){var A=h();return e(A[0],A[A.length-1],O??10)},f.tickFormat=function(O,A){return A==null?S:u(A)},f.nice=function(O){var A=h();return(!O||typeof O.range!="function")&&(O=t(A[0],A[A.length-1],O??10)),O?h(aM(A,O)):f},f.copy=function(){return Xc(f,Lx(e,t,n,r,a,i,o,l,s,u))},f}function gZ(){return er.apply(Lx(hW,pW,ca,Dx,Rp,Vc,Rx,Mx,Ni,vM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bZ(){return er.apply(Lx(fW,dW,fa,kx,$p,Pp,$x,Px,Ni,gM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Dp(){var e=0,t=1,n,r,a,i,o=Jt,l=!1,s;function u(c){return c==null||isNaN(c=+c)?s:o(a===0?.5:(c=(i(c)-n)*a,l?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(c){return arguments.length?(l=!!c,u):l},u.interpolator=function(c){return arguments.length?(o=c,u):o};function f(c){return function(h){var p,b;return arguments.length?([p,b]=h,o=c(p,b),u):[o(0),o(1)]}}return u.range=f(As),u.rangeRound=f(wx),u.unknown=function(c){return arguments.length?(s=c,u):s},function(c){return i=c,n=c(e),r=c(t),a=n===r?0:1/(r-n),u}}function ci(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bM(){var e=ui(Dp()(Jt));return e.copy=function(){return ci(e,bM())},ma.apply(e,arguments)}function xM(){var e=Ex(Dp()).domain([1,10]);return e.copy=function(){return ci(e,xM()).base(e.base())},ma.apply(e,arguments)}function SM(){var e=_x(Dp());return e.copy=function(){return ci(e,SM()).constant(e.constant())},ma.apply(e,arguments)}function zx(){var e=Tx(Dp());return e.copy=function(){return ci(e,zx()).exponent(e.exponent())},ma.apply(e,arguments)}function xZ(){return zx.apply(null,arguments).exponent(.5)}function wM(){var e=[],t=Jt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Kc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Ja),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>oQ(e,i/r))},n.copy=function(){return wM(t).domain(e)},ma.apply(n,arguments)}function kp(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=Jt,f,c=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-i)*(r*v<r*i?l:s),u(c?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,n]=v,a=f(e=+e),i=f(t=+t),o=f(n=+n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(v){return arguments.length?(c=!!v,p):c},p.interpolator=function(v){return arguments.length?(u=v,p):u};function b(v){return function(g){var y,m,x;return arguments.length?([y,m,x]=g,u=PQ(v,[y,m,x]),p):[u(0),u(.5),u(1)]}}return p.range=b(As),p.rangeRound=b(wx),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,a=v(e),i=v(t),o=v(n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p}}function OM(){var e=ui(kp()(Jt));return e.copy=function(){return ci(e,OM())},ma.apply(e,arguments)}function AM(){var e=Ex(kp()).domain([.1,1,10]);return e.copy=function(){return ci(e,AM()).base(e.base())},ma.apply(e,arguments)}function jM(){var e=_x(kp());return e.copy=function(){return ci(e,jM()).constant(e.constant())},ma.apply(e,arguments)}function Bx(){var e=Tx(kp());return e.copy=function(){return ci(e,Bx()).exponent(e.exponent())},ma.apply(e,arguments)}function SZ(){return Bx.apply(null,arguments).exponent(.5)}const vA=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Gu,scaleDiverging:OM,scaleDivergingLog:AM,scaleDivergingPow:Bx,scaleDivergingSqrt:SZ,scaleDivergingSymlog:jM,scaleIdentity:rM,scaleImplicit:Og,scaleLinear:rh,scaleLog:iM,scaleOrdinal:bx,scalePoint:yu,scalePow:Nx,scaleQuantile:sM,scaleQuantize:uM,scaleRadial:lM,scaleSequential:bM,scaleSequentialLog:xM,scaleSequentialPow:zx,scaleSequentialQuantile:wM,scaleSequentialSqrt:xZ,scaleSequentialSymlog:SM,scaleSqrt:tW,scaleSymlog:oM,scaleThreshold:cM,scaleTime:gZ,scaleUtc:bZ,tickFormat:nM},Symbol.toStringTag,{value:"Module"}));var wZ=ys;function OZ(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],o=t(i);if(o!=null&&(l===void 0?o===o&&!wZ(o):n(o,l)))var l=o,s=i}return s}var Lp=OZ;function AZ(e,t){return e>t}var EM=AZ,jZ=Lp,EZ=EM,_Z=ws;function TZ(e){return e&&e.length?jZ(e,_Z,EZ):void 0}var NZ=TZ;const zp=Be(NZ);function CZ(e,t){return e<t}var _M=CZ,MZ=Lp,PZ=_M,RZ=ws;function $Z(e){return e&&e.length?MZ(e,RZ,PZ):void 0}var DZ=$Z;const Bp=Be(DZ);var kZ=Zb,LZ=si,zZ=kC,BZ=mn;function UZ(e,t){var n=BZ(e)?kZ:zZ;return n(e,LZ(t))}var IZ=UZ,HZ=$C,qZ=IZ;function FZ(e,t){return HZ(qZ(e,t),1)}var GZ=FZ;const KZ=Be(GZ);var YZ=px;function XZ(e,t){return YZ(e,t)}var VZ=XZ;const Up=Be(VZ);var js=1e9,QZ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ix,tt=!0,Zn="[DecimalError] ",Yi=Zn+"Invalid argument: ",Ux=Zn+"Exponent out of range: ",Es=Math.floor,Oi=Math.pow,WZ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,jn,Et=1e7,Ve=7,TM=9007199254740991,lh=Es(TM/Ve),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.cmp=function(e){var t,n,r,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ve;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};W.dividedBy=W.div=function(e){return ta(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,n=t.constructor;return Ue(ta(t,new n(e),0,1),n.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return mt(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(jn))throw Error(Zn+"NaN");if(n.s<1)throw Error(Zn+(n.s?"NaN":"-Infinity"));return n.eq(jn)?new r(0):(tt=!1,t=ta(Qu(n,i),Qu(e,i),i),tt=!0,Ue(t,a))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MM(t,e):NM(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Zn+"NaN");return n.s?(tt=!1,t=ta(n,e,0,1).times(e),tt=!0,n.minus(t)):Ue(new r(n),a)};W.naturalExponential=W.exp=function(){return CM(this)};W.naturalLogarithm=W.ln=function(){return Qu(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?NM(t,e):MM(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Yi+e);if(t=mt(a)+1,r=a.d.length-1,n=r*Ve+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};W.squareRoot=W.sqrt=function(){var e,t,n,r,a,i,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(Zn+"NaN")}for(e=mt(l),tt=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=Sr(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Es((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new s(t)):r=new s(a.toString()),n=s.precision,a=o=n+3;;)if(i=r,r=i.plus(ta(l,i,o+2)).times(.5),Sr(i.d).slice(0,o)===(t=Sr(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Ue(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if(t!="9999")break;o+=4}return tt=!0,Ue(r,n)};W.times=W.mul=function(e){var t,n,r,a,i,o,l,s,u,f=this,c=f.constructor,h=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,s=h.length,u=p.length,s<u&&(i=h,h=p,p=i,o=s,s=u,u=o),i=[],o=s+u,r=o;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=s+r;a>r;)l=i[a]+p[r]*h[a-r-1]+t,i[a--]=l%Et|0,t=l/Et|0;i[a]=(i[a]+t)%Et|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,tt?Ue(e,c.precision):e};W.toDecimalPlaces=W.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(jr(e,0,js),t===void 0?t=r.rounding:jr(t,0,8),Ue(n,e+mt(n)+1,t))};W.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=io(r,!0):(jr(e,0,js),t===void 0?t=a.rounding:jr(t,0,8),r=Ue(new a(r),e+1,t),n=io(r,!0,e+1)),n};W.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?io(a):(jr(e,0,js),t===void 0?t=i.rounding:jr(t,0,8),r=Ue(new i(a),e+mt(a)+1,t),n=io(r.abs(),!1,e+mt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return Ue(new t(e),mt(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.pow=function(e){var t,n,r,a,i,o,l=this,s=l.constructor,u=12,f=+(e=new s(e));if(!e.s)return new s(jn);if(l=new s(l),!l.s){if(e.s<1)throw Error(Zn+"Infinity");return l}if(l.eq(jn))return l;if(r=s.precision,e.eq(jn))return Ue(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=l.s,o){if((n=f<0?-f:f)<=TM){for(a=new s(jn),t=Math.ceil(r/Ve+4),tt=!1;n%2&&(a=a.times(l),bA(a.d,t)),n=Es(n/2),n!==0;)l=l.times(l),bA(l.d,t);return tt=!0,e.s<0?new s(jn).div(a):Ue(a,r)}}else if(i<0)throw Error(Zn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,tt=!1,a=e.times(Qu(l,r+u)),tt=!0,a=CM(a),a.s=i,a};W.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=mt(a),r=io(a,n<=i.toExpNeg||n>=i.toExpPos)):(jr(e,1,js),t===void 0?t=i.rounding:jr(t,0,8),a=Ue(new i(a),e,t),n=mt(a),r=io(a,e<=n||n<=i.toExpNeg,e)),r};W.toSignificantDigits=W.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(jr(e,1,js),t===void 0?t=r.rounding:jr(t,0,8)),Ue(new r(n),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=mt(e),n=e.constructor;return io(e,t<=n.toExpNeg||t>=n.toExpPos)};function NM(e,t){var n,r,a,i,o,l,s,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),tt?Ue(t,c):t;if(s=e.d,u=t.d,o=e.e,a=t.e,s=s.slice(),i=o-a,i){for(i<0?(r=s,i=-i,l=u.length):(r=u,a=o,l=s.length),o=Math.ceil(c/Ve),l=o>l?o+1:l+1,i>l&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(l=s.length,i=u.length,l-i<0&&(i=l,r=u,u=s,s=r),n=0;i;)n=(s[--i]=s[i]+u[i]+n)/Et|0,s[i]%=Et;for(n&&(s.unshift(n),++a),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=a,tt?Ue(t,c):t}function jr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Yi+e)}function Sr(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)r=e[t]+"",n=Ve-r.length,n&&(i+=Oa(n)),i+=r;o=e[t],r=o+"",n=Ve-r.length,n&&(i+=Oa(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var ta=function(){function e(r,a){var i,o=0,l=r.length;for(r=r.slice();l--;)i=r[l]*a+o,r[l]=i%Et|0,o=i/Et|0;return o&&r.unshift(o),r}function t(r,a,i,o){var l,s;if(i!=o)s=i>o?1:-1;else for(l=s=0;l<i;l++)if(r[l]!=a[l]){s=r[l]>a[l]?1:-1;break}return s}function n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]<a[i]?1:0,r[i]=o*Et+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,o){var l,s,u,f,c,h,p,b,v,g,y,m,x,w,S,O,A,E,_=r.constructor,C=r.s==a.s?1:-1,$=r.d,P=a.d;if(!r.s)return new _(r);if(!a.s)throw Error(Zn+"Division by zero");for(s=r.e-a.e,A=P.length,S=$.length,p=new _(C),b=p.d=[],u=0;P[u]==($[u]||0);)++u;if(P[u]>($[u]||0)&&--s,i==null?m=i=_.precision:o?m=i+(mt(r)-mt(a))+1:m=i,m<0)return new _(0);if(m=m/Ve+2|0,u=0,A==1)for(f=0,P=P[0],m++;(u<S||f)&&m--;u++)x=f*Et+($[u]||0),b[u]=x/P|0,f=x%P|0;else{for(f=Et/(P[0]+1)|0,f>1&&(P=e(P,f),$=e($,f),A=P.length,S=$.length),w=A,v=$.slice(0,A),g=v.length;g<A;)v[g++]=0;E=P.slice(),E.unshift(0),O=P[0],P[1]>=Et/2&&++O;do f=0,l=t(P,v,A,g),l<0?(y=v[0],A!=g&&(y=y*Et+(v[1]||0)),f=y/O|0,f>1?(f>=Et&&(f=Et-1),c=e(P,f),h=c.length,g=v.length,l=t(c,v,h,g),l==1&&(f--,n(c,A<h?E:P,h))):(f==0&&(l=f=1),c=P.slice()),h=c.length,h<g&&c.unshift(0),n(v,c,g),l==-1&&(g=v.length,l=t(P,v,A,g),l<1&&(f++,n(v,A<g?E:P,g))),g=v.length):l===0&&(f++,v=[0]),b[u++]=f,l&&v[0]?v[g++]=$[w]||0:(v=[$[w]],g=1);while((w++<S||v[0]!==void 0)&&m--)}return b[0]||b.shift(),p.e=s,Ue(p,o?i+mt(p)+1:i)}}();function CM(e,t){var n,r,a,i,o,l,s=0,u=0,f=e.constructor,c=f.precision;if(mt(e)>16)throw Error(Ux+mt(e));if(!e.s)return new f(jn);for(tt=!1,l=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Oi(2,u))/Math.LN10*2+5|0,l+=r,n=a=i=new f(jn),f.precision=l;;){if(a=Ue(a.times(e),l),n=n.times(++s),o=i.plus(ta(a,n,l)),Sr(o.d).slice(0,l)===Sr(i.d).slice(0,l)){for(;u--;)i=Ue(i.times(i),l);return f.precision=c,t==null?(tt=!0,Ue(i,c)):i}i=o}}function mt(e){for(var t=e.e*Ve,n=e.d[0];n>=10;n/=10)t++;return t}function gm(e,t,n){if(t>e.LN10.sd())throw tt=!0,n&&(e.precision=n),Error(Zn+"LN10 precision limit exceeded");return Ue(new e(e.LN10),t)}function Oa(e){for(var t="";e--;)t+="0";return t}function Qu(e,t){var n,r,a,i,o,l,s,u,f,c=1,h=10,p=e,b=p.d,v=p.constructor,g=v.precision;if(p.s<1)throw Error(Zn+(p.s?"NaN":"-Infinity"));if(p.eq(jn))return new v(0);if(t==null?(tt=!1,u=g):u=t,p.eq(10))return t==null&&(tt=!0),gm(v,u);if(u+=h,v.precision=u,n=Sr(b),r=n.charAt(0),i=mt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Sr(p.d),r=n.charAt(0),c++;i=mt(p),r>1?(p=new v("0."+n),i++):p=new v(r+"."+n.slice(1))}else return s=gm(v,u+2,g).times(i+""),p=Qu(new v(r+"."+n.slice(1)),u-h).plus(s),v.precision=g,t==null?(tt=!0,Ue(p,g)):p;for(l=o=p=ta(p.minus(jn),p.plus(jn),u),f=Ue(p.times(p),u),a=3;;){if(o=Ue(o.times(f),u),s=l.plus(ta(o,new v(a),u)),Sr(s.d).slice(0,u)===Sr(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(gm(v,u+2,g).times(i+""))),l=ta(l,new v(c),u),v.precision=g,t==null?(tt=!0,Ue(l,g)):l;l=s,a+=2}}function gA(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Es(n/Ve),e.d=[],r=(n+1)%Ve,n<0&&(r+=Ve),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Ve;r<a;)e.d.push(+t.slice(r,r+=Ve));t=t.slice(r),r=Ve-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),tt&&(e.e>lh||e.e<-lh))throw Error(Ux+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ue(e,t,n){var r,a,i,o,l,s,u,f,c=e.d;for(o=1,i=c[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=Ve,a=t,u=c[f=0];else{if(f=Math.ceil((r+1)/Ve),i=c.length,f>=i)return e;for(u=i=c[f],o=1;i>=10;i/=10)o++;r%=Ve,a=r-Ve+o}if(n!==void 0&&(i=Oi(10,o-a-1),l=u/i%10|0,s=t<0||c[f+1]!==void 0||u%i,s=n<4?(l||s)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||s||n==6&&(r>0?a>0?u/Oi(10,o-a):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return s?(i=mt(e),c.length=1,t=t-i-1,c[0]=Oi(10,(Ve-t%Ve)%Ve),e.e=Es(-t/Ve)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,i=1,f--):(c.length=f+1,i=Oi(10,Ve-r),c[f]=a>0?(u/Oi(10,o-a)%Oi(10,a)|0)*i:0),s)for(;;)if(f==0){(c[0]+=i)==Et&&(c[0]=1,++e.e);break}else{if(c[f]+=i,c[f]!=Et)break;c[f--]=0,i=1}for(r=c.length;c[--r]===0;)c.pop();if(tt&&(e.e>lh||e.e<-lh))throw Error(Ux+mt(e));return e}function MM(e,t){var n,r,a,i,o,l,s,u,f,c,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),tt?Ue(t,p):t;if(s=e.d,c=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(f=o<0,f?(n=s,o=-o,l=c.length):(n=c,r=u,l=s.length),a=Math.max(Math.ceil(p/Ve),l)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=s.length,l=c.length,f=a<l,f&&(l=a),a=0;a<l;a++)if(s[a]!=c[a]){f=s[a]<c[a];break}o=0}for(f&&(n=s,s=c,c=n,t.s=-t.s),l=s.length,a=c.length-l;a>0;--a)s[l++]=0;for(a=c.length;a>o;){if(s[--a]<c[a]){for(i=a;i&&s[--i]===0;)s[i]=Et-1;--s[i],s[a]+=Et}s[a]-=c[a]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,tt?Ue(t,p):t):new h(0)}function io(e,t,n){var r,a=mt(e),i=Sr(e.d),o=i.length;return t?(n&&(r=n-o)>0?i=i.charAt(0)+"."+i.slice(1)+Oa(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Oa(-a-1)+i,n&&(r=n-o)>0&&(i+=Oa(r))):a>=o?(i+=Oa(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+Oa(r))):((r=a+1)<o&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(i+="."),i+=Oa(r))),e.s<0?"-"+i:i}function bA(e,t){if(e.length>t)return e.length=t,!0}function PM(e){var t,n,r;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Yi+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return gA(o,i.toString())}else if(typeof i!="string")throw Error(Yi+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,WZ.test(i))gA(o,i);else throw Error(Yi+i)}if(a.prototype=W,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=PM,a.config=a.set=ZZ,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function ZZ(e){if(!e||typeof e!="object")throw Error(Zn+"Object expected");var t,n,r,a=["precision",1,js,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Es(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Yi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Yi+n+": "+r);return this}var Ix=PM(QZ);jn=new Ix(1);const Le=Ix;function JZ(e){return rJ(e)||nJ(e)||tJ(e)||eJ()}function eJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tJ(e,t){if(e){if(typeof e=="string")return _g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _g(e,t)}}function nJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function rJ(e){if(Array.isArray(e))return _g(e)}function _g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aJ=function(t){return t},RM={},$M=function(t){return t===RM},xA=function(t){return function n(){return arguments.length===0||arguments.length===1&&$M(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},iJ=function e(t,n){return t===1?n:xA(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=a.filter(function(l){return l!==RM}).length;return o>=t?n.apply(void 0,a):e(t-o,xA(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var f=a.map(function(c){return $M(c)?s.shift():c});return n.apply(void 0,JZ(f).concat(s))}))})},Ip=function(t){return iJ(t.length,t)},Tg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},oJ=Ip(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),lJ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return aJ;var a=n.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(l,s){return s(l)},i.apply(void 0,arguments))}},Ng=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},DM=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n&&i.every(function(l,s){return l===n[s]})||(n=i,r=t.apply(void 0,i)),r}};function sJ(e){var t;return e===0?t=1:t=Math.floor(new Le(e).abs().log(10).toNumber())+1,t}function uJ(e,t,n){for(var r=new Le(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var cJ=Ip(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),fJ=Ip(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),dJ=Ip(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Hp={rangeStep:uJ,getDigitCount:sJ,interpolateNumber:cJ,uninterpolateNumber:fJ,uninterpolateTruncation:dJ};function Cg(e){return yJ(e)||pJ(e)||kM(e)||hJ()}function hJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function yJ(e){if(Array.isArray(e))return Mg(e)}function Wu(e,t){return gJ(e)||vJ(e,t)||kM(e,t)||mJ()}function mJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kM(e,t){if(e){if(typeof e=="string")return Mg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mg(e,t)}}function Mg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vJ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){a=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function gJ(e){if(Array.isArray(e))return e}function LM(e){var t=Wu(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function zM(e,t,n){if(e.lte(0))return new Le(0);var r=Hp.getDigitCount(e.toNumber()),a=new Le(10).pow(r),i=e.div(a),o=r!==1?.05:.1,l=new Le(Math.ceil(i.div(o).toNumber())).add(n).mul(o),s=l.mul(a);return t?s:new Le(Math.ceil(s))}function bJ(e,t,n){var r=1,a=new Le(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Le(10).pow(Hp.getDigitCount(e)-1),a=new Le(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Le(Math.floor(e)))}else e===0?a=new Le(Math.floor((t-1)/2)):n||(a=new Le(Math.floor(e)));var o=Math.floor((t-1)/2),l=lJ(oJ(function(s){return a.add(new Le(s-o).mul(r)).toNumber()}),Tg);return l(0,t)}function BM(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Le(0),tickMin:new Le(0),tickMax:new Le(0)};var i=zM(new Le(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new Le(0):(o=new Le(e).add(t).div(2),o=o.sub(new Le(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),s=Math.ceil(new Le(t).sub(o).div(i).toNumber()),u=l+s+1;return u>n?BM(e,t,n,r,a+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:i,tickMin:o.sub(new Le(l).mul(i)),tickMax:o.add(new Le(s).mul(i))})}function xJ(e){var t=Wu(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=LM([n,r]),s=Wu(l,2),u=s[0],f=s[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(Cg(Tg(0,a-1).map(function(){return 1/0}))):[].concat(Cg(Tg(0,a-1).map(function(){return-1/0})),[f]);return n>r?Ng(c):c}if(u===f)return bJ(u,a,i);var h=BM(u,f,o,i),p=h.step,b=h.tickMin,v=h.tickMax,g=Hp.rangeStep(b,v.add(new Le(.1).mul(p)),p);return n>r?Ng(g):g}function SJ(e,t){var n=Wu(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=LM([r,a]),l=Wu(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,a];if(s===u)return[s];var f=Math.max(t,2),c=zM(new Le(u).sub(s).div(f-1),i,0),h=[].concat(Cg(Hp.rangeStep(new Le(s),new Le(u).sub(new Le(.99).mul(c)),c)),[u]);return r>a?Ng(h):h}var wJ=DM(xJ),OJ=DM(SJ),AJ="Invariant failed";function oo(e,t){throw new Error(AJ)}var jJ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}function sh(){return sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sh.apply(this,arguments)}function EJ(e,t){return CJ(e)||NJ(e,t)||TJ(e,t)||_J()}function _J(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TJ(e,t){if(e){if(typeof e=="string")return SA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SA(e,t)}}function SA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function CJ(e){if(Array.isArray(e))return e}function MJ(e,t){if(e==null)return{};var n=PJ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function RJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HM(r.key),r)}}function DJ(e,t,n){return t&&$J(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kJ(e,t,n){return t=uh(t),LJ(e,UM()?Reflect.construct(t,n||[],uh(e).constructor):t.apply(e,n))}function LJ(e,t){if(t&&(Ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zJ(e)}function zJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UM=function(){return!!e})()}function uh(e){return uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uh(e)}function BJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pg(e,t)}function Pg(e,t){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Pg(e,t)}function IM(e,t,n){return t=HM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HM(e){var t=UJ(e,"string");return Ll(t)=="symbol"?t:t+""}function UJ(e,t){if(Ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qp=function(e){function t(){return RJ(this,t),kJ(this,t,arguments)}return BJ(t,e),DJ(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,o=r.width,l=r.dataKey,s=r.data,u=r.dataPointFormatter,f=r.xAxis,c=r.yAxis,h=MJ(r,jJ),p=ae(h,!1);this.props.direction==="x"&&f.type!=="number"&&oo();var b=s.map(function(v){var g=u(v,l),y=g.x,m=g.y,x=g.value,w=g.errorVal;if(!w)return null;var S=[],O,A;if(Array.isArray(w)){var E=EJ(w,2);O=E[0],A=E[1]}else O=A=w;if(i==="vertical"){var _=f.scale,C=m+a,$=C+o,P=C-o,B=_(x-O),L=_(x+A);S.push({x1:L,y1:$,x2:L,y2:P}),S.push({x1:B,y1:C,x2:L,y2:C}),S.push({x1:B,y1:$,x2:B,y2:P})}else if(i==="horizontal"){var D=c.scale,R=y+a,k=R-o,U=R+o,q=D(x-O),F=D(x+A);S.push({x1:k,y1:F,x2:U,y2:F}),S.push({x1:R,y1:q,x2:R,y2:F}),S.push({x1:k,y1:q,x2:U,y2:q})}return M.createElement(Me,sh({className:"recharts-errorBar",key:"bar-".concat(S.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},p),S.map(function(V){return M.createElement("line",sh({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return M.createElement(Me,{className:"recharts-errorBars"},b)}}])}(M.Component);IM(qp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});IM(qp,"displayName","ErrorBar");function Zu(e){"@babel/helpers - typeof";return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(e)}function wA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wA(Object(n),!0).forEach(function(r){IJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IJ(e,t,n){return t=HJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HJ(e){var t=qJ(e,"string");return Zu(t)=="symbol"?t:t+""}function qJ(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qM=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=xn(n,el);if(!o)return null;var l=el.defaultProps,s=l!==void 0?pi(pi({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(r||[]).reduce(function(f,c){var h=c.item,p=c.props,b=p.sectors||p.data||[];return f.concat(b.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(r||[]).map(function(f){var c=f.item,h=c.type.defaultProps,p=h!==void 0?pi(pi({},h),c.props):{},b=p.dataKey,v=p.name,g=p.legendType,y=p.hide;return{inactive:y,dataKey:b,type:s.iconType||g||"square",color:Hx(c),value:v||b,payload:p}}),pi(pi(pi({},s),el.getWithHeight(o,a)),{},{payload:u,item:o})};function Ju(e){"@babel/helpers - typeof";return Ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(e)}function OA(e){return YJ(e)||KJ(e)||GJ(e)||FJ()}function FJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GJ(e,t){if(e){if(typeof e=="string")return Rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rg(e,t)}}function KJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YJ(e){if(Array.isArray(e))return Rg(e)}function Rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AA(Object(n),!0).forEach(function(r){nl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nl(e,t,n){return t=XJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XJ(e){var t=VJ(e,"string");return Ju(t)=="symbol"?t:t+""}function VJ(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ft(e,t,n){return ye(e)||ye(t)?n:wt(t)?Mn(e,t,n):oe(t)?t(e):n}function mu(e,t,n,r){var a=KZ(e,function(l){return Ft(l,t)});if(n==="number"){var i=a.filter(function(l){return K(l)||parseFloat(l)});return i.length?[Bp(i),zp(i)]:[1/0,-1/0]}var o=r?a.filter(function(l){return!ye(l)}):a;return o.map(function(l){return wt(l)||l instanceof Date?l:""})}var QJ=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,u=0;u<l;u++){var f=u>0?a[u-1].coordinate:a[l-1].coordinate,c=a[u].coordinate,h=u>=l-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(Wt(c-f)!==Wt(h-c)){var b=[];if(Wt(h-c)===Wt(s[1]-s[0])){p=h;var v=c+s[1]-s[0];b[0]=Math.min(v,(v+f)/2),b[1]=Math.max(v,(v+f)/2)}else{p=f;var g=h+s[1]-s[0];b[0]=Math.min(c,(g+c)/2),b[1]=Math.max(c,(g+c)/2)}var y=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>y[0]&&t<=y[1]||t>=b[0]&&t<=b[1]){o=a[u].index;break}}else{var m=Math.min(f,h),x=Math.max(f,h);if(t>(m+c)/2&&t<=(x+c)/2){o=a[u].index;break}}}else for(var w=0;w<l;w++)if(w===0&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<l-1&&t>(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===l-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){o=r[w].index;break}return o},Hx=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,s;switch(a){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:l;break;default:s=l;break}return s},WJ=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},l=Object.keys(i),s=0,u=l.length;s<u;s++)for(var f=i[l[s]].stackGroups,c=Object.keys(f),h=0,p=c.length;h<p;h++){var b=f[c[h]],v=b.items,g=b.cateAxisId,y=v.filter(function(A){return Jr(A.type).indexOf("Bar")>=0});if(y&&y.length){var m=y[0].type.defaultProps,x=m!==void 0?ot(ot({},m),y[0].props):y[0].props,w=x.barSize,S=x[g];o[S]||(o[S]=[]);var O=ye(w)?n:w;o[S].push({item:y[0],stackList:y.slice(1),barSize:ye(O)?void 0:Zt(O,r,0)})}}return o},ZJ=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,s=o.length;if(s<1)return null;var u=Zt(n,a,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=a/s,b=o.reduce(function(w,S){return w+S.barSize||0},0);b+=(s-1)*u,b>=a&&(b-=(s-1)*u,u=0),b>=a&&p>0&&(h=!0,p*=.9,b=s*p);var v=(a-b)/2>>0,g={offset:v-u,size:0};f=o.reduce(function(w,S){var O={item:S.item,position:{offset:g.offset+g.size+u,size:h?p:S.barSize}},A=[].concat(OA(w),[O]);return g=A[A.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){A.push({item:E,position:g})}),A},c)}else{var y=Zt(r,a,0,!0);a-2*y-(s-1)*u<=0&&(u=0);var m=(a-2*y-(s-1)*u)/s;m>1&&(m>>=0);var x=l===+l?Math.min(m,l):m;f=o.reduce(function(w,S,O){var A=[].concat(OA(w),[{item:S.item,position:{offset:y+(m+u)*O+(m-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){A.push({item:E,position:A[A.length-1].position})}),A},c)}return f},JJ=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=qM({children:i,legendWidth:s});if(u){var f=a||{},c=f.width,h=f.height,p=u.align,b=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&b==="middle")&&p!=="center"&&K(t[p]))return ot(ot({},t),{},nl({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&b!=="middle"&&K(t[b]))return ot(ot({},t),{},nl({},b,t[b]+(h||0)))}return t},eee=function(t,n,r){return ye(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},FM=function(t,n,r,a,i){var o=n.props.children,l=Qn(o,qp).filter(function(u){return eee(a,i,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=Ft(f,r);if(ye(c))return u;var h=Array.isArray(c)?[Bp(c),zp(c)]:[c,c],p=s.reduce(function(b,v){var g=Ft(f,v,0),y=h[0]-Math.abs(Array.isArray(g)?g[0]:g),m=h[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,b[0]),Math.max(m,b[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},tee=function(t,n,r,a,i){var o=n.map(function(l){return FM(t,l,r,i,a)}).filter(function(l){return!ye(l)});return o&&o.length?o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},GM=function(t,n,r,a,i){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&FM(t,s,u,a)||mu(t,u,r,i)});if(r==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(s,u){for(var f=0,c=u.length;f<c;f++)l[u[f]]||(l[u[f]]=!0,s.push(u[f]));return s},[])},KM=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Ci=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,s=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(n||r)&&o==="category"&&a.bandwidth?a.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Wt(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var h=i?i.indexOf(c):c;return{coordinate:a(h)+u,value:c,offset:u}});return f.filter(function(c){return!Fc(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,h){return{coordinate:a(c)+u,value:c,index:h,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(c){return{coordinate:a(c)+u,value:c,offset:u}}):a.domain().map(function(c,h){return{coordinate:a(c)+u,value:i?i[c]:c,index:h,offset:u}})},bm=new WeakMap,Ef=function(t,n){if(typeof n!="function")return t;bm.has(t)||bm.set(t,new WeakMap);var r=bm.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},YM=function(t,n,r){var a=t.scale,i=t.type,o=t.layout,l=t.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Gu(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:rh(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:yu(),realScaleType:"point"}:i==="category"?{scale:Gu(),realScaleType:"band"}:{scale:rh(),realScaleType:"linear"};if(no(a)){var s="scale".concat(Op(a));return{scale:(vA[s]||yu)(),realScaleType:vA[s]?s:"point"}}return oe(a)?{scale:a}:{scale:yu(),realScaleType:"point"}},jA=1e-4,XM=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-jA,o=Math.max(a[0],a[1])+jA,l=t(n[0]),s=t(n[r-1]);(l<i||l>o||s<i||s>o)&&t.domain([n[0],n[r-1]])}},nee=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},ree=function(t,n){if(!n||n.length!==2||!K(n[0])||!K(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!K(t[0])||t[0]<r)&&(i[0]=r),(!K(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},aee=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0,l=0;l<n;++l){var s=Fc(t[l][r][1])?t[l][r][0]:t[l][r][1];s>=0?(t[l][r][0]=i,t[l][r][1]=i+s,i=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+s,o=t[l][r][1])}},iee=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0;o<n;++o){var l=Fc(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=i,t[o][r][1]=i+l,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},oee={sign:aee,expand:A7,none:Nl,silhouette:j7,wiggle:E7,positive:iee},lee=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=oee[r],o=O7().keys(a).value(function(l,s){return+Ft(l,s,0)}).order(ag).offset(i);return o(t)},see=function(t,n,r,a,i,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(c,h){var p,b=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ot(ot({},h.type.defaultProps),h.props):h.props,v=b.stackId,g=b.hide;if(g)return c;var y=b[r],m=c[y]||{hasStack:!1,stackGroups:{}};if(wt(v)){var x=m.stackGroups[v]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),m.hasStack=!0,m.stackGroups[v]=x}else m.stackGroups[Gc("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return ot(ot({},c),{},nl({},y,m))},s),f={};return Object.keys(u).reduce(function(c,h){var p=u[h];if(p.hasStack){var b={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,g){var y=p.stackGroups[g];return ot(ot({},v),{},nl({},g,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:lee(t,y.items,i)}))},b)}return ot(ot({},c),{},nl({},h,p))},f)},VM=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,o=n.originalDomain,l=n.allowDecimals,s=r||n.scale;if(s!=="auto"&&s!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=wJ(u,i,l);return t.domain([Bp(f),zp(f)]),{niceTicks:f}}if(i&&a==="number"){var c=t.domain(),h=OJ(c,i,l);return{niceTicks:h}}return null},EA=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+a:null;var s=Ft(o,n.dataKey,n.domain[l]);return ye(s)?null:n.scale(s)-i/2+a},uee=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},cee=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(wt(i)){var o=n[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},fee=function(t){return t.reduce(function(n,r){return[Bp(r.concat([n[0]]).filter(K)),zp(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},QM=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,s=l.reduce(function(u,f){var c=fee(f.slice(n,r+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(s[0],a[0]),Math.max(s[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},_A=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,TA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$g=function(t,n,r){if(oe(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(K(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(_A.test(t[0])){var i=+_A.exec(t[0])[1];a[0]=n[0]-i}else oe(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(K(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(TA.test(t[1])){var o=+TA.exec(t[1])[1];a[1]=n[1]+o}else oe(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},ch=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=mx(n,function(c){return c.coordinate}),o=1/0,l=1,s=i.length;l<s;l++){var u=i[l],f=i[l-1];o=Math.min((u.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},NA=function(t,n,r){return!t||!t.length||Up(t,Mn(r,"type.defaultProps.domain"))?n:t},WM=function(t,n){var r=t.type.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,o=r.unit,l=r.formatter,s=r.tooltipType,u=r.chartType,f=r.hide;return ot(ot({},ae(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:Hx(t),value:Ft(n,a),type:s,payload:n,chartType:u,hide:f})};function ec(e){"@babel/helpers - typeof";return ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ec(e)}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(n),!0).forEach(function(r){ZM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZM(e,t,n){return t=dee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dee(e){var t=hee(e,"string");return ec(t)=="symbol"?t:t+""}function hee(e,t){if(ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pee(e,t){return gee(e)||vee(e,t)||mee(e,t)||yee()}function yee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mee(e,t){if(e){if(typeof e=="string")return MA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MA(e,t)}}function MA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function gee(e){if(Array.isArray(e))return e}var fh=Math.PI/180,bee=function(t){return t*180/Math.PI},Ge=function(t,n,r,a){return{x:t+Math.cos(-fh*a)*r,y:n+Math.sin(-fh*a)*r}},JM=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},xee=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,f=Zt(t.cx,o,o/2),c=Zt(t.cy,l,l/2),h=JM(o,l,r),p=Zt(t.innerRadius,h,0),b=Zt(t.outerRadius,h,h*.8),v=Object.keys(n);return v.reduce(function(g,y){var m=n[y],x=m.domain,w=m.reversed,S;if(ye(m.range))a==="angleAxis"?S=[s,u]:a==="radiusAxis"&&(S=[p,b]),w&&(S=[S[1],S[0]]);else{S=m.range;var O=S,A=pee(O,2);s=A[0],u=A[1]}var E=YM(m,i),_=E.realScaleType,C=E.scale;C.domain(x).range(S),XM(C);var $=VM(C,zr(zr({},m),{},{realScaleType:_})),P=zr(zr(zr({},m),$),{},{range:S,radius:b,realScaleType:_,scale:C,cx:f,cy:c,innerRadius:p,outerRadius:b,startAngle:s,endAngle:u});return zr(zr({},g),{},ZM({},y,P))},{})},See=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-o,2))},wee=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=See({x:r,y:a},{x:i,y:o});if(l<=0)return{radius:l};var s=(r-i)/l,u=Math.acos(s);return a>o&&(u=2*Math.PI-u),{radius:l,angle:bee(u),angleInRadian:u}},Oee=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),o=Math.min(a,i);return{startAngle:n-o*360,endAngle:r-o*360}},Aee=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),o=Math.floor(a/360),l=Math.min(i,o);return t+l*360},PA=function(t,n){var r=t.x,a=t.y,i=wee({x:r,y:a},n),o=i.radius,l=i.angle,s=n.innerRadius,u=n.outerRadius;if(o<s||o>u)return!1;if(o===0)return!0;var f=Oee(n),c=f.startAngle,h=f.endAngle,p=l,b;if(c<=h){for(;p>h;)p-=360;for(;p<c;)p+=360;b=p>=c&&p<=h}else{for(;p>c;)p-=360;for(;p<h;)p+=360;b=p>=h&&p<=c}return b?zr(zr({},n),{},{radius:o,angle:Aee(p,n)}):null},eP=function(t){return!j.isValidElement(t)&&!oe(t)&&typeof t!="boolean"?t.className:""};function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}var jee=["offset"];function Eee(e){return Cee(e)||Nee(e)||Tee(e)||_ee()}function _ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tee(e,t){if(e){if(typeof e=="string")return Dg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dg(e,t)}}function Nee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cee(e){if(Array.isArray(e))return Dg(e)}function Dg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mee(e,t){if(e==null)return{};var n=Pee(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function RA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(n),!0).forEach(function(r){Ree(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ree(e,t,n){return t=$ee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ee(e){var t=Dee(e,"string");return tc(t)=="symbol"?t:t+""}function Dee(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nc.apply(this,arguments)}var kee=function(t){var n=t.value,r=t.formatter,a=ye(t.children)?n:t.children;return oe(r)?r(a):a},Lee=function(t,n){var r=Wt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},zee=function(t,n,r){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,s=i,u=s.cx,f=s.cy,c=s.innerRadius,h=s.outerRadius,p=s.startAngle,b=s.endAngle,v=s.clockWise,g=(c+h)/2,y=Lee(p,b),m=y>=0?1:-1,x,w;a==="insideStart"?(x=p+m*o,w=v):a==="insideEnd"?(x=b-m*o,w=!v):a==="end"&&(x=b+m*o,w=v),w=y<=0?w:!w;var S=Ge(u,f,g,x),O=Ge(u,f,g,x+(w?1:-1)*359),A="M".concat(S.x,",").concat(S.y,`
    A`).concat(g,",").concat(g,",0,1,").concat(w?0:1,`,
    `).concat(O.x,",").concat(O.y),E=ye(t.id)?Gc("recharts-radial-line-"):t.id;return M.createElement("text",nc({},r,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",l)}),M.createElement("defs",null,M.createElement("path",{id:E,d:A})),M.createElement("textPath",{xlinkHref:"#".concat(E)},n))},Bee=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,o=i.cx,l=i.cy,s=i.innerRadius,u=i.outerRadius,f=i.startAngle,c=i.endAngle,h=(f+c)/2;if(a==="outside"){var p=Ge(o,l,u+r,h),b=p.x,v=p.y;return{x:b,y:v,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var g=(s+u)/2,y=Ge(o,l,g,h),m=y.x,x=y.y;return{x:m,y:x,textAnchor:"middle",verticalAnchor:"middle"}},Uee=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,o=n,l=o.x,s=o.y,u=o.width,f=o.height,c=f>=0?1:-1,h=c*a,p=c>0?"end":"start",b=c>0?"start":"end",v=u>=0?1:-1,g=v*a,y=v>0?"end":"start",m=v>0?"start":"end";if(i==="top"){var x={x:l+u/2,y:s-c*a,textAnchor:"middle",verticalAnchor:p};return bt(bt({},x),r?{height:Math.max(s-r.y,0),width:u}:{})}if(i==="bottom"){var w={x:l+u/2,y:s+f+h,textAnchor:"middle",verticalAnchor:b};return bt(bt({},w),r?{height:Math.max(r.y+r.height-(s+f),0),width:u}:{})}if(i==="left"){var S={x:l-g,y:s+f/2,textAnchor:y,verticalAnchor:"middle"};return bt(bt({},S),r?{width:Math.max(S.x-r.x,0),height:f}:{})}if(i==="right"){var O={x:l+u+g,y:s+f/2,textAnchor:m,verticalAnchor:"middle"};return bt(bt({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:f}:{})}var A=r?{width:u,height:f}:{};return i==="insideLeft"?bt({x:l+g,y:s+f/2,textAnchor:m,verticalAnchor:"middle"},A):i==="insideRight"?bt({x:l+u-g,y:s+f/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideTop"?bt({x:l+u/2,y:s+h,textAnchor:"middle",verticalAnchor:b},A):i==="insideBottom"?bt({x:l+u/2,y:s+f-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?bt({x:l+g,y:s+h,textAnchor:m,verticalAnchor:b},A):i==="insideTopRight"?bt({x:l+u-g,y:s+h,textAnchor:y,verticalAnchor:b},A):i==="insideBottomLeft"?bt({x:l+g,y:s+f-h,textAnchor:m,verticalAnchor:p},A):i==="insideBottomRight"?bt({x:l+u-g,y:s+f-h,textAnchor:y,verticalAnchor:p},A):ms(i)&&(K(i.x)||_i(i.x))&&(K(i.y)||_i(i.y))?bt({x:l+Zt(i.x,u),y:s+Zt(i.y,f),textAnchor:"end",verticalAnchor:"end"},A):bt({x:l+u/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Iee=function(t){return"cx"in t&&K(t.cx)};function Nt(e){var t=e.offset,n=t===void 0?5:t,r=Mee(e,jee),a=bt({offset:n},r),i=a.viewBox,o=a.position,l=a.value,s=a.children,u=a.content,f=a.className,c=f===void 0?"":f,h=a.textBreakAll;if(!i||ye(l)&&ye(s)&&!j.isValidElement(u)&&!oe(u))return null;if(j.isValidElement(u))return j.cloneElement(u,a);var p;if(oe(u)){if(p=j.createElement(u,a),j.isValidElement(p))return p}else p=kee(a);var b=Iee(i),v=ae(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return zee(a,p,v);var g=b?Bee(a):Uee(a);return M.createElement(ao,nc({className:pe("recharts-label",c)},v,g,{breakAll:h}),p)}Nt.displayName="Label";var tP=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,s=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,h=t.y,p=t.top,b=t.left,v=t.width,g=t.height,y=t.clockWise,m=t.labelViewBox;if(m)return m;if(K(v)&&K(g)){if(K(c)&&K(h))return{x:c,y:h,width:v,height:g};if(K(p)&&K(b))return{x:p,y:b,width:v,height:g}}return K(c)&&K(h)?{x:c,y:h,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:f||s||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},Hee=function(t,n){return t?t===!0?M.createElement(Nt,{key:"label-implicit",viewBox:n}):wt(t)?M.createElement(Nt,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Nt?j.cloneElement(t,{key:"label-implicit",viewBox:n}):M.createElement(Nt,{key:"label-implicit",content:t,viewBox:n}):oe(t)?M.createElement(Nt,{key:"label-implicit",content:t,viewBox:n}):ms(t)?M.createElement(Nt,nc({viewBox:n},t,{key:"label-implicit"})):null:null},qee=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=tP(t),o=Qn(a,Nt).map(function(s,u){return j.cloneElement(s,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var l=Hee(t.label,n||i);return[l].concat(Eee(o))};Nt.parseViewBox=tP;Nt.renderCallByParent=qee;function Fee(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Gee=Fee;const Kee=Be(Gee);function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}var Yee=["valueAccessor"],Xee=["data","dataKey","clockWise","id","textBreakAll"];function Vee(e){return Jee(e)||Zee(e)||Wee(e)||Qee()}function Qee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wee(e,t){if(e){if(typeof e=="string")return kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kg(e,t)}}function Zee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jee(e){if(Array.isArray(e))return kg(e)}function kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dh.apply(this,arguments)}function $A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function DA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(n),!0).forEach(function(r){ete(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ete(e,t,n){return t=tte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tte(e){var t=nte(e,"string");return rc(t)=="symbol"?t:t+""}function nte(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kA(e,t){if(e==null)return{};var n=rte(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ate=function(t){return Array.isArray(t.value)?Kee(t.value):t.value};function ei(e){var t=e.valueAccessor,n=t===void 0?ate:t,r=kA(e,Yee),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=kA(r,Xee);return!a||!a.length?null:M.createElement(Me,{className:"recharts-label-list"},a.map(function(f,c){var h=ye(i)?n(f,c):Ft(f&&f.payload,i),p=ye(l)?{}:{id:"".concat(l,"-").concat(c)};return M.createElement(Nt,dh({},ae(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:Nt.parseViewBox(ye(o)?f:DA(DA({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}ei.displayName="LabelList";function ite(e,t){return e?e===!0?M.createElement(ei,{key:"labelList-implicit",data:t}):M.isValidElement(e)||oe(e)?M.createElement(ei,{key:"labelList-implicit",data:t,content:e}):ms(e)?M.createElement(ei,dh({data:t},e,{key:"labelList-implicit"})):null:null}function ote(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=Qn(r,ei).map(function(o,l){return j.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=ite(e.label,t);return[i].concat(Vee(a))}ei.renderCallByParent=ote;function ac(e){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ac(e)}function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lg.apply(this,arguments)}function LA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(n),!0).forEach(function(r){lte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lte(e,t,n){return t=ste(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ste(e){var t=ute(e,"string");return ac(t)=="symbol"?t:t+""}function ute(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cte=function(t,n){var r=Wt(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},_f=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,o=t.sign,l=t.isExternal,s=t.cornerRadius,u=t.cornerIsExternal,f=s*(l?1:-1)+a,c=Math.asin(s/f)/fh,h=u?i:i+o*c,p=Ge(n,r,f,h),b=Ge(n,r,a,h),v=u?i-o*c:i,g=Ge(n,r,f*Math.cos(c*fh),v);return{center:p,circleTangency:b,lineTangency:g,theta:c}},nP=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,s=cte(o,l),u=o+s,f=Ge(n,r,i,o),c=Ge(n,r,i,u),h="M ".concat(f.x,",").concat(f.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
    `).concat(c.x,",").concat(c.y,`
  `);if(a>0){var p=Ge(n,r,a,o),b=Ge(n,r,a,u);h+="L ".concat(b.x,",").concat(b.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(s)>180),",").concat(+(o<=u),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},fte=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Wt(f-u),h=_f({cx:n,cy:r,radius:i,angle:u,sign:c,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,b=h.lineTangency,v=h.theta,g=_f({cx:n,cy:r,radius:i,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:s}),y=g.circleTangency,m=g.lineTangency,x=g.theta,w=s?Math.abs(u-f):Math.abs(u-f)-v-x;if(w<0)return l?"M ".concat(b.x,",").concat(b.y,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):nP({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:f});var S="M ".concat(b.x,",").concat(b.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(m.x,",").concat(m.y,`
  `);if(a>0){var O=_f({cx:n,cy:r,radius:a,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=O.circleTangency,E=O.lineTangency,_=O.theta,C=_f({cx:n,cy:r,radius:a,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),$=C.circleTangency,P=C.lineTangency,B=C.theta,L=s?Math.abs(u-f):Math.abs(u-f)-_-B;if(L<0&&o===0)return"".concat(S,"L").concat(n,",").concat(r,"Z");S+="L".concat(P.x,",").concat(P.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(L>180),",").concat(+(c>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},dte={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},rP=function(t){var n=zA(zA({},dte),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,c=n.endAngle,h=n.className;if(o<i||f===c)return null;var p=pe("recharts-sector",h),b=o-i,v=Zt(l,b,0,!0),g;return v>0&&Math.abs(f-c)<360?g=fte({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,b/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:f,endAngle:c}):g=nP({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:f,endAngle:c}),M.createElement("path",Lg({},ae(n,!0),{className:p,d:g,role:"img"}))};function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zg.apply(this,arguments)}function BA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function UA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(n),!0).forEach(function(r){hte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hte(e,t,n){return t=pte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pte(e){var t=yte(e,"string");return ic(t)=="symbol"?t:t+""}function yte(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IA={curveBasisClosed:d7,curveBasisOpen:h7,curveBasis:f7,curveBumpX:WI,curveBumpY:ZI,curveLinearClosed:p7,curveLinear:jp,curveMonotoneX:y7,curveMonotoneY:m7,curveNatural:v7,curveStep:g7,curveStepAfter:x7,curveStepBefore:b7},Tf=function(t){return t.x===+t.x&&t.y===+t.y},qs=function(t){return t.x},Fs=function(t){return t.y},mte=function(t,n){if(oe(t))return t;var r="curve".concat(Op(t));return(r==="curveMonotone"||r==="curveBump")&&n?IA["".concat(r).concat(n==="vertical"?"Y":"X")]:IA[r]||jp},vte=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,o=t.baseLine,l=t.layout,s=t.connectNulls,u=s===void 0?!1:s,f=mte(r,l),c=u?i.filter(function(v){return Tf(v)}):i,h;if(Array.isArray(o)){var p=u?o.filter(function(v){return Tf(v)}):o,b=c.map(function(v,g){return UA(UA({},v),{},{base:p[g]})});return l==="vertical"?h=gf().y(Fs).x1(qs).x0(function(v){return v.base.x}):h=gf().x(qs).y1(Fs).y0(function(v){return v.base.y}),h.defined(Tf).curve(f),h(b)}return l==="vertical"&&K(o)?h=gf().y(Fs).x1(qs).x0(o):K(o)?h=gf().x(qs).y1(Fs).y0(o):h=eC().x(qs).y(Fs),h.defined(Tf).curve(f),h(c)},Bg=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var o=r&&r.length?vte(t):a;return j.createElement("path",zg({},ae(t,!1),kd(t),{className:pe("recharts-curve",n),d:o,ref:i}))},aP={exports:{}},gte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bte=gte,xte=bte;function iP(){}function oP(){}oP.resetWarningCache=iP;var Ste=function(){function e(r,a,i,o,l,s){if(s!==xte){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:oP,resetWarningCache:iP};return n.PropTypes=n,n};aP.exports=Ste();var wte=aP.exports;const Ee=Be(wte),{getOwnPropertyNames:Ote,getOwnPropertySymbols:Ate}=Object,{hasOwnProperty:jte}=Object.prototype;function xm(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Nf(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,o=i.get(n),l=i.get(r);if(o&&l)return o===r&&l===n;i.set(n,r),i.set(r,n);const s=e(n,r,a);return i.delete(n),i.delete(r),s}}function Ete(e){return e!=null?e[Symbol.toStringTag]:void 0}function HA(e){return Ote(e).concat(Ate(e))}const _te=Object.hasOwn||((e,t)=>jte.call(e,t));function vo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Tte="__v",Nte="__o",Cte="_owner",{getOwnPropertyDescriptor:qA,keys:FA}=Object;function Mte(e,t){return e.byteLength===t.byteLength&&hh(new Uint8Array(e),new Uint8Array(t))}function Pte(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Rte(e,t){return e.byteLength===t.byteLength&&hh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function $te(e,t){return vo(e.getTime(),t.getTime())}function Dte(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function kte(e,t){return e===t}function GA(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let o,l,s=0;for(;(o=i.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(l=u.next())&&!l.done;){if(a[c]){c++;continue}const h=o.value,p=l.value;if(n.equals(h[0],p[0],s,c,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){f=a[c]=!0;break}c++}if(!f)return!1;s++}return!0}const Lte=vo;function zte(e,t,n){const r=FA(e);let a=r.length;if(FA(t).length!==a)return!1;for(;a-- >0;)if(!lP(e,t,n,r[a]))return!1;return!0}function Gs(e,t,n){const r=HA(e);let a=r.length;if(HA(t).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=r[a],!lP(e,t,n,i)||(o=qA(e,i),l=qA(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Bte(e,t){return vo(e.valueOf(),t.valueOf())}function Ute(e,t){return e.source===t.source&&e.flags===t.flags}function KA(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let o,l;for(;(o=i.next())&&!o.done;){const s=t.values();let u=!1,f=0;for(;(l=s.next())&&!l.done;){if(!a[f]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){u=a[f]=!0;break}f++}if(!u)return!1}return!0}function hh(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Ite(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function lP(e,t,n,r){return(r===Cte||r===Nte||r===Tte)&&(e.$$typeof||t.$$typeof)?!0:_te(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Hte="[object ArrayBuffer]",qte="[object Arguments]",Fte="[object Boolean]",Gte="[object DataView]",Kte="[object Date]",Yte="[object Error]",Xte="[object Map]",Vte="[object Number]",Qte="[object Object]",Wte="[object RegExp]",Zte="[object Set]",Jte="[object String]",ene={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},tne="[object URL]",nne=Object.prototype.toString;function rne({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:b}){return function(g,y,m){if(g===y)return!0;if(g==null||y==null)return!1;const x=typeof g;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?l(g,y,m):x==="function"?i(g,y,m):!1;const w=g.constructor;if(w!==y.constructor)return!1;if(w===Object)return s(g,y,m);if(Array.isArray(g))return t(g,y,m);if(w===Date)return r(g,y,m);if(w===RegExp)return f(g,y,m);if(w===Map)return o(g,y,m);if(w===Set)return c(g,y,m);const S=nne.call(g);if(S===Kte)return r(g,y,m);if(S===Wte)return f(g,y,m);if(S===Xte)return o(g,y,m);if(S===Zte)return c(g,y,m);if(S===Qte)return typeof g.then!="function"&&typeof y.then!="function"&&s(g,y,m);if(S===tne)return p(g,y,m);if(S===Yte)return a(g,y,m);if(S===qte)return s(g,y,m);if(ene[S])return h(g,y,m);if(S===Hte)return e(g,y,m);if(S===Gte)return n(g,y,m);if(S===Fte||S===Vte||S===Jte)return u(g,y,m);if(b){let O=b[S];if(!O){const A=Ete(g);A&&(O=b[A])}if(O)return O(g,y,m)}return!1}}function ane({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Mte,areArraysEqual:n?Gs:Pte,areDataViewsEqual:Rte,areDatesEqual:$te,areErrorsEqual:Dte,areFunctionsEqual:kte,areMapsEqual:n?xm(GA,Gs):GA,areNumbersEqual:Lte,areObjectsEqual:n?Gs:zte,arePrimitiveWrappersEqual:Bte,areRegExpsEqual:Ute,areSetsEqual:n?xm(KA,Gs):KA,areTypedArraysEqual:n?xm(hh,Gs):hh,areUrlsEqual:Ite,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Nf(r.areArraysEqual),i=Nf(r.areMapsEqual),o=Nf(r.areObjectsEqual),l=Nf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return r}function ine(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function one({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(l,s){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(l,s,{cache:u,equals:r,meta:f,strict:a})};if(e)return function(l,s){return t(l,s,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(l,s){return t(l,s,i)}}const lne=fi();fi({strict:!0});fi({circular:!0});fi({circular:!0,strict:!0});fi({createInternalComparator:()=>vo});fi({strict:!0,createInternalComparator:()=>vo});fi({circular:!0,createInternalComparator:()=>vo});fi({circular:!0,createInternalComparator:()=>vo,strict:!0});function fi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=ane(e),o=rne(i),l=n?n(o):ine(o);return one({circular:t,comparator:o,createState:r,equals:l,strict:a})}function sne(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function YA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):sne(a)};requestAnimationFrame(r)}function Ug(e){"@babel/helpers - typeof";return Ug=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ug(e)}function une(e){return hne(e)||dne(e)||fne(e)||cne()}function cne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fne(e,t){if(e){if(typeof e=="string")return XA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XA(e,t)}}function XA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hne(e){if(Array.isArray(e))return e}function pne(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var o=i,l=une(o),s=l[0],u=l.slice(1);if(typeof s=="number"){YA(a.bind(null,u),s);return}a(s),YA(a.bind(null,u));return}Ug(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}function VA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function QA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(n),!0).forEach(function(r){sP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sP(e,t,n){return t=yne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yne(e){var t=mne(e,"string");return oc(t)==="symbol"?t:String(t)}function mne(e,t){if(oc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vne=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},gne=function(t){return t},bne=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},vu=function(t,n){return Object.keys(n).reduce(function(r,a){return QA(QA({},r),{},sP({},a,t(a,n[a])))},{})},WA=function(t,n,r){return t.map(function(a){return"".concat(bne(a)," ").concat(n,"ms ").concat(r)}).join(",")};function xne(e,t){return One(e)||wne(e,t)||uP(e,t)||Sne()}function Sne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function One(e){if(Array.isArray(e))return e}function Ane(e){return _ne(e)||Ene(e)||uP(e)||jne()}function jne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uP(e,t){if(e){if(typeof e=="string")return Ig(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ig(e,t)}}function Ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ne(e){if(Array.isArray(e))return Ig(e)}function Ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ph=1e-4,cP=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},fP=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},ZA=function(t,n){return function(r){var a=cP(t,n);return fP(a,r)}},Tne=function(t,n){return function(r){var a=cP(t,n),i=[].concat(Ane(a.map(function(o,l){return o*l}).slice(1)),[0]);return fP(i,r)}},JA=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,o=1,l=1;break;case"ease":a=.25,i=.1,o=.25,l=1;break;case"ease-in":a=.42,i=0,o=1,l=1;break;case"ease-out":a=.42,i=0,o=.58,l=1;break;case"ease-in-out":a=0,i=0,o=.58,l=1;break;default:{var s=n[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var u=s[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),f=xne(u,4);a=f[0],i=f[1],o=f[2],l=f[3]}}}var c=ZA(a,o),h=ZA(i,l),p=Tne(a,o),b=function(y){return y>1?1:y<0?0:y},v=function(y){for(var m=y>1?1:y,x=m,w=0;w<8;++w){var S=c(x)-m,O=p(x);if(Math.abs(S-m)<ph||O<ph)return h(x);x=b(x-S/O)}return h(x)};return v.isStepper=!1,v},Nne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,o=t.dt,l=o===void 0?17:o,s=function(f,c,h){var p=-(f-c)*r,b=h*i,v=h+(p-b)*l/1e3,g=h*l/1e3+f;return Math.abs(g-c)<ph&&Math.abs(v)<ph?[c,0]:[g,v]};return s.isStepper=!0,s.dt=l,s},Cne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return JA(a);case"spring":return Nne();default:if(a.split("(")[0]==="cubic-bezier")return JA(a)}return typeof a=="function"?a:null};function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}function e2(e){return Rne(e)||Pne(e)||dP(e)||Mne()}function Mne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rne(e){if(Array.isArray(e))return qg(e)}function t2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t2(Object(n),!0).forEach(function(r){Hg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hg(e,t,n){return t=$ne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ne(e){var t=Dne(e,"string");return lc(t)==="symbol"?t:String(t)}function Dne(e,t){if(lc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kne(e,t){return Bne(e)||zne(e,t)||dP(e,t)||Lne()}function Lne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dP(e,t){if(e){if(typeof e=="string")return qg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qg(e,t)}}function qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Bne(e){if(Array.isArray(e))return e}var yh=function(t,n,r){return t+(n-t)*r},Fg=function(t){var n=t.from,r=t.to;return n!==r},Une=function e(t,n,r){var a=vu(function(i,o){if(Fg(o)){var l=t(o.from,o.to,o.velocity),s=kne(l,2),u=s[0],f=s[1];return $t($t({},o),{},{from:u,velocity:f})}return o},n);return r<1?vu(function(i,o){return Fg(o)?$t($t({},o),{},{velocity:yh(o.velocity,a[i].velocity,r),from:yh(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const Ine=function(e,t,n,r,a){var i=vne(e,t),o=i.reduce(function(g,y){return $t($t({},g),{},Hg({},y,[e[y],t[y]]))},{}),l=i.reduce(function(g,y){return $t($t({},g),{},Hg({},y,{from:e[y],velocity:0,to:t[y]}))},{}),s=-1,u,f,c=function(){return null},h=function(){return vu(function(y,m){return m.from},l)},p=function(){return!Object.values(l).filter(Fg).length},b=function(y){u||(u=y);var m=y-u,x=m/n.dt;l=Une(n,l,x),a($t($t($t({},e),t),h())),u=y,p()||(s=requestAnimationFrame(c))},v=function(y){f||(f=y);var m=(y-f)/r,x=vu(function(S,O){return yh.apply(void 0,e2(O).concat([n(m)]))},o);if(a($t($t($t({},e),t),x)),m<1)s=requestAnimationFrame(c);else{var w=vu(function(S,O){return yh.apply(void 0,e2(O).concat([n(1)]))},o);a($t($t($t({},e),t),w))}};return c=n.isStepper?b:v,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(s)}}};function zl(e){"@babel/helpers - typeof";return zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zl(e)}var Hne=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function qne(e,t){if(e==null)return{};var n=Fne(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Sm(e){return Xne(e)||Yne(e)||Kne(e)||Gne()}function Gne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kne(e,t){if(e){if(typeof e=="string")return Gg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gg(e,t)}}function Yne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xne(e){if(Array.isArray(e))return Gg(e)}function Gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(n),!0).forEach(function(r){Js(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Js(e,t,n){return t=hP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hP(r.key),r)}}function Wne(e,t,n){return t&&Qne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hP(e){var t=Zne(e,"string");return zl(t)==="symbol"?t:String(t)}function Zne(e,t){if(zl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kg(e,t)}function Kg(e,t){return Kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Kg(e,t)}function ere(e){var t=tre();return function(){var r=mh(e),a;if(t){var i=mh(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Yg(this,a)}}function Yg(e,t){if(t&&(zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xg(e)}function Xg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mh(e){return mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mh(e)}var da=function(e){Jne(n,e);var t=ere(n);function n(r,a){var i;Vne(this,n),i=t.call(this,r,a);var o=i.props,l=o.isActive,s=o.attributeName,u=o.from,f=o.to,c=o.steps,h=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(Xg(i)),i.changeStyle=i.changeStyle.bind(Xg(i)),!l||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),Yg(i);if(c&&c.length)i.state={style:c[0].style};else if(u){if(typeof h=="function")return i.state={style:u},Yg(i);i.state={style:s?Js({},s,u):u}}else i.state={style:{}};return i}return Wne(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,l=i.canBegin,s=i.attributeName,u=i.shouldReAnimate,f=i.to,c=i.from,h=this.state.style;if(l){if(!o){var p={style:s?Js({},s,f):f};this.state&&h&&(s&&h[s]!==f||!s&&h!==f)&&this.setState(p);return}if(!(lne(a.to,f)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=b||u?c:a.to;if(this.state&&h){var g={style:s?Js({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(g)}this.runAnimation(nr(nr({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,s=a.duration,u=a.easing,f=a.begin,c=a.onAnimationEnd,h=a.onAnimationStart,p=Ine(o,l,Cne(u),s,this.changeStyle),b=function(){i.stopJSAnimation=p()};this.manager.start([h,f,b,s,c])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,s=a.onAnimationStart,u=o[0],f=u.style,c=u.duration,h=c===void 0?0:c,p=function(v,g,y){if(y===0)return v;var m=g.duration,x=g.easing,w=x===void 0?"ease":x,S=g.style,O=g.properties,A=g.onAnimationEnd,E=y>0?o[y-1]:g,_=O||Object.keys(S);if(typeof w=="function"||w==="spring")return[].concat(Sm(v),[i.runJSAnimation.bind(i,{from:E.style,to:S,duration:m,easing:w}),m]);var C=WA(_,m,w),$=nr(nr(nr({},E.style),S),{},{transition:C});return[].concat(Sm(v),[$,m,A]).filter(gne)};return this.manager.start([s].concat(Sm(o.reduce(p,[f,Math.max(h,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=pne());var i=a.begin,o=a.duration,l=a.attributeName,s=a.to,u=a.easing,f=a.onAnimationStart,c=a.onAnimationEnd,h=a.steps,p=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var v=l?Js({},l,s):s,g=WA(Object.keys(v),o,u);b.start([f,i,nr(nr({},v),{},{transition:g}),o,c])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var s=qne(a,Hne),u=j.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!l||u===0||o<=0)return i;var c=function(p){var b=p.props,v=b.style,g=v===void 0?{}:v,y=b.className,m=j.cloneElement(p,nr(nr({},s),{},{style:nr(nr({},g),f),className:y}));return m};return u===1?c(j.Children.only(i)):M.createElement("div",null,j.Children.map(i,function(h){return c(h)}))}}]),n}(j.PureComponent);da.displayName="Animate";da.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};da.propTypes={from:Ee.oneOfType([Ee.object,Ee.string]),to:Ee.oneOfType([Ee.object,Ee.string]),attributeName:Ee.string,duration:Ee.number,begin:Ee.number,easing:Ee.oneOfType([Ee.string,Ee.func]),steps:Ee.arrayOf(Ee.shape({duration:Ee.number.isRequired,style:Ee.object.isRequired,easing:Ee.oneOfType([Ee.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ee.func]),properties:Ee.arrayOf("string"),onAnimationEnd:Ee.func})),children:Ee.oneOfType([Ee.node,Ee.func]),isActive:Ee.bool,canBegin:Ee.bool,onAnimationEnd:Ee.func,shouldReAnimate:Ee.bool,onAnimationStart:Ee.func,onAnimationReStart:Ee.func};function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(e)}function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vh.apply(this,arguments)}function nre(e,t){return ore(e)||ire(e,t)||are(e,t)||rre()}function rre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function are(e,t){if(e){if(typeof e=="string")return r2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r2(e,t)}}function r2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ire(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function ore(e){if(Array.isArray(e))return e}function a2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function i2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a2(Object(n),!0).forEach(function(r){lre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lre(e,t,n){return t=sre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sre(e){var t=ure(e,"string");return sc(t)=="symbol"?t:t+""}function ure(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o2=function(t,n,r,a,i){var o=Math.min(Math.abs(r)/2,Math.abs(a)/2),l=a>=0?1:-1,s=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,f;if(o>0&&i instanceof Array){for(var c=[0,0,0,0],h=0,p=4;h<p;h++)c[h]=i[h]>o?o:i[h];f="M".concat(t,",").concat(n+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+s*c[0],",").concat(n)),f+="L ".concat(t+r-s*c[1],",").concat(n),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
        `).concat(t+r,",").concat(n+l*c[1])),f+="L ".concat(t+r,",").concat(n+a-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
        `).concat(t+r-s*c[2],",").concat(n+a)),f+="L ".concat(t+s*c[3],",").concat(n+a),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
        `).concat(t,",").concat(n+a-l*c[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);f="M ".concat(t,",").concat(n+l*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+s*b,",").concat(n,`
            L `).concat(t+r-s*b,",").concat(n,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*b,`
            L `).concat(t+r,",").concat(n+a-l*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r-s*b,",").concat(n+a,`
            L `).concat(t+s*b,",").concat(n+a,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t,",").concat(n+a-l*b," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},cre=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,o=n.y,l=n.width,s=n.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(i,i+l),f=Math.max(i,i+l),c=Math.min(o,o+s),h=Math.max(o,o+s);return r>=u&&r<=f&&a>=c&&a<=h}return!1},fre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qx=function(t){var n=i2(i2({},fre),t),r=j.useRef(),a=j.useState(-1),i=nre(a,2),o=i[0],l=i[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&l(w)}catch{}},[]);var s=n.x,u=n.y,f=n.width,c=n.height,h=n.radius,p=n.className,b=n.animationEasing,v=n.animationDuration,g=n.animationBegin,y=n.isAnimationActive,m=n.isUpdateAnimationActive;if(s!==+s||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var x=pe("recharts-rectangle",p);return m?M.createElement(da,{canBegin:o>0,from:{width:f,height:c,x:s,y:u},to:{width:f,height:c,x:s,y:u},duration:v,animationEasing:b,isActive:m},function(w){var S=w.width,O=w.height,A=w.x,E=w.y;return M.createElement(da,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,isActive:y,easing:b},M.createElement("path",vh({},ae(n,!0),{className:x,d:o2(A,E,S,O,h),ref:r})))}):M.createElement("path",vh({},ae(n,!0),{className:x,d:o2(s,u,f,c,h)}))},dre=["points","className","baseLinePoints","connectNulls"];function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ho.apply(this,arguments)}function hre(e,t){if(e==null)return{};var n=pre(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function l2(e){return gre(e)||vre(e)||mre(e)||yre()}function yre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mre(e,t){if(e){if(typeof e=="string")return Vg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vg(e,t)}}function vre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gre(e){if(Array.isArray(e))return Vg(e)}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s2=function(t){return t&&t.x===+t.x&&t.y===+t.y},bre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){s2(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),s2(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},gu=function(t,n){var r=bre(t);n&&(r=[r.reduce(function(i,o){return[].concat(l2(i),l2(o))},[])]);var a=r.map(function(i){return i.reduce(function(o,l,s){return"".concat(o).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},xre=function(t,n,r){var a=gu(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(gu(n.reverse(),r).slice(1))},Sre=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,o=hre(t,dre);if(!n||!n.length)return null;var l=pe("recharts-polygon",r);if(a&&a.length){var s=o.stroke&&o.stroke!=="none",u=xre(n,a,i);return M.createElement("g",{className:l},M.createElement("path",Ho({},ae(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?M.createElement("path",Ho({},ae(o,!0),{fill:"none",d:gu(n,i)})):null,s?M.createElement("path",Ho({},ae(o,!0),{fill:"none",d:gu(a,i)})):null)}var f=gu(n,i);return M.createElement("path",Ho({},ae(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:l,d:f}))};function Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qg.apply(this,arguments)}var Fx=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,o=pe("recharts-dot",i);return n===+n&&r===+r&&a===+a?j.createElement("circle",Qg({},ae(t,!1),kd(t),{className:o,cx:n,cy:r,r:a})):null};function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}var wre=["x","y","top","left","width","height","className"];function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wg.apply(this,arguments)}function u2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ore(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u2(Object(n),!0).forEach(function(r){Are(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Are(e,t,n){return t=jre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jre(e){var t=Ere(e,"string");return uc(t)=="symbol"?t:t+""}function Ere(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _re(e,t){if(e==null)return{};var n=Tre(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Nre=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},Cre=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,l=o===void 0?0:o,s=t.left,u=s===void 0?0:s,f=t.width,c=f===void 0?0:f,h=t.height,p=h===void 0?0:h,b=t.className,v=_re(t,wre),g=Ore({x:r,y:i,top:l,left:u,width:c,height:p},v);return!K(r)||!K(i)||!K(c)||!K(p)||!K(l)||!K(u)?null:M.createElement("path",Wg({},ae(g,!0),{className:pe("recharts-cross",b),d:Nre(r,i,c,p,l,u)}))},Mre=Lp,Pre=EM,Rre=si;function $re(e,t){return e&&e.length?Mre(e,Rre(t),Pre):void 0}var Dre=$re;const kre=Be(Dre);var Lre=Lp,zre=si,Bre=_M;function Ure(e,t){return e&&e.length?Lre(e,zre(t),Bre):void 0}var Ire=Ure;const Hre=Be(Ire);var qre=["cx","cy","angle","ticks","axisLine"],Fre=["ticks","tick","angle","tickFormatter","stroke"];function Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(e)}function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bu.apply(this,arguments)}function c2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c2(Object(n),!0).forEach(function(r){Fp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f2(e,t){if(e==null)return{};var n=Gre(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Kre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yP(r.key),r)}}function Yre(e,t,n){return t&&d2(e.prototype,t),n&&d2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xre(e,t,n){return t=gh(t),Vre(e,pP()?Reflect.construct(t,n||[],gh(e).constructor):t.apply(e,n))}function Vre(e,t){if(t&&(Bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qre(e)}function Qre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pP=function(){return!!e})()}function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gh(e)}function Wre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zg(e,t)}function Zg(e,t){return Zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zg(e,t)}function Fp(e,t,n){return t=yP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yP(e){var t=Zre(e,"string");return Bl(t)=="symbol"?t:t+""}function Zre(e,t){if(Bl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gp=function(e){function t(){return Kre(this,t),Xre(this,t,arguments)}return Wre(t,e),Yre(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,o=i.angle,l=i.cx,s=i.cy;return Ge(l,s,a,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.angle,l=r.ticks,s=kre(l,function(f){return f.coordinate||0}),u=Hre(l,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.angle,l=r.ticks,s=r.axisLine,u=f2(r,qre),f=l.reduce(function(b,v){return[Math.min(b[0],v.coordinate),Math.max(b[1],v.coordinate)]},[1/0,-1/0]),c=Ge(a,i,f[0],o),h=Ge(a,i,f[1],o),p=yi(yi(yi({},ae(u,!1)),{},{fill:"none"},ae(s,!1)),{},{x1:c.x,y1:c.y,x2:h.x,y2:h.y});return M.createElement("line",bu({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,o=a.tick,l=a.angle,s=a.tickFormatter,u=a.stroke,f=f2(a,Fre),c=this.getTickTextAnchor(),h=ae(f,!1),p=ae(o,!1),b=i.map(function(v,g){var y=r.getTickValueCoord(v),m=yi(yi(yi(yi({textAnchor:c,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:g},y),{},{payload:v});return M.createElement(Me,bu({className:pe("recharts-polar-radius-axis-tick",eP(o)),key:"tick-".concat(v.coordinate)},ro(r.props,v,g)),t.renderTickItem(o,m,s?s(v.value,g):v.value))});return M.createElement(Me,{className:"recharts-polar-radius-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,o=r.tick;return!a||!a.length?null:M.createElement(Me,{className:pe("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Nt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var o;return M.isValidElement(r)?o=M.cloneElement(r,a):oe(r)?o=r(a):o=M.createElement(ao,bu({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(j.PureComponent);Fp(Gp,"displayName","PolarRadiusAxis");Fp(Gp,"axisType","radiusAxis");Fp(Gp,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Ul(e){"@babel/helpers - typeof";return Ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ul(e)}function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ai.apply(this,arguments)}function h2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h2(Object(n),!0).forEach(function(r){Kp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vP(r.key),r)}}function eae(e,t,n){return t&&p2(e.prototype,t),n&&p2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tae(e,t,n){return t=bh(t),nae(e,mP()?Reflect.construct(t,n||[],bh(e).constructor):t.apply(e,n))}function nae(e,t){if(t&&(Ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rae(e)}function rae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mP=function(){return!!e})()}function bh(e){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bh(e)}function aae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jg(e,t)}function Jg(e,t){return Jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Jg(e,t)}function Kp(e,t,n){return t=vP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vP(e){var t=iae(e,"string");return Ul(t)=="symbol"?t:t+""}function iae(e,t){if(Ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oae=Math.PI/180,y2=1e-5,Yp=function(e){function t(){return Jre(this,t),tae(this,t,arguments)}return aae(t,e),eae(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,o=a.cy,l=a.radius,s=a.orientation,u=a.tickSize,f=u||8,c=Ge(i,o,l,r.coordinate),h=Ge(i,o,l+(s==="inner"?-1:1)*f,r.coordinate);return{x1:c.x,y1:c.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*oae),o;return i>y2?o=a==="outer"?"start":"end":i<-y2?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.radius,l=r.axisLine,s=r.axisLineType,u=mi(mi({},ae(this.props,!1)),{},{fill:"none"},ae(l,!1));if(s==="circle")return M.createElement(Fx,Ai({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var f=this.props.ticks,c=f.map(function(h){return Ge(a,i,o,h.coordinate)});return M.createElement(Sre,Ai({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,o=a.tick,l=a.tickLine,s=a.tickFormatter,u=a.stroke,f=ae(this.props,!1),c=ae(o,!1),h=mi(mi({},f),{},{fill:"none"},ae(l,!1)),p=i.map(function(b,v){var g=r.getTickLineCoord(b),y=r.getTickTextAnchor(b),m=mi(mi(mi({textAnchor:y},f),{},{stroke:"none",fill:u},c),{},{index:v,payload:b,x:g.x2,y:g.y2});return M.createElement(Me,Ai({className:pe("recharts-polar-angle-axis-tick",eP(o)),key:"tick-".concat(b.coordinate)},ro(r.props,b,v)),l&&M.createElement("line",Ai({className:"recharts-polar-angle-axis-tick-line"},h,g)),o&&t.renderTickItem(o,m,s?s(b.value,v):b.value))});return M.createElement(Me,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,o=r.axisLine;return i<=0||!a||!a.length?null:M.createElement(Me,{className:pe("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var o;return M.isValidElement(r)?o=M.cloneElement(r,a):oe(r)?o=r(a):o=M.createElement(ao,Ai({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(j.PureComponent);Kp(Yp,"displayName","PolarAngleAxis");Kp(Yp,"axisType","angleAxis");Kp(Yp,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var lae=AC,sae=lae(Object.getPrototypeOf,Object),uae=sae,cae=pa,fae=uae,dae=ya,hae="[object Object]",pae=Function.prototype,yae=Object.prototype,gP=pae.toString,mae=yae.hasOwnProperty,vae=gP.call(Object);function gae(e){if(!dae(e)||cae(e)!=hae)return!1;var t=fae(e);if(t===null)return!0;var n=mae.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gP.call(n)==vae}var bae=gae;const xae=Be(bae);var Sae=pa,wae=ya,Oae="[object Boolean]";function Aae(e){return e===!0||e===!1||wae(e)&&Sae(e)==Oae}var jae=Aae;const Eae=Be(jae);function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xh.apply(this,arguments)}function _ae(e,t){return Mae(e)||Cae(e,t)||Nae(e,t)||Tae()}function Tae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nae(e,t){if(e){if(typeof e=="string")return m2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m2(e,t)}}function m2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Mae(e){if(Array.isArray(e))return e}function v2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function g2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v2(Object(n),!0).forEach(function(r){Pae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pae(e,t,n){return t=Rae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rae(e){var t=$ae(e,"string");return cc(t)=="symbol"?t:t+""}function $ae(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b2=function(t,n,r,a,i){var o=r-a,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+i),l+="L ".concat(t+r-o/2-a,",").concat(n+i),l+="L ".concat(t,",").concat(n," Z"),l},Dae={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},kae=function(t){var n=g2(g2({},Dae),t),r=j.useRef(),a=j.useState(-1),i=_ae(a,2),o=i[0],l=i[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var s=n.x,u=n.y,f=n.upperWidth,c=n.lowerWidth,h=n.height,p=n.className,b=n.animationEasing,v=n.animationDuration,g=n.animationBegin,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||f!==+f||c!==+c||h!==+h||f===0&&c===0||h===0)return null;var m=pe("recharts-trapezoid",p);return y?M.createElement(da,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:u},to:{upperWidth:f,lowerWidth:c,height:h,x:s,y:u},duration:v,animationEasing:b,isActive:y},function(x){var w=x.upperWidth,S=x.lowerWidth,O=x.height,A=x.x,E=x.y;return M.createElement(da,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,easing:b},M.createElement("path",xh({},ae(n,!0),{className:m,d:b2(A,E,w,S,O),ref:r})))}):M.createElement("g",null,M.createElement("path",xh({},ae(n,!0),{className:m,d:b2(s,u,f,c,h)})))},Lae=["option","shapeType","propTransformer","activeClassName","isActive"];function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function zae(e,t){if(e==null)return{};var n=Bae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function x2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x2(Object(n),!0).forEach(function(r){Uae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uae(e,t,n){return t=Iae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iae(e){var t=Hae(e,"string");return fc(t)=="symbol"?t:t+""}function Hae(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qae(e,t){return Sh(Sh({},t),e)}function Fae(e,t){return e==="symbols"}function S2(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return M.createElement(qx,n);case"trapezoid":return M.createElement(kae,n);case"sector":return M.createElement(rP,n);case"symbols":if(Fae(t))return M.createElement(lx,n);break;default:return null}}function Gae(e){return j.isValidElement(e)?e.props:e}function bP(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?qae:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,s=zae(e,Lae),u;if(j.isValidElement(t))u=j.cloneElement(t,Sh(Sh({},s),Gae(t)));else if(oe(t))u=t(s);else if(xae(t)&&!Eae(t)){var f=a(t,s);u=M.createElement(S2,{shapeType:n,elementProps:f})}else{var c=s;u=M.createElement(S2,{shapeType:n,elementProps:c})}return l?M.createElement(Me,{className:o},u):u}function Xp(e,t){return t!=null&&"trapezoids"in e.props}function Vp(e,t){return t!=null&&"sectors"in e.props}function dc(e,t){return t!=null&&"points"in e.props}function Kae(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&i}function Yae(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Xae(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Vae(e,t){var n;return Xp(e,t)?n=Kae:Vp(e,t)?n=Yae:dc(e,t)&&(n=Xae),n}function Qae(e,t){var n;return Xp(e,t)?n="trapezoids":Vp(e,t)?n="sectors":dc(e,t)&&(n="points"),n}function Wae(e,t){if(Xp(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Vp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return dc(e,t)?t.payload:{}}function Zae(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Qae(n,t),i=Wae(n,t),o=r.filter(function(s,u){var f=Up(i,s),c=n.props[a].filter(function(b){var v=Vae(n,t);return v(b,t)}),h=n.props[a].indexOf(c[c.length-1]),p=u===h;return f&&p}),l=r.indexOf(o[o.length-1]);return l}var Jf;function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qo.apply(this,arguments)}function w2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w2(Object(n),!0).forEach(function(r){Kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SP(r.key),r)}}function eie(e,t,n){return t&&O2(e.prototype,t),n&&O2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tie(e,t,n){return t=wh(t),nie(e,xP()?Reflect.construct(t,n||[],wh(e).constructor):t.apply(e,n))}function nie(e,t){if(t&&(Il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rie(e)}function rie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xP=function(){return!!e})()}function wh(e){return wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wh(e)}function aie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e0(e,t)}function e0(e,t){return e0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},e0(e,t)}function Kn(e,t,n){return t=SP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SP(e){var t=iie(e,"string");return Il(t)=="symbol"?t:t+""}function iie(e,t){if(Il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var va=function(e){function t(n){var r;return Jae(this,t),r=tie(this,t,[n]),Kn(r,"pieRef",null),Kn(r,"sectorRefs",[]),Kn(r,"id",Gc("recharts-pie-")),Kn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),oe(a)&&a()}),Kn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),oe(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return aie(t,e),eie(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,l=i.labelLine,s=i.dataKey,u=i.valueKey,f=ae(this.props,!1),c=ae(o,!1),h=ae(l,!1),p=o&&o.offsetRadius||20,b=r.map(function(v,g){var y=(v.startAngle+v.endAngle)/2,m=Ge(v.cx,v.cy,v.outerRadius+p,y),x=He(He(He(He({},f),v),{},{stroke:"none"},c),{},{index:g,textAnchor:t.getTextAnchor(m.x,v.cx)},m),w=He(He(He(He({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:g,points:[Ge(v.cx,v.cy,v.outerRadius,y),m]}),S=s;return ye(s)&&ye(u)?S="value":ye(s)&&(S=u),M.createElement(Me,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(g)},l&&t.renderLabelLineItem(l,w,"line"),t.renderLabelItem(o,x,Ft(v,S)))});return M.createElement(Me,{className:"recharts-pie-labels"},b)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,o=i.activeShape,l=i.blendStroke,s=i.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var c=a.isActiveIndex(f),h=s&&a.hasActiveIndex()?s:null,p=c?o:h,b=He(He({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return M.createElement(Me,qo({ref:function(g){g&&!a.sectorRefs.includes(g)&&a.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},ro(a.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),M.createElement(bP,qo({option:p,isActive:c,shapeType:"sector"},b)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,o=a.isAnimationActive,l=a.animationBegin,s=a.animationDuration,u=a.animationEasing,f=a.animationId,c=this.state,h=c.prevSectors,p=c.prevIsAnimationActive;return M.createElement(da,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(b){var v=b.t,g=[],y=i&&i[0],m=y.startAngle;return i.forEach(function(x,w){var S=h&&h[w],O=w>0?Mn(x,"paddingAngle",0):0;if(S){var A=wa(S.endAngle-S.startAngle,x.endAngle-x.startAngle),E=He(He({},x),{},{startAngle:m+O,endAngle:m+A(v)+O});g.push(E),m=E.endAngle}else{var _=x.endAngle,C=x.startAngle,$=wa(0,_-C),P=$(v),B=He(He({},x),{},{startAngle:m+O,endAngle:m+P+O});g.push(B),m=B.endAngle}}),M.createElement(Me,null,r.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,o=this.state.prevSectors;return i&&a&&a.length&&(!o||!Up(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,i=a.hide,o=a.sectors,l=a.className,s=a.label,u=a.cx,f=a.cy,c=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,b=this.state.isAnimationFinished;if(i||!o||!o.length||!K(u)||!K(f)||!K(c)||!K(h))return null;var v=pe("recharts-pie",l);return M.createElement(Me,{tabIndex:this.props.rootTabIndex,className:v,ref:function(y){r.pieRef=y}},this.renderSectors(),s&&this.renderLabels(o),Nt.renderCallByParent(this.props,null,!1),(!p||b)&&ei.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if(M.isValidElement(r))return M.cloneElement(r,a);if(oe(r))return r(a);var o=pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return M.createElement(Bg,qo({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,a,i){if(M.isValidElement(r))return M.cloneElement(r,a);var o=i;if(oe(r)&&(o=r(a),M.isValidElement(o)))return o;var l=pe("recharts-pie-label-text",typeof r!="boolean"&&!oe(r)?r.className:"");return M.createElement(ao,qo({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(j.PureComponent);Jf=va;Kn(va,"displayName","Pie");Kn(va,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Os.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Kn(va,"parseDeltaAngle",function(e,t){var n=Wt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Kn(va,"getRealPieData",function(e){var t=e.data,n=e.children,r=ae(e,!1),a=Qn(n,Cp);return t&&t.length?t.map(function(i,o){return He(He(He({payload:i},r),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return He(He({},r),i.props)}):[]});Kn(va,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=JM(a,i),l=r+Zt(e.cx,a,a/2),s=n+Zt(e.cy,i,i/2),u=Zt(e.innerRadius,o,0),f=Zt(e.outerRadius,o,o*.8),c=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:f,maxRadius:c}});Kn(va,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?He(He({},t.type.defaultProps),t.props):t.props,a=Jf.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,f=r.nameKey,c=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),b=Jf.parseCoordinateOfPie(r,n),v=Jf.parseDeltaAngle(o,l),g=Math.abs(v),y=u;ye(u)&&ye(c)?(ea(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y="value"):ye(u)&&(ea(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y=c);var m=a.filter(function(E){return Ft(E,y,0)!==0}).length,x=(g>=360?m:m-1)*s,w=g-m*p-x,S=a.reduce(function(E,_){var C=Ft(_,y,0);return E+(K(C)?C:0)},0),O;if(S>0){var A;O=a.map(function(E,_){var C=Ft(E,y,0),$=Ft(E,f,_),P=(K(C)?C:0)/S,B;_?B=A.endAngle+Wt(v)*s*(C!==0?1:0):B=o;var L=B+Wt(v)*((C!==0?p:0)+P*w),D=(B+L)/2,R=(b.innerRadius+b.outerRadius)/2,k=[{name:$,value:C,payload:E,dataKey:y,type:h}],U=Ge(b.cx,b.cy,R,D);return A=He(He(He({percent:P,cornerRadius:i,name:$,tooltipPayload:k,midAngle:D,middleRadius:R,tooltipPosition:U},E),b),{},{value:Ft(E,y),startAngle:B,endAngle:L,payload:E,paddingAngle:Wt(v)*s}),A})}return He(He({},b),{},{sectors:O,data:a})});var oie=Math.ceil,lie=Math.max;function sie(e,t,n,r){for(var a=-1,i=lie(oie((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var uie=sie,cie=HC,A2=1/0,fie=17976931348623157e292;function die(e){if(!e)return e===0?e:0;if(e=cie(e),e===A2||e===-A2){var t=e<0?-1:1;return t*fie}return e===e?e:0}var hie=die,pie=uie,yie=Np,wm=hie;function mie(e){return function(t,n,r){return r&&typeof r!="number"&&yie(t,n,r)&&(n=r=void 0),t=wm(t),n===void 0?(n=t,t=0):n=wm(n),r=r===void 0?t<n?1:-1:wm(r),pie(t,n,r,e)}}var vie=mie,gie=vie,bie=gie(),xie=bie;const Oh=Be(xie);function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function j2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function E2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j2(Object(n),!0).forEach(function(r){wP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wP(e,t,n){return t=Sie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sie(e){var t=wie(e,"string");return hc(t)=="symbol"?t:t+""}function wie(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Oie=["Webkit","Moz","O","ms"],Aie=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Oie.reduce(function(i,o){return E2(E2({},i),{},wP({},o+r,n))},{});return a[t]=n,a};function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ah.apply(this,arguments)}function _2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Om(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_2(Object(n),!0).forEach(function(r){gn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AP(r.key),r)}}function Eie(e,t,n){return t&&T2(e.prototype,t),n&&T2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ie(e,t,n){return t=jh(t),Tie(e,OP()?Reflect.construct(t,n||[],jh(e).constructor):t.apply(e,n))}function Tie(e,t){if(t&&(Hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nie(e)}function Nie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OP=function(){return!!e})()}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}function Cie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t0(e,t)}function t0(e,t){return t0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},t0(e,t)}function gn(e,t,n){return t=AP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AP(e){var t=Mie(e,"string");return Hl(t)=="symbol"?t:t+""}function Mie(e,t){if(Hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pie=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var s=n.length,u=yu().domain(Oh(0,s)).range([i,i+o-l]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:f}},N2=function(t){return t.changedTouches&&!!t.changedTouches.length},ql=function(e){function t(n){var r;return jie(this,t),r=_ie(this,t,[n]),gn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),gn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),gn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:i,startIndex:l})}),r.detachDragEndListener()}),gn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),gn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),gn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),gn(r,"handleSlideDragStart",function(a){var i=N2(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Cie(t,e),Eie(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,o=this.state.scaleValues,l=this.props,s=l.gap,u=l.data,f=u.length-1,c=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(o,c),b=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:b===f?f:b-b%s}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,s=Ft(i[r],l,r);return oe(o)?o(s,r):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,i=a.slideMoveStartX,o=a.startX,l=a.endX,s=this.props,u=s.x,f=s.width,c=s.travellerWidth,h=s.startIndex,p=s.endIndex,b=s.onChange,v=r.pageX-i;v>0?v=Math.min(v,u+f-c-l,u+f-c-o):v<0&&(v=Math.max(v,u-o,u-l));var g=this.getIndex({startX:o+v,endX:l+v});(g.startIndex!==h||g.endIndex!==p)&&b&&b(g),this.setState({startX:o+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=N2(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,s=a.startX,u=this.state[o],f=this.props,c=f.x,h=f.width,p=f.travellerWidth,b=f.onChange,v=f.gap,g=f.data,y={startX:this.state.startX,endX:this.state.endX},m=r.pageX-i;m>0?m=Math.min(m,c+h-p-u):m<0&&(m=Math.max(m,c-u)),y[o]=u+m;var x=this.getIndex(y),w=x.startIndex,S=x.endIndex,O=function(){var E=g.length-1;return o==="startX"&&(l>s?w%v===0:S%v===0)||l<s&&S===E||o==="endX"&&(l>s?S%v===0:w%v===0)||l>s&&S===E};this.setState(gn(gn({},o,u+m),"brushMoveStartX",r.pageX),function(){b&&O()&&b(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,f=this.state[a],c=l.indexOf(f);if(c!==-1){var h=c+r;if(!(h===-1||h>=l.length)){var p=l[h];a==="startX"&&p>=u||a==="endX"&&p<=s||this.setState(gn({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.fill,u=r.stroke;return M.createElement("rect",{stroke:u,fill:s,x:a,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.data,u=r.children,f=r.padding,c=j.Children.only(u);return c?M.cloneElement(c,{x:a,y:i,width:o,height:l,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,o,l=this,s=this.props,u=s.y,f=s.travellerWidth,c=s.height,h=s.traveller,p=s.ariaLabel,b=s.data,v=s.startIndex,g=s.endIndex,y=Math.max(r,this.props.x),m=Om(Om({},ae(this.props,!1)),{},{x:y,y:u,width:f,height:c}),x=p||"Min value: ".concat((i=b[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[g])===null||o===void 0?void 0:o.name);return M.createElement(Me,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),l.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,m))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,s=i.stroke,u=i.travellerWidth,f=Math.min(r,a)+u,c=Math.max(Math.abs(a-r)-u,0);return M.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,o=r.y,l=r.height,s=r.travellerWidth,u=r.stroke,f=this.state,c=f.startX,h=f.endX,p=5,b={pointerEvents:"none",fill:u};return M.createElement(Me,{className:"recharts-brush-texts"},M.createElement(ao,Ah({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,h)-p,y:o+l/2},b),this.getTextOfTick(a)),M.createElement(ao,Ah({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,h)+s+p,y:o+l/2},b),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,o=r.children,l=r.x,s=r.y,u=r.width,f=r.height,c=r.alwaysShowText,h=this.state,p=h.startX,b=h.endX,v=h.isTextActive,g=h.isSlideMoving,y=h.isTravellerMoving,m=h.isTravellerFocused;if(!a||!a.length||!K(l)||!K(s)||!K(u)||!K(f)||u<=0||f<=0)return null;var x=pe("recharts-brush",i),w=M.Children.count(o)===1,S=Aie("userSelect","none");return M.createElement(Me,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(p,b),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(b,"endX"),(v||g||y||m||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,o=r.width,l=r.height,s=r.stroke,u=Math.floor(i+l/2)-1;return M.createElement(M.Fragment,null,M.createElement("rect",{x:a,y:i,width:o,height:l,fill:s,stroke:"none"}),M.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),M.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return M.isValidElement(r)?i=M.cloneElement(r,a):oe(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,o=r.width,l=r.x,s=r.travellerWidth,u=r.updateId,f=r.startIndex,c=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Om({prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?Pie({data:i,width:o,x:l,travellerWidth:s,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||s!==a.prevTravellerWidth)){a.scale.range([l,l+o-s]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,o=0,l=i-1;l-o>1;){var s=Math.floor((o+l)/2);r[s]>a?l=s:o=s}return a>=r[l]?l:o}}])}(j.PureComponent);gn(ql,"displayName","Brush");gn(ql,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Rie=yx;function $ie(e,t){var n;return Rie(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var Die=$ie,kie=mC,Lie=si,zie=Die,Bie=mn,Uie=Np;function Iie(e,t,n){var r=Bie(e)?kie:zie;return n&&Uie(e,t,n)&&(t=void 0),r(e,Lie(t))}var Hie=Iie;const qie=Be(Hie);var Ar=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},C2=LC;function Fie(e,t,n){t=="__proto__"&&C2?C2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Gie=Fie,Kie=Gie,Yie=DC,Xie=si;function Vie(e,t){var n={};return t=Xie(t),Yie(e,function(r,a,i){Kie(n,a,t(r,a,i))}),n}var Qie=Vie;const Wie=Be(Qie);function Zie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var Jie=Zie,eoe=yx;function toe(e,t){var n=!0;return eoe(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var noe=toe,roe=Jie,aoe=noe,ioe=si,ooe=mn,loe=Np;function soe(e,t,n){var r=ooe(e)?roe:aoe;return n&&loe(e,t,n)&&(t=void 0),r(e,ioe(t))}var uoe=soe;const coe=Be(uoe);var foe=["x","y"];function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}function M2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M2(Object(n),!0).forEach(function(r){doe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function doe(e,t,n){return t=hoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hoe(e){var t=poe(e,"string");return pc(t)=="symbol"?t:t+""}function poe(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yoe(e,t){if(e==null)return{};var n=moe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function moe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function voe(e,t){var n=e.x,r=e.y,a=yoe(e,foe),i="".concat(n),o=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||a.height),f=parseInt(u,10),c="".concat(t.width||a.width),h=parseInt(c,10);return Ks(Ks(Ks(Ks(Ks({},t),a),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function P2(e){return M.createElement(bP,n0({shapeType:"rectangle",propTransformer:voe,activeClassName:"recharts-active-bar"},e))}var goe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=K(r)||LU(r);return i?t(r,a):(i||oo(),n)}},boe=["value","background"],jP;function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function xoe(e,t){if(e==null)return{};var n=Soe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Soe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eh.apply(this,arguments)}function R2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(n),!0).forEach(function(r){Ha(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function woe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_P(r.key),r)}}function Ooe(e,t,n){return t&&$2(e.prototype,t),n&&$2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aoe(e,t,n){return t=_h(t),joe(e,EP()?Reflect.construct(t,n||[],_h(e).constructor):t.apply(e,n))}function joe(e,t){if(t&&(Fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Eoe(e)}function Eoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EP=function(){return!!e})()}function _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_h(e)}function _oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r0(e,t)}function r0(e,t){return r0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},r0(e,t)}function Ha(e,t,n){return t=_P(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(e){var t=Toe(e,"string");return Fl(t)=="symbol"?t:t+""}function Toe(e,t){if(Fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var go=function(e){function t(){var n;woe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Aoe(this,t,[].concat(a)),Ha(n,"state",{isAnimationFinished:!1}),Ha(n,"id",Gc("recharts-bar-")),Ha(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ha(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return _oe(t,e),Ooe(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.dataKey,s=i.activeIndex,u=i.activeBar,f=ae(this.props,!1);return r&&r.map(function(c,h){var p=h===s,b=p?u:o,v=ft(ft(ft({},f),c),{},{isActive:p,option:b,index:h,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return M.createElement(Me,Eh({className:"recharts-bar-rectangle"},ro(a.props,c,h),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(h)}),M.createElement(P2,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,s=a.animationBegin,u=a.animationDuration,f=a.animationEasing,c=a.animationId,h=this.state.prevData;return M.createElement(da,{begin:s,duration:u,isActive:l,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var b=p.t,v=i.map(function(g,y){var m=h&&h[y];if(m){var x=wa(m.x,g.x),w=wa(m.y,g.y),S=wa(m.width,g.width),O=wa(m.height,g.height);return ft(ft({},g),{},{x:x(b),y:w(b),width:S(b),height:O(b)})}if(o==="horizontal"){var A=wa(0,g.height),E=A(b);return ft(ft({},g),{},{y:g.y+g.height-E,height:E})}var _=wa(0,g.width),C=_(b);return ft(ft({},g),{},{width:C})});return M.createElement(Me,null,r.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Up(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,o=a.dataKey,l=a.activeIndex,s=ae(this.props.background,!1);return i.map(function(u,f){u.value;var c=u.background,h=xoe(u,boe);if(!c)return null;var p=ft(ft(ft(ft(ft({},h),{},{fill:"#eee"},c),s),ro(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return M.createElement(P2,Eh({key:"background-bar-".concat(f),option:r.props.background,isActive:f===l},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,s=i.yAxis,u=i.layout,f=i.children,c=Qn(f,qp);if(!c)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(g,y){var m=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:m,errorVal:Ft(g,y)}},b={clipPath:r?"url(#clipPath-".concat(a,")"):null};return M.createElement(Me,b,c.map(function(v){return M.cloneElement(v,{key:"error-bar-".concat(a,"-").concat(v.props.dataKey),data:o,xAxis:l,yAxis:s,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,o=r.className,l=r.xAxis,s=r.yAxis,u=r.left,f=r.top,c=r.width,h=r.height,p=r.isAnimationActive,b=r.background,v=r.id;if(a||!i||!i.length)return null;var g=this.state.isAnimationFinished,y=pe("recharts-bar",o),m=l&&l.allowDataOverflow,x=s&&s.allowDataOverflow,w=m||x,S=ye(v)?this.id:v;return M.createElement(Me,{className:y},m||x?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(S)},M.createElement("rect",{x:m?u:u-c/2,y:x?f:f-h/2,width:m?c:c*2,height:x?h:h*2}))):null,M.createElement(Me,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(S,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,S),(!p||g)&&ei.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])}(j.PureComponent);jP=go;Ha(go,"displayName","Bar");Ha(go,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Os.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ha(go,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,s=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,h=e.offset,p=nee(r,n);if(!p)return null;var b=t.layout,v=n.type.defaultProps,g=v!==void 0?ft(ft({},v),n.props):n.props,y=g.dataKey,m=g.children,x=g.minPointSize,w=b==="horizontal"?o:i,S=u?w.scale.domain():null,O=uee({numericAxis:w}),A=Qn(m,Cp),E=c.map(function(_,C){var $,P,B,L,D,R;u?$=ree(u[f+C],S):($=Ft(_,y),Array.isArray($)||($=[O,$]));var k=goe(x,jP.defaultProps.minPointSize)($[1],C);if(b==="horizontal"){var U,q=[o.scale($[0]),o.scale($[1])],F=q[0],V=q[1];P=EA({axis:i,ticks:l,bandSize:a,offset:p.offset,entry:_,index:C}),B=(U=V??F)!==null&&U!==void 0?U:void 0,L=p.size;var G=F-V;if(D=Number.isNaN(G)?0:G,R={x:P,y:o.y,width:L,height:o.height},Math.abs(k)>0&&Math.abs(D)<Math.abs(k)){var ee=Wt(D||k)*(Math.abs(k)-Math.abs(D));B-=ee,D+=ee}}else{var he=[i.scale($[0]),i.scale($[1])],$e=he[0],se=he[1];if(P=$e,B=EA({axis:o,ticks:s,bandSize:a,offset:p.offset,entry:_,index:C}),L=se-$e,D=p.size,R={x:i.x,y:B,width:i.width,height:D},Math.abs(k)>0&&Math.abs(L)<Math.abs(k)){var Pt=Wt(L||k)*(Math.abs(k)-Math.abs(L));L+=Pt}}return ft(ft(ft({},_),{},{x:P,y:B,width:L,height:D,value:u?$:$[1],payload:_,background:R},A&&A[C]&&A[C].props),{},{tooltipPayload:[WM(n,_)],tooltipPosition:{x:P+L/2,y:B+D/2}})});return ft({data:E,layout:b},h)});function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}function Noe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TP(r.key),r)}}function Coe(e,t,n){return t&&D2(e.prototype,t),n&&D2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k2(Object(n),!0).forEach(function(r){Qp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qp(e,t,n){return t=TP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TP(e){var t=Moe(e,"string");return yc(t)=="symbol"?t:t+""}function Moe(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Poe=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.layout,u=t.children,f=Object.keys(n),c={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},h=!!xn(u,go);return f.reduce(function(p,b){var v=n[b],g=v.orientation,y=v.domain,m=v.padding,x=m===void 0?{}:m,w=v.mirror,S=v.reversed,O="".concat(g).concat(w?"Mirror":""),A,E,_,C,$;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=y[1]-y[0],B=1/0,L=v.categoricalDomain.sort(UU);if(L.forEach(function(he,$e){$e>0&&(B=Math.min((he||0)-(L[$e-1]||0),B))}),Number.isFinite(B)){var D=B/P,R=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(A=D*R/2),v.padding==="no-gap"){var k=Zt(t.barCategoryGap,D*R),U=D*R/2;A=U-k-(U-k)/R*k}}}a==="xAxis"?E=[r.left+(x.left||0)+(A||0),r.left+r.width-(x.right||0)-(A||0)]:a==="yAxis"?E=s==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(A||0),r.top+r.height-(x.bottom||0)-(A||0)]:E=v.range,S&&(E=[E[1],E[0]]);var q=YM(v,i,h),F=q.scale,V=q.realScaleType;F.domain(y).range(E),XM(F);var G=VM(F,or(or({},v),{},{realScaleType:V}));a==="xAxis"?($=g==="top"&&!w||g==="bottom"&&w,_=r.left,C=c[O]-$*v.height):a==="yAxis"&&($=g==="left"&&!w||g==="right"&&w,_=c[O]-$*v.width,C=r.top);var ee=or(or(or({},v),G),{},{realScaleType:V,x:_,y:C,scale:F,width:a==="xAxis"?r.width:v.width,height:a==="yAxis"?r.height:v.height});return ee.bandSize=ch(ee,G),!v.hide&&a==="xAxis"?c[O]+=($?-1:1)*ee.height:v.hide||(c[O]+=($?-1:1)*ee.width),or(or({},p),{},Qp({},b,ee))},{})},NP=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},Roe=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return NP({x:n,y:r},{x:a,y:i})},CP=function(){function e(t){Noe(this,e),this.scale=t}return Coe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(a){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])}();Qp(CP,"EPS",1e-4);var Gx=function(t){var n=Object.keys(t).reduce(function(r,a){return or(or({},r),{},Qp({},a,CP.create(t[a])))},{});return or(or({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return Wie(a,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(a){return coe(a,function(i,o){return n[o].isInRange(i)})}})};function $oe(e){return(e%180+180)%180}var Doe=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=$oe(a),o=i*Math.PI/180,l=Math.atan(r/n),s=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(s)},koe=qB(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),MP=j.createContext(void 0),PP=j.createContext(void 0),RP=j.createContext(void 0),Loe=j.createContext({}),$P=j.createContext(void 0),DP=j.createContext(0),kP=j.createContext(0),L2=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,o=t.clipPathId,l=t.children,s=t.width,u=t.height,f=koe(i);return M.createElement(MP.Provider,{value:r},M.createElement(PP.Provider,{value:a},M.createElement(Loe.Provider,{value:i},M.createElement(RP.Provider,{value:f},M.createElement($P.Provider,{value:o},M.createElement(DP.Provider,{value:u},M.createElement(kP.Provider,{value:s},l)))))))},zoe=function(){return j.useContext($P)},LP=function(t){var n=j.useContext(MP);n==null&&oo();var r=n[t];return r==null&&oo(),r},zP=function(t){var n=j.useContext(PP);n==null&&oo();var r=n[t];return r==null&&oo(),r},Boe=function(){var t=j.useContext(RP);return t},BP=function(){return j.useContext(kP)},UP=function(){return j.useContext(DP)};function Gl(e){"@babel/helpers - typeof";return Gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gl(e)}function Uoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ioe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HP(r.key),r)}}function Hoe(e,t,n){return t&&Ioe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qoe(e,t,n){return t=Th(t),Foe(e,IP()?Reflect.construct(t,n||[],Th(e).constructor):t.apply(e,n))}function Foe(e,t){if(t&&(Gl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Goe(e)}function Goe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IP=function(){return!!e})()}function Th(e){return Th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Th(e)}function Koe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a0(e,t)}function a0(e,t){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},a0(e,t)}function z2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function B2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z2(Object(n),!0).forEach(function(r){Kx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kx(e,t,n){return t=HP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HP(e){var t=Yoe(e,"string");return Gl(t)=="symbol"?t:t+""}function Yoe(e,t){if(Gl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xoe(e,t){return Zoe(e)||Woe(e,t)||Qoe(e,t)||Voe()}function Voe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qoe(e,t){if(e){if(typeof e=="string")return U2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U2(e,t)}}function U2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Woe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Zoe(e){if(Array.isArray(e))return e}function i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i0.apply(this,arguments)}var Joe=function(t,n){var r;return M.isValidElement(t)?r=M.cloneElement(t,n):oe(t)?r=t(n):r=M.createElement("line",i0({},n,{className:"recharts-reference-line-line"})),r},ele=function(t,n,r,a,i,o,l,s,u){var f=i.x,c=i.y,h=i.width,p=i.height;if(r){var b=u.y,v=t.y.apply(b,{position:o});if(Ar(u,"discard")&&!t.y.isInRange(v))return null;var g=[{x:f+h,y:v},{x:f,y:v}];return s==="left"?g.reverse():g}if(n){var y=u.x,m=t.x.apply(y,{position:o});if(Ar(u,"discard")&&!t.x.isInRange(m))return null;var x=[{x:m,y:c+p},{x:m,y:c}];return l==="top"?x.reverse():x}if(a){var w=u.segment,S=w.map(function(O){return t.apply(O,{position:o})});return Ar(u,"discard")&&qie(S,function(O){return!t.isInRange(O)})?null:S}return null};function tle(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,s=e.alwaysShow,u=zoe(),f=LP(a),c=zP(i),h=Boe();if(!u||!h)return null;ea(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Gx({x:f.scale,y:c.scale}),b=wt(t),v=wt(n),g=r&&r.length===2,y=ele(p,b,v,g,h,e.position,f.orientation,c.orientation,e);if(!y)return null;var m=Xoe(y,2),x=m[0],w=x.x,S=x.y,O=m[1],A=O.x,E=O.y,_=Ar(e,"hidden")?"url(#".concat(u,")"):void 0,C=B2(B2({clipPath:_},ae(e,!0)),{},{x1:w,y1:S,x2:A,y2:E});return M.createElement(Me,{className:pe("recharts-reference-line",l)},Joe(o,C),Nt.renderCallByParent(e,Roe({x1:w,y1:S,x2:A,y2:E})))}var Yx=function(e){function t(){return Uoe(this,t),qoe(this,t,arguments)}return Koe(t,e),Hoe(t,[{key:"render",value:function(){return M.createElement(tle,this.props)}}])}(M.Component);Kx(Yx,"displayName","ReferenceLine");Kx(Yx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kl(e)}function I2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function H2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I2(Object(n),!0).forEach(function(r){Wp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FP(r.key),r)}}function ale(e,t,n){return t&&rle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ile(e,t,n){return t=Nh(t),ole(e,qP()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function ole(e,t){if(t&&(Kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lle(e)}function lle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qP=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function sle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l0(e,t)}function l0(e,t){return l0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},l0(e,t)}function Wp(e,t,n){return t=FP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FP(e){var t=ule(e,"string");return Kl(t)=="symbol"?t:t+""}function ule(e,t){if(Kl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cle=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,o=Gx({x:a.scale,y:i.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Ar(t,"discard")&&!o.isInRange(l)?null:l},Zp=function(e){function t(){return nle(this,t),ile(this,t,arguments)}return sle(t,e),ale(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,o=r.r,l=r.alwaysShow,s=r.clipPathId,u=wt(a),f=wt(i);if(ea(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=cle(this.props);if(!c)return null;var h=c.x,p=c.y,b=this.props,v=b.shape,g=b.className,y=Ar(this.props,"hidden")?"url(#".concat(s,")"):void 0,m=H2(H2({clipPath:y},ae(this.props,!0)),{},{cx:h,cy:p});return M.createElement(Me,{className:pe("recharts-reference-dot",g)},t.renderDot(v,m),Nt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(M.Component);Wp(Zp,"displayName","ReferenceDot");Wp(Zp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Wp(Zp,"renderDot",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):oe(e)?n=e(t):n=M.createElement(Fx,o0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s0.apply(this,arguments)}function Yl(e){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(e)}function q2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function F2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(n),!0).forEach(function(r){Jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KP(r.key),r)}}function hle(e,t,n){return t&&dle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ple(e,t,n){return t=Ch(t),yle(e,GP()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function yle(e,t){if(t&&(Yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mle(e)}function mle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GP=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function vle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u0(e,t)}function u0(e,t){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},u0(e,t)}function Jp(e,t,n){return t=KP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KP(e){var t=gle(e,"string");return Yl(t)=="symbol"?t:t+""}function gle(e,t){if(Yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ble=function(t,n,r,a,i){var o=i.x1,l=i.x2,s=i.y1,u=i.y2,f=i.xAxis,c=i.yAxis;if(!f||!c)return null;var h=Gx({x:f.scale,y:c.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(s,{position:"start"}):h.y.rangeMin},b={x:n?h.x.apply(l,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return Ar(i,"discard")&&(!h.isInRange(p)||!h.isInRange(b))?null:NP(p,b)},ey=function(e){function t(){return fle(this,t),ple(this,t,arguments)}return vle(t,e),hle(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,o=r.y1,l=r.y2,s=r.className,u=r.alwaysShow,f=r.clipPathId;ea(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=wt(a),h=wt(i),p=wt(o),b=wt(l),v=this.props.shape;if(!c&&!h&&!p&&!b&&!v)return null;var g=ble(c,h,p,b,this.props);if(!g&&!v)return null;var y=Ar(this.props,"hidden")?"url(#".concat(f,")"):void 0;return M.createElement(Me,{className:pe("recharts-reference-area",s)},t.renderRect(v,F2(F2({clipPath:y},ae(this.props,!0)),g)),Nt.renderCallByParent(this.props,g))}}])}(M.Component);Jp(ey,"displayName","ReferenceArea");Jp(ey,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Jp(ey,"renderRect",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):oe(e)?n=e(t):n=M.createElement(qx,s0({},t,{className:"recharts-reference-area-rect"})),n});function YP(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function xle(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Doe(r,n)}function Sle(e,t,n){var r=n==="width",a=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:r?a:i,end:r?a+o:i+l}:{start:r?a+o:i+l,end:r?a:i}}function Mh(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function wle(e,t){return YP(e,t+1)}function Ole(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,l=t.end,s=0,u=1,f=o,c=function(){var b=r==null?void 0:r[s];if(b===void 0)return{v:YP(r,u)};var v=s,g,y=function(){return g===void 0&&(g=n(b,v)),g},m=b.coordinate,x=s===0||Mh(e,m,y,f,l);x||(s=0,f=o,u+=1),x&&(f=m+e*(y()/2+a),s+=u)},h;u<=i.length;)if(h=c(),h)return h.v;return[]}function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}function G2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(n),!0).forEach(function(r){Ale(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ale(e,t,n){return t=jle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jle(e){var t=Ele(e,"string");return mc(t)=="symbol"?t:t+""}function Ele(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _le(e,t,n,r,a){for(var i=(r||[]).slice(),o=i.length,l=t.start,s=t.end,u=function(h){var p=i[h],b,v=function(){return b===void 0&&(b=n(p,h)),b};if(h===o-1){var g=e*(p.coordinate+e*v()/2-s);i[h]=p=qt(qt({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else i[h]=p=qt(qt({},p),{},{tickCoord:p.coordinate});var y=Mh(e,p.tickCoord,v,l,s);y&&(s=p.tickCoord-e*(v()/2+a),i[h]=qt(qt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return i}function Tle(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,s=t.start,u=t.end;if(i){var f=r[l-1],c=n(f,l-1),h=e*(f.coordinate+e*c/2-u);o[l-1]=f=qt(qt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=Mh(e,f.tickCoord,function(){return c},s,u);p&&(u=f.tickCoord-e*(c/2+a),o[l-1]=qt(qt({},f),{},{isShow:!0}))}for(var b=i?l-1:l,v=function(m){var x=o[m],w,S=function(){return w===void 0&&(w=n(x,m)),w};if(m===0){var O=e*(x.coordinate-e*S()/2-s);o[m]=x=qt(qt({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[m]=x=qt(qt({},x),{},{tickCoord:x.coordinate});var A=Mh(e,x.tickCoord,S,s,u);A&&(s=x.tickCoord+e*(S()/2+a),o[m]=qt(qt({},x),{},{isShow:!0}))},g=0;g<b;g++)v(g);return o}function Nle(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,s=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!a||!a.length||!r)return[];if(K(s)||Os.isSsr)return wle(a,typeof s=="number"&&K(s)?s:0);var h=[],p=l==="top"||l==="bottom"?"width":"height",b=f&&p==="width"?pu(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=function(x,w){var S=oe(u)?u(x.value,w):x.value;return p==="width"?xle(pu(S,{fontSize:t,letterSpacing:n}),b,c):pu(S,{fontSize:t,letterSpacing:n})[p]},g=a.length>=2?Wt(a[1].coordinate-a[0].coordinate):1,y=Sle(i,g,p);return s==="equidistantPreserveStart"?Ole(g,y,v,a,o):(s==="preserveStart"||s==="preserveStartEnd"?h=Tle(g,y,v,a,o,s==="preserveStartEnd"):h=_le(g,y,v,a,o),h.filter(function(m){return m.isShow}))}var Cle=["viewBox"],Mle=["viewBox"],Ple=["ticks"];function Xl(e){"@babel/helpers - typeof";return Xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xl(e)}function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fo.apply(this,arguments)}function K2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(n),!0).forEach(function(r){Xx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Am(e,t){if(e==null)return{};var n=Rle(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VP(r.key),r)}}function Dle(e,t,n){return t&&Y2(e.prototype,t),n&&Y2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kle(e,t,n){return t=Ph(t),Lle(e,XP()?Reflect.construct(t,n||[],Ph(e).constructor):t.apply(e,n))}function Lle(e,t){if(t&&(Xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zle(e)}function zle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XP=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ph(e)}function Ble(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c0(e,t)}function c0(e,t){return c0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},c0(e,t)}function Xx(e,t,n){return t=VP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VP(e){var t=Ule(e,"string");return Xl(t)=="symbol"?t:t+""}function Ule(e,t){if(Xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ty=function(e){function t(n){var r;return $le(this,t),r=kle(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Ble(t,e),Dle(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=Am(r,Cle),l=this.props,s=l.viewBox,u=Am(l,Mle);return!Jo(i,s)||!Jo(o,u)||!Jo(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,o=a.y,l=a.width,s=a.height,u=a.orientation,f=a.tickSize,c=a.mirror,h=a.tickMargin,p,b,v,g,y,m,x=c?-1:1,w=r.tickSize||f,S=K(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=b=r.coordinate,g=o+ +!c*s,v=g-x*w,m=v-x*h,y=S;break;case"left":v=g=r.coordinate,b=i+ +!c*l,p=b-x*w,y=p-x*h,m=S;break;case"right":v=g=r.coordinate,b=i+ +c*l,p=b+x*w,y=p+x*h,m=S;break;default:p=b=r.coordinate,g=o+ +c*s,v=g+x*w,m=v+x*h,y=S;break}return{line:{x1:p,y1:v,x2:b,y2:g},tick:{x:y,y:m}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.orientation,u=r.mirror,f=r.axisLine,c=gt(gt(gt({},ae(this.props,!1)),ae(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!u||s==="bottom"&&u);c=gt(gt({},c),{},{x1:a,y1:i+h*l,x2:a+o,y2:i+h*l})}else{var p=+(s==="left"&&!u||s==="right"&&u);c=gt(gt({},c),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+l})}return M.createElement("line",Fo({},c,{className:pe("recharts-cartesian-axis-line",Mn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var o=this,l=this.props,s=l.tickLine,u=l.stroke,f=l.tick,c=l.tickFormatter,h=l.unit,p=Nle(gt(gt({},this.props),{},{ticks:r}),a,i),b=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),g=ae(this.props,!1),y=ae(f,!1),m=gt(gt({},g),{},{fill:"none"},ae(s,!1)),x=p.map(function(w,S){var O=o.getTickLineCoord(w),A=O.line,E=O.tick,_=gt(gt(gt(gt({textAnchor:b,verticalAnchor:v},g),{},{stroke:"none",fill:u},y),E),{},{index:S,payload:w,visibleTicksCount:p.length,tickFormatter:c});return M.createElement(Me,Fo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},ro(o.props,w,S)),s&&M.createElement("line",Fo({},m,A,{className:pe("recharts-cartesian-axis-tick-line",Mn(s,"className"))})),f&&t.renderTickItem(f,_,"".concat(oe(c)?c(w.value,S):w.value).concat(h||"")))});return M.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,o=a.width,l=a.height,s=a.ticksGenerator,u=a.className,f=a.hide;if(f)return null;var c=this.props,h=c.ticks,p=Am(c,Ple),b=h;return oe(s)&&(b=h&&h.length>0?s(this.props):s(p)),o<=0||l<=0||!b||!b.length?null:M.createElement(Me,{className:pe("recharts-cartesian-axis",u),ref:function(g){r.layerReference=g}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Nt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var o,l=pe(a.className,"recharts-cartesian-axis-tick-value");return M.isValidElement(r)?o=M.cloneElement(r,gt(gt({},a),{},{className:l})):oe(r)?o=r(gt(gt({},a),{},{className:l})):o=M.createElement(ao,Fo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(j.Component);Xx(ty,"displayName","CartesianAxis");Xx(ty,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function Ile(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZP(r.key),r)}}function qle(e,t,n){return t&&Hle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fle(e,t,n){return t=Rh(t),Gle(e,QP()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}function Gle(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kle(e)}function Kle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QP=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rh(e)}function Yle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f0(e,t)}function f0(e,t){return f0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},f0(e,t)}function WP(e,t,n){return t=ZP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZP(e){var t=Xle(e,"string");return Vl(t)=="symbol"?t:t+""}function Xle(e,t){if(Vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d0.apply(this,arguments)}function Vle(e){var t=e.xAxisId,n=BP(),r=UP(),a=LP(t);return a==null?null:j.createElement(ty,d0({},a,{className:pe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return Ci(o,!0)}}))}var ny=function(e){function t(){return Ile(this,t),Fle(this,t,arguments)}return Yle(t,e),qle(t,[{key:"render",value:function(){return j.createElement(Vle,this.props)}}])}(j.Component);WP(ny,"displayName","XAxis");WP(ny,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Ql(e){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ql(e)}function Qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tR(r.key),r)}}function Zle(e,t,n){return t&&Wle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jle(e,t,n){return t=$h(t),ese(e,JP()?Reflect.construct(t,n||[],$h(e).constructor):t.apply(e,n))}function ese(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tse(e)}function tse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JP=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function nse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h0(e,t)}function h0(e,t){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},h0(e,t)}function eR(e,t,n){return t=tR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tR(e){var t=rse(e,"string");return Ql(t)=="symbol"?t:t+""}function rse(e,t){if(Ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p0.apply(this,arguments)}var ase=function(t){var n=t.yAxisId,r=BP(),a=UP(),i=zP(n);return i==null?null:j.createElement(ty,p0({},i,{className:pe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(l){return Ci(l,!0)}}))},ry=function(e){function t(){return Qle(this,t),Jle(this,t,arguments)}return nse(t,e),Zle(t,[{key:"render",value:function(){return j.createElement(ase,this.props)}}])}(j.Component);eR(ry,"displayName","YAxis");eR(ry,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function X2(e){return sse(e)||lse(e)||ose(e)||ise()}function ise(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ose(e,t){if(e){if(typeof e=="string")return y0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y0(e,t)}}function lse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sse(e){if(Array.isArray(e))return y0(e)}function y0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m0=function(t,n,r,a,i){var o=Qn(t,Yx),l=Qn(t,Zp),s=[].concat(X2(o),X2(l)),u=Qn(t,ey),f="".concat(a,"Id"),c=a[0],h=n;if(s.length&&(h=s.reduce(function(v,g){if(g.props[f]===r&&Ar(g.props,"extendDomain")&&K(g.props[c])){var y=g.props[c];return[Math.min(v[0],y),Math.max(v[1],y)]}return v},h)),u.length){var p="".concat(c,"1"),b="".concat(c,"2");h=u.reduce(function(v,g){if(g.props[f]===r&&Ar(g.props,"extendDomain")&&K(g.props[p])&&K(g.props[b])){var y=g.props[p],m=g.props[b];return[Math.min(v[0],y,m),Math.max(v[1],y,m)]}return v},h)}return i&&i.length&&(h=i.reduce(function(v,g){return K(g)?[Math.min(v[0],g),Math.max(v[1],g)]:v},h)),h},nR={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(s,u,f){this.fn=s,this.context=u,this.once=f||!1}function i(s,u,f,c,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new a(f,c||s,h),b=n?n+u:u;return s._events[b]?s._events[b].fn?s._events[b]=[s._events[b],p]:s._events[b].push(p):(s._events[b]=p,s._eventsCount++),s}function o(s,u){--s._eventsCount===0?s._events=new r:delete s._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=n?n+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var h=0,p=c.length,b=new Array(p);h<p;h++)b[h]=c[h].fn;return b},l.prototype.listenerCount=function(u){var f=n?n+u:u,c=this._events[f];return c?c.fn?1:c.length:0},l.prototype.emit=function(u,f,c,h,p,b){var v=n?n+u:u;if(!this._events[v])return!1;var g=this._events[v],y=arguments.length,m,x;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,f),!0;case 3:return g.fn.call(g.context,f,c),!0;case 4:return g.fn.call(g.context,f,c,h),!0;case 5:return g.fn.call(g.context,f,c,h,p),!0;case 6:return g.fn.call(g.context,f,c,h,p,b),!0}for(x=1,m=new Array(y-1);x<y;x++)m[x-1]=arguments[x];g.fn.apply(g.context,m)}else{var w=g.length,S;for(x=0;x<w;x++)switch(g[x].once&&this.removeListener(u,g[x].fn,void 0,!0),y){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,f);break;case 3:g[x].fn.call(g[x].context,f,c);break;case 4:g[x].fn.call(g[x].context,f,c,h);break;default:if(!m)for(S=1,m=new Array(y-1);S<y;S++)m[S-1]=arguments[S];g[x].fn.apply(g[x].context,m)}}return!0},l.prototype.on=function(u,f,c){return i(this,u,f,c,!1)},l.prototype.once=function(u,f,c){return i(this,u,f,c,!0)},l.prototype.removeListener=function(u,f,c,h){var p=n?n+u:u;if(!this._events[p])return this;if(!f)return o(this,p),this;var b=this._events[p];if(b.fn)b.fn===f&&(!h||b.once)&&(!c||b.context===c)&&o(this,p);else{for(var v=0,g=[],y=b.length;v<y;v++)(b[v].fn!==f||h&&!b[v].once||c&&b[v].context!==c)&&g.push(b[v]);g.length?this._events[p]=g.length===1?g[0]:g:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&o(this,f)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(nR);var use=nR.exports;const cse=Be(use);var jm=new cse,Em="recharts.syncMouseEvents";function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}function fse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rR(r.key),r)}}function hse(e,t,n){return t&&dse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _m(e,t,n){return t=rR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rR(e){var t=pse(e,"string");return vc(t)=="symbol"?t:t+""}function pse(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yse=function(){function e(){fse(this,e),_m(this,"activeIndex",0),_m(this,"coordinateList",[]),_m(this,"layout","horizontal")}return hse(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,o=n.container,l=o===void 0?null:o,s=n.layout,u=s===void 0?null:s,f=n.offset,c=f===void 0?null:f,h=n.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,l=a.height,s=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,c=i+s+u,h=o+this.offset.top+l/2+f;this.mouseHandlerCallback({pageX:c,pageY:h})}}}])}();function mse(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&K(r)&&K(a))return!0}return!1}function vse(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function aR(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Ge(t,n,r,a),l=Ge(t,n,r,i);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function gse(e,t,n){var r,a,i,o;if(e==="horizontal")r=t.x,i=r,a=n.top,o=n.top+n.height;else if(e==="vertical")a=t.y,o=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,s=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,h=Ge(l,s,u,c),p=Ge(l,s,f,c);r=h.x,a=h.y,i=p.x,o=p.y}else return aR(t);return[{x:r,y:a},{x:i,y:o}]}function gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function V2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V2(Object(n),!0).forEach(function(r){bse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bse(e,t,n){return t=xse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xse(e){var t=Sse(e,"string");return gc(t)=="symbol"?t:t+""}function Sse(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wse(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,s=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,h=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!o||h!=="ScatterChart"&&a!=="axis")return null;var b,v=Bg;if(h==="ScatterChart")b=o,v=Cre;else if(h==="BarChart")b=vse(c,o,s,f),v=qx;else if(c==="radial"){var g=aR(o),y=g.cx,m=g.cy,x=g.radius,w=g.startAngle,S=g.endAngle;b={cx:y,cy:m,startAngle:w,endAngle:S,innerRadius:x,outerRadius:x},v=rP}else b={points:gse(c,o,s)},v=Bg;var O=Cf(Cf(Cf(Cf({stroke:"#ccc",pointerEvents:"none"},s),b),ae(p,!1)),{},{payload:l,payloadIndex:u,className:pe("recharts-tooltip-cursor",p.className)});return j.isValidElement(p)?j.cloneElement(p,O):j.createElement(v,O)}var Ose=["item"],Ase=["children","className","width","height","style","compact","title","desc"];function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Go.apply(this,arguments)}function Q2(e,t){return _se(e)||Ese(e,t)||oR(e,t)||jse()}function jse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ese(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function _se(e){if(Array.isArray(e))return e}function W2(e,t){if(e==null)return{};var n=Tse(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Nse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lR(r.key),r)}}function Mse(e,t,n){return t&&Cse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pse(e,t,n){return t=Dh(t),Rse(e,iR()?Reflect.construct(t,n||[],Dh(e).constructor):t.apply(e,n))}function Rse(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $se(e)}function $se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iR=function(){return!!e})()}function Dh(e){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dh(e)}function Dse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v0(e,t)}function v0(e,t){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},v0(e,t)}function Zl(e){return zse(e)||Lse(e)||oR(e)||kse()}function kse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oR(e,t){if(e){if(typeof e=="string")return g0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g0(e,t)}}function Lse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zse(e){if(Array.isArray(e))return g0(e)}function g0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Z2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z2(Object(n),!0).forEach(function(r){ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ne(e,t,n){return t=lR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lR(e){var t=Bse(e,"string");return Wl(t)=="symbol"?t:t+""}function Bse(e,t){if(Wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Use={xAxis:["bottom","top"],yAxis:["left","right"]},Ise={width:"100%",height:"100%"},sR={x:0,y:0};function Mf(e){return e}var Hse=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},qse=function(t,n,r,a){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=a.radius;return z(z(z({},a),Ge(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var s=i.coordinate,u=a.angle;return z(z(z({},a),Ge(a.cx,a.cy,s,u)),{},{angle:u,radius:s})}return sR},ay=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,o=(r??[]).reduce(function(l,s){var u=s.props.data;return u&&u.length?[].concat(Zl(l),Zl(u)):l},[]);return o.length>0?o:t&&t.length&&K(a)&&K(i)?t.slice(a,i+1):[]};function uR(e){return e==="number"?[0,"auto"]:void 0}var b0=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=ay(n,t);return r<0||!i||!i.length||r>=l.length?null:i.reduce(function(s,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:n;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?l:c;h=Yv(p,o.dataKey,a)}else h=c&&c[r]||l[r];return h?[].concat(Zl(s),[WM(u,h)]):s},[])},J2=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=Hse(i,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,f=QJ(o,l,u,s);if(f>=0&&u){var c=u[f]&&u[f].value,h=b0(t,n,f,c),p=qse(r,l,f,i);return{activeTooltipIndex:f,activeLabel:c,activePayload:h,activeCoordinate:p}}return null},Fse=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,h=t.stackOffset,p=KM(f,i);return r.reduce(function(b,v){var g,y=v.type.defaultProps!==void 0?z(z({},v.type.defaultProps),v.props):v.props,m=y.type,x=y.dataKey,w=y.allowDataOverflow,S=y.allowDuplicatedCategory,O=y.scale,A=y.ticks,E=y.includeHidden,_=y[o];if(b[_])return b;var C=ay(t.data,{graphicalItems:a.filter(function(G){var ee,he=o in G.props?G.props[o]:(ee=G.type.defaultProps)===null||ee===void 0?void 0:ee[o];return he===_}),dataStartIndex:s,dataEndIndex:u}),$=C.length,P,B,L;mse(y.domain,w,m)&&(P=$g(y.domain,null,w),p&&(m==="number"||O!=="auto")&&(L=mu(C,x,"category")));var D=uR(m);if(!P||P.length===0){var R,k=(R=y.domain)!==null&&R!==void 0?R:D;if(x){if(P=mu(C,x,m),m==="category"&&p){var U=BU(P);S&&U?(B=P,P=Oh(0,$)):S||(P=NA(k,P,v).reduce(function(G,ee){return G.indexOf(ee)>=0?G:[].concat(Zl(G),[ee])},[]))}else if(m==="category")S?P=P.filter(function(G){return G!==""&&!ye(G)}):P=NA(k,P,v).reduce(function(G,ee){return G.indexOf(ee)>=0||ee===""||ye(ee)?G:[].concat(Zl(G),[ee])},[]);else if(m==="number"){var q=tee(C,a.filter(function(G){var ee,he,$e=o in G.props?G.props[o]:(ee=G.type.defaultProps)===null||ee===void 0?void 0:ee[o],se="hide"in G.props?G.props.hide:(he=G.type.defaultProps)===null||he===void 0?void 0:he.hide;return $e===_&&(E||!se)}),x,i,f);q&&(P=q)}p&&(m==="number"||O!=="auto")&&(L=mu(C,x,"category"))}else p?P=Oh(0,$):l&&l[_]&&l[_].hasStack&&m==="number"?P=h==="expand"?[0,1]:QM(l[_].stackGroups,s,u):P=GM(C,a.filter(function(G){var ee=o in G.props?G.props[o]:G.type.defaultProps[o],he="hide"in G.props?G.props.hide:G.type.defaultProps.hide;return ee===_&&(E||!he)}),m,f,!0);if(m==="number")P=m0(c,P,_,i,A),k&&(P=$g(k,P,w));else if(m==="category"&&k){var F=k,V=P.every(function(G){return F.indexOf(G)>=0});V&&(P=F)}}return z(z({},b),{},ne({},_,z(z({},y),{},{axisType:i,domain:P,categoricalDomain:L,duplicateDomain:B,originalDomain:(g=y.domain)!==null&&g!==void 0?g:D,isCategorical:p,layout:f})))},{})},Gse=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,h=ay(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=h.length,b=KM(f,i),v=-1;return r.reduce(function(g,y){var m=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,x=m[o],w=uR("number");if(!g[x]){v++;var S;return b?S=Oh(0,p):l&&l[x]&&l[x].hasStack?(S=QM(l[x].stackGroups,s,u),S=m0(c,S,x,i)):(S=$g(w,GM(h,r.filter(function(O){var A,E,_=o in O.props?O.props[o]:(A=O.type.defaultProps)===null||A===void 0?void 0:A[o],C="hide"in O.props?O.props.hide:(E=O.type.defaultProps)===null||E===void 0?void 0:E.hide;return _===x&&!C}),"number",f),a.defaultProps.allowDataOverflow),S=m0(c,S,x,i)),z(z({},g),{},ne({},x,z(z({axisType:i},a.defaultProps),{},{hide:!0,orientation:Mn(Use,"".concat(i,".").concat(v%2),null),domain:S,originalDomain:w,isCategorical:b,layout:f})))}return g},{})},Kse=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.children,c="".concat(a,"Id"),h=Qn(f,i),p={};return h&&h.length?p=Fse(t,{axes:h,graphicalItems:o,axisType:a,axisIdKey:c,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=Gse(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:c,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},Yse=function(t){var n=To(t),r=Ci(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:mx(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:ch(n,r)}},ej=function(t){var n=t.children,r=t.defaultShowTooltip,a=xn(n,ql),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Xse=function(t){return!t||!t.length?!1:t.some(function(n){var r=Jr(n&&n.type);return r&&r.indexOf("Bar")>=0})},tj=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Vse=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,s=l===void 0?{}:l,u=r.width,f=r.height,c=r.children,h=r.margin||{},p=xn(c,ql),b=xn(c,el),v=Object.keys(s).reduce(function(S,O){var A=s[O],E=A.orientation;return!A.mirror&&!A.hide?z(z({},S),{},ne({},E,S[E]+A.width)):S},{left:h.left||0,right:h.right||0}),g=Object.keys(o).reduce(function(S,O){var A=o[O],E=A.orientation;return!A.mirror&&!A.hide?z(z({},S),{},ne({},E,Mn(S,"".concat(E))+A.height)):S},{top:h.top||0,bottom:h.bottom||0}),y=z(z({},g),v),m=y.bottom;p&&(y.bottom+=p.props.height||ql.defaultProps.height),b&&n&&(y=JJ(y,a,r,n));var x=u-y.left-y.right,w=f-y.top-y.bottom;return z(z({brushBottom:m},y),{},{width:Math.max(x,0),height:Math.max(w,0)})},Qse=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},cR=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,s=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,h=function(y,m){var x=m.graphicalItems,w=m.stackGroups,S=m.offset,O=m.updateId,A=m.dataStartIndex,E=m.dataEndIndex,_=y.barSize,C=y.layout,$=y.barGap,P=y.barCategoryGap,B=y.maxBarSize,L=tj(C),D=L.numericAxisName,R=L.cateAxisName,k=Xse(x),U=[];return x.forEach(function(q,F){var V=ay(y.data,{graphicalItems:[q],dataStartIndex:A,dataEndIndex:E}),G=q.type.defaultProps!==void 0?z(z({},q.type.defaultProps),q.props):q.props,ee=G.dataKey,he=G.maxBarSize,$e=G["".concat(D,"Id")],se=G["".concat(R,"Id")],Pt={},vt=s.reduce(function(Cr,vn){var ly=m["".concat(vn.axisType,"Map")],Wx=G["".concat(vn.axisType,"Id")];ly&&ly[Wx]||vn.axisType==="zAxis"||oo();var Zx=ly[Wx];return z(z({},Cr),{},ne(ne({},vn.axisType,Zx),"".concat(vn.axisType,"Ticks"),Ci(Zx)))},Pt),X=vt[R],ie=vt["".concat(R,"Ticks")],ue=w&&w[$e]&&w[$e].hasStack&&cee(q,w[$e].stackGroups),H=Jr(q.type).indexOf("Bar")>=0,Ke=ch(X,ie),me=[],Te=k&&WJ({barSize:_,stackGroups:w,totalSize:Qse(vt,R)});if(H){var J,De,Rt=ye(he)?B:he,nn=(J=(De=ch(X,ie,!0))!==null&&De!==void 0?De:Rt)!==null&&J!==void 0?J:0;me=ZJ({barGap:$,barCategoryGap:P,bandSize:nn!==Ke?nn:Ke,sizeList:Te[se],maxBarSize:Rt}),nn!==Ke&&(me=me.map(function(Cr){return z(z({},Cr),{},{position:z(z({},Cr.position),{},{offset:Cr.position.offset-nn/2})})}))}var di=q&&q.type&&q.type.getComposedData;di&&U.push({props:z(z({},di(z(z({},vt),{},{displayedData:V,props:y,dataKey:ee,item:q,bandSize:Ke,barPosition:me,offset:S,stackedData:ue,layout:C,dataStartIndex:A,dataEndIndex:E}))),{},ne(ne(ne({key:q.key||"item-".concat(F)},D,vt[D]),R,vt[R]),"animationId",O)),childIndex:WU(q,y.children),item:q})}),U},p=function(y,m){var x=y.props,w=y.dataStartIndex,S=y.dataEndIndex,O=y.updateId;if(!ww({props:x}))return null;var A=x.children,E=x.layout,_=x.stackOffset,C=x.data,$=x.reverseStackOrder,P=tj(E),B=P.numericAxisName,L=P.cateAxisName,D=Qn(A,r),R=see(C,D,"".concat(B,"Id"),"".concat(L,"Id"),_,$),k=s.reduce(function(G,ee){var he="".concat(ee.axisType,"Map");return z(z({},G),{},ne({},he,Kse(x,z(z({},ee),{},{graphicalItems:D,stackGroups:ee.axisType===B&&R,dataStartIndex:w,dataEndIndex:S}))))},{}),U=Vse(z(z({},k),{},{props:x,graphicalItems:D}),m==null?void 0:m.legendBBox);Object.keys(k).forEach(function(G){k[G]=f(x,k[G],U,G.replace("Map",""),n)});var q=k["".concat(L,"Map")],F=Yse(q),V=h(x,z(z({},k),{},{dataStartIndex:w,dataEndIndex:S,updateId:O,graphicalItems:D,stackGroups:R,offset:U}));return z(z({formattedGraphicalItems:V,graphicalItems:D,offset:U,stackGroups:R},F),k)},b=function(g){function y(m){var x,w,S;return Nse(this,y),S=Pse(this,y,[m]),ne(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ne(S,"accessibilityManager",new yse),ne(S,"handleLegendBBoxUpdate",function(O){if(O){var A=S.state,E=A.dataStartIndex,_=A.dataEndIndex,C=A.updateId;S.setState(z({legendBBox:O},p({props:S.props,dataStartIndex:E,dataEndIndex:_,updateId:C},z(z({},S.state),{},{legendBBox:O}))))}}),ne(S,"handleReceiveSyncEvent",function(O,A,E){if(S.props.syncId===O){if(E===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(A)}}),ne(S,"handleBrushChange",function(O){var A=O.startIndex,E=O.endIndex;if(A!==S.state.dataStartIndex||E!==S.state.dataEndIndex){var _=S.state.updateId;S.setState(function(){return z({dataStartIndex:A,dataEndIndex:E},p({props:S.props,dataStartIndex:A,dataEndIndex:E,updateId:_},S.state))}),S.triggerSyncEvent({dataStartIndex:A,dataEndIndex:E})}}),ne(S,"handleMouseEnter",function(O){var A=S.getMouseInfo(O);if(A){var E=z(z({},A),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var _=S.props.onMouseEnter;oe(_)&&_(E,O)}}),ne(S,"triggeredAfterMouseMove",function(O){var A=S.getMouseInfo(O),E=A?z(z({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(E),S.triggerSyncEvent(E);var _=S.props.onMouseMove;oe(_)&&_(E,O)}),ne(S,"handleItemMouseEnter",function(O){S.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),ne(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),ne(S,"handleMouseMove",function(O){O.persist(),S.throttleTriggeredAfterMouseMove(O)}),ne(S,"handleMouseLeave",function(O){S.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};S.setState(A),S.triggerSyncEvent(A);var E=S.props.onMouseLeave;oe(E)&&E(A,O)}),ne(S,"handleOuterEvent",function(O){var A=QU(O),E=Mn(S.props,"".concat(A));if(A&&oe(E)){var _,C;/.*touch.*/i.test(A)?C=S.getMouseInfo(O.changedTouches[0]):C=S.getMouseInfo(O),E((_=C)!==null&&_!==void 0?_:{},O)}}),ne(S,"handleClick",function(O){var A=S.getMouseInfo(O);if(A){var E=z(z({},A),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var _=S.props.onClick;oe(_)&&_(E,O)}}),ne(S,"handleMouseDown",function(O){var A=S.props.onMouseDown;if(oe(A)){var E=S.getMouseInfo(O);A(E,O)}}),ne(S,"handleMouseUp",function(O){var A=S.props.onMouseUp;if(oe(A)){var E=S.getMouseInfo(O);A(E,O)}}),ne(S,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),ne(S,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.handleMouseDown(O.changedTouches[0])}),ne(S,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.handleMouseUp(O.changedTouches[0])}),ne(S,"handleDoubleClick",function(O){var A=S.props.onDoubleClick;if(oe(A)){var E=S.getMouseInfo(O);A(E,O)}}),ne(S,"handleContextMenu",function(O){var A=S.props.onContextMenu;if(oe(A)){var E=S.getMouseInfo(O);A(E,O)}}),ne(S,"triggerSyncEvent",function(O){S.props.syncId!==void 0&&jm.emit(Em,S.props.syncId,O,S.eventEmitterSymbol)}),ne(S,"applySyncEvent",function(O){var A=S.props,E=A.layout,_=A.syncMethod,C=S.state.updateId,$=O.dataStartIndex,P=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)S.setState(z({dataStartIndex:$,dataEndIndex:P},p({props:S.props,dataStartIndex:$,dataEndIndex:P,updateId:C},S.state)));else if(O.activeTooltipIndex!==void 0){var B=O.chartX,L=O.chartY,D=O.activeTooltipIndex,R=S.state,k=R.offset,U=R.tooltipTicks;if(!k)return;if(typeof _=="function")D=_(U,O);else if(_==="value"){D=-1;for(var q=0;q<U.length;q++)if(U[q].value===O.activeLabel){D=q;break}}var F=z(z({},k),{},{x:k.left,y:k.top}),V=Math.min(B,F.x+F.width),G=Math.min(L,F.y+F.height),ee=U[D]&&U[D].value,he=b0(S.state,S.props.data,D),$e=U[D]?{x:E==="horizontal"?U[D].coordinate:V,y:E==="horizontal"?G:U[D].coordinate}:sR;S.setState(z(z({},O),{},{activeLabel:ee,activeCoordinate:$e,activePayload:he,activeTooltipIndex:D}))}else S.setState(O)}),ne(S,"renderCursor",function(O){var A,E=S.state,_=E.isTooltipActive,C=E.activeCoordinate,$=E.activePayload,P=E.offset,B=E.activeTooltipIndex,L=E.tooltipAxisBandSize,D=S.getTooltipEventType(),R=(A=O.props.active)!==null&&A!==void 0?A:_,k=S.props.layout,U=O.key||"_recharts-cursor";return M.createElement(wse,{key:U,activeCoordinate:C,activePayload:$,activeTooltipIndex:B,chartName:n,element:O,isActive:R,layout:k,offset:P,tooltipAxisBandSize:L,tooltipEventType:D})}),ne(S,"renderPolarAxis",function(O,A,E){var _=Mn(O,"type.axisType"),C=Mn(S.state,"".concat(_,"Map")),$=O.type.defaultProps,P=$!==void 0?z(z({},$),O.props):O.props,B=C&&C[P["".concat(_,"Id")]];return j.cloneElement(O,z(z({},B),{},{className:pe(_,B.className),key:O.key||"".concat(A,"-").concat(E),ticks:Ci(B,!0)}))}),ne(S,"renderPolarGrid",function(O){var A=O.props,E=A.radialLines,_=A.polarAngles,C=A.polarRadius,$=S.state,P=$.radiusAxisMap,B=$.angleAxisMap,L=To(P),D=To(B),R=D.cx,k=D.cy,U=D.innerRadius,q=D.outerRadius;return j.cloneElement(O,{polarAngles:Array.isArray(_)?_:Ci(D,!0).map(function(F){return F.coordinate}),polarRadius:Array.isArray(C)?C:Ci(L,!0).map(function(F){return F.coordinate}),cx:R,cy:k,innerRadius:U,outerRadius:q,key:O.key||"polar-grid",radialLines:E})}),ne(S,"renderLegend",function(){var O=S.state.formattedGraphicalItems,A=S.props,E=A.children,_=A.width,C=A.height,$=S.props.margin||{},P=_-($.left||0)-($.right||0),B=qM({children:E,formattedGraphicalItems:O,legendWidth:P,legendContent:u});if(!B)return null;var L=B.item,D=W2(B,Ose);return j.cloneElement(L,z(z({},D),{},{chartWidth:_,chartHeight:C,margin:$,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),ne(S,"renderTooltip",function(){var O,A=S.props,E=A.children,_=A.accessibilityLayer,C=xn(E,ir);if(!C)return null;var $=S.state,P=$.isTooltipActive,B=$.activeCoordinate,L=$.activePayload,D=$.activeLabel,R=$.offset,k=(O=C.props.active)!==null&&O!==void 0?O:P;return j.cloneElement(C,{viewBox:z(z({},R),{},{x:R.left,y:R.top}),active:k,label:D,payload:k?L:[],coordinate:B,accessibilityLayer:_})}),ne(S,"renderBrush",function(O){var A=S.props,E=A.margin,_=A.data,C=S.state,$=C.offset,P=C.dataStartIndex,B=C.dataEndIndex,L=C.updateId;return j.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Ef(S.handleBrushChange,O.props.onChange),data:_,x:K(O.props.x)?O.props.x:$.left,y:K(O.props.y)?O.props.y:$.top+$.height+$.brushBottom-(E.bottom||0),width:K(O.props.width)?O.props.width:$.width,startIndex:P,endIndex:B,updateId:"brush-".concat(L)})}),ne(S,"renderReferenceElement",function(O,A,E){if(!O)return null;var _=S,C=_.clipPathId,$=S.state,P=$.xAxisMap,B=$.yAxisMap,L=$.offset,D=O.type.defaultProps||{},R=O.props,k=R.xAxisId,U=k===void 0?D.xAxisId:k,q=R.yAxisId,F=q===void 0?D.yAxisId:q;return j.cloneElement(O,{key:O.key||"".concat(A,"-").concat(E),xAxis:P[U],yAxis:B[F],viewBox:{x:L.left,y:L.top,width:L.width,height:L.height},clipPathId:C})}),ne(S,"renderActivePoints",function(O){var A=O.item,E=O.activePoint,_=O.basePoint,C=O.childIndex,$=O.isRange,P=[],B=A.props.key,L=A.item.type.defaultProps!==void 0?z(z({},A.item.type.defaultProps),A.item.props):A.item.props,D=L.activeDot,R=L.dataKey,k=z(z({index:C,dataKey:R,cx:E.x,cy:E.y,r:4,fill:Hx(A.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},ae(D,!1)),kd(D));return P.push(y.renderActiveDot(D,k,"".concat(B,"-activePoint-").concat(C))),_?P.push(y.renderActiveDot(D,z(z({},k),{},{cx:_.x,cy:_.y}),"".concat(B,"-basePoint-").concat(C))):$&&P.push(null),P}),ne(S,"renderGraphicChild",function(O,A,E){var _=S.filterFormatItem(O,A,E);if(!_)return null;var C=S.getTooltipEventType(),$=S.state,P=$.isTooltipActive,B=$.tooltipAxis,L=$.activeTooltipIndex,D=$.activeLabel,R=S.props.children,k=xn(R,ir),U=_.props,q=U.points,F=U.isRange,V=U.baseLine,G=_.item.type.defaultProps!==void 0?z(z({},_.item.type.defaultProps),_.item.props):_.item.props,ee=G.activeDot,he=G.hide,$e=G.activeBar,se=G.activeShape,Pt=!!(!he&&P&&k&&(ee||$e||se)),vt={};C!=="axis"&&k&&k.props.trigger==="click"?vt={onClick:Ef(S.handleItemMouseEnter,O.props.onClick)}:C!=="axis"&&(vt={onMouseLeave:Ef(S.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Ef(S.handleItemMouseEnter,O.props.onMouseEnter)});var X=j.cloneElement(O,z(z({},_.props),vt));function ie(vn){return typeof B.dataKey=="function"?B.dataKey(vn.payload):null}if(Pt)if(L>=0){var ue,H;if(B.dataKey&&!B.allowDuplicatedCategory){var Ke=typeof B.dataKey=="function"?ie:"payload.".concat(B.dataKey.toString());ue=Yv(q,Ke,D),H=F&&V&&Yv(V,Ke,D)}else ue=q==null?void 0:q[L],H=F&&V&&V[L];if(se||$e){var me=O.props.activeIndex!==void 0?O.props.activeIndex:L;return[j.cloneElement(O,z(z(z({},_.props),vt),{},{activeIndex:me})),null,null]}if(!ye(ue))return[X].concat(Zl(S.renderActivePoints({item:_,activePoint:ue,basePoint:H,childIndex:L,isRange:F})))}else{var Te,J=(Te=S.getItemByXY(S.state.activeCoordinate))!==null&&Te!==void 0?Te:{graphicalItem:X},De=J.graphicalItem,Rt=De.item,nn=Rt===void 0?O:Rt,di=De.childIndex,Cr=z(z(z({},_.props),vt),{},{activeIndex:di});return[j.cloneElement(nn,Cr),null,null]}return F?[X,null,null]:[X,null]}),ne(S,"renderCustomized",function(O,A,E){return j.cloneElement(O,z(z({key:"recharts-customized-".concat(E)},S.props),S.state))}),ne(S,"renderMap",{CartesianGrid:{handler:Mf,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Mf},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Mf},YAxis:{handler:Mf},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((x=m.id)!==null&&x!==void 0?x:Gc("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=qC(S.triggeredAfterMouseMove,(w=m.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return Dse(y,g),Mse(y,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,S=x.data,O=x.height,A=x.layout,E=xn(w,ir);if(E){var _=E.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,$=b0(this.state,S,_,C),P=this.state.tooltipTicks[_].coordinate,B=(this.state.offset.top+O)/2,L=A==="horizontal",D=L?{x:P,y:B}:{y:P,x:B},R=this.state.formattedGraphicalItems.find(function(U){var q=U.item;return q.type.name==="Scatter"});R&&(D=z(z({},D),R.props.points[_].tooltipPosition),$=R.props.points[_].tooltipPayload);var k={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:C,activePayload:$,activeCoordinate:D};this.setState(k),this.renderCursor(E),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var S,O;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(x){Vv([xn(x.children,ir)],[xn(this.props.children,ir)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=xn(this.props.children,ir);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return l.indexOf(w)>=0?w:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,S=w.getBoundingClientRect(),O=AV(S),A={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},E=S.width/w.offsetWidth||1,_=this.inRange(A.chartX,A.chartY,E);if(!_)return null;var C=this.state,$=C.xAxisMap,P=C.yAxisMap,B=this.getTooltipEventType(),L=J2(this.state,this.props.data,this.props.layout,_);if(B!=="axis"&&$&&P){var D=To($).scale,R=To(P).scale,k=D&&D.invert?D.invert(A.chartX):null,U=R&&R.invert?R.invert(A.chartY):null;return z(z({},A),{},{xValue:k,yValue:U},L)}return L?z(z({},A),L):null}},{key:"inRange",value:function(x,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,A=x/S,E=w/S;if(O==="horizontal"||O==="vertical"){var _=this.state.offset,C=A>=_.left&&A<=_.left+_.width&&E>=_.top&&E<=_.top+_.height;return C?{x:A,y:E}:null}var $=this.state,P=$.angleAxisMap,B=$.radiusAxisMap;if(P&&B){var L=To(P);return PA({x:A,y:E},L)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),S=xn(x,ir),O={};S&&w==="axis"&&(S.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=kd(this.props,this.handleOuterEvent);return z(z({},A),O)}},{key:"addListener",value:function(){jm.on(Em,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){jm.removeListener(Em,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,S){for(var O=this.state.formattedGraphicalItems,A=0,E=O.length;A<E;A++){var _=O[A];if(_.item===x||_.props.key===x.key||w===Jr(_.item.type)&&S===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,S=w.left,O=w.top,A=w.height,E=w.width;return M.createElement("defs",null,M.createElement("clipPath",{id:x},M.createElement("rect",{x:S,y:O,height:A,width:E})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,S){var O=Q2(S,2),A=O[0],E=O[1];return z(z({},w),{},ne({},A,E.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,S){var O=Q2(S,2),A=O[0],E=O[1];return z(z({},w),{},ne({},A,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,S=w.formattedGraphicalItems,O=w.activeItem;if(S&&S.length)for(var A=0,E=S.length;A<E;A++){var _=S[A],C=_.props,$=_.item,P=$.type.defaultProps!==void 0?z(z({},$.type.defaultProps),$.props):$.props,B=Jr($.type);if(B==="Bar"){var L=(C.data||[]).find(function(U){return cre(x,U)});if(L)return{graphicalItem:_,payload:L}}else if(B==="RadialBar"){var D=(C.data||[]).find(function(U){return PA(x,U)});if(D)return{graphicalItem:_,payload:D}}else if(Xp(_,O)||Vp(_,O)||dc(_,O)){var R=Zae({graphicalItem:_,activeTooltipItem:O,itemData:P.data}),k=P.activeIndex===void 0?R:P.activeIndex;return{graphicalItem:z(z({},_),{},{childIndex:k}),payload:dc(_,O)?P.data[R]:_.props.data[R]}}}return null}},{key:"render",value:function(){var x=this;if(!ww(this))return null;var w=this.props,S=w.children,O=w.className,A=w.width,E=w.height,_=w.style,C=w.compact,$=w.title,P=w.desc,B=W2(w,Ase),L=ae(B,!1);if(C)return M.createElement(L2,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},M.createElement(Wv,Go({},L,{width:A,height:E,title:$,desc:P}),this.renderClipPath(),Aw(S,this.renderMap)));if(this.props.accessibilityLayer){var D,R;L.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,L.role=(R=this.props.role)!==null&&R!==void 0?R:"application",L.onKeyDown=function(U){x.accessibilityManager.keyboardEvent(U)},L.onFocus=function(){x.accessibilityManager.focus()}}var k=this.parseEventsOfWrapper();return M.createElement(L2,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},M.createElement("div",Go({className:pe("recharts-wrapper",O),style:z({position:"relative",cursor:"default",width:A,height:E},_)},k,{ref:function(q){x.container=q}}),M.createElement(Wv,Go({},L,{width:A,height:E,title:$,desc:P,style:Ise}),this.renderClipPath(),Aw(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ne(b,"displayName",n),ne(b,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ne(b,"getDerivedStateFromProps",function(g,y){var m=g.dataKey,x=g.data,w=g.children,S=g.width,O=g.height,A=g.layout,E=g.stackOffset,_=g.margin,C=y.dataStartIndex,$=y.dataEndIndex;if(y.updateId===void 0){var P=ej(g);return z(z(z({},P),{},{updateId:0},p(z(z({props:g},P),{},{updateId:0}),y)),{},{prevDataKey:m,prevData:x,prevWidth:S,prevHeight:O,prevLayout:A,prevStackOffset:E,prevMargin:_,prevChildren:w})}if(m!==y.prevDataKey||x!==y.prevData||S!==y.prevWidth||O!==y.prevHeight||A!==y.prevLayout||E!==y.prevStackOffset||!Jo(_,y.prevMargin)){var B=ej(g),L={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},D=z(z({},J2(y,x,A)),{},{updateId:y.updateId+1}),R=z(z(z({},B),L),D);return z(z(z({},R),p(z({props:g},R),y)),{},{prevDataKey:m,prevData:x,prevWidth:S,prevHeight:O,prevLayout:A,prevStackOffset:E,prevMargin:_,prevChildren:w})}if(!Vv(w,y.prevChildren)){var k,U,q,F,V=xn(w,ql),G=V&&(k=(U=V.props)===null||U===void 0?void 0:U.startIndex)!==null&&k!==void 0?k:C,ee=V&&(q=(F=V.props)===null||F===void 0?void 0:F.endIndex)!==null&&q!==void 0?q:$,he=G!==C||ee!==$,$e=!ye(x),se=$e&&!he?y.updateId:y.updateId+1;return z(z({updateId:se},p(z(z({props:g},y),{},{updateId:se,dataStartIndex:G,dataEndIndex:ee}),y)),{},{prevChildren:w,dataStartIndex:G,dataEndIndex:ee})}return null}),ne(b,"renderActiveDot",function(g,y,m){var x;return j.isValidElement(g)?x=j.cloneElement(g,y):oe(g)?x=g(y):x=M.createElement(Fx,y),M.createElement(Me,{className:"recharts-active-dot",key:m},x)});var v=j.forwardRef(function(y,m){return M.createElement(b,Go({},y,{ref:m}))});return v.displayName=b.displayName,v},Wse=cR({chartName:"BarChart",GraphicalChild:go,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ny},{axisType:"yAxis",AxisComp:ry}],formatAxisMap:Poe}),Zse=cR({chartName:"PieChart",GraphicalChild:va,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Yp},{axisType:"radiusAxis",AxisComp:Gp}],formatAxisMap:xee,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Ao({title:e,value:t,icon:n,color:r="brand",sub:a}){const i={brand:"text-brand  bg-brand/10",green:"text-green-400  bg-green-400/10",red:"text-red-400    bg-red-400/10",orange:"text-orange-400 bg-orange-400/10",yellow:"text-yellow-400 bg-yellow-400/10",accent:"text-accent  bg-accent/10"},o=i[r]||i.brand;return d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4 flex items-center gap-4",children:[d.jsx("div",{className:`p-3 rounded-lg ${o}`,children:d.jsx(n,{size:20})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-gray-400",children:e}),d.jsx("p",{className:`text-2xl font-bold ${o.split(" ")[0]}`,children:t}),a&&d.jsx("p",{className:"text-xs text-gray-500",children:a})]})]})}const nj=["#00a0c8","#3ddc97","#f59e0b","#ef4444"];function Jse(){const e=localStorage.getItem("esn_tenant")||void 0,{data:t,isLoading:n}=tn({queryKey:["dashboard",e],queryFn:()=>rz(e),refetchInterval:3e4});if(n)return d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."});if(!t)return d.jsx("div",{className:"text-red-400 p-8",children:"데이터를 가져올 수 없습니다."});const r=[{name:"ONLINE",value:t.onlineDevices||0},{name:"OFFLINE",value:t.offlineDevices||0}],a=[{name:"오늘 작업",value:t.totalWorkToday||0},{name:"완료",value:t.completedWorkToday||0},{name:"POS 대기",value:t.pendingPosCvt||0},{name:"POS 처리",value:t.processedPosCvtToday||0}];return d.jsxs("div",{className:"space-y-6",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"대시보드"}),d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:[d.jsx(Ao,{title:"전체 매장",value:t.totalStores||0,icon:Iv,color:"brand"}),d.jsx(Ao,{title:"운영 매장",value:t.activeStores||0,icon:Iv,color:"green"}),d.jsx(Ao,{title:"미해결 알람",value:t.unresolvedAlarms||0,icon:ZT,color:"red"}),d.jsx(Ao,{title:"긴급 알람",value:t.criticalAlarms||0,icon:zb,color:"red"}),d.jsx(Ao,{title:"온라인 장치",value:t.onlineDevices||0,icon:kb,color:"green"}),d.jsx(Ao,{title:"POS 대기",value:t.pendingPosCvt||0,icon:Lb,color:"yellow"})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"장치 상태 현황"}),d.jsx(SO,{width:"100%",height:200,children:d.jsxs(Zse,{children:[d.jsx(va,{data:r,cx:"50%",cy:"50%",outerRadius:70,dataKey:"value",label:({name:i,value:o})=>`${i}: ${o}`,children:r.map((i,o)=>d.jsx(Cp,{fill:nj[o%nj.length]},o))}),d.jsx(ir,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}})]})})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"오늘의 작업/POS 현황"}),d.jsx(SO,{width:"100%",height:200,children:d.jsxs(Wse,{data:a,children:[d.jsx(ny,{dataKey:"name",tick:{fill:"#9ca3af",fontSize:11}}),d.jsx(ry,{tick:{fill:"#9ca3af",fontSize:11}}),d.jsx(ir,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}}),d.jsx(go,{dataKey:"value",fill:"#00a0c8",radius:[3,3,0,0]})]})})]})]}),d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"오늘 작업"}),d.jsx("p",{className:"text-2xl font-bold text-brand",children:t.totalWorkToday||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["완료: ",t.completedWorkToday||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"전체 알람"}),d.jsx("p",{className:"text-2xl font-bold text-yellow-400",children:t.totalAlarms||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["미해결: ",t.unresolvedAlarms||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"전체 장치"}),d.jsx("p",{className:"text-2xl font-bold text-accent",children:t.totalDevices||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["오프라인: ",t.offlineDevices||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"POS 처리(오늘)"}),d.jsx("p",{className:"text-2xl font-bold text-green-400",children:t.processedPosCvtToday||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["대기: ",t.pendingPosCvt||0]})]})]})]})}function eue(){const e=yn(),[t,n]=j.useState(null),[r,a]=j.useState(""),{data:i=[],isLoading:o}=tn({queryKey:["stores",r],queryFn:()=>sz({keyword:r||void 0})}),l=rt({mutationFn:u=>u.id?cz(u.id,u):uz(u),onSuccess:()=>{e.invalidateQueries({queryKey:["stores"]}),n(null)}}),s=rt({mutationFn:fz,onSuccess:()=>e.invalidateQueries({queryKey:["stores"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"매장 관리"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{value:r,onChange:u=>a(u.target.value),placeholder:"매장명·코드 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"}),d.jsxs("button",{onClick:()=>n({}),className:"flex items-center gap-1.5 bg-brand hover:bg-brand2 text-white px-3 py-1.5 rounded text-sm",children:[d.jsx(fs,{size:14})," 매장 추가"]})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","코드","매장명","주소","담당자","상태","액션"].map(u=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:u.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300 font-mono text-xs",children:u.storeCode}),d.jsx("td",{className:"px-4 py-3 text-white",children:u.storeName}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs truncate max-w-xs",children:u.address}),d.jsx("td",{className:"px-4 py-3 text-gray-400",children:u.managerName}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:u.active?"운영":"중지"})}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>n(u),className:"text-brand hover:text-blue-300",children:d.jsx(zc,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(ho,{size:14})})]})})]},u.id)),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"매장이 없습니다"})})]})]})}),t&&d.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[d.jsxs("div",{className:"flex justify-between mb-4",children:[d.jsx("h2",{className:"font-semibold",children:t.id?"매장 수정":"매장 추가"}),d.jsx("button",{onClick:()=>n(null),children:d.jsx(ds,{size:16})})]}),d.jsx(tue,{initial:t,onSave:u=>l.mutate(u)})]})})]})}function tue({initial:e,onSave:t}){const[n,r]=j.useState({tenantCode:e.tenantCode||"",storeCode:e.storeCode||"",storeName:e.storeName||"",address:e.address||"",phone:e.phone||"",managerName:e.managerName||"",active:e.active!==!1,id:e.id}),a=i=>o=>r(l=>({...l,[i]:o.target.value}));return d.jsxs("form",{onSubmit:i=>{i.preventDefault(),t(n)},className:"space-y-3",children:[[{label:"테넌트",key:"tenantCode",type:"select",opts:["TENANT_A","TENANT_B","EMART","ZIOINFO"]},{label:"매장코드",key:"storeCode"},{label:"매장명",key:"storeName"},{label:"주소",key:"address"},{label:"전화",key:"phone"},{label:"담당자",key:"managerName"}].map(({label:i,key:o,type:l,opts:s})=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:i}),l==="select"?d.jsx("select",{value:n[o],onChange:a(o),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:(s||[]).map(u=>d.jsx("option",{value:u,children:u},u))}):d.jsx("input",{value:n[o],onChange:a(o),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},o)),d.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function nue(){const e=yn(),[t,n]=j.useState(null),{data:r=[],isLoading:a}=tn({queryKey:["templates"],queryFn:()=>dz()}),i=rt({mutationFn:l=>l.id?pz(l.id,l):hz(l),onSuccess:()=>{e.invalidateQueries({queryKey:["templates"]}),n(null)}}),o=rt({mutationFn:yz,onSuccess:()=>e.invalidateQueries({queryKey:["templates"]})});return a?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"ESL 템플릿"}),d.jsxs("button",{onClick:()=>n({}),className:"flex items-center gap-1.5 bg-brand hover:bg-brand2 text-white px-3 py-1.5 rounded text-sm",children:[d.jsx(fs,{size:14})," 템플릿 추가"]})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.map(l=>d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsxs("div",{className:"flex justify-between items-start mb-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-white",children:l.templateName}),d.jsxs("p",{className:"text-xs text-brand mt-0.5",children:[l.tenantCode," · ",l.templateType]})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>n(l),className:"text-brand hover:text-blue-300",children:d.jsx(zc,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(ho,{size:14})})]})]}),d.jsx("div",{className:"bg-panel border border-edge rounded p-3 flex items-center justify-center",style:{height:Math.min((l.height||76)/2+40,120)},children:d.jsxs("div",{className:"text-center",children:[d.jsxs("p",{className:"text-xs text-gray-400",children:[l.width,"×",l.height,"px"]}),d.jsx("p",{className:"text-xs text-gray-500 mt-1",children:l.description})]})}),d.jsxs("p",{className:"text-xs text-gray-500 mt-2",children:["코드: ",l.templateCode]})]},l.id)),r.length===0&&d.jsx("div",{className:"col-span-3 text-center text-gray-500 py-8",children:"템플릿이 없습니다"})]}),t&&d.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[d.jsxs("div",{className:"flex justify-between mb-4",children:[d.jsx("h2",{className:"font-semibold",children:t.id?"템플릿 수정":"템플릿 추가"}),d.jsx("button",{onClick:()=>n(null),children:d.jsx(ds,{size:16})})]}),d.jsx(rue,{initial:t,onSave:l=>i.mutate(l)})]})})]})}function rue({initial:e,onSave:t}){const n=!!e.id,[r,a]=j.useState({tenantCode:e.tenantCode||"EMART",templateCode:e.templateCode||"",templateName:e.templateName||"",templateType:e.templateType||"PRICE",width:e.width??250,height:e.height??122,description:e.description||"",layoutJson:e.layoutJson||"",active:e.active!==!1,id:e.id}),i=l=>s=>a(u=>({...u,[l]:s.target.value})),o=l=>{l.preventDefault(),t({...r,width:r.width===""?null:Number(r.width),height:r.height===""?null:Number(r.height),active:r.active===!0||r.active==="true"})};return d.jsxs("form",{onSubmit:o,className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),d.jsx("select",{value:r.tenantCode,onChange:i("tenantCode"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(l=>d.jsx("option",{value:l,children:l},l))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"템플릿 코드"}),d.jsx("input",{value:r.templateCode,onChange:i("templateCode"),disabled:n,required:!0,placeholder:"예: EM-PRICE-STD",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white disabled:opacity-50"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"템플릿명"}),d.jsx("input",{value:r.templateName,onChange:i("templateName"),required:!0,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"유형"}),d.jsx("select",{value:r.templateType,onChange:i("templateType"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["PRICE","INFO","PROMO","CUSTOM"].map(l=>d.jsx("option",{value:l,children:l},l))})]}),d.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{label:"너비(px)",key:"width"},{label:"높이(px)",key:"height"}].map(({label:l,key:s})=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:l}),d.jsx("input",{type:"number",value:r[s],onChange:i(s),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},s))}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),d.jsx("input",{value:r.description,onChange:i("description"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"레이아웃 JSON (선택)"}),d.jsx("textarea",{value:r.layoutJson,onChange:i("layoutJson"),rows:2,placeholder:'{"fields":[...]}',className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white font-mono"})]}),d.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function aue(){const e=yn(),[t,n]=j.useState("PENDING"),[r,a]=j.useState(""),{data:i=[],isLoading:o}=tn({queryKey:["pos-cvt",t,r],queryFn:()=>mz({status:t||void 0,keyword:r||void 0})}),l=rt({mutationFn:vz,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})}),s=rt({mutationFn:gz,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"POS 가격 변환"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{value:r,onChange:u=>a(u.target.value),placeholder:"상품코드·상품명 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"}),d.jsx("select",{value:t,onChange:u=>n(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:["","PENDING","PROCESSED","ERROR","IGNORED"].map(u=>d.jsx("option",{value:u,children:u||"전체"},u))})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","상품코드","상품명","정가","판매가","상태","수신일시","액션"].map(u=>d.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>{var f,c;return d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:u.tenantCode}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:u.storeName||"-"}),d.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:u.productCode}),d.jsx("td",{className:"px-3 py-3 text-white text-xs",children:u.productName}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(f=u.price)==null?void 0:f.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-accent text-xs",children:(c=u.salePrice)==null?void 0:c.toLocaleString()}),d.jsx("td",{className:"px-3 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.status==="PROCESSED"?"bg-green-500/20 text-green-400":u.status==="PENDING"?"bg-yellow-500/20 text-yellow-400":u.status==="ERROR"?"bg-red-500/20 text-red-400":"bg-gray-500/20 text-gray-400"}`,children:u.status})}),d.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-3 py-3",children:u.status==="PENDING"&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>l.mutate(u.id),title:"처리",className:"text-green-400 hover:text-green-300",children:d.jsx(Db,{size:14})}),d.jsx("button",{onClick:()=>s.mutate(u.id),title:"무시",className:"text-gray-400 hover:text-gray-300",children:d.jsx(Dk,{size:14})})]})})]},u.id)}),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"데이터가 없습니다"})})]})]})})]})}function iue({severity:e}){const t={CRITICAL:"bg-red-500/20    text-red-400    border border-red-500/40",HIGH:"bg-orange-500/20 text-orange-400 border border-orange-500/40",MEDIUM:"bg-yellow-500/20 text-yellow-400 border border-yellow-500/40",LOW:"bg-gray-500/20   text-gray-400   border border-gray-500/40"},n=t[e]||t.LOW;return d.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${n}`,children:e})}function oue(){const e=yn(),[t,n]=j.useState(""),[r,a]=j.useState("OPEN"),{data:i=[],isLoading:o}=tn({queryKey:["alarms",t,r],queryFn:()=>bz({severity:t||void 0,status:r||void 0})}),l=rt({mutationFn:({id:u,resolution:f})=>xz(u,f),onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})}),s=rt({mutationFn:Sz,onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"알람 관리"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("select",{value:t,onChange:u=>n(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 심각도"}),["CRITICAL","HIGH","MEDIUM","LOW"].map(u=>d.jsx("option",{value:u,children:u},u))]}),d.jsxs("select",{value:r,onChange:u=>a(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),["OPEN","ACKNOWLEDGED","RESOLVED"].map(u=>d.jsx("option",{value:u,children:u},u))]})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["매장","유형","심각도","메시지","상태","발생일시","액션"].map(u=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30 transition-colors",children:[d.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.storeName||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.alarmType}),d.jsx("td",{className:"px-4 py-3",children:d.jsx(iue,{severity:u.severity})}),d.jsx("td",{className:"px-4 py-3 text-gray-400 max-w-xs truncate",children:u.message}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.status==="RESOLVED"?"bg-green-500/20 text-green-400":u.status==="OPEN"?"bg-red-500/20 text-red-400":"bg-yellow-500/20 text-yellow-400"}`,children:u.status})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex gap-2",children:[u.status!=="RESOLVED"&&d.jsx("button",{onClick:()=>l.mutate({id:u.id,resolution:"운영자 확인 후 해결"}),className:"text-green-400 hover:text-green-300",title:"해결 처리",children:d.jsx(Db,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(ho,{size:14})})]})})]},u.id)),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"알람이 없습니다"})})]})]})})]})}const lue={ONLINE:d.jsx(rN,{size:14,className:"text-green-400"}),OFFLINE:d.jsx(nN,{size:14,className:"text-red-400"}),ERROR:d.jsx(zb,{size:14,className:"text-orange-400"}),UPDATING:d.jsx(kb,{size:14,className:"text-yellow-400"})},sue={ONLINE:"border-green-500/30 bg-green-500/5",OFFLINE:"border-red-500/30 bg-red-500/5",ERROR:"border-orange-500/30 bg-orange-500/5",UPDATING:"border-yellow-500/30 bg-yellow-500/5"};function uue(){const e=yn(),[t,n]=M.useState(""),[r,a]=M.useState(""),{data:i=[],isLoading:o}=tn({queryKey:["hcore",t,r],queryFn:()=>wz({deviceType:t||void 0,status:r||void 0}),refetchInterval:15e3}),l=rt({mutationFn:({id:s,status:u})=>Oz(s,u),onSuccess:()=>e.invalidateQueries({queryKey:["hcore"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"HCore 장치 현황"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("select",{value:t,onChange:s=>n(s.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 유형"}),["GATEWAY","HUB","ESL_DEVICE"].map(s=>d.jsx("option",{value:s,children:s},s))]}),d.jsxs("select",{value:r,onChange:s=>a(s.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),["ONLINE","OFFLINE","ERROR","UPDATING"].map(s=>d.jsx("option",{value:s,children:s},s))]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3",children:[i.map(s=>d.jsxs("div",{className:`border rounded-lg p-4 ${sue[s.status]||"border-edge bg-card"}`,children:[d.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[lue[s.status],d.jsx("span",{className:"text-xs font-mono text-gray-300",children:s.deviceId})]}),d.jsx("span",{className:"text-xs text-brand",children:s.deviceType})]}),d.jsx("p",{className:"text-xs text-gray-400",children:s.storeName||"미배정"}),d.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["FW: ",s.firmwareVersion||"-"]}),s.ipAddress&&d.jsx("p",{className:"text-xs text-gray-600 font-mono",children:s.ipAddress}),s.batteryLevel!=null&&d.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[d.jsx(WT,{size:12,className:s.batteryLevel<20?"text-red-400":"text-gray-400"}),d.jsxs("span",{className:`text-xs ${s.batteryLevel<20?"text-red-400":"text-gray-400"}`,children:[s.batteryLevel,"%"]})]}),s.status==="OFFLINE"&&d.jsx("button",{onClick:()=>l.mutate({id:s.id,status:"ONLINE"}),className:"mt-2 text-xs text-brand hover:underline",children:"온라인으로 변경"})]},s.id)),i.length===0&&d.jsx("div",{className:"col-span-4 text-center text-gray-500 py-8",children:"장치가 없습니다"})]})]})}const cue={SCHEDULED:"bg-blue-500/20 text-blue-400",IN_PROGRESS:"bg-yellow-500/20 text-yellow-400",COMPLETED:"bg-green-500/20 text-green-400",CANCELLED:"bg-gray-500/20 text-gray-400"};function fue(){const{data:e=[],isLoading:t}=tn({queryKey:["works"],queryFn:()=>Az()});return t?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"작업 이력"}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","작업유형","작업내용","담당자","상태","시작일시","완료일시"].map(n=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:n},n))})}),d.jsxs("tbody",{children:[e.map(n=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:n.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.storeName||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:n.workType}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs max-w-xs truncate",children:n.workContent}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.workerName}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${cue[n.status]||"bg-gray-500/20 text-gray-400"}`,children:n.status})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:n.startedAt?new Date(n.startedAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:n.completedAt?new Date(n.completedAt).toLocaleString("ko-KR"):"-"})]},n.id)),e.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-gray-500",children:"작업 이력이 없습니다"})})]})]})})]})}function due(){const e=yn(),[t,n]=j.useState(null),{data:r=[],isLoading:a}=tn({queryKey:["firmware"],queryFn:()=>jz()}),i=rt({mutationFn:l=>Ez(l),onSuccess:()=>{e.invalidateQueries({queryKey:["firmware"]}),n(null)}}),o=rt({mutationFn:_z,onSuccess:()=>e.invalidateQueries({queryKey:["firmware"]})});return a?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"펌웨어 관리"}),d.jsxs("button",{onClick:()=>n({}),className:"flex items-center gap-1.5 bg-brand hover:bg-brand2 text-white px-3 py-1.5 rounded text-sm",children:[d.jsx(fs,{size:14})," 펌웨어 등록"]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["버전","테넌트","장치유형","파일명","크기","체크섬","최신","등록일","액션"].map(l=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:l},l))})}),d.jsxs("tbody",{children:[r.map(l=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand font-mono text-xs",children:l.firmwareVersion}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:l.deviceType}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:l.fileName}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.fileSize?`${(l.fileSize/1024).toFixed(1)}KB`:"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs font-mono truncate max-w-[80px]",children:l.checksum?l.checksum.substring(0,8)+"...":"-"}),d.jsx("td",{className:"px-4 py-3",children:l.latest&&d.jsx(Qk,{size:14,className:"text-yellow-400",fill:"currentColor"})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:l.createdAt?new Date(l.createdAt).toLocaleDateString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(ho,{size:14})})})]},l.id)),r.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"펌웨어가 없습니다"})})]})]})}),t&&d.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[d.jsxs("div",{className:"flex justify-between mb-4",children:[d.jsx("h2",{className:"font-semibold",children:"펌웨어 등록"}),d.jsx("button",{onClick:()=>n(null),children:d.jsx(ds,{size:16})})]}),d.jsx(hue,{onSave:l=>i.mutate(l)})]})})]})}function hue({onSave:e}){const[t,n]=j.useState({tenantCode:"EMART",firmwareVersion:"",deviceType:"ESL_DEVICE",fileName:"",filePath:"",fileSize:"",checksum:"",description:"",latest:!0}),r=i=>o=>n(l=>({...l,[i]:o.target.value})),a=i=>{i.preventDefault(),e({...t,fileSize:t.fileSize===""?null:Number(t.fileSize),latest:t.latest===!0||t.latest==="true"})};return d.jsxs("form",{onSubmit:a,className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),d.jsx("select",{value:t.tenantCode,onChange:r("tenantCode"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(i=>d.jsx("option",{value:i,children:i},i))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"장치 유형"}),d.jsx("select",{value:t.deviceType,onChange:r("deviceType"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["GATEWAY","HUB","ESL_DEVICE"].map(i=>d.jsx("option",{value:i,children:i},i))})]}),[{label:"펌웨어 버전",key:"firmwareVersion",ph:"예: v1.2.3",required:!0},{label:"파일명",key:"fileName",ph:"firmware_v1.2.3.bin"},{label:"파일 경로",key:"filePath",ph:"/opt/esn/firmware/..."},{label:"파일 크기(byte)",key:"fileSize",type:"number"},{label:"체크섬(SHA256)",key:"checksum"}].map(({label:i,key:o,ph:l,type:s,required:u})=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:i}),d.jsx("input",{type:s||"text",value:t[o],onChange:r(o),placeholder:l,required:u,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},o)),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),d.jsx("textarea",{value:t.description,onChange:r("description"),rows:2,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"최신 버전 지정"}),d.jsxs("select",{value:String(t.latest),onChange:r("latest"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[d.jsx("option",{value:"true",children:"최신으로 지정"}),d.jsx("option",{value:"false",children:"일반"})]})]}),d.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"등록"})]})}function pue(){const e=yn(),[t,n]=j.useState(null),{data:r=[],isLoading:a}=tn({queryKey:["users"],queryFn:()=>Tz()}),i=rt({mutationFn:l=>l.id?Cz(l.id,l):Nz(l),onSuccess:()=>{e.invalidateQueries({queryKey:["users"]}),n(null)}}),o=rt({mutationFn:Mz,onSuccess:()=>e.invalidateQueries({queryKey:["users"]})});return a?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"사용자 관리"}),d.jsxs("button",{onClick:()=>n({}),className:"flex items-center gap-1.5 bg-brand hover:bg-brand2 text-white px-3 py-1.5 rounded text-sm",children:[d.jsx(fs,{size:14})," 사용자 추가"]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["아이디","테넌트","역할","이메일","전화","상태","마지막 로그인","액션"].map(l=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:l},l))})}),d.jsxs("tbody",{children:[r.map(l=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-white font-medium",children:l.username}),d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:l.tenantCode||"SUPER"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${l.role==="ADMIN"?"bg-red-500/20 text-red-400":l.role==="MANAGER"?"bg-brand/20 text-brand":"bg-gray-500/20 text-gray-400"}`,children:l.role})}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.email||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.phone||"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${l.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:l.active?"활성":"비활성"})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:l.lastLoginAt?new Date(l.lastLoginAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>n(l),className:"text-brand hover:text-blue-300",children:d.jsx(zc,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(ho,{size:14})})]})})]},l.id)),r.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-gray-500",children:"사용자가 없습니다"})})]})]})}),t&&d.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[d.jsxs("div",{className:"flex justify-between mb-4",children:[d.jsx("h2",{className:"font-semibold",children:t.id?"사용자 수정":"사용자 추가"}),d.jsx("button",{onClick:()=>n(null),children:d.jsx(ds,{size:16})})]}),d.jsx(yue,{initial:t,onSave:l=>i.mutate(l)})]})})]})}function yue({initial:e,onSave:t}){const n=!!e.id,[r,a]=j.useState({username:e.username||"",role:e.role||"USER",tenantCode:e.tenantCode||"",email:e.email||"",phone:e.phone||"",password:"",active:e.active!==!1,id:e.id}),i=l=>s=>a(u=>({...u,[l]:s.target.value})),o=l=>{l.preventDefault();const s={username:r.username,role:r.role,tenantCode:r.tenantCode||null,email:r.email||null,phone:r.phone||null,active:r.active===!0||r.active==="true",id:r.id};!n&&r.password&&(s.password=r.password),t(s)};return d.jsxs("form",{onSubmit:o,className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),d.jsx("input",{value:r.username,onChange:i("username"),disabled:n,required:!0,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white disabled:opacity-50"})]}),!n&&d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"초기 비밀번호 (미입력 시 changeme123)"}),d.jsx("input",{type:"password",value:r.password,onChange:i("password"),autoComplete:"new-password",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"역할"}),d.jsx("select",{value:r.role,onChange:i("role"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["ADMIN","MANAGER","USER"].map(l=>d.jsx("option",{value:l,children:l},l))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트 (SUPER는 비움)"}),d.jsxs("select",{value:r.tenantCode,onChange:i("tenantCode"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[d.jsx("option",{value:"",children:"(SUPER / 전체)"}),["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(l=>d.jsx("option",{value:l,children:l},l))]})]}),[{label:"이메일",key:"email",type:"email"},{label:"전화",key:"phone"}].map(({label:l,key:s,type:u})=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:l}),d.jsx("input",{type:u||"text",value:r[s],onChange:i(s),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},s)),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),d.jsxs("select",{value:String(r.active),onChange:i("active"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[d.jsx("option",{value:"true",children:"활성"}),d.jsx("option",{value:"false",children:"비활성"})]})]}),d.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function mue(){const e=yn(),[t,n]=j.useState(""),[r,a]=j.useState(null),{data:i=[],isLoading:o}=tn({queryKey:["products",t],queryFn:()=>Pz({keyword:t||void 0})}),l=rt({mutationFn:u=>u.id?$z(u.id,u):Rz(u),onSuccess:()=>{e.invalidateQueries({queryKey:["products"]}),a(null)}}),s=rt({mutationFn:Dz,onSuccess:()=>e.invalidateQueries({queryKey:["products"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"상품/가격 관리"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{value:t,onChange:u=>n(u.target.value),placeholder:"상품명·코드 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"}),d.jsxs("button",{onClick:()=>a({}),className:"flex items-center gap-1.5 bg-brand hover:bg-brand2 text-white px-3 py-1.5 rounded text-sm",children:[d.jsx(fs,{size:14})," 상품 추가"]})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","상품코드","상품명","카테고리","정가","판매가","화폐","상태","액션"].map(u=>d.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>{var f,c;return d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:u.tenantCode}),d.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:u.storeName||"-"}),d.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:u.productCode}),d.jsx("td",{className:"px-3 py-3 text-white",children:u.productName}),d.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:u.category}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(f=u.price)==null?void 0:f.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-accent text-xs font-medium",children:(c=u.salePrice)==null?void 0:c.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:u.currency}),d.jsx("td",{className:"px-3 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:u.active?"활성":"비활성"})}),d.jsx("td",{className:"px-3 py-3",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>a(u),className:"text-brand hover:text-blue-300",children:d.jsx(zc,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(ho,{size:14})})]})})]},u.id)}),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:10,className:"px-4 py-8 text-center text-gray-500",children:"상품이 없습니다"})})]})]})}),r&&d.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[d.jsxs("div",{className:"flex justify-between mb-4",children:[d.jsx("h2",{className:"font-semibold",children:r.id?"상품 수정 / 가격 변경":"상품 추가"}),d.jsx("button",{onClick:()=>a(null),children:d.jsx(ds,{size:16})})]}),d.jsx(vue,{initial:r,onSave:u=>l.mutate(u)})]})})]})}function vue({initial:e,onSave:t}){const[n,r]=j.useState({tenantCode:e.tenantCode||"EMART",storeId:e.storeId??"",productCode:e.productCode||"",productName:e.productName||"",category:e.category||"",price:e.price??"",salePrice:e.salePrice??"",currency:e.currency||"KRW",active:e.active!==!1,id:e.id}),a=o=>l=>r(s=>({...s,[o]:l.target.value})),i=o=>{o.preventDefault(),t({...n,storeId:n.storeId===""?null:Number(n.storeId),price:n.price===""?null:Number(n.price),salePrice:n.salePrice===""?null:Number(n.salePrice),active:n.active===!0||n.active==="true"})};return d.jsxs("form",{onSubmit:i,className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),d.jsx("select",{value:n.tenantCode,onChange:a("tenantCode"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(o=>d.jsx("option",{value:o,children:o},o))})]}),[{label:"매장 ID",key:"storeId",type:"number",ph:"예: 1"},{label:"상품코드",key:"productCode"},{label:"상품명",key:"productName"},{label:"카테고리",key:"category"},{label:"정가",key:"price",type:"number"},{label:"판매가",key:"salePrice",type:"number"}].map(({label:o,key:l,type:s,ph:u})=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:o}),d.jsx("input",{type:s||"text",value:n[l],onChange:a(l),placeholder:u,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},l)),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"화폐"}),d.jsx("select",{value:n.currency,onChange:a("currency"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["KRW","USD","EUR"].map(o=>d.jsx("option",{value:o,children:o},o))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),d.jsxs("select",{value:String(n.active),onChange:a("active"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[d.jsx("option",{value:"true",children:"활성"}),d.jsx("option",{value:"false",children:"비활성"})]})]}),d.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function gue(){const e=yn(),[t,n]=j.useState(null),{data:r=[],isLoading:a}=tn({queryKey:["tenants"],queryFn:()=>az()}),i=rt({mutationFn:s=>s.id?oz(s.id,s):iz(s),onSuccess:()=>{e.invalidateQueries({queryKey:["tenants"]}),n(null)}}),o=rt({mutationFn:lz,onSuccess:()=>e.invalidateQueries({queryKey:["tenants"]})});return a?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):localStorage.getItem("esn_role")!=="ADMIN"?d.jsx("div",{className:"text-center py-16",children:d.jsx("p",{className:"text-gray-400",children:"관리자 전용 메뉴입니다."})}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"테넌트 관리"}),d.jsxs("button",{onClick:()=>n({}),className:"flex items-center gap-1.5 bg-brand hover:bg-brand2 text-white px-3 py-1.5 rounded text-sm",children:[d.jsx(fs,{size:14})," 테넌트 추가"]})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[r.map(s=>d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(eN,{size:18,className:"text-brand"}),d.jsx("span",{className:"font-bold text-brand",children:s.tenantCode})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>n(s),className:"text-brand hover:text-blue-300",children:d.jsx(zc,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(s.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(ho,{size:14})})]})]}),d.jsx("p",{className:"text-sm text-white",children:s.tenantName}),d.jsx("p",{className:"text-xs text-gray-400 mt-1",children:s.description}),d.jsx("div",{className:"mt-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${s.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:s.active?"운영중":"비활성"})})]},s.id)),r.length===0&&d.jsx("div",{className:"col-span-full text-center text-gray-500 py-12",children:"테넌트가 없습니다"})]}),t&&d.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[d.jsxs("div",{className:"flex justify-between mb-4",children:[d.jsx("h2",{className:"font-semibold",children:t.id?"테넌트 수정":"테넌트 추가"}),d.jsx("button",{onClick:()=>n(null),children:d.jsx(ds,{size:16})})]}),d.jsx(bue,{initial:t,onSave:s=>i.mutate(s)})]})})]})}function bue({initial:e,onSave:t}){const n=!!e.id,[r,a]=j.useState({tenantCode:e.tenantCode||"",tenantName:e.tenantName||"",description:e.description||"",active:e.active!==!1,id:e.id}),i=l=>s=>a(u=>({...u,[l]:s.target.value})),o=l=>{l.preventDefault(),t({...r,active:r.active===!0||r.active==="true"})};return d.jsxs("form",{onSubmit:o,className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트 코드"}),d.jsx("input",{value:r.tenantCode,onChange:i("tenantCode"),disabled:n,required:!0,placeholder:"예: EMART",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white disabled:opacity-50"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트명"}),d.jsx("input",{value:r.tenantName,onChange:i("tenantName"),required:!0,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),d.jsx("textarea",{value:r.description,onChange:i("description"),rows:2,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),d.jsxs("select",{value:String(r.active),onChange:i("active"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[d.jsx("option",{value:"true",children:"운영중"}),d.jsx("option",{value:"false",children:"비활성"})]})]}),d.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function xue(){const[e,t]=j.useState(""),[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),s=rt({mutationFn:Bz,onSuccess:f=>r(f.analysis||JSON.stringify(f)),onError:()=>r("Ollama 응답 실패 — 서비스를 확인해주세요.")}),u=rt({mutationFn:Uz,onSuccess:f=>l(f.category||JSON.stringify(f)),onError:()=>l("Ollama 응답 실패 — 서비스를 확인해주세요.")});return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("h1",{className:"text-xl font-semibold text-white flex items-center gap-2",children:[d.jsx(JT,{size:20,className:"text-brand"})," AI 분석"]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[d.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[d.jsx(zb,{size:16,className:"text-yellow-400"})," 알람 원인 분석"]}),d.jsx("textarea",{value:e,onChange:f=>t(f.target.value),rows:4,placeholder:`알람 메시지를 입력하세요
예: ESL-001 배터리 부족 경고 — Store: A매장 구미, Device: ESL-A123`,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-gray-300 placeholder-gray-600 resize-none mb-3"}),d.jsxs("button",{onClick:()=>s.mutate({message:e}),disabled:!e.trim()||s.isPending,className:"flex items-center gap-2 px-4 py-2 bg-brand/20 text-brand border border-brand/40 rounded hover:bg-brand/30 disabled:opacity-40 text-sm",children:[d.jsx(Hv,{size:14}),s.isPending?"분석 중...":"Ollama 분석"]}),n&&d.jsx("div",{className:"mt-4 bg-panel border border-edge rounded p-4 text-sm text-gray-300 whitespace-pre-wrap",children:n})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[d.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[d.jsx(Wk,{size:16,className:"text-accent"})," POS 데이터 자동 분류"]}),d.jsx("textarea",{value:a,onChange:f=>i(f.target.value),rows:4,placeholder:`POS 데이터를 입력하세요
예: 상품코드=P001, 상품명=과자, 가격=1500, 판매수량=100, 점포=이마트 광명점`,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-gray-300 placeholder-gray-600 resize-none mb-3"}),d.jsxs("button",{onClick:()=>u.mutate({data:a}),disabled:!a.trim()||u.isPending,className:"flex items-center gap-2 px-4 py-2 bg-accent/20 text-accent border border-accent/40 rounded hover:bg-accent/30 disabled:opacity-40 text-sm",children:[d.jsx(Hv,{size:14}),u.isPending?"분류 중...":"Ollama 분류"]}),o&&d.jsx("div",{className:"mt-4 bg-panel border border-edge rounded p-4 text-sm text-gray-300 whitespace-pre-wrap",children:o})]})]})}const Sue={ACTIVE:"text-green-400 bg-green-500/10 border-green-500/30",UNBOUND:"text-gray-400 bg-gray-500/10 border-gray-500/30",ERROR:"text-red-400 bg-red-500/10 border-red-500/30"},wue=e=>e==="ONLINE"?d.jsx(rN,{size:13,className:"text-green-400"}):d.jsx(nN,{size:13,className:"text-red-400"});function Oue(){const e=yn(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,f]=j.useState({tenantCode:"",storeId:"",deviceId:"",productCode:"",locationCode:"",templateCode:"EM-PRICE-STD"}),{data:c=[],isLoading:h}=tn({queryKey:["tag-binding",t,r,i],queryFn:()=>Z.get("/api/tag-binding",{params:{tenantCode:t||void 0,storeId:r||void 0,keyword:i||void 0,bindStatus:"ACTIVE"}}).then(v=>v.data.data),refetchInterval:2e4}),p=rt({mutationFn:v=>Z.post("/api/tag-binding",{...v,storeId:Number(v.storeId)}),onSuccess:()=>{e.invalidateQueries({queryKey:["tag-binding"]}),s(!1)}}),b=rt({mutationFn:v=>Z.put(`/api/tag-binding/${v}/unbind`),onSuccess:()=>e.invalidateQueries({queryKey:["tag-binding"]})});return h?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"태그 바인딩 관리"}),d.jsxs("button",{onClick:()=>s(v=>!v),className:"flex items-center gap-2 px-3 py-1.5 bg-brand text-white rounded text-sm",children:[d.jsx(tN,{size:14})," 바인딩 추가"]})]}),l&&d.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-4 space-y-3",children:[d.jsx("h2",{className:"text-sm font-medium text-white",children:"e-paper 태그 → 상품 바인딩"}),d.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{key:"tenantCode",label:"테넌트",ph:"EMART"},{key:"storeId",label:"매장ID",ph:"1"},{key:"deviceId",label:"태그 Device ID",ph:"ESL-EM-001-0001"},{key:"productCode",label:"상품코드",ph:"P-001"},{key:"locationCode",label:"선반 위치코드",ph:"A01-03"},{key:"templateCode",label:"템플릿",ph:"EM-PRICE-STD"}].map(({key:v,label:g,ph:y})=>d.jsxs("div",{children:[d.jsx("label",{className:"text-xs text-gray-400 mb-1 block",children:g}),d.jsx("input",{value:u[v],onChange:m=>f(x=>({...x,[v]:m.target.value})),placeholder:y,className:"w-full bg-edge border border-gray-600 rounded px-2 py-1.5 text-sm text-white"})]},v))}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>p.mutate(u),className:"px-3 py-1.5 bg-brand text-white rounded text-sm",children:"바인딩 저장"}),d.jsx("button",{onClick:()=>s(!1),className:"px-3 py-1.5 bg-edge text-gray-300 rounded text-sm",children:"취소"})]})]}),d.jsx("div",{className:"flex gap-3",children:[{val:t,set:n,ph:"테넌트 필터"},{val:i,set:o,ph:"태그ID / 상품코드 / 위치 검색"}].map(({val:v,set:g,ph:y},m)=>d.jsx("input",{value:v,onChange:x=>g(x.target.value),placeholder:y,className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-64"},m))}),d.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[c.map(v=>d.jsxs("div",{className:`bg-panel border rounded-lg p-4 flex items-center justify-between
              ${v.deviceStatus==="ONLINE"?"border-green-500/20":"border-red-500/20"}`,children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("div",{className:"flex flex-col items-center gap-1 w-16",children:[wue(v.deviceStatus),v.batteryLevel!==null&&d.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[d.jsx(WT,{size:11}),d.jsxs("span",{className:v.batteryLevel<20?"text-red-400":"",children:[v.batteryLevel,"%"]})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-xs font-mono text-brand",children:v.deviceId}),d.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[d.jsx(Gk,{size:11,className:"text-gray-500"}),d.jsx("span",{className:"text-xs text-gray-400",children:v.locationCode||"위치 미지정"}),d.jsx("span",{className:"text-xs text-gray-600",children:"|"}),d.jsx("span",{className:"text-xs text-gray-300",children:v.storeName})]})]}),d.jsxs("div",{className:"ml-4 pl-4 border-l border-edge",children:[d.jsx("div",{className:"text-sm text-white",children:v.productName||v.productCode}),d.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["현재가: ",d.jsx("span",{className:"text-brand font-mono",children:v.lastPrice?v.lastPrice.toLocaleString()+"원":"미전송"}),v.lastUpdatedAt&&d.jsxs("span",{className:"ml-2 text-gray-600",children:["갱신: ",new Date(v.lastUpdatedAt).toLocaleString()]})]}),d.jsxs("div",{className:"text-xs text-gray-500 mt-0.5",children:["템플릿: ",v.templateCode]})]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:`text-xs px-2 py-0.5 rounded border ${Sue[v.bindStatus]||""}`,children:v.bindStatus}),d.jsx("button",{onClick:()=>{confirm(`태그 ${v.deviceId} 언바인딩하겠습니까?`)&&b.mutate(v.id)},className:"p-1.5 rounded bg-edge text-gray-400 hover:text-red-400",title:"언바인딩",children:d.jsx(Ik,{size:14})})]})]},v.id)),c.length===0&&d.jsx("div",{className:"text-center text-gray-500 py-12",children:'바인딩된 태그가 없습니다. 우측 상단 "바인딩 추가"를 클릭하세요.'})]})]})}const Tm={PENDING:{icon:d.jsx(zk,{size:13}),color:"text-yellow-400 bg-yellow-500/10 border-yellow-500/30",label:"대기"},SENDING:{icon:d.jsx(GS,{size:13}),color:"text-blue-400 bg-blue-500/10 border-blue-500/30",label:"전송중"},SENT:{icon:d.jsx(GS,{size:13}),color:"text-cyan-400 bg-cyan-500/10 border-cyan-500/30",label:"전송됨"},CONFIRMED:{icon:d.jsx(Db,{size:13}),color:"text-green-400 bg-green-500/10 border-green-500/30",label:"확인됨"},FAILED:{icon:d.jsx(kk,{size:13}),color:"text-red-400 bg-red-500/10 border-red-500/30",label:"실패"},CANCELLED:{icon:d.jsx($k,{size:13}),color:"text-gray-400 bg-gray-500/10 border-gray-500/30",label:"취소됨"}};function Aue(){const e=yn(),[t,n]=j.useState(""),[r,a]=j.useState(""),{data:i=[],isLoading:o,refetch:l}=tn({queryKey:["update-queue",t,r],queryFn:()=>Z.get("/api/update-queue",{params:{tenantCode:t||void 0,status:r||void 0}}).then(h=>h.data.data),refetchInterval:5e3}),s=rt({mutationFn:h=>Z.put(`/api/update-queue/${h}/cancel`),onSuccess:()=>e.invalidateQueries({queryKey:["update-queue"]})}),u=i.filter(h=>h.status==="PENDING").length,f=i.filter(h=>h.status==="FAILED").length,c=i.filter(h=>h.status==="CONFIRMED").length;return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"e-paper 가격 업데이트 큐"}),d.jsxs("button",{onClick:()=>l(),className:"flex items-center gap-1.5 px-3 py-1.5 bg-edge text-gray-300 rounded text-sm",children:[d.jsx(Lb,{size:13})," 새로고침"]})]}),d.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"대기중",count:u,color:"text-yellow-400",bg:"bg-yellow-500/5 border-yellow-500/20"},{label:"실패",count:f,color:"text-red-400",bg:"bg-red-500/5 border-red-500/20"},{label:"완료",count:c,color:"text-green-400",bg:"bg-green-500/5 border-green-500/20"}].map(({label:h,count:p,color:b,bg:v})=>d.jsxs("div",{className:`border rounded-lg p-3 ${v}`,children:[d.jsx("div",{className:`text-2xl font-bold font-mono ${b}`,children:p}),d.jsx("div",{className:"text-xs text-gray-400 mt-0.5",children:h})]},h))}),d.jsxs("div",{className:"flex gap-3",children:[d.jsx("input",{value:t,onChange:h=>n(h.target.value),placeholder:"테넌트 필터",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-40"}),d.jsxs("select",{value:r,onChange:h=>a(h.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),Object.entries(Tm).map(([h,p])=>d.jsx("option",{value:h,children:p.label},h))]})]}),d.jsxs("div",{className:"overflow-x-auto",children:[d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-edge text-xs text-gray-500",children:[d.jsx("th",{className:"text-left py-2 px-3",children:"#"}),d.jsx("th",{className:"text-left py-2 px-3",children:"태그 ID"}),d.jsx("th",{className:"text-left py-2 px-3",children:"위치"}),d.jsx("th",{className:"text-left py-2 px-3",children:"상품"}),d.jsx("th",{className:"text-right py-2 px-3",children:"가격"}),d.jsx("th",{className:"text-center py-2 px-3",children:"우선순위"}),d.jsx("th",{className:"text-center py-2 px-3",children:"상태"}),d.jsx("th",{className:"text-center py-2 px-3",children:"재시도"}),d.jsx("th",{className:"text-left py-2 px-3",children:"등록 시각"}),d.jsx("th",{className:"text-center py-2 px-3",children:"액션"})]})}),d.jsx("tbody",{children:i.map(h=>{var b;const p=Tm[h.status]||Tm.PENDING;return d.jsxs("tr",{className:"border-b border-edge/50 hover:bg-edge/30",children:[d.jsx("td",{className:"py-2 px-3 text-gray-500 font-mono text-xs",children:h.id}),d.jsx("td",{className:"py-2 px-3 text-brand font-mono text-xs",children:h.deviceId}),d.jsx("td",{className:"py-2 px-3 text-gray-300 text-xs",children:h.locationCode||"-"}),d.jsx("td",{className:"py-2 px-3 text-white text-xs",children:h.productName||h.productCode}),d.jsxs("td",{className:"py-2 px-3 text-right font-mono text-xs",children:[(b=h.newPrice)==null?void 0:b.toLocaleString(),"원",h.newSalePrice&&h.newSalePrice!==h.newPrice&&d.jsxs("span",{className:"ml-1 text-red-400",children:["→ ",h.newSalePrice.toLocaleString(),"원"]})]}),d.jsx("td",{className:"py-2 px-3 text-center",children:d.jsxs("span",{className:`text-xs font-mono ${h.priority<=2?"text-red-400":"text-gray-400"}`,children:["P",h.priority]})}),d.jsx("td",{className:"py-2 px-3 text-center",children:d.jsxs("span",{className:`inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded border ${p.color}`,children:[p.icon," ",p.label]})}),d.jsxs("td",{className:"py-2 px-3 text-center text-xs text-gray-400",children:[h.retryCount,"/",h.maxRetry]}),d.jsx("td",{className:"py-2 px-3 text-xs text-gray-500",children:new Date(h.createdAt).toLocaleString()}),d.jsx("td",{className:"py-2 px-3 text-center",children:["PENDING","FAILED"].includes(h.status)&&d.jsx("button",{onClick:()=>s.mutate(h.id),className:"text-xs text-gray-500 hover:text-red-400 px-2 py-0.5 rounded bg-edge",children:"취소"})})]},h.id)})})]}),i.length===0&&d.jsx("div",{className:"text-center text-gray-500 py-12",children:"업데이트 큐가 비어있습니다."})]})]})}const jue={FIRMWARE_DEPLOY:"bg-purple-500/20 text-purple-300",FIRMWARE_UPDATE:"bg-purple-500/20 text-purple-300",FIRMWARE_DELETE:"bg-red-500/20 text-red-400",POS_PRICE_CHANGE:"bg-amber-500/20 text-amber-300",USER_CREATE:"bg-green-500/20 text-green-400",USER_UPDATE:"bg-blue-500/20 text-blue-400",USER_DELETE:"bg-red-500/20 text-red-400",USER_PASSWORD_RESET:"bg-blue-500/20 text-blue-400",USER_ACTIVE_TOGGLE:"bg-blue-500/20 text-blue-400",TENANT_CREATE:"bg-green-500/20 text-green-400",TENANT_UPDATE:"bg-blue-500/20 text-blue-400",TENANT_DELETE:"bg-red-500/20 text-red-400",SETTING_CHANGE:"bg-cyan-500/20 text-cyan-300"},Eue=["","FIRMWARE_DEPLOY","FIRMWARE_UPDATE","FIRMWARE_DELETE","POS_PRICE_CHANGE","USER_CREATE","USER_UPDATE","USER_DELETE","USER_PASSWORD_RESET","USER_ACTIVE_TOGGLE","TENANT_CREATE","TENANT_UPDATE","TENANT_DELETE","SETTING_CHANGE"];function _ue(){const[e,t]=j.useState(""),[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),[s,u]=j.useState(""),[f,c]=j.useState({limit:200}),{data:h=[],isLoading:p,refetch:b,isFetching:v}=tn({queryKey:["audit",f],queryFn:()=>kz(f)}),g=()=>{const m={limit:200};e&&(m.action=e),n.trim()&&(m.username=n.trim()),a.trim()&&(m.tenantCode=a.trim()),o&&(m.from=o+":00"),s&&(m.to=s+":59"),c(m)},y=()=>{t(""),r(""),i(""),l(""),u(""),c({limit:200})};return d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"감사 로그"}),d.jsx("button",{onClick:()=>b(),className:"text-xs px-3 py-1.5 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:v?"조회 중...":"새로고침"})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4 grid grid-cols-1 md:grid-cols-6 gap-3 items-end",children:[d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{className:"text-xs text-gray-500",children:"액션"}),d.jsx("select",{value:e,onChange:m=>t(m.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200",children:Eue.map(m=>d.jsx("option",{value:m,children:m||"전체"},m))})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{className:"text-xs text-gray-500",children:"수행자"}),d.jsx("input",{value:n,onChange:m=>r(m.target.value),placeholder:"username",className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{className:"text-xs text-gray-500",children:"테넌트"}),d.jsx("input",{value:a,onChange:m=>i(m.target.value),placeholder:"EMART",className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{className:"text-xs text-gray-500",children:"시작 일시"}),d.jsx("input",{type:"datetime-local",value:o,onChange:m=>l(m.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsx("label",{className:"text-xs text-gray-500",children:"종료 일시"}),d.jsx("input",{type:"datetime-local",value:s,onChange:m=>u(m.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:g,className:"flex-1 px-3 py-1.5 rounded bg-brand/80 text-white text-sm hover:bg-brand",children:"조회"}),d.jsx("button",{onClick:y,className:"px-3 py-1.5 rounded bg-edge/60 text-gray-300 text-sm hover:bg-edge",children:"초기화"})]})]}),p?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["일시","수행자","테넌트","액션","리소스","대상","상세","IP","결과"].map(m=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:m},m))})}),d.jsxs("tbody",{children:[h.map(m=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs whitespace-nowrap",children:m.createdAt?new Date(m.createdAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:m.username||"-"}),d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:m.tenantCode||"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${jue[m.action]||"bg-gray-500/20 text-gray-400"}`,children:m.action})}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:m.resource||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:m.resourceId||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs max-w-xs truncate",title:m.detail,children:m.detail||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:m.ipAddress||"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${m.success===!1?"bg-red-500/20 text-red-400":"bg-green-500/20 text-green-400"}`,children:m.success===!1?"실패":"성공"})})]},m.id)),h.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"감사 로그가 없습니다"})})]})]})})]})}const Tue={GENERAL:"bg-gray-500/20 text-gray-300",ESL:"bg-purple-500/20 text-purple-300",ALARM:"bg-amber-500/20 text-amber-300",AI:"bg-cyan-500/20 text-cyan-300"};function Nue(){const e=yn(),[t,n]=j.useState({}),{data:r=[],isLoading:a}=tn({queryKey:["settings"],queryFn:()=>Lz()}),i=rt({mutationFn:({key:o,value:l})=>zz(o,l),onSuccess:(o,l)=>{e.invalidateQueries({queryKey:["settings"]}),n(s=>{const u={...s};return delete u[l.key],u})}});return a?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"시스템 설정"}),d.jsx("p",{className:"text-xs text-gray-500",children:"운영 설정 변경은 감사 로그에 기록됩니다. (변경은 ADMIN 권한 필요)"}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["분류","설정 키","값","설명","수정 일시",""].map(o=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:o},o))})}),d.jsxs("tbody",{children:[r.map(o=>{const l=o.settingKey in t;return d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${Tue[o.category]||"bg-gray-500/20 text-gray-400"}`,children:o.category})}),d.jsx("td",{className:"px-4 py-3 text-gray-200 font-mono text-xs",children:o.settingKey}),d.jsx("td",{className:"px-4 py-3",children:l?d.jsx("input",{value:t[o.settingKey],onChange:s=>n(u=>({...u,[o.settingKey]:s.target.value})),className:"bg-panel border border-brand/60 rounded px-2 py-1 text-sm text-gray-100 w-48"}):d.jsx("span",{className:"text-gray-300",children:o.settingValue})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs max-w-xs",children:o.description||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:o.updatedAt?new Date(o.updatedAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3 text-right",children:l?d.jsxs("div",{className:"flex gap-2 justify-end",children:[d.jsx("button",{onClick:()=>i.mutate({key:o.settingKey,value:t[o.settingKey]}),disabled:i.isPending,className:"text-xs px-3 py-1 rounded bg-brand/80 text-white hover:bg-brand",children:"저장"}),d.jsx("button",{onClick:()=>n(s=>{const u={...s};return delete u[o.settingKey],u}),className:"text-xs px-3 py-1 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:"취소"})]}):d.jsx("button",{onClick:()=>n(s=>({...s,[o.settingKey]:o.settingValue??""})),className:"text-xs px-3 py-1 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:"수정"})})]},o.settingKey)}),r.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-gray-500",children:"설정이 없습니다"})})]})]})})]})}const Vx={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function iy({title:e,subtitle:t,actions:n}){return d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[d.jsxs("div",{children:[d.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&d.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),d.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function fR({children:e,style:t}){return d.jsx("div",{style:{...Vx,padding:18,...t},children:e})}function Pe({children:e,onClick:t,variant:n="primary",type:r="button",disabled:a}){const i={primary:{background:"var(--uiws-primary)",color:"var(--uiws-primary-contrast)",border:"none"},ghost:{background:"transparent",color:"var(--uiws-text-muted)",border:"1px solid var(--uiws-border)"},danger:{background:"var(--uiws-danger)",color:"#fff",border:"none"}};return d.jsx("button",{type:r,onClick:t,disabled:a,style:{padding:"9px 16px",borderRadius:8,fontSize:13,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.5:1,...i[n]},children:e})}function Gt({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return d.jsx("input",{type:r,value:e,placeholder:n,onChange:i=>t(i.target.value),style:{padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)",...a}})}function sr({label:e,children:t}){return d.jsxs("label",{style:{display:"block",marginBottom:12},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function Qx({children:e}){return d.jsx(fR,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function dR({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return d.jsx("div",{style:{...Vx,overflow:"hidden"},children:d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[d.jsx("thead",{children:d.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>d.jsx("th",{style:{textAlign:i.align??"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)",width:i.width},children:i.header},i.key))})}),d.jsx("tbody",{children:t.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>d.jsx("tr",{onClick:()=>r==null?void 0:r(i),style:{cursor:r?"pointer":"default",borderBottom:"1px solid var(--uiws-border)"},onMouseEnter:o=>o.currentTarget.style.background="var(--uiws-row-hover)",onMouseLeave:o=>o.currentTarget.style.background="transparent",children:e.map(o=>d.jsx("td",{style:{padding:"11px 14px",textAlign:o.align??"left"},children:o.render?o.render(i):String(i[o.key]??"")},o.key))},n(i)))})]})})}function hR({page:e,totalPages:t,onChange:n}){return t<=1?null:d.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[d.jsx(Pe,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),d.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),d.jsx(Pe,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function pR({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return d.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"2px 9px",borderRadius:999,color:r?"var(--uiws-success)":"var(--uiws-text-muted)",background:r?"rgba(46,204,113,0.12)":"var(--uiws-surface-2)",border:"1px solid var(--uiws-border)"},children:r?t:n})}function _s({title:e,onClose:t,children:n,footer:r}){return d.jsx("div",{onClick:t,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:d.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...Vx,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[d.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),d.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),d.jsx("div",{children:n}),r&&d.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function oy({label:e="불러오는 중..."}){return d.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const rj={ONGOING:"진행중",DONE:"종료"};function Cue(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState([]),[s,u]=j.useState(""),[f,c]=j.useState(""),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(null),m=async()=>{p(!0);try{const O=(await Zz({page:n,size:20,progressCd:s||void 0})).data.data;t(O.content??[]),i(O.totalPages??0);const A=await Jz({});l(A.data.data??[])}finally{p(!1)}};j.useEffect(()=>{m()},[n,s]);const x=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:S=>rj[S.progressCd]??S.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],w=async S=>{const O=await t8(S.worklogId);y(O.data.data)};return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(iy,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:d.jsx(Pe,{onClick:()=>v(!0),children:"+ 업무일지 작성"})}),d.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:o.map(S=>d.jsxs("div",{onClick:()=>{u(s===S.progressCd?"":S.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${s===S.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:S.progressNm}),d.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:S.count})]},S.progressCd))}),d.jsxs(Qx,{children:[d.jsx(Gt,{value:f,onChange:c,placeholder:"제목 검색",style:{minWidth:220}}),d.jsx(Pe,{variant:"ghost",onClick:()=>{r(0),m()},children:"검색"}),s&&d.jsxs(Pe,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",rj[s]??s]})]}),h?d.jsx(oy,{}):d.jsxs(d.Fragment,{children:[d.jsx(dR,{columns:x,rows:e,rowKey:S=>S.worklogId,onRowClick:w,empty:"업무일지가 없습니다."}),d.jsx(hR,{page:n,totalPages:a,onChange:r})]}),b&&d.jsx(Mue,{onClose:()=>v(!1),onSaved:()=>{v(!1),m()}}),g&&d.jsx(Pue,{detail:g,onClose:()=>y(null),onChanged:()=>{y(null),m()}})]})}function Mue({onClose:e,onSaved:t}){const[n,r]=j.useState(""),[a,i]=j.useState(localStorage.getItem("esn_user")||"admin"),[o,l]=j.useState(new Date().toISOString().slice(0,10)),[s,u]=j.useState("NORMAL"),[f,c]=j.useState(""),h=async()=>{var p,b;c("");try{await e8({title:n,writerId:a,workDate:o,workStatusCd:s,progressCd:"ONGOING",details:[]}),t()}catch(v){c(((b=(p=v==null?void 0:v.response)==null?void 0:p.data)==null?void 0:b.message)||"저장 실패")}};return d.jsxs(_s,{title:"업무일지 작성",onClose:e,footer:d.jsxs(d.Fragment,{children:[d.jsx(Pe,{variant:"ghost",onClick:e,children:"취소"}),d.jsx(Pe,{onClick:h,children:"저장"})]}),children:[d.jsx(sr,{label:"제목",children:d.jsx(Gt,{value:n,onChange:r,style:{width:"100%"}})}),d.jsx(sr,{label:"작성자 ID",children:d.jsx(Gt,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(sr,{label:"근무일자",children:d.jsx(Gt,{type:"date",value:o,onChange:l,style:{width:"100%"}})}),d.jsx(sr,{label:"근무상태 코드",children:d.jsx(Gt,{value:s,onChange:u,style:{width:"100%"}})}),f&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:f})]})}function Pue({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=j.useState(""),[i,o]=j.useState(""),l=async()=>{await n8(e.worklogId),n()},s=async()=>{var f,c;o("");try{await r8(e.worklogId,r),a(""),n()}catch(h){o(((c=(f=h==null?void 0:h.response)==null?void 0:f.data)==null?void 0:c.message)||"댓글 등록 실패")}};return d.jsxs(_s,{title:e.title,onClose:t,footer:d.jsxs(d.Fragment,{children:[d.jsx(Pe,{variant:"danger",onClick:l,children:"삭제"}),d.jsx(Pe,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),d.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),d.jsxs("div",{style:{marginTop:14},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(f=>d.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[d.jsx("b",{children:f.writerNm})," · ",d.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:f.createdAt}),d.jsx("br",{}),f.cmtContent]},f.cmtId)),d.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[d.jsx(Gt,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),d.jsx(Pe,{onClick:s,children:"등록"})]}),i&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const Rue=["일","월","화","수","목","금","토"];function $ue(){const[e,t]=j.useState(new Date),[n,r]=j.useState("PERSONAL"),[a,i]=j.useState([]),[o,l]=j.useState(!1),[s,u]=j.useState(null),[f,c]=j.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,p=async()=>{l(!0);try{const w=await Xz({type:n,view:"month",baseDate:`${h}-01`});i(w.data.data??[])}finally{l(!1)}};j.useEffect(()=>{p()},[h,n]);const v=new Date(e.getFullYear(),e.getMonth(),1).getDay(),g=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),y=[...Array(v).fill(null),...Array.from({length:g},(w,S)=>S+1)],m=w=>{const S=`${h}-${String(w).padStart(2,"0")}`;return a.filter(O=>(O.startDt??"").slice(0,10)<=S&&S<=(O.endDt??"").slice(0,10))},x=w=>t(new Date(e.getFullYear(),e.getMonth()+w,1));return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(iy,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:d.jsx(Pe,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),d.jsxs(fR,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[d.jsx(Pe,{variant:"ghost",onClick:()=>x(-1),children:"‹ 이전"}),d.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),d.jsx(Pe,{variant:"ghost",onClick:()=>x(1),children:"다음 ›"}),d.jsx("div",{style:{flex:1}}),d.jsx(Pe,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),d.jsx(Pe,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),o?d.jsx(oy,{}):d.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[Rue.map((w,S)=>d.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:S===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:w},w)),y.map((w,S)=>d.jsxs("div",{onClick:()=>w&&u(`${h}-${String(w).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:w?"pointer":"default"},children:[w&&d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:w}),w&&m(w).slice(0,3).map(O=>d.jsx("div",{onClick:A=>{A.stopPropagation(),Qz(O.scheduleId).then(E=>c(E.data.data))},style:{fontSize:11,padding:"2px 6px",borderRadius:6,marginBottom:3,background:"var(--uiws-primary-soft)",color:"var(--uiws-primary)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:O.title},O.scheduleId))]},S))]})}),s&&d.jsx(Due,{date:s,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),f&&d.jsx(kue,{detail:f,onClose:()=>c(null),onDeleted:()=>{c(null),p()}})]})}function Due({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=j.useState(""),[o,l]=j.useState(`${e}T09:00:00`),[s,u]=j.useState(`${e}T18:00:00`),[f,c]=j.useState(""),[h,p]=j.useState(""),b=async()=>{var v,g;p("");try{await Vz({scheType:t,title:a,startDt:o,endDt:s,content:f,attachmentIds:[]}),r()}catch(y){p(((g=(v=y==null?void 0:y.response)==null?void 0:v.data)==null?void 0:g.message)||"저장 실패")}};return d.jsxs(_s,{title:"일정 등록",onClose:n,footer:d.jsxs(d.Fragment,{children:[d.jsx(Pe,{variant:"ghost",onClick:n,children:"취소"}),d.jsx(Pe,{onClick:b,children:"저장"})]}),children:[d.jsx(sr,{label:"제목",children:d.jsx(Gt,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(sr,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:d.jsx(Gt,{value:o,onChange:l,style:{width:"100%"}})}),d.jsx(sr,{label:"종료",children:d.jsx(Gt,{value:s,onChange:u,style:{width:"100%"}})}),d.jsx(sr,{label:"내용",children:d.jsx(Gt,{value:f,onChange:c,style:{width:"100%"}})}),h&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function kue({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await Wz(e.scheduleId),n()};return d.jsxs(_s,{title:e.title,onClose:t,footer:d.jsxs(d.Fragment,{children:[d.jsx(Pe,{variant:"danger",onClick:r,children:"삭제"}),d.jsx(Pe,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),d.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function Lue(){const[e,t]=j.useState("received"),[n,r]=j.useState([]),[a,i]=j.useState(0),[o,l]=j.useState(0),[s,u]=j.useState(""),[f,c]=j.useState(!1),[h,p]=j.useState(!1),[b,v]=j.useState(null),g=async()=>{c(!0);try{const O=(await(e==="received"?Kz:Fz)({page:a,size:20,titleKeyword:s||void 0})).data.data;r(O.content??[]),l(O.totalPages??0)}finally{c(!1)}};j.useEffect(()=>{g()},[e,a]);const y=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:w=>d.jsx(pR,{yn:w.readYn})}],m=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:w=>`${w.openCount}/${w.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],x=async w=>{const S=e==="received"?await Yz(w.messageId):await Gz(w.messageId);v({...S.data.data,_tab:e}),e==="received"&&g()};return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(iy,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:d.jsx(Pe,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),d.jsxs(Qx,{children:[d.jsx(Pe,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),d.jsx(Pe,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),d.jsx("div",{style:{flex:1}}),d.jsx(Gt,{value:s,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),d.jsx(Pe,{variant:"ghost",onClick:()=>{i(0),g()},children:"검색"})]}),f?d.jsx(oy,{}):d.jsxs(d.Fragment,{children:[d.jsx(dR,{columns:e==="received"?y:m,rows:n,rowKey:w=>w.messageId,onRowClick:x,empty:"쪽지가 없습니다."}),d.jsx(hR,{page:a,totalPages:o,onChange:i})]}),h&&d.jsx(zue,{onClose:()=>p(!1),onSent:()=>{p(!1),g()}}),b&&d.jsx(Bue,{detail:b,onClose:()=>v(null)})]})}function zue({onClose:e,onSent:t}){const[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),[s,u]=j.useState(""),f=async()=>{var c,h;u("");try{await qz({title:a,content:o,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(p){u(((h=(c=p==null?void 0:p.response)==null?void 0:c.data)==null?void 0:h.message)||"전송 실패")}};return d.jsxs(_s,{title:"쪽지 보내기",onClose:e,footer:d.jsxs(d.Fragment,{children:[d.jsx(Pe,{variant:"ghost",onClick:e,children:"취소"}),d.jsx(Pe,{onClick:f,children:"보내기"})]}),children:[d.jsx(sr,{label:"받는사람 ID",children:d.jsx(Gt,{value:n,onChange:r,style:{width:"100%"}})}),d.jsx(sr,{label:"제목",children:d.jsx(Gt,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(sr,{label:"내용",children:d.jsx(Gt,{value:o,onChange:l,style:{width:"100%"}})}),s&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:s})]})}function Bue({detail:e,onClose:t}){return d.jsxs(_s,{title:e.title,onClose:t,footer:d.jsx(Pe,{variant:"ghost",onClick:t,children:"닫기"}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),d.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&d.jsxs("div",{style:{marginTop:14},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[d.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),d.jsx(pR,{yn:n.readYn})]},r))]})]})}function Uue(){const[e,t]=j.useState("personal"),[n,r]=j.useState(null),[a,i]=j.useState(!1),o=new Date().toISOString().slice(0,10),l=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[s,u]=j.useState(l),[f,c]=j.useState(o),h=async()=>{i(!0);try{const v=await(e==="personal"?a8:i8)({fromDate:s,toDate:f});r(v.data.data)}finally{i(!1)}};j.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(iy,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),d.jsxs(Qx,{children:[d.jsx(Pe,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),d.jsx(Pe,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),d.jsx("div",{style:{flex:1}}),d.jsx(Gt,{type:"date",value:s,onChange:u}),d.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),d.jsx(Gt,{type:"date",value:f,onChange:c}),d.jsx(Pe,{variant:"ghost",onClick:h,children:"조회"})]}),a?d.jsx(oy,{}):!n||n.rows.length===0?d.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):d.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[d.jsx("thead",{children:d.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(b=>d.jsx("th",{style:{padding:"11px 14px",textAlign:"left",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)",whiteSpace:"nowrap"},children:b.label},b.key))})}),d.jsx("tbody",{children:n.rows.map((b,v)=>d.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(g=>d.jsx("td",{style:{padding:"10px 14px"},children:String(b[g.key]??"")},g.key))},v))})]})})]})}const Iue=new mk;function Hue(){return d.jsx(vk,{client:Iue,children:d.jsx(k4,{children:d.jsxs(d4,{children:[d.jsx(Je,{path:"/login",element:d.jsx(o8,{})}),d.jsxs(Je,{element:d.jsx(Iz,{}),children:[d.jsx(Je,{path:"/dashboard",element:d.jsx(Jse,{})}),d.jsx(Je,{path:"/stores",element:d.jsx(eue,{})}),d.jsx(Je,{path:"/templates",element:d.jsx(nue,{})}),d.jsx(Je,{path:"/pos-cvt",element:d.jsx(aue,{})}),d.jsx(Je,{path:"/tag-binding",element:d.jsx(Oue,{})}),d.jsx(Je,{path:"/update-queue",element:d.jsx(Aue,{})}),d.jsx(Je,{path:"/alarms",element:d.jsx(oue,{})}),d.jsx(Je,{path:"/hcore",element:d.jsx(uue,{})}),d.jsx(Je,{path:"/works",element:d.jsx(fue,{})}),d.jsx(Je,{path:"/firmware",element:d.jsx(due,{})}),d.jsx(Je,{path:"/products",element:d.jsx(mue,{})}),d.jsx(Je,{path:"/users",element:d.jsx(pue,{})}),d.jsx(Je,{path:"/tenants",element:d.jsx(gue,{})}),d.jsx(Je,{path:"/audit",element:d.jsx(_ue,{})}),d.jsx(Je,{path:"/settings",element:d.jsx(Nue,{})}),d.jsx(Je,{path:"/ai",element:d.jsx(xue,{})}),d.jsx(Je,{path:"/worklogs",element:d.jsx(Cue,{})}),d.jsx(Je,{path:"/schedules",element:d.jsx($ue,{})}),d.jsx(Je,{path:"/messages",element:d.jsx(Lue,{})}),d.jsx(Je,{path:"/work-stats",element:d.jsx(Uue,{})})]}),d.jsx(Je,{path:"*",element:d.jsx(PT,{to:"/dashboard",replace:!0})})]})})})}fD.createRoot(document.getElementById("root")).render(d.jsx(j.StrictMode,{children:d.jsx(Hue,{})}));
