var v1=e=>{throw TypeError(e)};var bm=(e,t,n)=>t.has(e)||v1("Cannot "+n);var T=(e,t,n)=>(bm(e,t,"read from private field"),n?n.call(e):t.get(e)),re=(e,t,n)=>t.has(e)?v1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(bm(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),he=(e,t,n)=>(bm(e,t,"access private method"),n);var lf=(e,t,n,r)=>({set _(a){V(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 sf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kA={exports:{}},Vh={};/**
 * @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 LR=Symbol.for("react.transitional.element"),zR=Symbol.for("react.fragment");function LA(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:LR,type:e,key:r,ref:t!==void 0?t:null,props:n}}Vh.Fragment=zR;Vh.jsx=LA;Vh.jsxs=LA;kA.exports=Vh;var c=kA.exports,zA={exports:{}},ue={};/**
 * @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 H0=Symbol.for("react.transitional.element"),BR=Symbol.for("react.portal"),IR=Symbol.for("react.fragment"),UR=Symbol.for("react.strict_mode"),HR=Symbol.for("react.profiler"),qR=Symbol.for("react.consumer"),FR=Symbol.for("react.context"),GR=Symbol.for("react.forward_ref"),KR=Symbol.for("react.suspense"),YR=Symbol.for("react.memo"),BA=Symbol.for("react.lazy"),VR=Symbol.for("react.activity"),g1=Symbol.iterator;function XR(e){return e===null||typeof e!="object"?null:(e=g1&&e[g1]||e["@@iterator"],typeof e=="function"?e:null)}var IA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},UA=Object.assign,HA={};function ls(e,t,n){this.props=e,this.context=t,this.refs=HA,this.updater=n||IA}ls.prototype.isReactComponent={};ls.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")};ls.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qA(){}qA.prototype=ls.prototype;function q0(e,t,n){this.props=e,this.context=t,this.refs=HA,this.updater=n||IA}var F0=q0.prototype=new qA;F0.constructor=q0;UA(F0,ls.prototype);F0.isPureReactComponent=!0;var b1=Array.isArray;function qy(){}var et={H:null,A:null,T:null,S:null},FA=Object.prototype.hasOwnProperty;function G0(e,t,n){var r=n.ref;return{$$typeof:H0,type:e,key:t,ref:r!==void 0?r:null,props:n}}function QR(e,t){return G0(e.type,t,e.props)}function K0(e){return typeof e=="object"&&e!==null&&e.$$typeof===H0}function WR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var x1=/\/+/g;function xm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?WR(""+e.key):t.toString(36)}function ZR(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(qy,qy):(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 Mo(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 H0:case BR:o=!0;break;case BA:return o=e._init,Mo(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+xm(e,0):r,b1(a)?(n="",o!=null&&(n=o.replace(x1,"$&/")+"/"),Mo(a,t,n,"",function(u){return u})):a!=null&&(K0(a)&&(a=QR(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(x1,"$&/")+"/")+o)),t.push(a)),1;o=0;var l=r===""?".":r+":";if(b1(e))for(var s=0;s<e.length;s++)r=e[s],i=l+xm(r,s),o+=Mo(r,t,n,i,a);else if(s=XR(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,i=l+xm(r,s++),o+=Mo(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Mo(ZR(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 uf(e,t,n){if(e==null)return e;var r=[],a=0;return Mo(e,r,"","",function(i){return t.call(n,i,a++)}),r}function JR(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 S1=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)},eP={map:uf,forEach:function(e,t,n){uf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return uf(e,function(){t++}),t},toArray:function(e){return uf(e,function(t){return t})||[]},only:function(e){if(!K0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Activity=VR;ue.Children=eP;ue.Component=ls;ue.Fragment=IR;ue.Profiler=HR;ue.PureComponent=q0;ue.StrictMode=UR;ue.Suspense=KR;ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et;ue.__COMPILER_RUNTIME={__proto__:null,c:function(e){return et.H.useMemoCache(e)}};ue.cache=function(e){return function(){return e.apply(null,arguments)}};ue.cacheSignal=function(){return null};ue.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=UA({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!FA.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 G0(e.type,a,r)};ue.createContext=function(e){return e={$$typeof:FR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:qR,_context:e},e};ue.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)FA.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 G0(e,i,a)};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:GR,render:e}};ue.isValidElement=K0;ue.lazy=function(e){return{$$typeof:BA,_payload:{_status:-1,_result:e},_init:JR}};ue.memo=function(e,t){return{$$typeof:YR,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=et.T,n={};et.T=n;try{var r=e(),a=et.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(qy,S1)}catch(i){S1(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),et.T=t}};ue.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()};ue.use=function(e){return et.H.use(e)};ue.useActionState=function(e,t,n){return et.H.useActionState(e,t,n)};ue.useCallback=function(e,t){return et.H.useCallback(e,t)};ue.useContext=function(e){return et.H.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e,t){return et.H.useDeferredValue(e,t)};ue.useEffect=function(e,t){return et.H.useEffect(e,t)};ue.useEffectEvent=function(e){return et.H.useEffectEvent(e)};ue.useId=function(){return et.H.useId()};ue.useImperativeHandle=function(e,t,n){return et.H.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return et.H.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return et.H.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return et.H.useMemo(e,t)};ue.useOptimistic=function(e,t){return et.H.useOptimistic(e,t)};ue.useReducer=function(e,t,n){return et.H.useReducer(e,t,n)};ue.useRef=function(e){return et.H.useRef(e)};ue.useState=function(e){return et.H.useState(e)};ue.useSyncExternalStore=function(e,t,n){return et.H.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return et.H.useTransition()};ue.version="19.2.7";zA.exports=ue;var O=zA.exports;const R=He(O);var GA={exports:{}},Xh={},KA={exports:{}},YA={};/**
 * @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($,L){var z=$.length;$.push(L);e:for(;0<z;){var F=z-1>>>1,G=$[F];if(0<a(G,L))$[F]=L,$[z]=G,z=F;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var L=$[0],z=$.pop();if(z!==L){$[0]=z;e:for(var F=0,G=$.length,Q=G>>>1;F<Q;){var K=2*(F+1)-1,te=$[K],me=K+1,Le=$[me];if(0>a(te,z))me<G&&0>a(Le,te)?($[F]=Le,$[me]=z,F=me):($[F]=te,$[K]=z,F=K);else if(me<G&&0>a(Le,z))$[F]=Le,$[me]=z,F=me;else break e}}return L}function a($,L){var z=$.sortIndex-L.sortIndex;return z!==0?z:$.id-L.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=[],d=1,f=null,h=3,p=!1,b=!1,v=!1,x=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;function S($){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=$)r(u),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(u)}}function w($){if(v=!1,S($),!b)if(n(s)!==null)b=!0,j||(j=!0,P());else{var L=n(u);L!==null&&C(w,L.startTime-$)}}var j=!1,A=-1,E=5,_=-1;function N(){return x?!0:!(e.unstable_now()-_<E)}function k(){if(x=!1,j){var $=e.unstable_now();_=$;var L=!0;try{e:{b=!1,v&&(v=!1,y(A),A=-1),p=!0;var z=h;try{t:{for(S($),f=n(s);f!==null&&!(f.expirationTime>$&&N());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var G=F(f.expirationTime<=$);if($=e.unstable_now(),typeof G=="function"){f.callback=G,S($),L=!0;break t}f===n(s)&&r(s),S($)}else r(s);f=n(s)}if(f!==null)L=!0;else{var Q=n(u);Q!==null&&C(w,Q.startTime-$),L=!1}}break e}finally{f=null,h=z,p=!1}L=void 0}}finally{L?P():j=!1}}}var P;if(typeof g=="function")P=function(){g(k)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,D=B.port2;B.port1.onmessage=k,P=function(){D.postMessage(null)}}else P=function(){m(k,0)};function C($,L){A=m(function(){$(e.unstable_now())},L)}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($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var L=3;break;default:L=h}var z=h;h=L;try{return $()}finally{h=z}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function($,L){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var z=h;h=$;try{return L()}finally{h=z}},e.unstable_scheduleCallback=function($,L,z){var F=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?F+z:F):z=F,$){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=z+G,$={id:d++,callback:L,priorityLevel:$,startTime:z,expirationTime:G,sortIndex:-1},z>F?($.sortIndex=z,t(u,$),n(s)===null&&$===n(u)&&(v?(y(A),A=-1):v=!0,C(w,z-F))):($.sortIndex=G,t(s,$),b||p||(b=!0,j||(j=!0,P()))),$},e.unstable_shouldYield=N,e.unstable_wrapCallback=function($){var L=h;return function(){var z=h;h=L;try{return $.apply(this,arguments)}finally{h=z}}}})(YA);KA.exports=YA;var tP=KA.exports,VA={exports:{}},nn={};/**
 * @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 nP=O;function XA(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 Sa(){}var Zt={d:{f:Sa,r:function(){throw Error(XA(522))},D:Sa,C:Sa,L:Sa,m:Sa,X:Sa,S:Sa,M:Sa},p:0,findDOMNode:null},rP=Symbol.for("react.portal");function aP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rP,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var lu=nP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Qh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Zt;nn.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(XA(299));return aP(e,t,null,n)};nn.flushSync=function(e){var t=lu.T,n=Zt.p;try{if(lu.T=null,Zt.p=2,e)return e()}finally{lu.T=t,Zt.p=n,Zt.d.f()}};nn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Zt.d.C(e,t))};nn.prefetchDNS=function(e){typeof e=="string"&&Zt.d.D(e)};nn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Qh(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Zt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&Zt.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};nn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Qh(t.as,t.crossOrigin);Zt.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&&Zt.d.M(e)};nn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Qh(n,t.crossOrigin);Zt.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})}};nn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Qh(t.as,t.crossOrigin);Zt.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 Zt.d.m(e)};nn.requestFormReset=function(e){Zt.d.r(e)};nn.unstable_batchedUpdates=function(e,t){return e(t)};nn.useFormState=function(e,t,n){return lu.H.useFormState(e,t,n)};nn.useFormStatus=function(){return lu.H.useHostTransitionStatus()};nn.version="19.2.7";function QA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QA)}catch(e){console.error(e)}}QA(),VA.exports=nn;var iP=VA.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 At=tP,WA=O,oP=iP;function U(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 ZA(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pc(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 JA(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 eE(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 w1(e){if(Pc(e)!==e)throw Error(U(188))}function lP(e){var t=e.alternate;if(!t){if(t=Pc(e),t===null)throw Error(U(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 w1(a),e;if(i===r)return w1(a),t;i=i.sibling}throw Error(U(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(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function tE(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=tE(e),t!==null)return t;e=e.sibling}return null}var tt=Object.assign,sP=Symbol.for("react.element"),cf=Symbol.for("react.transitional.element"),eu=Symbol.for("react.portal"),Do=Symbol.for("react.fragment"),nE=Symbol.for("react.strict_mode"),Fy=Symbol.for("react.profiler"),rE=Symbol.for("react.consumer"),Vr=Symbol.for("react.context"),Y0=Symbol.for("react.forward_ref"),Gy=Symbol.for("react.suspense"),Ky=Symbol.for("react.suspense_list"),V0=Symbol.for("react.memo"),ja=Symbol.for("react.lazy"),Yy=Symbol.for("react.activity"),uP=Symbol.for("react.memo_cache_sentinel"),j1=Symbol.iterator;function Ds(e){return e===null||typeof e!="object"?null:(e=j1&&e[j1]||e["@@iterator"],typeof e=="function"?e:null)}var cP=Symbol.for("react.client.reference");function Vy(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===cP?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Do:return"Fragment";case Fy:return"Profiler";case nE:return"StrictMode";case Gy:return"Suspense";case Ky:return"SuspenseList";case Yy:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case eu:return"Portal";case Vr:return e.displayName||"Context";case rE:return(e._context.displayName||"Context")+".Consumer";case Y0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V0:return t=e.displayName||null,t!==null?t:Vy(e.type)||"Memo";case ja:t=e._payload,e=e._init;try{return Vy(e(t))}catch{}}return null}var tu=Array.isArray,ie=WA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=oP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fi={pending:!1,data:null,method:null,action:null},Xy=[],ko=-1;function Tr(e){return{current:e}}function Rt(e){0>ko||(e.current=Xy[ko],Xy[ko]=null,ko--)}function Ye(e,t){ko++,Xy[ko]=e.current,e.current=t}var Or=Tr(null),_u=Tr(null),Ka=Tr(null),fd=Tr(null);function dd(e,t){switch(Ye(Ka,t),Ye(_u,e),Ye(Or,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?NS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=NS(t),e=jT(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Rt(Or),Ye(Or,e)}function jl(){Rt(Or),Rt(_u),Rt(Ka)}function Qy(e){e.memoizedState!==null&&Ye(fd,e);var t=Or.current,n=jT(t,e.type);t!==n&&(Ye(_u,e),Ye(Or,n))}function hd(e){_u.current===e&&(Rt(Or),Rt(_u)),fd.current===e&&(Rt(fd),zu._currentValue=Fi)}var Sm,O1;function Si(e){if(Sm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Sm=t&&t[1]||"",O1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Sm+e+O1}var wm=!1;function jm(e,t){if(!e||wm)return"";wm=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var h=p}Reflect.construct(e,[],f)}else{try{f.call()}catch(p){h=p}e.call(f.prototype)}}else{try{throw Error()}catch(p){h=p}(f=e())&&typeof f.catch=="function"&&f.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 d=`
`+s[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=a);break}}}finally{wm=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Si(n):""}function fP(e,t){switch(e.tag){case 26:case 27:case 5:return Si(e.type);case 16:return Si("Lazy");case 13:return e.child!==t&&t!==null?Si("Suspense Fallback"):Si("Suspense");case 19:return Si("SuspenseList");case 0:case 15:return jm(e.type,!1);case 11:return jm(e.type.render,!1);case 1:return jm(e.type,!0);case 31:return Si("Activity");default:return""}}function A1(e){try{var t="",n=null;do t+=fP(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Wy=Object.prototype.hasOwnProperty,X0=At.unstable_scheduleCallback,Om=At.unstable_cancelCallback,dP=At.unstable_shouldYield,hP=At.unstable_requestPaint,Tn=At.unstable_now,pP=At.unstable_getCurrentPriorityLevel,aE=At.unstable_ImmediatePriority,iE=At.unstable_UserBlockingPriority,pd=At.unstable_NormalPriority,mP=At.unstable_LowPriority,oE=At.unstable_IdlePriority,yP=At.log,vP=At.unstable_setDisableYieldValue,$c=null,Nn=null;function Ia(e){if(typeof yP=="function"&&vP(e),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode($c,e)}catch{}}var Cn=Math.clz32?Math.clz32:xP,gP=Math.log,bP=Math.LN2;function xP(e){return e>>>=0,e===0?32:31-(gP(e)/bP|0)|0}var ff=256,df=262144,hf=4194304;function wi(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 Wh(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=wi(r):(o&=l,o!==0?a=wi(o):n||(n=l&~e,n!==0&&(a=wi(n))))):(l=r&~i,l!==0?a=wi(l):o!==0?a=wi(o):n||(n=r&~e,n!==0&&(a=wi(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 Dc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function SP(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 lE(){var e=hf;return hf<<=1,!(hf&62914560)&&(hf=4194304),e}function Am(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kc(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function wP(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 d=31-Cn(n),f=1<<d;l[d]=0,s[d]=-1;var h=u[d];if(h!==null)for(u[d]=null,d=0;d<h.length;d++){var p=h[d];p!==null&&(p.lane&=-536870913)}n&=~f}r!==0&&sE(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function sE(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Cn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function uE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function cE(e,t){var n=t&-t;return n=n&42?1:Q0(n),n&(e.suspendedLanes|t)?0:n}function Q0(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 W0(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function fE(){var e=Ne.p;return e!==0?e:(e=window.event,e===void 0?32:$T(e.type))}function E1(e,t){var n=Ne.p;try{return Ne.p=e,t()}finally{Ne.p=n}}var si=Math.random().toString(36).slice(2),zt="__reactFiber$"+si,mn="__reactProps$"+si,ss="__reactContainer$"+si,Zy="__reactEvents$"+si,jP="__reactListeners$"+si,OP="__reactHandles$"+si,_1="__reactResources$"+si,Lc="__reactMarker$"+si;function Z0(e){delete e[zt],delete e[mn],delete e[Zy],delete e[jP],delete e[OP]}function Lo(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ss]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$S(e);e!==null;){if(n=e[zt])return n;e=$S(e)}return t}e=n,n=e.parentNode}return null}function us(e){if(e=e[zt]||e[ss]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function Jo(e){var t=e[_1];return t||(t=e[_1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[Lc]=!0}var dE=new Set,hE={};function fo(e,t){Ol(e,t),Ol(e+"Capture",t)}function Ol(e,t){for(hE[e]=t,e=0;e<t.length;e++)dE.add(t[e])}var AP=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]*$"),T1={},N1={};function EP(e){return Wy.call(N1,e)?!0:Wy.call(T1,e)?!1:AP.test(e)?N1[e]=!0:(T1[e]=!0,!1)}function Hf(e,t,n){if(EP(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 pf(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 $r(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 pE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _P(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 Jy(e){if(!e._valueTracker){var t=pE(e)?"checked":"value";e._valueTracker=_P(e,t,""+e[t])}}function mE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function md(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 TP=/[\n"\\]/g;function Fn(e){return e.replace(TP,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ev(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?tv(e,o,Un(t)):n!=null?tv(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 yE(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)){Jy(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),Jy(e)}function tv(e,t,n){t==="number"&&md(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function el(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 vE(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 gE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(U(92));if(tu(r)){if(1<r.length)throw Error(U(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),Jy(e)}function Al(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var NP=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 C1(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||NP.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function bE(e,t,n){if(t!=null&&typeof t!="object")throw Error(U(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&&C1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&C1(e,i,t[i])}function J0(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 CP=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"]]),MP=/^[\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 qf(e){return MP.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xr(){}var nv=null;function eb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zo=null,tl=null;function M1(e){var t=us(e);if(t&&(e=t.stateNode)){var n=e[mn]||null;e:switch(e=t.stateNode,t.type){case"input":if(ev(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="'+Fn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[mn]||null;if(!a)throw Error(U(90));ev(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&&mE(r)}break e;case"textarea":vE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&el(e,!!n.multiple,t,!1)}}}var Em=!1;function xE(e,t,n){if(Em)return e(t,n);Em=!0;try{var r=e(t);return r}finally{if(Em=!1,(zo!==null||tl!==null)&&(up(),zo&&(t=zo,e=tl,tl=zo=null,M1(t),e)))for(t=0;t<e.length;t++)M1(e[t])}}function Tu(e,t){var n=e.stateNode;if(n===null)return null;var r=n[mn]||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(U(231,t,typeof n));return n}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rv=!1;if(oa)try{var ks={};Object.defineProperty(ks,"passive",{get:function(){rv=!0}}),window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{rv=!1}var Ua=null,tb=null,Ff=null;function SE(){if(Ff)return Ff;var e,t=tb,n=t.length,r,a="value"in Ua?Ua.value:Ua.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 Ff=a.slice(e,1<r?1-r:void 0)}function Gf(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 mf(){return!0}function R1(){return!1}function yn(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)?mf:R1,this.isPropagationStopped=R1,this}return tt(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=mf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mf)},persist:function(){},isPersistent:mf}),t}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zh=yn(ho),zc=tt({},ho,{view:0,detail:0}),RP=yn(zc),_m,Tm,Ls,Jh=tt({},zc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nb,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!==Ls&&(Ls&&e.type==="mousemove"?(_m=e.screenX-Ls.screenX,Tm=e.screenY-Ls.screenY):Tm=_m=0,Ls=e),_m)},movementY:function(e){return"movementY"in e?e.movementY:Tm}}),P1=yn(Jh),PP=tt({},Jh,{dataTransfer:0}),$P=yn(PP),DP=tt({},zc,{relatedTarget:0}),Nm=yn(DP),kP=tt({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),LP=yn(kP),zP=tt({},ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),BP=yn(zP),IP=tt({},ho,{data:0}),$1=yn(IP),UP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HP={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"},qP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qP[e])?!!t[e]:!1}function nb(){return FP}var GP=tt({},zc,{key:function(e){if(e.key){var t=UP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nb,charCode:function(e){return e.type==="keypress"?Gf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),KP=yn(GP),YP=tt({},Jh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),D1=yn(YP),VP=tt({},zc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nb}),XP=yn(VP),QP=tt({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),WP=yn(QP),ZP=tt({},Jh,{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}),JP=yn(ZP),e4=tt({},ho,{newState:0,oldState:0}),t4=yn(e4),n4=[9,13,27,32],rb=oa&&"CompositionEvent"in window,su=null;oa&&"documentMode"in document&&(su=document.documentMode);var r4=oa&&"TextEvent"in window&&!su,wE=oa&&(!rb||su&&8<su&&11>=su),k1=" ",L1=!1;function jE(e,t){switch(e){case"keyup":return n4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function a4(e,t){switch(e){case"compositionend":return OE(t);case"keypress":return t.which!==32?null:(L1=!0,k1);case"textInput":return e=t.data,e===k1&&L1?null:e;default:return null}}function i4(e,t){if(Bo)return e==="compositionend"||!rb&&jE(e,t)?(e=SE(),Ff=tb=Ua=null,Bo=!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 wE&&t.locale!=="ko"?null:t.data;default:return null}}var o4={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 z1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!o4[e.type]:t==="textarea"}function AE(e,t,n,r){zo?tl?tl.push(r):tl=[r]:zo=r,t=Pd(t,"onChange"),0<t.length&&(n=new Zh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uu=null,Nu=null;function l4(e){xT(e,0)}function ep(e){var t=nu(e);if(mE(t))return e}function B1(e,t){if(e==="change")return t}var EE=!1;if(oa){var Cm;if(oa){var Mm="oninput"in document;if(!Mm){var I1=document.createElement("div");I1.setAttribute("oninput","return;"),Mm=typeof I1.oninput=="function"}Cm=Mm}else Cm=!1;EE=Cm&&(!document.documentMode||9<document.documentMode)}function U1(){uu&&(uu.detachEvent("onpropertychange",_E),Nu=uu=null)}function _E(e){if(e.propertyName==="value"&&ep(Nu)){var t=[];AE(t,Nu,e,eb(e)),xE(l4,t)}}function s4(e,t,n){e==="focusin"?(U1(),uu=t,Nu=n,uu.attachEvent("onpropertychange",_E)):e==="focusout"&&U1()}function u4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ep(Nu)}function c4(e,t){if(e==="click")return ep(t)}function f4(e,t){if(e==="input"||e==="change")return ep(t)}function d4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pn=typeof Object.is=="function"?Object.is:d4;function Cu(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(!Wy.call(t,a)||!Pn(e[a],t[a]))return!1}return!0}function H1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function q1(e,t){var n=H1(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=H1(n)}}function TE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?TE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function NE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=md(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=md(e.document)}return t}function ab(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 h4=oa&&"documentMode"in document&&11>=document.documentMode,Io=null,av=null,cu=null,iv=!1;function F1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;iv||Io==null||Io!==md(r)||(r=Io,"selectionStart"in r&&ab(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}),cu&&Cu(cu,r)||(cu=r,r=Pd(av,"onSelect"),0<r.length&&(t=new Zh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Io)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Uo={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionrun:vi("Transition","TransitionRun"),transitionstart:vi("Transition","TransitionStart"),transitioncancel:vi("Transition","TransitionCancel"),transitionend:vi("Transition","TransitionEnd")},Rm={},CE={};oa&&(CE=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);function po(e){if(Rm[e])return Rm[e];if(!Uo[e])return e;var t=Uo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in CE)return Rm[e]=t[n];return e}var ME=po("animationend"),RE=po("animationiteration"),PE=po("animationstart"),p4=po("transitionrun"),m4=po("transitionstart"),y4=po("transitioncancel"),$E=po("transitionend"),DE=new Map,ov="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(" ");ov.push("scrollEnd");function hr(e,t){DE.set(e,t),fo(t,[e])}var yd=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)},In=[],Ho=0,ib=0;function tp(){for(var e=Ho,t=ib=Ho=0;t<e;){var n=In[t];In[t++]=null;var r=In[t];In[t++]=null;var a=In[t];In[t++]=null;var i=In[t];if(In[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&&kE(n,a,i)}}function np(e,t,n,r){In[Ho++]=e,In[Ho++]=t,In[Ho++]=n,In[Ho++]=r,ib|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ob(e,t,n,r){return np(e,t,n,r),vd(e)}function mo(e,t){return np(e,null,null,t),vd(e)}function kE(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-Cn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function vd(e){if(50<bu)throw bu=0,_v=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var qo={};function v4(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 v4(e,t,n,r)}function lb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jr(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 LE(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")lb(e)&&(o=1);else if(typeof e=="string")o=w$(e,n,Or.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Yy:return e=An(31,n,t,a),e.elementType=Yy,e.lanes=i,e;case Do:return Gi(n.children,a,i,t);case nE:o=8,a|=24;break;case Fy:return e=An(12,n,t,a|2),e.elementType=Fy,e.lanes=i,e;case Gy:return e=An(13,n,t,a),e.elementType=Gy,e.lanes=i,e;case Ky:return e=An(19,n,t,a),e.elementType=Ky,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vr:o=10;break e;case rE:o=9;break e;case Y0:o=11;break e;case V0:o=14;break e;case ja:o=16,r=null;break e}o=29,n=Error(U(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 Gi(e,t,n,r){return e=An(7,e,r,t),e.lanes=n,e}function Pm(e,t,n){return e=An(6,e,null,t),e.lanes=n,e}function zE(e){var t=An(18,null,null,0);return t.stateNode=e,t}function $m(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 G1=new WeakMap;function Gn(e,t){if(typeof e=="object"&&e!==null){var n=G1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:A1(t)},G1.set(e,t),t)}return{value:e,source:t,stack:A1(t)}}var Fo=[],Go=0,gd=null,Mu=0,Hn=[],qn=0,ai=null,xr=1,Sr="";function Hr(e,t){Fo[Go++]=Mu,Fo[Go++]=gd,gd=e,Mu=t}function BE(e,t,n){Hn[qn++]=xr,Hn[qn++]=Sr,Hn[qn++]=ai,ai=e;var r=xr;e=Sr;var a=32-Cn(r)-1;r&=~(1<<a),n+=1;var i=32-Cn(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,xr=1<<32-Cn(t)+a|n<<a|r,Sr=i+e}else xr=1<<i|n<<a|r,Sr=e}function sb(e){e.return!==null&&(Hr(e,1),BE(e,1,0))}function ub(e){for(;e===gd;)gd=Fo[--Go],Fo[Go]=null,Mu=Fo[--Go],Fo[Go]=null;for(;e===ai;)ai=Hn[--qn],Hn[qn]=null,Sr=Hn[--qn],Hn[qn]=null,xr=Hn[--qn],Hn[qn]=null}function IE(e,t){Hn[qn++]=xr,Hn[qn++]=Sr,Hn[qn++]=ai,xr=t.id,Sr=t.overflow,ai=e}var Bt=null,Je=null,Oe=!1,Ya=null,Kn=!1,lv=Error(U(519));function ii(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ru(Gn(t,e)),lv}function K1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[zt]=e,t[mn]=r,n){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(n=0;n<ku.length;n++)xe(ku[n],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),yE(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),gE(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||wT(t.textContent,n)?(r.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),r.onScroll!=null&&xe("scroll",t),r.onScrollEnd!=null&&xe("scrollend",t),r.onClick!=null&&(t.onclick=Xr),t=!0):t=!1,t||ii(e,!0)}function Y1(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 31:case 13:Kn=!1;return;case 27:case 3:Kn=!0;return;default:Bt=Bt.return}}function Ao(e){if(e!==Bt)return!1;if(!Oe)return Y1(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Rv(e.type,e.memoizedProps)),n=!n),n&&Je&&ii(e),Y1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Je=PS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Je=PS(e)}else t===27?(t=Je,ui(e.type)?(e=kv,kv=null,Je=e):Je=t):Je=Bt?Qn(e.stateNode.nextSibling):null;return!0}function Zi(){Je=Bt=null,Oe=!1}function Dm(){var e=Ya;return e!==null&&(fn===null?fn=e:fn.push.apply(fn,e),Ya=null),e}function Ru(e){Ya===null?Ya=[e]:Ya.push(e)}var sv=Tr(null),yo=null,Qr=null;function _a(e,t,n){Ye(sv,t._currentValue),t._currentValue=n}function ea(e){e._currentValue=sv.current,Rt(sv)}function uv(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 cv(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),uv(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(U(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),uv(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 cs(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(U(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===fd.current){if(o=a.alternate,o===null)throw Error(U(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(zu):e=[zu])}a=a.return}e!==null&&cv(t,e,n,r),t.flags|=262144}function bd(e){for(e=e.firstContext;e!==null;){if(!Pn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){yo=e,Qr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return UE(yo,e)}function yf(e,t){return yo===null&&Ji(e),UE(e,t)}function UE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qr===null){if(e===null)throw Error(U(308));Qr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qr=Qr.next=t;return n}var g4=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()})}},b4=At.unstable_scheduleCallback,x4=At.unstable_NormalPriority,yt={$$typeof:Vr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cb(){return{controller:new g4,data:new Map,refCount:0}}function Bc(e){e.refCount--,e.refCount===0&&b4(x4,function(){e.controller.abort()})}var fu=null,fv=0,El=0,nl=null;function S4(e,t){if(fu===null){var n=fu=[];fv=0,El=Db(),nl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return fv++,t.then(V1,V1),t}function V1(){if(--fv===0&&fu!==null){nl!==null&&(nl.status="fulfilled");var e=fu;fu=null,El=0,nl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function w4(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 X1=ie.S;ie.S=function(e,t){tT=Tn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&S4(e,t),X1!==null&&X1(e,t)};var Ki=Tr(null);function fb(){var e=Ki.current;return e!==null?e:Fe.pooledCache}function Yf(e,t){t===null?Ye(Ki,Ki.current):Ye(Ki,t.pool)}function HE(){var e=fb();return e===null?null:{parent:yt._currentValue,pool:e}}var fs=Error(U(460)),db=Error(U(474)),rp=Error(U(542)),xd={then:function(){}};function Q1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xr,Xr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Z1(e),e;default:if(typeof t.status=="string")t.then(Xr,Xr);else{if(e=Fe,e!==null&&100<e.shellSuspendCounter)throw Error(U(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,Z1(e),e}throw Yi=t,fs}}function ji(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Yi=n,fs):n}}var Yi=null;function W1(){if(Yi===null)throw Error(U(459));var e=Yi;return Yi=null,e}function Z1(e){if(e===fs||e===rp)throw Error(U(483))}var rl=null,Pu=0;function vf(e){var t=Pu;return Pu+=1,rl===null&&(rl=[]),qE(rl,e,t)}function zs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gf(e,t){throw t.$$typeof===sP?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function FE(e){function t(m,y){if(e){var g=m.deletions;g===null?(m.deletions=[y],m.flags|=16):g.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function a(m,y){return m=Jr(m,y),m.index=0,m.sibling=null,m}function i(m,y,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<y?(m.flags|=67108866,y):g):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function o(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function l(m,y,g,S){return y===null||y.tag!==6?(y=Pm(g,m.mode,S),y.return=m,y):(y=a(y,g),y.return=m,y)}function s(m,y,g,S){var w=g.type;return w===Do?d(m,y,g.props.children,S,g.key):y!==null&&(y.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ja&&ji(w)===y.type)?(y=a(y,g.props),zs(y,g),y.return=m,y):(y=Kf(g.type,g.key,g.props,null,m.mode,S),zs(y,g),y.return=m,y)}function u(m,y,g,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=$m(g,m.mode,S),y.return=m,y):(y=a(y,g.children||[]),y.return=m,y)}function d(m,y,g,S,w){return y===null||y.tag!==7?(y=Gi(g,m.mode,S,w),y.return=m,y):(y=a(y,g),y.return=m,y)}function f(m,y,g){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Pm(""+y,m.mode,g),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case cf:return g=Kf(y.type,y.key,y.props,null,m.mode,g),zs(g,y),g.return=m,g;case eu:return y=$m(y,m.mode,g),y.return=m,y;case ja:return y=ji(y),f(m,y,g)}if(tu(y)||Ds(y))return y=Gi(y,m.mode,g,null),y.return=m,y;if(typeof y.then=="function")return f(m,vf(y),g);if(y.$$typeof===Vr)return f(m,yf(m,y),g);gf(m,y)}return null}function h(m,y,g,S){var w=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return w!==null?null:l(m,y,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case cf:return g.key===w?s(m,y,g,S):null;case eu:return g.key===w?u(m,y,g,S):null;case ja:return g=ji(g),h(m,y,g,S)}if(tu(g)||Ds(g))return w!==null?null:d(m,y,g,S,null);if(typeof g.then=="function")return h(m,y,vf(g),S);if(g.$$typeof===Vr)return h(m,y,yf(m,g),S);gf(m,g)}return null}function p(m,y,g,S,w){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(g)||null,l(y,m,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case cf:return m=m.get(S.key===null?g:S.key)||null,s(y,m,S,w);case eu:return m=m.get(S.key===null?g:S.key)||null,u(y,m,S,w);case ja:return S=ji(S),p(m,y,g,S,w)}if(tu(S)||Ds(S))return m=m.get(g)||null,d(y,m,S,w,null);if(typeof S.then=="function")return p(m,y,g,vf(S),w);if(S.$$typeof===Vr)return p(m,y,g,yf(y,S),w);gf(y,S)}return null}function b(m,y,g,S){for(var w=null,j=null,A=y,E=y=0,_=null;A!==null&&E<g.length;E++){A.index>E?(_=A,A=null):_=A.sibling;var N=h(m,A,g[E],S);if(N===null){A===null&&(A=_);break}e&&A&&N.alternate===null&&t(m,A),y=i(N,y,E),j===null?w=N:j.sibling=N,j=N,A=_}if(E===g.length)return n(m,A),Oe&&Hr(m,E),w;if(A===null){for(;E<g.length;E++)A=f(m,g[E],S),A!==null&&(y=i(A,y,E),j===null?w=A:j.sibling=A,j=A);return Oe&&Hr(m,E),w}for(A=r(A);E<g.length;E++)_=p(A,m,E,g[E],S),_!==null&&(e&&_.alternate!==null&&A.delete(_.key===null?E:_.key),y=i(_,y,E),j===null?w=_:j.sibling=_,j=_);return e&&A.forEach(function(k){return t(m,k)}),Oe&&Hr(m,E),w}function v(m,y,g,S){if(g==null)throw Error(U(151));for(var w=null,j=null,A=y,E=y=0,_=null,N=g.next();A!==null&&!N.done;E++,N=g.next()){A.index>E?(_=A,A=null):_=A.sibling;var k=h(m,A,N.value,S);if(k===null){A===null&&(A=_);break}e&&A&&k.alternate===null&&t(m,A),y=i(k,y,E),j===null?w=k:j.sibling=k,j=k,A=_}if(N.done)return n(m,A),Oe&&Hr(m,E),w;if(A===null){for(;!N.done;E++,N=g.next())N=f(m,N.value,S),N!==null&&(y=i(N,y,E),j===null?w=N:j.sibling=N,j=N);return Oe&&Hr(m,E),w}for(A=r(A);!N.done;E++,N=g.next())N=p(A,m,E,N.value,S),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?E:N.key),y=i(N,y,E),j===null?w=N:j.sibling=N,j=N);return e&&A.forEach(function(P){return t(m,P)}),Oe&&Hr(m,E),w}function x(m,y,g,S){if(typeof g=="object"&&g!==null&&g.type===Do&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case cf:e:{for(var w=g.key;y!==null;){if(y.key===w){if(w=g.type,w===Do){if(y.tag===7){n(m,y.sibling),S=a(y,g.props.children),S.return=m,m=S;break e}}else if(y.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ja&&ji(w)===y.type){n(m,y.sibling),S=a(y,g.props),zs(S,g),S.return=m,m=S;break e}n(m,y);break}else t(m,y);y=y.sibling}g.type===Do?(S=Gi(g.props.children,m.mode,S,g.key),S.return=m,m=S):(S=Kf(g.type,g.key,g.props,null,m.mode,S),zs(S,g),S.return=m,m=S)}return o(m);case eu:e:{for(w=g.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){n(m,y.sibling),S=a(y,g.children||[]),S.return=m,m=S;break e}else{n(m,y);break}else t(m,y);y=y.sibling}S=$m(g,m.mode,S),S.return=m,m=S}return o(m);case ja:return g=ji(g),x(m,y,g,S)}if(tu(g))return b(m,y,g,S);if(Ds(g)){if(w=Ds(g),typeof w!="function")throw Error(U(150));return g=w.call(g),v(m,y,g,S)}if(typeof g.then=="function")return x(m,y,vf(g),S);if(g.$$typeof===Vr)return x(m,y,yf(m,g),S);gf(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,y!==null&&y.tag===6?(n(m,y.sibling),S=a(y,g),S.return=m,m=S):(n(m,y),S=Pm(g,m.mode,S),S.return=m,m=S),o(m)):n(m,y)}return function(m,y,g,S){try{Pu=0;var w=x(m,y,g,S);return rl=null,w}catch(A){if(A===fs||A===rp)throw A;var j=An(29,A,null,m.mode);return j.lanes=S,j.return=m,j}finally{}}}var eo=FE(!0),GE=FE(!1),Oa=!1;function hb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dv(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 Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Te&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=vd(e),kE(e,null,n),t}return np(e,r,t,n),vd(e)}function du(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,uE(e,n)}}function km(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 hv=!1;function hu(){if(hv){var e=nl;if(e!==null)throw e}}function pu(e,t,n,r){hv=!1;var a=e.updateQueue;Oa=!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 d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s))}if(i!==null){var f=a.baseState;o=0,d=u=s=null,l=i;do{var h=l.lane&-536870913,p=h!==l.lane;if(p?(we&h)===h:(r&h)===h){h!==0&&h===El&&(hv=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var b=e,v=l;h=t;var x=n;switch(v.tag){case 1:if(b=v.payload,typeof b=="function"){f=b.call(x,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(x,f,h):b,h==null)break e;f=tt({},f,h);break e;case 2:Oa=!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},d===null?(u=d=p,s=f):d=d.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);d===null&&(s=f),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=d,i===null&&(a.shared.lanes=0),li|=o,e.lanes=o,e.memoizedState=f}}function KE(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function YE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)KE(n[e],t)}var _l=Tr(null),Sd=Tr(0);function J1(e,t){e=ca,Ye(Sd,e),Ye(_l,t),ca=e|t.baseLanes}function pv(){Ye(Sd,ca),Ye(_l,_l.current)}function pb(){ca=Sd.current,Rt(_l),Rt(Sd)}var $n=Tr(null),Xn=null;function Ta(e){var t=e.alternate;Ye(ct,ct.current&1),Ye($n,e),Xn===null&&(t===null||_l.current!==null||t.memoizedState!==null)&&(Xn=e)}function mv(e){Ye(ct,ct.current),Ye($n,e),Xn===null&&(Xn=e)}function VE(e){e.tag===22?(Ye(ct,ct.current),Ye($n,e),Xn===null&&(Xn=e)):Na()}function Na(){Ye(ct,ct.current),Ye($n,$n.current)}function On(e){Rt($n),Xn===e&&(Xn=null),Rt(ct)}var ct=Tr(0);function wd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||$v(n)||Dv(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 la=0,de=null,Ue=null,pt=null,jd=!1,al=!1,to=!1,Od=0,$u=0,il=null,j4=0;function ot(){throw Error(U(321))}function mb(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 yb(e,t,n,r,a,i){return la=i,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ie.H=e===null||e.memoizedState===null?A_:_b,to=!1,i=n(r,a),to=!1,al&&(i=QE(t,n,r,a)),XE(e),i}function XE(e){ie.H=Du;var t=Ue!==null&&Ue.next!==null;if(la=0,pt=Ue=de=null,jd=!1,$u=0,il=null,t)throw Error(U(300));e===null||vt||(e=e.dependencies,e!==null&&bd(e)&&(vt=!0))}function QE(e,t,n,r){de=e;var a=0;do{if(al&&(il=null),$u=0,al=!1,25<=a)throw Error(U(301));if(a+=1,pt=Ue=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ie.H=E_,i=t(n,r)}while(al);return i}function O4(){var e=ie.H,t=e.useState()[0];return t=typeof t.then=="function"?Ic(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(de.flags|=1024),t}function vb(){var e=Od!==0;return Od=0,e}function gb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function bb(e){if(jd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jd=!1}la=0,pt=Ue=de=null,al=!1,$u=Od=0,il=null}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?de.memoizedState=pt=e:pt=pt.next=e,pt}function ft(){if(Ue===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=pt===null?de.memoizedState:pt.next;if(t!==null)pt=t,Ue=e;else{if(e===null)throw de.alternate===null?Error(U(467)):Error(U(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},pt===null?de.memoizedState=pt=e:pt=pt.next=e}return pt}function ap(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ic(e){var t=$u;return $u+=1,il===null&&(il=[]),e=qE(il,e,t),t=de,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,ie.H=t===null||t.memoizedState===null?A_:_b),e}function ip(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ic(e);if(e.$$typeof===Vr)return Ut(e)}throw Error(U(438,String(e)))}function xb(e){var t=null,n=de.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=de.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=ap(),de.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]=uP;return t.index++,n}function sa(e,t){return typeof t=="function"?t(e):t}function Vf(e){var t=ft();return Sb(t,Ue,e)}function Sb(e,t,n){var r=e.queue;if(r===null)throw Error(U(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,d=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(we&f)===f:(la&f)===f){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}),f===El&&(d=!0);else if((la&h)===h){u=u.next,h===El&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=f,o=i):s=s.next=f,de.lanes|=h,li|=h;f=u.action,to&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else h={lane:f,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,de.lanes|=f,li|=f;u=u.next}while(u!==null&&u!==t);if(s===null?o=i:s.next=l,!Pn(i,e.memoizedState)&&(vt=!0,d&&(n=nl,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 Lm(e){var t=ft(),n=t.queue;if(n===null)throw Error(U(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)||(vt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function WE(e,t,n){var r=de,a=ft(),i=Oe;if(i){if(n===void 0)throw Error(U(407));n=n()}else n=t();var o=!Pn((Ue||a).memoizedState,n);if(o&&(a.memoizedState=n,vt=!0),a=a.queue,wb(e_.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,Tl(9,{destroy:void 0},JE.bind(null,r,a,n,t),null),Fe===null)throw Error(U(349));i||la&127||ZE(r,t,n)}return n}function ZE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t=ap(),de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function JE(e,t,n,r){t.value=n,t.getSnapshot=r,t_(t)&&n_(e)}function e_(e,t,n){return n(function(){t_(t)&&n_(e)})}function t_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pn(e,n)}catch{return!0}}function n_(e){var t=mo(e,2);t!==null&&hn(t,e,2)}function yv(e){var t=Qt();if(typeof e=="function"){var n=e;if(e=n(),to){Ia(!0);try{n()}finally{Ia(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e},t}function r_(e,t,n,r){return e.baseState=n,Sb(e,Ue,typeof r=="function"?r:sa)}function A4(e,t,n,r,a){if(lp(e))throw Error(U(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)}};ie.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,a_(t,i)):(i.next=n.next,t.pending=n.next=i)}}function a_(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=ie.T,o={};ie.T=o;try{var l=n(a,r),s=ie.S;s!==null&&s(o,l),eS(e,t,l)}catch(u){vv(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),ie.T=i}}else try{i=n(a,r),eS(e,t,i)}catch(u){vv(e,t,u)}}function eS(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){tS(e,t,r)},function(r){return vv(e,t,r)}):tS(e,t,n)}function tS(e,t,n){t.status="fulfilled",t.value=n,i_(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,a_(e,n)))}function vv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,i_(t),t=t.next;while(t!==r)}e.action=null}function i_(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function o_(e,t){return t}function nS(e,t){if(Oe){var n=Fe.formState;if(n!==null){e:{var r=de;if(Oe){if(Je){t:{for(var a=Je,i=Kn;a.nodeType!==8;){if(!i){a=null;break t}if(a=Qn(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Je=Qn(a.nextSibling),r=a.data==="F!";break e}}ii(r)}r=!1}r&&(t=n[0])}}return n=Qt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o_,lastRenderedState:t},n.queue=r,n=w_.bind(null,de,r),r.dispatch=n,r=yv(!1),i=Eb.bind(null,de,!1,r.queue),r=Qt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=A4.bind(null,de,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function rS(e){var t=ft();return l_(t,Ue,e)}function l_(e,t,n){if(t=Sb(e,t,o_)[0],e=Vf(sa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ic(t)}catch(o){throw o===fs?rp:o}else r=t;t=ft();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(de.flags|=2048,Tl(9,{destroy:void 0},E4.bind(null,a,n),null)),[r,i,e]}function E4(e,t){e.action=t}function aS(e){var t=ft(),n=Ue;if(n!==null)return l_(t,n,e);ft(),t=t.memoizedState,n=ft();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Tl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=de.updateQueue,t===null&&(t=ap(),de.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 s_(){return ft().memoizedState}function Xf(e,t,n,r){var a=Qt();de.flags|=e,a.memoizedState=Tl(1|t,{destroy:void 0},n,r===void 0?null:r)}function op(e,t,n,r){var a=ft();r=r===void 0?null:r;var i=a.memoizedState.inst;Ue!==null&&r!==null&&mb(r,Ue.memoizedState.deps)?a.memoizedState=Tl(t,i,n,r):(de.flags|=e,a.memoizedState=Tl(1|t,i,n,r))}function iS(e,t){Xf(8390656,8,e,t)}function wb(e,t){op(2048,8,e,t)}function _4(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=ap(),de.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function u_(e){var t=ft().memoizedState;return _4({ref:t,nextImpl:e}),function(){if(Te&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function c_(e,t){return op(4,2,e,t)}function f_(e,t){return op(4,4,e,t)}function d_(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 h_(e,t,n){n=n!=null?n.concat([e]):null,op(4,4,d_.bind(null,t,e),n)}function jb(){}function p_(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&mb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function m_(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&mb(t,r[1]))return r[0];if(r=e(),to){Ia(!0);try{e()}finally{Ia(!1)}}return n.memoizedState=[r,t],r}function Ob(e,t,n){return n===void 0||la&1073741824&&!(we&261930)?e.memoizedState=t:(e.memoizedState=n,e=rT(),de.lanes|=e,li|=e,n)}function y_(e,t,n,r){return Pn(n,t)?n:_l.current!==null?(e=Ob(e,n,r),Pn(e,t)||(vt=!0),e):!(la&42)||la&1073741824&&!(we&261930)?(vt=!0,e.memoizedState=n):(e=rT(),de.lanes|=e,li|=e,t)}function v_(e,t,n,r,a){var i=Ne.p;Ne.p=i!==0&&8>i?i:8;var o=ie.T,l={};ie.T=l,Eb(e,!1,t,n);try{var s=a(),u=ie.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=w4(s,r);mu(e,t,d,Mn(e))}else mu(e,t,r,Mn(e))}catch(f){mu(e,t,{then:function(){},status:"rejected",reason:f},Mn())}finally{Ne.p=i,o!==null&&l.types!==null&&(o.types=l.types),ie.T=o}}function T4(){}function gv(e,t,n,r){if(e.tag!==5)throw Error(U(476));var a=g_(e).queue;v_(e,a,t,Fi,n===null?T4:function(){return b_(e),n(r)})}function g_(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fi,baseState:Fi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:Fi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function b_(e){var t=g_(e);t.next===null&&(t=e.alternate.memoizedState),mu(e,t.next.queue,{},Mn())}function Ab(){return Ut(zu)}function x_(){return ft().memoizedState}function S_(){return ft().memoizedState}function N4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Mn();e=Va(n);var r=Xa(t,e,n);r!==null&&(hn(r,t,n),du(r,t,n)),t={cache:cb()},e.payload=t;return}t=t.return}}function C4(e,t,n){var r=Mn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lp(e)?j_(t,n):(n=ob(e,t,n,r),n!==null&&(hn(n,e,r),O_(n,t,r)))}function w_(e,t,n){var r=Mn();mu(e,t,n,r)}function mu(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lp(e))j_(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 np(e,t,a,0),Fe===null&&tp(),!1}catch{}finally{}if(n=ob(e,t,a,r),n!==null)return hn(n,e,r),O_(n,t,r),!0}return!1}function Eb(e,t,n,r){if(r={lane:2,revertLane:Db(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lp(e)){if(t)throw Error(U(479))}else t=ob(e,n,r,2),t!==null&&hn(t,e,2)}function lp(e){var t=e.alternate;return e===de||t!==null&&t===de}function j_(e,t){al=jd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function O_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uE(e,n)}}var Du={readContext:Ut,use:ip,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};Du.useEffectEvent=ot;var A_={readContext:Ut,use:ip,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:iS,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Xf(4194308,4,d_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xf(4194308,4,e,t)},useInsertionEffect:function(e,t){Xf(4,2,e,t)},useMemo:function(e,t){var n=Qt();t=t===void 0?null:t;var r=e();if(to){Ia(!0);try{e()}finally{Ia(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Qt();if(n!==void 0){var a=n(t);if(to){Ia(!0);try{n(t)}finally{Ia(!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=C4.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:function(e){e=yv(e);var t=e.queue,n=w_.bind(null,de,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:jb,useDeferredValue:function(e,t){var n=Qt();return Ob(n,e,t)},useTransition:function(){var e=yv(!1);return e=v_.bind(null,de,e.queue,!0,!1),Qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=de,a=Qt();if(Oe){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Fe===null)throw Error(U(349));we&127||ZE(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,iS(e_.bind(null,r,i,e),[e]),r.flags|=2048,Tl(9,{destroy:void 0},JE.bind(null,r,i,n,t),null),n},useId:function(){var e=Qt(),t=Fe.identifierPrefix;if(Oe){var n=Sr,r=xr;n=(r&~(1<<32-Cn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Od++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=j4++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ab,useFormState:nS,useActionState:nS,useOptimistic:function(e){var t=Qt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Eb.bind(null,de,!0,n),n.dispatch=t,[e,t]},useMemoCache:xb,useCacheRefresh:function(){return Qt().memoizedState=N4.bind(null,de)},useEffectEvent:function(e){var t=Qt(),n={impl:e};return t.memoizedState=n,function(){if(Te&2)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},_b={readContext:Ut,use:ip,useCallback:p_,useContext:Ut,useEffect:wb,useImperativeHandle:h_,useInsertionEffect:c_,useLayoutEffect:f_,useMemo:m_,useReducer:Vf,useRef:s_,useState:function(){return Vf(sa)},useDebugValue:jb,useDeferredValue:function(e,t){var n=ft();return y_(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Vf(sa)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:Ic(e),t]},useSyncExternalStore:WE,useId:x_,useHostTransitionStatus:Ab,useFormState:rS,useActionState:rS,useOptimistic:function(e,t){var n=ft();return r_(n,Ue,e,t)},useMemoCache:xb,useCacheRefresh:S_};_b.useEffectEvent=u_;var E_={readContext:Ut,use:ip,useCallback:p_,useContext:Ut,useEffect:wb,useImperativeHandle:h_,useInsertionEffect:c_,useLayoutEffect:f_,useMemo:m_,useReducer:Lm,useRef:s_,useState:function(){return Lm(sa)},useDebugValue:jb,useDeferredValue:function(e,t){var n=ft();return Ue===null?Ob(n,e,t):y_(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Lm(sa)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:Ic(e),t]},useSyncExternalStore:WE,useId:x_,useHostTransitionStatus:Ab,useFormState:aS,useActionState:aS,useOptimistic:function(e,t){var n=ft();return Ue!==null?r_(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:xb,useCacheRefresh:S_};E_.useEffectEvent=u_;function zm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:tt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bv={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mn(),a=Va(r);a.payload=t,n!=null&&(a.callback=n),t=Xa(e,a,r),t!==null&&(hn(t,e,r),du(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mn(),a=Va(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Xa(e,a,r),t!==null&&(hn(t,e,r),du(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mn(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Xa(e,r,n),t!==null&&(hn(t,e,n),du(t,e,n))}};function oS(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?!Cu(n,r)||!Cu(a,i):!0}function lS(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&&bv.enqueueReplaceState(t,t.state,null)}function no(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=tt({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function __(e){yd(e)}function T_(e){console.error(e)}function N_(e){yd(e)}function Ad(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function sS(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 xv(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Ad(e,t)},n}function C_(e){return e=Va(e),e.tag=3,e}function M_(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(){sS(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){sS(t,n,r),typeof a!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function M4(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&cs(t,n,a,!0),n=$n.current,n!==null){switch(n.tag){case 31:case 13:return Xn===null?Cd():n.alternate===null&&ut===0&&(ut=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===xd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Xm(e,r,a)),!1;case 22:return n.flags|=65536,r===xd?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)),Xm(e,r,a)),!1}throw Error(U(435,n.tag))}return Xm(e,r,a),Cd(),!1}if(Oe)return t=$n.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==lv&&(e=Error(U(422),{cause:r}),Ru(Gn(e,n)))):(r!==lv&&(t=Error(U(423),{cause:r}),Ru(Gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Gn(r,n),a=xv(e.stateNode,r,a),km(e,a),ut!==4&&(ut=2)),!1;var i=Error(U(520),{cause:r});if(i=Gn(i,n),gu===null?gu=[i]:gu.push(i),ut!==4&&(ut=2),t===null)return!0;r=Gn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=xv(n.stateNode,r,e),km(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"&&(Qa===null||!Qa.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=C_(a),M_(a,e,n,r),km(n,a),!1}n=n.return}while(n!==null);return!1}var Tb=Error(U(461)),vt=!1;function Lt(e,t,n,r){t.child=e===null?GE(t,null,n,r):eo(t,e.child,n,r)}function uS(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 Ji(t),r=yb(e,t,n,o,i,a),l=vb(),e!==null&&!vt?(gb(e,t,a),ua(e,t,a)):(Oe&&l&&sb(t),t.flags|=1,Lt(e,t,r,a),t.child)}function cS(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!lb(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,R_(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,!Nb(e,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Cu,n(o,r)&&e.ref===t.ref)return ua(e,t,a)}return t.flags|=1,e=Jr(i,r),e.ref=t.ref,e.return=t,t.child=e}function R_(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Cu(i,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=i,Nb(e,a))e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,ua(e,t,a)}return Sv(e,t,n,r,a)}function P_(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 fS(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yf(t,i!==null?i.cachePool:null),i!==null?J1(t,i):pv(),VE(t);else return r=t.lanes=536870912,fS(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Yf(t,i.cachePool),J1(t,i),Na(),t.memoizedState=null):(e!==null&&Yf(t,null),pv(),Na());return Lt(e,t,a,n),t.child}function ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fS(e,t,n,r,a){var i=fb();return i=i===null?null:{parent:yt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Yf(t,null),pv(),VE(t),e!==null&&cs(e,t,r,!0),t.childLanes=a,null}function Qf(e,t){return t=Ed({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dS(e,t,n){return eo(t,e.child,null,n),e=Qf(t,t.pendingProps),e.flags|=2,On(t),t.memoizedState=null,e}function R4(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(r.mode==="hidden")return e=Qf(t,r),t.lanes=536870912,ru(null,e);if(mv(t),(e=Je)?(e=AT(e,Kn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ai!==null?{id:xr,overflow:Sr}:null,retryLane:536870912,hydrationErrors:null},n=zE(e),n.return=t,t.child=n,Bt=t,Je=null)):e=null,e===null)throw ii(t);return t.lanes=536870912,null}return Qf(t,r)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(mv(t),a)if(t.flags&256)t.flags&=-257,t=dS(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(vt||cs(e,t,n,!1),a=(n&e.childLanes)!==0,vt||a){if(r=Fe,r!==null&&(o=cE(r,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,mo(e,o),hn(r,e,o),Tb;Cd(),t=dS(e,t,n)}else e=i.treeContext,Je=Qn(o.nextSibling),Bt=t,Oe=!0,Ya=null,Kn=!1,e!==null&&IE(t,e),t=Qf(t,r),t.flags|=4096;return t}return e=Jr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wf(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(U(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Sv(e,t,n,r,a){return Ji(t),n=yb(e,t,n,r,void 0,a),r=vb(),e!==null&&!vt?(gb(e,t,a),ua(e,t,a)):(Oe&&r&&sb(t),t.flags|=1,Lt(e,t,n,a),t.child)}function hS(e,t,n,r,a,i){return Ji(t),t.updateQueue=null,n=QE(t,r,n,a),XE(e),r=vb(),e!==null&&!vt?(gb(e,t,i),ua(e,t,i)):(Oe&&r&&sb(t),t.flags|=1,Lt(e,t,n,i),t.child)}function pS(e,t,n,r,a){if(Ji(t),t.stateNode===null){var i=qo,o=n.contextType;typeof o=="object"&&o!==null&&(i=Ut(o)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=bv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},hb(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?Ut(o):qo,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(zm(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&&bv.enqueueReplaceState(i,i.state,null),pu(t,r,i,a),hu(),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=no(n,l);i.props=s;var u=i.context,d=n.contextType;o=qo,typeof d=="object"&&d!==null&&(o=Ut(d));var f=n.getDerivedStateFromProps;d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l||u!==o)&&lS(t,i,r,o),Oa=!1;var h=t.memoizedState;i.state=h,pu(t,r,i,a),hu(),u=t.memoizedState,l||h!==u||Oa?(typeof f=="function"&&(zm(t,n,f,r),u=t.memoizedState),(s=Oa||oS(t,n,s,r,h,u,o))?(d||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,dv(e,t),o=t.memoizedProps,d=no(n,o),i.props=d,f=t.pendingProps,h=i.context,u=n.contextType,s=qo,typeof u=="object"&&u!==null&&(s=Ut(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==f||h!==s)&&lS(t,i,r,s),Oa=!1,h=t.memoizedState,i.state=h,pu(t,r,i,a),hu();var p=t.memoizedState;o!==f||h!==p||Oa||e!==null&&e.dependencies!==null&&bd(e.dependencies)?(typeof l=="function"&&(zm(t,n,l,r),p=t.memoizedState),(d=Oa||oS(t,n,d,r,h,p,s)||e!==null&&e.dependencies!==null&&bd(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=d):(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,Wf(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=eo(t,e.child,null,a),t.child=eo(t,null,n,a)):Lt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=ua(e,t,a),e}function mS(e,t,n,r){return Zi(),t.flags|=256,Lt(e,t,n,r),t.child}var Bm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Im(e){return{baseLanes:e,cachePool:HE()}}function Um(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_n),e}function $_(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:(ct.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(a?Ta(t):Na(),(e=Je)?(e=AT(e,Kn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ai!==null?{id:xr,overflow:Sr}:null,retryLane:536870912,hydrationErrors:null},n=zE(e),n.return=t,t.child=n,Bt=t,Je=null)):e=null,e===null)throw ii(t);return Dv(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,a?(Na(),a=t.mode,l=Ed({mode:"hidden",children:l},a),r=Gi(r,a,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=Im(n),r.childLanes=Um(e,o,n),t.memoizedState=Bm,ru(null,r)):(Ta(t),wv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(i)t.flags&256?(Ta(t),t.flags&=-257,t=Hm(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),l=r.fallback,a=t.mode,r=Ed({mode:"visible",children:r.children},a),l=Gi(l,a,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,eo(t,e.child,null,n),r=t.child,r.memoizedState=Im(n),r.childLanes=Um(e,o,n),t.memoizedState=Bm,t=ru(null,r));else if(Ta(t),Dv(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(U(419)),r.stack="",r.digest=o,Ru({value:r,source:null,stack:null}),t=Hm(e,t,n)}else if(vt||cs(e,t,n,!1),o=(n&e.childLanes)!==0,vt||o){if(o=Fe,o!==null&&(r=cE(o,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,mo(e,r),hn(o,e,r),Tb;$v(l)||Cd(),t=Hm(e,t,n)}else $v(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Je=Qn(l.nextSibling),Bt=t,Oe=!0,Ya=null,Kn=!1,e!==null&&IE(t,e),t=wv(t,r.children),t.flags|=4096);return t}return a?(Na(),l=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=Jr(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=Jr(u,l):(l=Gi(l,a,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,ru(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Im(n):(a=l.cachePool,a!==null?(s=yt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=HE(),l={baseLanes:l.baseLanes|n,cachePool:a}),r.memoizedState=l,r.childLanes=Um(e,o,n),t.memoizedState=Bm,ru(e.child,r)):(Ta(t),n=e.child,e=n.sibling,n=Jr(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 wv(e,t){return t=Ed({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ed(e,t){return e=An(22,e,null,t),e.lanes=0,e}function Hm(e,t,n){return eo(t,e.child,null,n),e=wv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),uv(e.return,t,n)}function qm(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 D_(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var o=ct.current,l=(o&2)!==0;if(l?(o=o&1|2,t.flags|=128):o&=1,Ye(ct,o),Lt(e,t,r,n),r=Oe?Mu:0,!l&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yS(e,n,t);else if(e.tag===19)yS(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&&wd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),qm(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&&wd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}qm(t,!0,n,null,i,r);break;case"together":qm(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ua(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),li|=t.lanes,!(n&t.childLanes))if(e!==null){if(cs(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Jr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nb(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&bd(e)))}function P4(e,t,n){switch(t.tag){case 3:dd(t,t.stateNode.containerInfo),_a(t,yt,e.memoizedState.cache),Zi();break;case 27:case 5:Qy(t);break;case 4:dd(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mv(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ta(t),t.flags|=128,null):n&t.child.childLanes?$_(e,t,n):(Ta(t),e=ua(e,t,n),e!==null?e.sibling:null);Ta(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(cs(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return D_(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ye(ct,ct.current),r)break;return null;case 22:return t.lanes=0,P_(e,t,n,t.pendingProps);case 24:_a(t,yt,e.memoizedState.cache)}return ua(e,t,n)}function k_(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!Nb(e,n)&&!(t.flags&128))return vt=!1,P4(e,t,n);vt=!!(e.flags&131072)}else vt=!1,Oe&&t.flags&1048576&&BE(t,Mu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ji(t.elementType),t.type=e,typeof e=="function")lb(e)?(r=no(e,r),t.tag=1,t=pS(null,t,e,r,n)):(t.tag=0,t=Sv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===Y0){t.tag=11,t=uS(null,t,e,r,n);break e}else if(a===V0){t.tag=14,t=cS(null,t,e,r,n);break e}}throw t=Vy(e)||e,Error(U(306,t,""))}}return t;case 0:return Sv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=no(r,t.pendingProps),pS(e,t,r,a,n);case 3:e:{if(dd(t,t.stateNode.containerInfo),e===null)throw Error(U(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,dv(e,t),pu(t,r,null,n);var o=t.memoizedState;if(r=o.cache,_a(t,yt,r),r!==i.cache&&cv(t,[yt],n,!0),hu(),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=mS(e,t,r,n);break e}else if(r!==a){a=Gn(Error(U(424)),t),Ru(a),t=mS(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(Je=Qn(e.firstChild),Bt=t,Oe=!0,Ya=null,Kn=!0,n=GE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Zi(),r===a){t=ua(e,t,n);break e}Lt(e,t,r,n)}t=t.child}return t;case 26:return Wf(e,t),e===null?(n=kS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,r=$d(Ka.current).createElement(n),r[zt]=t,r[mn]=e,Ht(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=kS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qy(t),e===null&&Oe&&(r=t.stateNode=ET(t.type,t.pendingProps,Ka.current),Bt=t,Kn=!0,a=Je,ui(t.type)?(kv=a,Je=Qn(r.firstChild)):Je=a),Lt(e,t,t.pendingProps.children,n),Wf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((a=r=Je)&&(r=u$(r,t.type,t.pendingProps,Kn),r!==null?(t.stateNode=r,Bt=t,Je=Qn(r.firstChild),Kn=!1,a=!0):a=!1),a||ii(t)),Qy(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,Rv(a,i)?r=null:o!==null&&Rv(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=yb(e,t,O4,null,null,n),zu._currentValue=a),Wf(e,t),Lt(e,t,r,n),t.child;case 6:return e===null&&Oe&&((e=n=Je)&&(n=c$(n,t.pendingProps,Kn),n!==null?(t.stateNode=n,Bt=t,Je=null,e=!0):e=!1),e||ii(t)),null;case 13:return $_(e,t,n);case 4:return dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):Lt(e,t,r,n),t.child;case 11:return uS(e,t,t.type,t.pendingProps,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,_a(t,t.type,r.value),Lt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ji(t),a=Ut(a),r=r(a),t.flags|=1,Lt(e,t,r,n),t.child;case 14:return cS(e,t,t.type,t.pendingProps,n);case 15:return R_(e,t,t.type,t.pendingProps,n);case 19:return D_(e,t,n);case 31:return R4(e,t,n);case 22:return P_(e,t,n,t.pendingProps);case 24:return Ji(t),r=Ut(yt),e===null?(a=fb(),a===null&&(a=Fe,i=cb(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},hb(t),_a(t,yt,a)):(e.lanes&n&&(dv(e,t),pu(t,null,null,n),hu()),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),_a(t,yt,r)):(r=i.cache,_a(t,yt,r),r!==a.cache&&cv(t,[yt],n,!0))),Lt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function Dr(e){e.flags|=4}function Fm(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(oT())e.flags|=8192;else throw Yi=xd,db}else e.flags&=-16777217}function vS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!NT(t))if(oT())e.flags|=8192;else throw Yi=xd,db}function bf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lE():536870912,e.lanes|=t,Nl|=t)}function Bs(e,t){if(!Oe)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 Qe(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 $4(e,t,n){var r=t.pendingProps;switch(ub(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ea(yt),jl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ao(t)?Dr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dm())),Qe(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Dr(t),i!==null?(Qe(t),vS(t,i)):(Qe(t),Fm(t,a,null,r,n))):i?i!==e.memoizedState?(Dr(t),Qe(t),vS(t,i)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Dr(t),Qe(t),Fm(t,a,e,r,n)),null;case 27:if(hd(t),n=Ka.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dr(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Qe(t),null}e=Or.current,Ao(t)?K1(t):(e=ET(a,r,n),t.stateNode=e,Dr(t))}return Qe(t),null;case 5:if(hd(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dr(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Qe(t),null}if(i=Or.current,Ao(t))K1(t);else{var o=$d(Ka.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[zt]=t,i[mn]=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(Ht(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&&Dr(t)}}return Qe(t),Fm(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(e=Ka.current,Ao(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Bt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[zt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||wT(e.nodeValue,n)),e||ii(t,!0)}else e=$d(e).createTextNode(r),e[zt]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ao(t),n!==null){if(e===null){if(!r)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[zt]=t}else Zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=Dm(),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(U(558))}return Qe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ao(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(U(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[zt]=t}else Zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qe(t),a=!1}else a=Dm(),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),bf(t,t.updateQueue),Qe(t),null);case 4:return jl(),e===null&&kb(t.stateNode.containerInfo),Qe(t),null;case 10:return ea(t.type),Qe(t),null;case 19:if(Rt(ct),r=t.memoizedState,r===null)return Qe(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Bs(r,!1);else{if(ut!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=wd(e),i!==null){for(t.flags|=128,Bs(r,!1),e=i.updateQueue,t.updateQueue=e,bf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)LE(n,e),n=n.sibling;return Ye(ct,ct.current&1|2),Oe&&Hr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Tn()>Td&&(t.flags|=128,a=!0,Bs(r,!1),t.lanes=4194304)}else{if(!a)if(e=wd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,bf(t,e),Bs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Oe)return Qe(t),null}else 2*Tn()-r.renderingStartTime>Td&&n!==536870912&&(t.flags|=128,a=!0,Bs(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=Tn(),e.sibling=null,n=ct.current,Ye(ct,a?n&1|2:n&1),Oe&&Hr(t,r.treeForkCount),e):(Qe(t),null);case 22:case 23:return On(t),pb(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&bf(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&&Rt(Ki),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ea(yt),Qe(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function D4(e,t){switch(ub(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(yt),jl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hd(t),null;case 31:if(t.memoizedState!==null){if(On(t),t.alternate===null)throw Error(U(340));Zi()}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(U(340));Zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Rt(ct),null;case 4:return jl(),null;case 10:return ea(t.type),null;case 22:case 23:return On(t),pb(),e!==null&&Rt(Ki),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(yt),null;case 25:return null;default:return null}}function L_(e,t){switch(ub(t),t.tag){case 3:ea(yt),jl();break;case 26:case 27:case 5:hd(t);break;case 4:jl();break;case 31:t.memoizedState!==null&&On(t);break;case 13:On(t);break;case 19:Rt(ct);break;case 10:ea(t.type);break;case 22:case 23:On(t),pb(),e!==null&&Rt(Ki);break;case 24:ea(yt)}}function Uc(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){$e(t,t.return,l)}}function oi(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(d){$e(a,s,d)}}}r=r.next}while(r!==i)}}catch(d){$e(t,t.return,d)}}function z_(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{YE(t,n)}catch(r){$e(e,e.return,r)}}}function B_(e,t,n){n.props=no(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){$e(e,t,r)}}function yu(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){$e(e,t,a)}}function wr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){$e(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){$e(e,t,a)}else n.current=null}function I_(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){$e(e,e.return,a)}}function Gm(e,t,n){try{var r=e.stateNode;r$(r,e.type,n,t),r[mn]=t}catch(a){$e(e,e.return,a)}}function U_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ui(e.type)||e.tag===4}function Km(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||U_(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&&ui(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 jv(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=Xr));else if(r!==4&&(r===27&&ui(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(jv(e,t,n),e=e.sibling;e!==null;)jv(e,t,n),e=e.sibling}function _d(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&&ui(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(_d(e,t,n),e=e.sibling;e!==null;)_d(e,t,n),e=e.sibling}function H_(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Ht(t,r,n),t[zt]=e,t[mn]=n}catch(i){$e(e,e.return,i)}}var Yr=!1,mt=!1,Ym=!1,gS=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function k4(e,t){if(e=e.containerInfo,Cv=zd,e=NE(e),ab(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,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||a!==0&&f.nodeType!==3||(l=o+a),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===a&&(l=o),h===i&&++d===r&&(s=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mv={focusedElem:e,selectionRange:n},zd=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,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=no(n.type,a);e=r.getSnapshotBeforeUpdate(b,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){$e(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Pv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pv(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(U(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function q_(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Lr(e,n),r&4&&Uc(5,n);break;case 1:if(Lr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){$e(n,n.return,o)}else{var a=no(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){$e(n,n.return,o)}}r&64&&z_(n),r&512&&yu(n,n.return);break;case 3:if(Lr(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{YE(e,t)}catch(o){$e(n,n.return,o)}}break;case 27:t===null&&r&4&&H_(n);case 26:case 5:Lr(e,n),t===null&&r&4&&I_(n),r&512&&yu(n,n.return);break;case 12:Lr(e,n);break;case 31:Lr(e,n),r&4&&K_(e,n);break;case 13:Lr(e,n),r&4&&Y_(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=G4.bind(null,n),f$(e,n))));break;case 22:if(r=n.memoizedState!==null||Yr,!r){t=t!==null&&t.memoizedState!==null||mt,a=Yr;var i=mt;Yr=r,(mt=t)&&!i?Br(e,n,(n.subtreeFlags&8772)!==0):Lr(e,n),Yr=a,mt=i}break;case 30:break;default:Lr(e,n)}}function F_(e){var t=e.alternate;t!==null&&(e.alternate=null,F_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Z0(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 nt=null,cn=!1;function kr(e,t,n){for(n=n.child;n!==null;)G_(e,t,n),n=n.sibling}function G_(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount($c,n)}catch{}switch(n.tag){case 26:mt||wr(n,t),kr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:mt||wr(n,t);var r=nt,a=cn;ui(n.type)&&(nt=n.stateNode,cn=!1),kr(e,t,n),xu(n.stateNode),nt=r,cn=a;break;case 5:mt||wr(n,t);case 6:if(r=nt,a=cn,nt=null,kr(e,t,n),nt=r,cn=a,nt!==null)if(cn)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(n.stateNode)}catch(i){$e(n,t,i)}else try{nt.removeChild(n.stateNode)}catch(i){$e(n,t,i)}break;case 18:nt!==null&&(cn?(e=nt,MS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Pl(e)):MS(nt,n.stateNode));break;case 4:r=nt,a=cn,nt=n.stateNode.containerInfo,cn=!0,kr(e,t,n),nt=r,cn=a;break;case 0:case 11:case 14:case 15:oi(2,n,t),mt||oi(4,n,t),kr(e,t,n);break;case 1:mt||(wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&B_(n,t,r)),kr(e,t,n);break;case 21:kr(e,t,n);break;case 22:mt=(r=mt)||n.memoizedState!==null,kr(e,t,n),mt=r;break;default:kr(e,t,n)}}function K_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pl(e)}catch(n){$e(t,t.return,n)}}}function Y_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pl(e)}catch(n){$e(t,t.return,n)}}function L4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gS),t;default:throw Error(U(435,e.tag))}}function xf(e,t){var n=L4(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=K4.bind(null,e,r);r.then(a,a)}})}function on(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(ui(l.type)){nt=l.stateNode,cn=!1;break e}break;case 5:nt=l.stateNode,cn=!1;break e;case 3:case 4:nt=l.stateNode.containerInfo,cn=!0;break e}l=l.return}if(nt===null)throw Error(U(160));G_(i,o,a),nt=null,cn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)V_(t,e),t=t.sibling}var lr=null;function V_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:on(t,e),ln(e),r&4&&(oi(3,e,e.return),Uc(3,e),oi(5,e,e.return));break;case 1:on(t,e),ln(e),r&512&&(mt||n===null||wr(n,n.return)),r&64&&Yr&&(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=lr;if(on(t,e),ln(e),r&512&&(mt||n===null||wr(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[Lc]||i[zt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),Ht(i,r,n),i[zt]=e,Ct(i),r=i;break e;case"link":var o=zS("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),Ht(i,r,n),a.head.appendChild(i);break;case"meta":if(o=zS("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),Ht(i,r,n),a.head.appendChild(i);break;default:throw Error(U(468,r))}i[zt]=e,Ct(i),r=i}e.stateNode=r}else BS(a,e.type,e.stateNode);else e.stateNode=LS(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?BS(a,e.type,e.stateNode):LS(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Gm(e,e.memoizedProps,n.memoizedProps)}break;case 27:on(t,e),ln(e),r&512&&(mt||n===null||wr(n,n.return)),n!==null&&r&4&&Gm(e,e.memoizedProps,n.memoizedProps);break;case 5:if(on(t,e),ln(e),r&512&&(mt||n===null||wr(n,n.return)),e.flags&32){a=e.stateNode;try{Al(a,"")}catch(b){$e(e,e.return,b)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Gm(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Ym=!0);break;case 6:if(on(t,e),ln(e),r&4){if(e.stateNode===null)throw Error(U(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(b){$e(e,e.return,b)}}break;case 3:if(ed=null,a=lr,lr=Dd(t.containerInfo),on(t,e),lr=a,ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pl(t.containerInfo)}catch(b){$e(e,e.return,b)}Ym&&(Ym=!1,X_(e));break;case 4:r=lr,lr=Dd(e.stateNode.containerInfo),on(t,e),ln(e),lr=r;break;case 12:on(t,e),ln(e);break;case 31:on(t,e),ln(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xf(e,r)));break;case 13:on(t,e),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sp=Tn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xf(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Yr,d=mt;if(Yr=u||a,mt=d||s,on(t,e),mt=d,Yr=u,ln(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||Yr||mt||Oi(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 f=s.memoizedProps.style,h=f!=null&&f.hasOwnProperty("display")?f.display:null;l.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(b){$e(s,s.return,b)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(b){$e(s,s.return,b)}}}else if(t.tag===18){if(n===null){s=t;try{var p=s.stateNode;a?RS(p,!0):RS(s.stateNode,!1)}catch(b){$e(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,xf(e,n))));break;case 19:on(t,e),ln(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xf(e,r)));break;case 30:break;case 21:break;default:on(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(U_(r)){n=r;break}r=r.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var a=n.stateNode,i=Km(e);_d(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(Al(o,""),n.flags&=-33);var l=Km(e);_d(e,l,o);break;case 3:case 4:var s=n.stateNode.containerInfo,u=Km(e);jv(e,u,s);break;default:throw Error(U(161))}}catch(d){$e(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function X_(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;X_(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Lr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)q_(e,t.alternate,t),t=t.sibling}function Oi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:oi(4,t,t.return),Oi(t);break;case 1:wr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&B_(t,t.return,n),Oi(t);break;case 27:xu(t.stateNode);case 26:case 5:wr(t,t.return),Oi(t);break;case 22:t.memoizedState===null&&Oi(t);break;case 30:Oi(t);break;default:Oi(t)}e=e.sibling}}function Br(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:Br(a,i,n),Uc(4,i);break;case 1:if(Br(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){$e(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++)KE(s[a],l)}catch(u){$e(r,r.return,u)}}n&&o&64&&z_(i),yu(i,i.return);break;case 27:H_(i);case 26:case 5:Br(a,i,n),n&&r===null&&o&4&&I_(i),yu(i,i.return);break;case 12:Br(a,i,n);break;case 31:Br(a,i,n),n&&o&4&&K_(a,i);break;case 13:Br(a,i,n),n&&o&4&&Y_(a,i);break;case 22:i.memoizedState===null&&Br(a,i,n),yu(i,i.return);break;case 30:break;default:Br(a,i,n)}t=t.sibling}}function Cb(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&&Bc(n))}function Mb(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Bc(e))}function ar(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Q_(e,t,n,r),t=t.sibling}function Q_(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ar(e,t,n,r),a&2048&&Uc(9,t);break;case 1:ar(e,t,n,r);break;case 3:ar(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&&Bc(e)));break;case 12:if(a&2048){ar(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){$e(t,t.return,s)}}else ar(e,t,n,r);break;case 31:ar(e,t,n,r);break;case 13:ar(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?ar(e,t,n,r):vu(e,t):i._visibility&2?ar(e,t,n,r):(i._visibility|=2,Ro(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Cb(o,t);break;case 24:ar(e,t,n,r),a&2048&&Mb(t.alternate,t);break;default:ar(e,t,n,r)}}function Ro(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:Ro(i,o,l,s,a),Uc(8,o);break;case 23:break;case 22:var d=o.stateNode;o.memoizedState!==null?d._visibility&2?Ro(i,o,l,s,a):vu(i,o):(d._visibility|=2,Ro(i,o,l,s,a)),a&&u&2048&&Cb(o.alternate,o);break;case 24:Ro(i,o,l,s,a),a&&u&2048&&Mb(o.alternate,o);break;default:Ro(i,o,l,s,a)}t=t.sibling}}function vu(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:vu(n,r),a&2048&&Cb(r.alternate,r);break;case 24:vu(n,r),a&2048&&Mb(r.alternate,r);break;default:vu(n,r)}t=t.sibling}}var au=8192;function Eo(e,t,n){if(e.subtreeFlags&au)for(e=e.child;e!==null;)W_(e,t,n),e=e.sibling}function W_(e,t,n){switch(e.tag){case 26:Eo(e,t,n),e.flags&au&&e.memoizedState!==null&&j$(n,lr,e.memoizedState,e.memoizedProps);break;case 5:Eo(e,t,n);break;case 3:case 4:var r=lr;lr=Dd(e.stateNode.containerInfo),Eo(e,t,n),lr=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=au,au=16777216,Eo(e,t,n),au=r):Eo(e,t,n));break;default:Eo(e,t,n)}}function Z_(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 Is(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Nt=r,eT(r,e)}Z_(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)J_(e),e=e.sibling}function J_(e){switch(e.tag){case 0:case 11:case 15:Is(e),e.flags&2048&&oi(9,e,e.return);break;case 3:Is(e);break;case 12:Is(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zf(e)):Is(e);break;default:Is(e)}}function Zf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Nt=r,eT(r,e)}Z_(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:oi(8,t,t.return),Zf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zf(t));break;default:Zf(t)}e=e.sibling}}function eT(e,t){for(;Nt!==null;){var n=Nt;switch(n.tag){case 0:case 11:case 15:oi(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:Bc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Nt=r;else e:for(n=e;Nt!==null;){r=Nt;var a=r.sibling,i=r.return;if(F_(r),r===n){Nt=null;break e}if(a!==null){a.return=i,Nt=a;break e}Nt=i}}}var z4={getCacheForType:function(e){var t=Ut(yt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ut(yt).controller.signal}},B4=typeof WeakMap=="function"?WeakMap:Map,Te=0,Fe=null,Se=null,we=0,Pe=0,xn=null,Ha=!1,ds=!1,Rb=!1,ca=0,ut=0,li=0,Vi=0,Pb=0,_n=0,Nl=0,gu=null,fn=null,Ov=!1,sp=0,tT=0,Td=1/0,Nd=null,Qa=null,jt=0,Wa=null,Cl=null,ta=0,Av=0,Ev=null,nT=null,bu=0,_v=null;function Mn(){return Te&2&&we!==0?we&-we:ie.T!==null?Db():fE()}function rT(){if(_n===0)if(!(we&536870912)||Oe){var e=df;df<<=1,!(df&3932160)&&(df=262144),_n=e}else _n=536870912;return e=$n.current,e!==null&&(e.flags|=32),_n}function hn(e,t,n){(e===Fe&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Ml(e,0),qa(e,we,_n,!1)),kc(e,n),(!(Te&2)||e!==Fe)&&(e===Fe&&(!(Te&2)&&(Vi|=n),ut===4&&qa(e,we,_n,!1)),Nr(e))}function aT(e,t,n){if(Te&6)throw Error(U(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Dc(e,t),a=r?H4(e,t):Vm(e,t,!0),i=r;do{if(a===0){ds&&!r&&qa(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!I4(n)){a=Vm(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=gu;var s=l.current.memoizedState.isDehydrated;if(s&&(Ml(l,o).flags|=256),o=Vm(l,o,!1),o!==2){if(Rb&&!s){l.errorRecoveryDisabledLanes|=i,Vi|=i,a=4;break e}i=fn,fn=a,i!==null&&(fn===null?fn=i:fn.push.apply(fn,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Ml(e,0),qa(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t)break;case 6:qa(r,t,_n,!Ha);break e;case 2:fn=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(a=sp+300-Tn(),10<a)){if(qa(r,t,_n,!Ha),Wh(r,0,!0)!==0)break e;ta=t,r.timeoutHandle=OT(bS.bind(null,r,n,fn,Nd,Ov,t,_n,Vi,Nl,Ha,i,"Throttled",-0,0),a);break e}bS(r,n,fn,Nd,Ov,t,_n,Vi,Nl,Ha,i,null,-0,0)}}break}while(!0);Nr(e)}function bS(e,t,n,r,a,i,o,l,s,u,d,f,h,p){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xr},W_(t,i,f);var b=(i&62914560)===i?sp-Tn():(i&4194048)===i?tT-Tn():0;if(b=O$(f,b),b!==null){ta=i,e.cancelPendingCommit=b(SS.bind(null,e,t,i,n,r,a,o,l,s,d,f,null,h,p)),qa(e,i,o,!u);return}}SS(e,t,i,n,r,a,o,l,s)}function I4(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 qa(e,t,n,r){t&=~Pb,t&=~Vi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Cn(a),o=1<<i;r[i]=-1,a&=~o}n!==0&&sE(e,n,t)}function up(){return Te&6?!0:(Hc(0),!1)}function $b(){if(Se!==null){if(Pe===0)var e=Se.return;else e=Se,Qr=yo=null,bb(e),rl=null,Pu=0,e=Se;for(;e!==null;)L_(e.alternate,e),e=e.return;Se=null}}function Ml(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,o$(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ta=0,$b(),Fe=e,Se=n=Jr(e.current,null),we=t,Pe=0,xn=null,Ha=!1,ds=Dc(e,t),Rb=!1,Nl=_n=Pb=Vi=li=ut=0,fn=gu=null,Ov=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Cn(r),i=1<<a;t|=e[a],r&=~i}return ca=t,tp(),n}function iT(e,t){de=null,ie.H=Du,t===fs||t===rp?(t=W1(),Pe=3):t===db?(t=W1(),Pe=4):Pe=t===Tb?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,xn=t,Se===null&&(ut=1,Ad(e,Gn(t,e.current)))}function oT(){var e=$n.current;return e===null?!0:(we&4194048)===we?Xn===null:(we&62914560)===we||we&536870912?e===Xn:!1}function lT(){var e=ie.H;return ie.H=Du,e===null?Du:e}function sT(){var e=ie.A;return ie.A=z4,e}function Cd(){ut=4,Ha||(we&4194048)!==we&&$n.current!==null||(ds=!0),!(li&134217727)&&!(Vi&134217727)||Fe===null||qa(Fe,we,_n,!1)}function Vm(e,t,n){var r=Te;Te|=2;var a=lT(),i=sT();(Fe!==e||we!==t)&&(Nd=null,Ml(e,t)),t=!1;var o=ut;e:do try{if(Pe!==0&&Se!==null){var l=Se,s=xn;switch(Pe){case 8:$b(),o=6;break e;case 3:case 2:case 9:case 6:$n.current===null&&(t=!0);var u=Pe;if(Pe=0,xn=null,Ko(e,l,s,u),n&&ds){o=0;break e}break;default:u=Pe,Pe=0,xn=null,Ko(e,l,s,u)}}U4(),o=ut;break}catch(d){iT(e,d)}while(!0);return t&&e.shellSuspendCounter++,Qr=yo=null,Te=r,ie.H=a,ie.A=i,Se===null&&(Fe=null,we=0,tp()),o}function U4(){for(;Se!==null;)uT(Se)}function H4(e,t){var n=Te;Te|=2;var r=lT(),a=sT();Fe!==e||we!==t?(Nd=null,Td=Tn()+500,Ml(e,t)):ds=Dc(e,t);e:do try{if(Pe!==0&&Se!==null){t=Se;var i=xn;t:switch(Pe){case 1:Pe=0,xn=null,Ko(e,t,i,1);break;case 2:case 9:if(Q1(i)){Pe=0,xn=null,xS(t);break}t=function(){Pe!==2&&Pe!==9||Fe!==e||(Pe=7),Nr(e)},i.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:Q1(i)?(Pe=0,xn=null,xS(t)):(Pe=0,xn=null,Ko(e,t,i,7));break;case 5:var o=null;switch(Se.tag){case 26:o=Se.memoizedState;case 5:case 27:var l=Se;if(o?NT(o):l.stateNode.complete){Pe=0,xn=null;var s=l.sibling;if(s!==null)Se=s;else{var u=l.return;u!==null?(Se=u,cp(u)):Se=null}break t}}Pe=0,xn=null,Ko(e,t,i,5);break;case 6:Pe=0,xn=null,Ko(e,t,i,6);break;case 8:$b(),ut=6;break e;default:throw Error(U(462))}}q4();break}catch(d){iT(e,d)}while(!0);return Qr=yo=null,ie.H=r,ie.A=a,Te=n,Se!==null?0:(Fe=null,we=0,tp(),ut)}function q4(){for(;Se!==null&&!dP();)uT(Se)}function uT(e){var t=k_(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?cp(e):Se=t}function xS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hS(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=hS(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:bb(t);default:L_(n,t),t=Se=LE(t,ca),t=k_(n,t,ca)}e.memoizedProps=e.pendingProps,t===null?cp(e):Se=t}function Ko(e,t,n,r){Qr=yo=null,bb(t),rl=null,Pu=0;var a=t.return;try{if(M4(e,a,t,n,we)){ut=1,Ad(e,Gn(n,e.current)),Se=null;return}}catch(i){if(a!==null)throw Se=a,i;ut=1,Ad(e,Gn(n,e.current)),Se=null;return}t.flags&32768?(Oe||r===1?e=!0:ds||we&536870912?e=!1:(Ha=e=!0,(r===2||r===9||r===3||r===6)&&(r=$n.current,r!==null&&r.tag===13&&(r.flags|=16384))),cT(t,e)):cp(t)}function cp(e){var t=e;do{if(t.flags&32768){cT(t,Ha);return}e=t.return;var n=$4(t.alternate,t,ca);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);ut===0&&(ut=5)}function cT(e,t){do{var n=D4(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);ut=6,Se=null}function SS(e,t,n,r,a,i,o,l,s){e.cancelPendingCommit=null;do fp();while(jt!==0);if(Te&6)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(i=t.lanes|t.childLanes,i|=ib,wP(e,n,i,o,l,s),e===Fe&&(Se=Fe=null,we=0),Cl=t,Wa=e,ta=n,Av=i,Ev=a,nT=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Y4(pd,function(){return mT(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=ie.T,ie.T=null,a=Ne.p,Ne.p=2,o=Te,Te|=4;try{k4(e,t,n)}finally{Te=o,Ne.p=a,ie.T=r}}jt=1,fT(),dT(),hT()}}function fT(){if(jt===1){jt=0;var e=Wa,t=Cl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=ie.T,ie.T=null;var r=Ne.p;Ne.p=2;var a=Te;Te|=4;try{V_(t,e);var i=Mv,o=NE(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&TE(l.ownerDocument.documentElement,l)){if(s!==null&&ab(l)){var u=s.start,d=s.end;if(d===void 0&&(d=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(d,l.value.length);else{var f=l.ownerDocument||document,h=f&&f.defaultView||window;if(h.getSelection){var p=h.getSelection(),b=l.textContent.length,v=Math.min(s.start,b),x=s.end===void 0?v:Math.min(s.end,b);!p.extend&&v>x&&(o=x,x=v,v=o);var m=q1(l,v),y=q1(l,x);if(m&&y&&(p.rangeCount!==1||p.anchorNode!==m.node||p.anchorOffset!==m.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var g=f.createRange();g.setStart(m.node,m.offset),p.removeAllRanges(),v>x?(p.addRange(g),p.extend(y.node,y.offset)):(g.setEnd(y.node,y.offset),p.addRange(g))}}}}for(f=[],p=l;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<f.length;l++){var S=f[l];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}zd=!!Cv,Mv=Cv=null}finally{Te=a,Ne.p=r,ie.T=n}}e.current=t,jt=2}}function dT(){if(jt===2){jt=0;var e=Wa,t=Cl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=ie.T,ie.T=null;var r=Ne.p;Ne.p=2;var a=Te;Te|=4;try{q_(e,t.alternate,t)}finally{Te=a,Ne.p=r,ie.T=n}}jt=3}}function hT(){if(jt===4||jt===3){jt=0,hP();var e=Wa,t=Cl,n=ta,r=nT;t.subtreeFlags&10256||t.flags&10256?jt=5:(jt=0,Cl=Wa=null,pT(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Qa=null),W0(n),t=t.stateNode,Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot($c,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ie.T,a=Ne.p,Ne.p=2,ie.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{ie.T=t,Ne.p=a}}ta&3&&fp(),Nr(e),a=e.pendingLanes,n&261930&&a&42?e===_v?bu++:(bu=0,_v=e):bu=0,Hc(0)}}function pT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Bc(t)))}function fp(){return fT(),dT(),hT(),mT()}function mT(){if(jt!==5)return!1;var e=Wa,t=Av;Av=0;var n=W0(ta),r=ie.T,a=Ne.p;try{Ne.p=32>n?32:n,ie.T=null,n=Ev,Ev=null;var i=Wa,o=ta;if(jt=0,Cl=Wa=null,ta=0,Te&6)throw Error(U(331));var l=Te;if(Te|=4,J_(i.current),Q_(i,i.current,o,n),Te=l,Hc(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot($c,i)}catch{}return!0}finally{Ne.p=a,ie.T=r,pT(e,t)}}function wS(e,t,n){t=Gn(n,t),t=xv(e.stateNode,t,2),e=Xa(e,t,2),e!==null&&(kc(e,2),Nr(e))}function $e(e,t,n){if(e.tag===3)wS(e,e,n);else for(;t!==null;){if(t.tag===3){wS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qa===null||!Qa.has(r))){e=Gn(n,e),n=C_(2),r=Xa(t,n,2),r!==null&&(M_(n,r,t,e),kc(r,2),Nr(r));break}}t=t.return}}function Xm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new B4;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)||(Rb=!0,a.add(n),e=F4.bind(null,e,t,n),t.then(e,e))}function F4(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fe===e&&(we&n)===n&&(ut===4||ut===3&&(we&62914560)===we&&300>Tn()-sp?!(Te&2)&&Ml(e,0):Pb|=n,Nl===we&&(Nl=0)),Nr(e)}function yT(e,t){t===0&&(t=lE()),e=mo(e,t),e!==null&&(kc(e,t),Nr(e))}function G4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yT(e,n)}function K4(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(U(314))}r!==null&&r.delete(t),yT(e,n)}function Y4(e,t){return X0(e,t)}var Md=null,Po=null,Tv=!1,Rd=!1,Qm=!1,Fa=0;function Nr(e){e!==Po&&e.next===null&&(Po===null?Md=Po=e:Po=Po.next=e),Rd=!0,Tv||(Tv=!0,X4())}function Hc(e,t){if(!Qm&&Rd){Qm=!0;do for(var n=!1,r=Md;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-Cn(42|e)+1)-1,i&=a&~(o&~l),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,jS(r,i))}else i=we,i=Wh(r,r===Fe?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||Dc(r,i)||(n=!0,jS(r,i));r=r.next}while(n);Qm=!1}}function V4(){vT()}function vT(){Rd=Tv=!1;var e=0;Fa!==0&&i$()&&(e=Fa);for(var t=Tn(),n=null,r=Md;r!==null;){var a=r.next,i=gT(r,t);i===0?(r.next=null,n===null?Md=a:n.next=a,a===null&&(Po=n)):(n=r,(e!==0||i&3)&&(Rd=!0)),r=a}jt!==0&&jt!==5||Hc(e),Fa!==0&&(Fa=0)}function gT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Cn(i),l=1<<o,s=a[o];s===-1?(!(l&n)||l&r)&&(a[o]=SP(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(t=Fe,n=we,n=Wh(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Om(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Dc(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Om(r),W0(n)){case 2:case 8:n=iE;break;case 32:n=pd;break;case 268435456:n=oE;break;default:n=pd}return r=bT.bind(null,e),n=X0(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Om(r),e.callbackPriority=2,e.callbackNode=null,2}function bT(e,t){if(jt!==0&&jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(fp()&&e.callbackNode!==n)return null;var r=we;return r=Wh(e,e===Fe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(aT(e,r,t),gT(e,Tn()),e.callbackNode!=null&&e.callbackNode===n?bT.bind(null,e):null)}function jS(e,t){if(fp())return null;aT(e,t,!0)}function X4(){l$(function(){Te&6?X0(aE,V4):vT()})}function Db(){if(Fa===0){var e=El;e===0&&(e=ff,ff<<=1,!(ff&261888)&&(ff=256)),Fa=e}return Fa}function OS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qf(""+e)}function AS(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 Q4(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=OS((a[mn]||null).action),o=r.submitter;o&&(t=(t=o[mn]||null)?OS(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var l=new Zh("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Fa!==0){var s=o?AS(a,o):new FormData(a);gv(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(l.preventDefault(),s=o?AS(a,o):new FormData(a),gv(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var Wm=0;Wm<ov.length;Wm++){var Zm=ov[Wm],W4=Zm.toLowerCase(),Z4=Zm[0].toUpperCase()+Zm.slice(1);hr(W4,"on"+Z4)}hr(ME,"onAnimationEnd");hr(RE,"onAnimationIteration");hr(PE,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(p4,"onTransitionRun");hr(m4,"onTransitionStart");hr(y4,"onTransitionCancel");hr($E,"onTransitionEnd");Ol("onMouseEnter",["mouseout","mouseover"]);Ol("onMouseLeave",["mouseout","mouseover"]);Ol("onPointerEnter",["pointerout","pointerover"]);Ol("onPointerLeave",["pointerout","pointerover"]);fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fo("onBeforeInput",["compositionend","keypress","textInput","paste"]);fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ku="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(" "),J4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ku));function xT(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(d){yd(d)}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(d){yd(d)}a.currentTarget=null,i=s}}}}function xe(e,t){var n=t[Zy];n===void 0&&(n=t[Zy]=new Set);var r=e+"__bubble";n.has(r)||(ST(t,e,2,!1),n.add(r))}function Jm(e,t,n){var r=0;t&&(r|=4),ST(n,e,r,t)}var Sf="_reactListening"+Math.random().toString(36).slice(2);function kb(e){if(!e[Sf]){e[Sf]=!0,dE.forEach(function(n){n!=="selectionchange"&&(J4.has(n)||Jm(n,!1,e),Jm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sf]||(t[Sf]=!0,Jm("selectionchange",!1,t))}}function ST(e,t,n,r){switch($T(t)){case 2:var a=_$;break;case 8:a=T$;break;default:a=Ib}n=a.bind(null,t,n,e),a=void 0,!rv||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 ey(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=Lo(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}xE(function(){var u=i,d=eb(n),f=[];e:{var h=DE.get(e);if(h!==void 0){var p=Zh,b=e;switch(e){case"keypress":if(Gf(n)===0)break e;case"keydown":case"keyup":p=KP;break;case"focusin":b="focus",p=Nm;break;case"focusout":b="blur",p=Nm;break;case"beforeblur":case"afterblur":p=Nm;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=P1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=$P;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=XP;break;case ME:case RE:case PE:p=LP;break;case $E:p=WP;break;case"scroll":case"scrollend":p=RP;break;case"wheel":p=JP;break;case"copy":case"cut":case"paste":p=BP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=D1;break;case"toggle":case"beforetoggle":p=t4}var v=(t&4)!==0,x=!v&&(e==="scroll"||e==="scrollend"),m=v?h!==null?h+"Capture":null:h;v=[];for(var y=u,g;y!==null;){var S=y;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||m===null||(S=Tu(y,m),S!=null&&v.push(Lu(y,S,g))),x)break;y=y.return}0<v.length&&(h=new p(h,b,null,n,d),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==nv&&(b=n.relatedTarget||n.fromElement)&&(Lo(b)||b[ss]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=u,b=b?Lo(b):null,b!==null&&(x=Pc(b),v=b.tag,b!==x||v!==5&&v!==27&&v!==6)&&(b=null)):(p=null,b=u),p!==b)){if(v=P1,S="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=D1,S="onPointerLeave",m="onPointerEnter",y="pointer"),x=p==null?h:nu(p),g=b==null?h:nu(b),h=new v(S,y+"leave",p,n,d),h.target=x,h.relatedTarget=g,S=null,Lo(d)===u&&(v=new v(m,y+"enter",b,n,d),v.target=g,v.relatedTarget=x,S=v),x=S,p&&b)t:{for(v=e$,m=p,y=b,g=0,S=m;S;S=v(S))g++;S=0;for(var w=y;w;w=v(w))S++;for(;0<g-S;)m=v(m),g--;for(;0<S-g;)y=v(y),S--;for(;g--;){if(m===y||y!==null&&m===y.alternate){v=m;break t}m=v(m),y=v(y)}v=null}else v=null;p!==null&&ES(f,h,p,v,!1),b!==null&&x!==null&&ES(f,x,b,v,!0)}}e:{if(h=u?nu(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var j=B1;else if(z1(h))if(EE)j=f4;else{j=u4;var A=s4}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&J0(u.elementType)&&(j=B1):j=c4;if(j&&(j=j(e,u))){AE(f,j,n,d);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&tv(h,"number",h.value)}switch(A=u?nu(u):window,e){case"focusin":(z1(A)||A.contentEditable==="true")&&(Io=A,av=u,cu=null);break;case"focusout":cu=av=Io=null;break;case"mousedown":iv=!0;break;case"contextmenu":case"mouseup":case"dragend":iv=!1,F1(f,n,d);break;case"selectionchange":if(h4)break;case"keydown":case"keyup":F1(f,n,d)}var E;if(rb)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Bo?jE(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(wE&&n.locale!=="ko"&&(Bo||_!=="onCompositionStart"?_==="onCompositionEnd"&&Bo&&(E=SE()):(Ua=d,tb="value"in Ua?Ua.value:Ua.textContent,Bo=!0)),A=Pd(u,_),0<A.length&&(_=new $1(_,e,null,n,d),f.push({event:_,listeners:A}),E?_.data=E:(E=OE(n),E!==null&&(_.data=E)))),(E=r4?a4(e,n):i4(e,n))&&(_=Pd(u,"onBeforeInput"),0<_.length&&(A=new $1("onBeforeInput","beforeinput",null,n,d),f.push({event:A,listeners:_}),A.data=E)),Q4(f,e,u,n,d)}xT(f,t)})}function Lu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pd(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=Tu(e,n),a!=null&&r.unshift(Lu(e,a,i)),a=Tu(e,t),a!=null&&r.push(Lu(e,a,i))),e.tag===3)return r;e=e.return}return[]}function e$(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ES(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=Tu(n,i),u!=null&&o.unshift(Lu(n,u,s))):a||(u=Tu(n,i),u!=null&&o.push(Lu(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var t$=/\r\n?/g,n$=/\u0000|\uFFFD/g;function _S(e){return(typeof e=="string"?e:""+e).replace(t$,`
`).replace(n$,"")}function wT(e,t){return t=_S(t),_S(e)===t}function Be(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Al(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Al(e,""+r);break;case"className":pf(e,"class",r);break;case"tabIndex":pf(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":pf(e,n,r);break;case"style":bE(e,r,i);break;case"data":if(t!=="object"){pf(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=qf(""+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"&&Be(e,t,"name",a.name,a,null),Be(e,t,"formEncType",a.formEncType,a,null),Be(e,t,"formMethod",a.formMethod,a,null),Be(e,t,"formTarget",a.formTarget,a,null)):(Be(e,t,"encType",a.encType,a,null),Be(e,t,"method",a.method,a,null),Be(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=qf(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Xr);break;case"onScroll":r!=null&&xe("scroll",e);break;case"onScrollEnd":r!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(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=qf(""+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":xe("beforetoggle",e),xe("toggle",e),Hf(e,"popover",r);break;case"xlinkActuate":$r(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":$r(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":$r(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":$r(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":$r(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":$r(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":$r(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":$r(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":$r(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Hf(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=CP.get(n)||n,Hf(e,n,r))}}function Nv(e,t,n,r,a,i){switch(n){case"style":bE(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Al(e,r):(typeof r=="number"||typeof r=="bigint")&&Al(e,""+r);break;case"onScroll":r!=null&&xe("scroll",e);break;case"onScrollEnd":r!=null&&xe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hE.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[mn]||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,""):Hf(e,n,r)}}}function Ht(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("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(U(137,t));default:Be(e,t,i,o,n,null)}}a&&Be(e,t,"srcSet",n.srcSet,n,null),r&&Be(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var l=i=o=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":a=d;break;case"type":o=d;break;case"checked":s=d;break;case"defaultChecked":u=d;break;case"value":i=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(U(137,t));break;default:Be(e,t,r,d,n,null)}}yE(e,i,l,s,u,o,a,!1);return;case"select":xe("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:Be(e,t,a,l,n,null)}t=i,n=o,e.multiple=!!r,t!=null?el(e,!!r,t,!1):n!=null&&el(e,!!r,n,!0);return;case"textarea":xe("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(U(91));break;default:Be(e,t,o,l,n,null)}gE(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:Be(e,t,s,r,n,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(r=0;r<ku.length;r++)xe(ku[r],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(U(137,t));default:Be(e,t,u,r,n,null)}return;default:if(J0(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nv(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&Be(e,t,l,r,n,null))}function r$(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,d=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=f;default:r.hasOwnProperty(p)||Be(e,t,p,null,r,f)}}for(var h in r){var p=r[h];if(f=n[h],r.hasOwnProperty(h)&&(p!=null||f!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":d=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,t));break;default:p!==f&&Be(e,t,h,p,r,f)}}ev(e,o,l,s,u,d,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)||Be(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&&Be(e,t,a,i,r,s)}t=l,n=o,r=p,h!=null?el(e,!!n,h,!1):!!r!=!!n&&(t!=null?el(e,!!n,t,!0):el(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:Be(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(U(91));break;default:a!==i&&Be(e,t,o,a,r,i)}vE(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:Be(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:Be(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)&&Be(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(U(137,t));break;default:Be(e,t,u,h,r,p)}return;default:if(J0(t)){for(var x in n)h=n[x],n.hasOwnProperty(x)&&h!==void 0&&!r.hasOwnProperty(x)&&Nv(e,t,x,void 0,r,h);for(d in r)h=r[d],p=n[d],!r.hasOwnProperty(d)||h===p||h===void 0&&p===void 0||Nv(e,t,d,h,r,p);return}}for(var m in n)h=n[m],n.hasOwnProperty(m)&&h!=null&&!r.hasOwnProperty(m)&&Be(e,t,m,null,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h==null&&p==null||Be(e,t,f,h,r,p)}function TS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function a$(){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&&TS(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 d=s.transferSize,f=s.initiatorType;d&&TS(f)&&(s=s.responseEnd,o+=d*(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 Cv=null,Mv=null;function $d(e){return e.nodeType===9?e:e.ownerDocument}function NS(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 jT(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 Rv(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 ty=null;function i$(){var e=window.event;return e&&e.type==="popstate"?e===ty?!1:(ty=e,!0):(ty=null,!1)}var OT=typeof setTimeout=="function"?setTimeout:void 0,o$=typeof clearTimeout=="function"?clearTimeout:void 0,CS=typeof Promise=="function"?Promise:void 0,l$=typeof queueMicrotask=="function"?queueMicrotask:typeof CS<"u"?function(e){return CS.resolve(null).then(e).catch(s$)}:OT;function s$(e){setTimeout(function(){throw e})}function ui(e){return e==="head"}function MS(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),Pl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")xu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xu(n);for(var i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[Lc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}else n==="body"&&xu(e.ownerDocument.body);n=a}while(n);Pl(t)}function RS(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 Pv(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":Pv(n),Z0(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function u$(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[Lc])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=Qn(e.nextSibling),e===null)break}return null}function c$(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Qn(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=Qn(e.nextSibling),e===null))return null;return e}function $v(e){return e.data==="$?"||e.data==="$~"}function Dv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function f$(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 Qn(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 kv=null;function PS(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Qn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function $S(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 ET(e,t,n){switch(t=$d(n),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function xu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Z0(e)}var Zn=new Map,DS=new Set;function Dd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ya=Ne.d;Ne.d={f:d$,r:h$,D:p$,C:m$,L:y$,m:v$,X:b$,S:g$,M:x$};function d$(){var e=ya.f(),t=up();return e||t}function h$(e){var t=us(e);t!==null&&t.tag===5&&t.type==="form"?b_(t):ya.r(e)}var hs=typeof document>"u"?null:document;function _T(e,t,n){var r=hs;if(r&&typeof t=="string"&&t){var a=Fn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),DS.has(a)||(DS.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Ht(t,"link",e),Ct(t),r.head.appendChild(t)))}}function p$(e){ya.D(e),_T("dns-prefetch",e,null)}function m$(e,t){ya.C(e,t),_T("preconnect",e,t)}function y$(e,t,n){ya.L(e,t,n);var r=hs;if(r&&e&&t){var a='link[rel="preload"][as="'+Fn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Fn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Fn(n.imageSizes)+'"]')):a+='[href="'+Fn(e)+'"]';var i=a;switch(t){case"style":i=Rl(e);break;case"script":i=ps(e)}Zn.has(i)||(e=tt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(qc(i))||t==="script"&&r.querySelector(Fc(i))||(t=r.createElement("link"),Ht(t,"link",e),Ct(t),r.head.appendChild(t)))}}function v$(e,t){ya.m(e,t);var n=hs;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Fn(r)+'"][href="'+Fn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ps(e)}if(!Zn.has(i)&&(e=tt({rel:"modulepreload",href:e},t),Zn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fc(i)))return}r=n.createElement("link"),Ht(r,"link",e),Ct(r),n.head.appendChild(r)}}}function g$(e,t,n){ya.S(e,t,n);var r=hs;if(r&&e){var a=Jo(r).hoistableStyles,i=Rl(e);t=t||"default";var o=a.get(i);if(!o){var l={loading:0,preload:null};if(o=r.querySelector(qc(i)))l.loading=5;else{e=tt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zn.get(i))&&Lb(e,n);var s=o=r.createElement("link");Ct(s),Ht(s,"link",e),s._p=new Promise(function(u,d){s.onload=u,s.onerror=d}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Jf(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},a.set(i,o)}}}function b$(e,t){ya.X(e,t);var n=hs;if(n&&e){var r=Jo(n).hoistableScripts,a=ps(e),i=r.get(a);i||(i=n.querySelector(Fc(a)),i||(e=tt({src:e,async:!0},t),(t=Zn.get(a))&&zb(e,t),i=n.createElement("script"),Ct(i),Ht(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function x$(e,t){ya.M(e,t);var n=hs;if(n&&e){var r=Jo(n).hoistableScripts,a=ps(e),i=r.get(a);i||(i=n.querySelector(Fc(a)),i||(e=tt({src:e,async:!0,type:"module"},t),(t=Zn.get(a))&&zb(e,t),i=n.createElement("script"),Ct(i),Ht(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function kS(e,t,n,r){var a=(a=Ka.current)?Dd(a):null;if(!a)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Rl(n.href),n=Jo(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=Rl(n.href);var i=Jo(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(qc(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Zn.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},Zn.set(e,n),i||S$(a,e,n,o.state))),t&&r===null)throw Error(U(528,""));return o}if(t&&r!==null)throw Error(U(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ps(n),n=Jo(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(U(444,e))}}function Rl(e){return'href="'+Fn(e)+'"'}function qc(e){return'link[rel="stylesheet"]['+e+"]"}function TT(e){return tt({},e,{"data-precedence":e.precedence,precedence:null})}function S$(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}),Ht(t,"link",n),Ct(t),e.head.appendChild(t))}function ps(e){return'[src="'+Fn(e)+'"]'}function Fc(e){return"script[async]"+e}function LS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Fn(n.href)+'"]');if(r)return t.instance=r,Ct(r),r;var a=tt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ct(r),Ht(r,"style",a),Jf(r,n.precedence,e),t.instance=r;case"stylesheet":a=Rl(n.href);var i=e.querySelector(qc(a));if(i)return t.state.loading|=4,t.instance=i,Ct(i),i;r=TT(n),(a=Zn.get(a))&&Lb(r,a),i=(e.ownerDocument||e).createElement("link"),Ct(i);var o=i;return o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),Ht(i,"link",r),t.state.loading|=4,Jf(i,n.precedence,e),t.instance=i;case"script":return i=ps(n.src),(a=e.querySelector(Fc(i)))?(t.instance=a,Ct(a),a):(r=n,(a=Zn.get(i))&&(r=tt({},n),zb(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ct(a),Ht(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Jf(r,n.precedence,e));return t.instance}function Jf(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 Lb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ed=null;function zS(e,t,n){if(ed===null){var r=new Map,a=ed=new Map;a.set(n,r)}else a=ed,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[Lc]||i[zt]||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 BS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function w$(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 NT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function j$(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=Rl(r.href),i=t.querySelector(qc(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=kd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ct(i);return}i=t.ownerDocument||t,r=TT(r),(a=Zn.get(a))&&Lb(r,a),i=i.createElement("link"),Ct(i);var o=i;o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),Ht(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=kd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ny=0;function O$(e,t){return e.stylesheets&&e.count===0&&td(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&td(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&ny===0&&(ny=62500*a$());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&td(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>ny?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function kd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)td(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ld=null;function td(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ld=new Map,t.forEach(A$,e),Ld=null,kd.call(e))}function A$(e,t){if(!(t.state.loading&4)){var n=Ld.get(e);if(n)var r=n.get(null);else{n=new Map,Ld.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=kd.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 zu={$$typeof:Vr,Provider:null,Consumer:null,_currentValue:Fi,_currentValue2:Fi,_threadCount:0};function E$(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=Am(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Am(0),this.hiddenUpdates=Am(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 CT(e,t,n,r,a,i,o,l,s,u,d,f){return e=new E$(e,t,n,o,s,u,d,f,l),t=1,i===!0&&(t|=24),i=An(3,null,null,t),e.current=i,i.stateNode=e,t=cb(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},hb(i),e}function MT(e){return e?(e=qo,e):qo}function RT(e,t,n,r,a,i){a=MT(a),r.context===null?r.context=a:r.pendingContext=a,r=Va(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Xa(e,r,t),n!==null&&(hn(n,e,t),du(n,e,t))}function IS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bb(e,t){IS(e,t),(e=e.alternate)&&IS(e,t)}function PT(e){if(e.tag===13||e.tag===31){var t=mo(e,67108864);t!==null&&hn(t,e,67108864),Bb(e,67108864)}}function US(e){if(e.tag===13||e.tag===31){var t=Mn();t=Q0(t);var n=mo(e,t);n!==null&&hn(n,e,t),Bb(e,t)}}var zd=!0;function _$(e,t,n,r){var a=ie.T;ie.T=null;var i=Ne.p;try{Ne.p=2,Ib(e,t,n,r)}finally{Ne.p=i,ie.T=a}}function T$(e,t,n,r){var a=ie.T;ie.T=null;var i=Ne.p;try{Ne.p=8,Ib(e,t,n,r)}finally{Ne.p=i,ie.T=a}}function Ib(e,t,n,r){if(zd){var a=Lv(r);if(a===null)ey(e,t,r,Bd,n),HS(e,r);else if(C$(a,e,t,n,r))r.stopPropagation();else if(HS(e,r),t&4&&-1<N$.indexOf(e)){for(;a!==null;){var i=us(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=wi(i.pendingLanes);if(o!==0){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;o;){var s=1<<31-Cn(o);l.entanglements[1]|=s,o&=~s}Nr(i),!(Te&6)&&(Td=Tn()+500,Hc(0))}}break;case 31:case 13:l=mo(i,2),l!==null&&hn(l,i,2),up(),Bb(i,2)}if(i=Lv(r),i===null&&ey(e,t,r,Bd,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else ey(e,t,r,null,n)}}function Lv(e){return e=eb(e),Ub(e)}var Bd=null;function Ub(e){if(Bd=null,e=Lo(e),e!==null){var t=Pc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=JA(t),e!==null)return e;e=null}else if(n===31){if(e=eE(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 Bd=e,null}function $T(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(pP()){case aE:return 2;case iE:return 8;case pd:case mP:return 32;case oE:return 268435456;default:return 32}default:return 32}}var zv=!1,Za=null,Ja=null,ei=null,Bu=new Map,Iu=new Map,Ca=[],N$="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 HS(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":Bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Iu.delete(t.pointerId)}}function Us(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=us(t),t!==null&&PT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function C$(e,t,n,r,a){switch(t){case"focusin":return Za=Us(Za,e,t,n,r,a),!0;case"dragenter":return Ja=Us(Ja,e,t,n,r,a),!0;case"mouseover":return ei=Us(ei,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Bu.set(i,Us(Bu.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Iu.set(i,Us(Iu.get(i)||null,e,t,n,r,a)),!0}return!1}function DT(e){var t=Lo(e.target);if(t!==null){var n=Pc(t);if(n!==null){if(t=n.tag,t===13){if(t=JA(n),t!==null){e.blockedOn=t,E1(e.priority,function(){US(n)});return}}else if(t===31){if(t=eE(n),t!==null){e.blockedOn=t,E1(e.priority,function(){US(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 nd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nv=r,n.target.dispatchEvent(r),nv=null}else return t=us(n),t!==null&&PT(t),e.blockedOn=n,!1;t.shift()}return!0}function qS(e,t,n){nd(e)&&n.delete(t)}function M$(){zv=!1,Za!==null&&nd(Za)&&(Za=null),Ja!==null&&nd(Ja)&&(Ja=null),ei!==null&&nd(ei)&&(ei=null),Bu.forEach(qS),Iu.forEach(qS)}function wf(e,t){e.blockedOn===t&&(e.blockedOn=null,zv||(zv=!0,At.unstable_scheduleCallback(At.unstable_NormalPriority,M$)))}var jf=null;function FS(e){jf!==e&&(jf=e,At.unstable_scheduleCallback(At.unstable_NormalPriority,function(){jf===e&&(jf=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(Ub(r||n)===null)continue;break}var i=us(n);i!==null&&(e.splice(t,3),t-=3,gv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Pl(e){function t(s){return wf(s,e)}Za!==null&&wf(Za,e),Ja!==null&&wf(Ja,e),ei!==null&&wf(ei,e),Bu.forEach(t),Iu.forEach(t);for(var n=0;n<Ca.length;n++){var r=Ca[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ca.length&&(n=Ca[0],n.blockedOn===null);)DT(n),n.blockedOn===null&&Ca.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[mn]||null;if(typeof i=="function")o||FS(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[mn]||null)l=o.formAction;else if(Ub(a)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),FS(n)}}}function kT(){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 Hb(e){this._internalRoot=e}dp.prototype.render=Hb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,r=Mn();RT(n,r,e,t,null,null)};dp.prototype.unmount=Hb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;RT(e.current,2,null,e,null,null),up(),t[ss]=null}};function dp(e){this._internalRoot=e}dp.prototype.unstable_scheduleHydration=function(e){if(e){var t=fE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ca.length&&t!==0&&t<Ca[n].priority;n++);Ca.splice(n,0,e),n===0&&DT(e)}};var GS=WA.version;if(GS!=="19.2.7")throw Error(U(527,GS,"19.2.7"));Ne.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=lP(t),e=e!==null?tE(e):null,e=e===null?null:e.stateNode,e};var R$={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Of=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Of.isDisabled&&Of.supportsFiber)try{$c=Of.inject(R$),Nn=Of}catch{}}Xh.createRoot=function(e,t){if(!ZA(e))throw Error(U(299));var n=!1,r="",a=__,i=T_,o=N_;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=CT(e,1,!1,null,null,n,r,null,a,i,o,kT),e[ss]=t.current,kb(e),new Hb(t)};Xh.hydrateRoot=function(e,t,n){if(!ZA(e))throw Error(U(299));var r=!1,a="",i=__,o=T_,l=N_,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=CT(e,1,!0,t,n??null,r,a,s,i,o,l,kT),t.context=MT(null),n=t.current,r=Mn(),r=Q0(r),a=Va(r),a.callback=null,Xa(n,a,r),n=r,t.current.lanes=n,kc(t,n),Nr(t),e[ss]=t.current,kb(e),new dp(t)};Xh.version="19.2.7";function LT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LT)}catch(e){console.error(e)}}LT(),GA.exports=Xh;var P$=GA.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 KS="popstate";function YS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function $$(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 Bv("",{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:Uu(a)}return k$(t,n,null,e)}function at(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function D$(){return Math.random().toString(36).substring(2,10)}function VS(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 Bv(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ms(t):t,state:n,key:t&&t.key||r||D$(),mask:a}}function Uu({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 ms(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 k$(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l="POP",s=null,u=d();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function d(){return(o.state||{idx:null}).idx}function f(){l="POP";let x=d(),m=x==null?null:x-u;u=x,s&&s({action:l,location:v.location,delta:m})}function h(x,m){l="PUSH";let y=YS(x)?x:Bv(v.location,x,m);u=d()+1;let g=VS(y,u),S=v.createHref(y.mask||y);try{o.pushState(g,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(S)}i&&s&&s({action:l,location:v.location,delta:1})}function p(x,m){l="REPLACE";let y=YS(x)?x:Bv(v.location,x,m);u=d();let g=VS(y,u),S=v.createHref(y.mask||y);o.replaceState(g,"",S),i&&s&&s({action:l,location:v.location,delta:0})}function b(x){return L$(a,x)}let v={get action(){return l},get location(){return e(a,o)},listen(x){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(KS,f),s=x,()=>{a.removeEventListener(KS,f),s=null}},createHref(x){return t(a,x)},createURL:b,encodeLocation(x){let m=b(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(x){return o.go(x)}};return v}function L$(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),at(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Uu(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function zT(e,t,n="/"){return z$(e,t,n,!1)}function z$(e,t,n,r,a){let i=typeof t=="string"?ms(t):t,o=fa(i.pathname||"/",n);if(o==null)return null;let l=B$(e),s=null,u=W$(o);for(let d=0;s==null&&d<l.length;++d)s=X$(l[d],u,r);return s}function B$(e){let t=BT(e);return I$(t),t}function BT(e,t=[],n=[],r="",a=!1){let i=(o,l,s=a,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&s)return;at(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let f=fr([r,d.relativePath]),h=n.concat(d);o.children&&o.children.length>0&&(at(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),BT(o.children,t,h,f,s)),!(o.path==null&&!o.index)&&t.push({path:f,score:Y$(f,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 IT(o.path))i(o,l,!0,u)}),t}function IT(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=IT(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 I$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:V$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var U$=/^:[\w-]+$/,H$=3,q$=2,F$=1,G$=10,K$=-2,XS=e=>e==="*";function Y$(e,t){let n=e.split("/"),r=n.length;return n.some(XS)&&(r+=K$),t&&(r+=q$),n.filter(a=>!XS(a)).reduce((a,i)=>a+(U$.test(i)?H$:i===""?F$:G$),r)}function V$(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 X$(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,d=i==="/"?t:t.slice(i.length)||"/",f=Id({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),h=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Id({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!f)return null;Object.assign(a,f.params),o.push({params:a,pathname:fr([i,f.pathname]),pathnameBase:tD(fr([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=fr([i,f.pathnameBase]))}return o}function Id(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Q$(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:d,isOptional:f},h)=>{if(d==="*"){let b=l[h]||"";o=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const p=l[h];return f&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function Q$(e,t=!1,n=!0){dr(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,d)=>{if(r.push({paramName:l,isOptional:s!=null}),s){let f=d.charAt(u+o.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 W$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dr(!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 fa(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 Z$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function J$(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ms(e):e,i;return n?(n=UT(n),n.startsWith("/")?i=QS(n.substring(1),"/"):i=QS(n,t)):i=t,{pathname:i,search:nD(r),hash:rD(a)}}function QS(e,t){let n=Ud(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ry(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 eD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qb(e){let t=eD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function hp(e,t,n,r=!1){let a;typeof e=="string"?a=ms(e):(a={...e},at(!a.pathname||!a.pathname.includes("?"),ry("?","pathname","search",a)),at(!a.pathname||!a.pathname.includes("#"),ry("#","pathname","hash",a)),at(!a.search||!a.search.includes("#"),ry("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}l=f>=0?t[f]:"/"}let s=J$(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}var UT=e=>e.replace(/\/\/+/g,"/"),fr=e=>UT(e.join("/")),Ud=e=>e.replace(/\/+$/,""),tD=e=>Ud(e).replace(/^\/*/,"/"),nD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,aD=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 iD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function oD(e){let t=e.map(n=>n.route.path).filter(Boolean);return fr(t)||"/"}var HT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function qT(e,t){let n=e;if(typeof n!="string"||!Z$.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(HT)try{let i=new URL(window.location.href),o=n.startsWith("//")?new URL(i.protocol+n):new URL(n),l=fa(o.pathname,t);o.origin===i.origin&&l!=null?n=l+o.search+o.hash:a=!0}catch{dr(!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 FT=["POST","PUT","PATCH","DELETE"];new Set(FT);var lD=["GET",...FT];new Set(lD);var ys=O.createContext(null);ys.displayName="DataRouter";var pp=O.createContext(null);pp.displayName="DataRouterState";var GT=O.createContext(!1);function sD(){return O.useContext(GT)}var KT=O.createContext({isTransitioning:!1});KT.displayName="ViewTransition";var uD=O.createContext(new Map);uD.displayName="Fetchers";var cD=O.createContext(null);cD.displayName="Await";var Dn=O.createContext(null);Dn.displayName="Navigation";var Gc=O.createContext(null);Gc.displayName="Location";var pr=O.createContext({outlet:null,matches:[],isDataRoute:!1});pr.displayName="Route";var Fb=O.createContext(null);Fb.displayName="RouteError";var YT="REACT_ROUTER_ERROR",fD="REDIRECT",dD="ROUTE_ERROR_RESPONSE";function hD(e){if(e.startsWith(`${YT}:${fD}:{`))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 pD(e){if(e.startsWith(`${YT}:${dD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new aD(t.status,t.statusText,t.data)}catch{}}function mD(e,{relative:t}={}){at(vs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=O.useContext(Dn),{hash:a,pathname:i,search:o}=Kc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:fr([n,i])),r.createHref({pathname:l,search:o,hash:a})}function vs(){return O.useContext(Gc)!=null}function Cr(){return at(vs(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(Gc).location}var VT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function XT(e){O.useContext(Dn).static||O.useLayoutEffect(e)}function mp(){let{isDataRoute:e}=O.useContext(pr);return e?CD():yD()}function yD(){at(vs(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(ys),{basename:t,navigator:n}=O.useContext(Dn),{matches:r}=O.useContext(pr),{pathname:a}=Cr(),i=JSON.stringify(qb(r)),o=O.useRef(!1);return XT(()=>{o.current=!0}),O.useCallback((s,u={})=>{if(dr(o.current,VT),!o.current)return;if(typeof s=="number"){n.go(s);return}let d=hp(s,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:fr([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,a,e])}var vD=O.createContext(null);function gD(e){let t=O.useContext(pr).outlet;return O.useMemo(()=>t&&O.createElement(vD.Provider,{value:e},t),[t,e])}function Kc(e,{relative:t}={}){let{matches:n}=O.useContext(pr),{pathname:r}=Cr(),a=JSON.stringify(qb(n));return O.useMemo(()=>hp(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function bD(e,t){return QT(e,t)}function QT(e,t,n){var x;at(vs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=O.useContext(Dn),{matches:a}=O.useContext(pr),i=a[a.length-1],o=i?i.params:{},l=i?i.pathname:"/",s=i?i.pathnameBase:"/",u=i&&i.route;{let m=u&&u.path||"";ZT(l,!u||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${m}">) 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="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let d=Cr(),f;if(t){let m=typeof t=="string"?ms(t):t;at(s==="/"||((x=m.pathname)==null?void 0:x.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 "${m.pathname}" was given in the \`location\` prop.`),f=m}else f=d;let h=f.pathname||"/",p=h;if(s!=="/"){let m=s.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(m.length).join("/")}let b=n&&n.state.matches.length?n.state.matches.map(m=>Object.assign(m,{route:n.manifest[m.route.id]||m.route})):zT(e,{pathname:p});dr(u||b!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),dr(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 "${f.pathname}${f.search}${f.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=OD(b&&b.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:fr([s,r.encodeLocation?r.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:fr([s,r.encodeLocation?r.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,n);return t&&v?O.createElement(Gc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},v):v}function xD(){let e=ND(),t=iD(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=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:i},"ErrorBoundary")," or"," ",O.createElement("code",{style:i},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:a},n):null,o)}var SD=O.createElement(xD,null),WT=class extends O.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=pD(e.digest);n&&(e=n)}let t=e!==void 0?O.createElement(pr.Provider,{value:this.props.routeContext},O.createElement(Fb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?O.createElement(wD,{error:e},t):t}};WT.contextType=GT;var ay=new WeakMap;function wD({children:e,error:t}){let{basename:n}=O.useContext(Dn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=hD(t.digest);if(r){let a=ay.get(t);if(a)throw a;let i=qT(r.location,n);if(HT&&!ay.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 ay.set(t,o),o}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function jD({routeContext:e,match:t,children:n}){let r=O.useContext(ys);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(pr.Provider,{value:e},n)}function OD(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 d=a.findIndex(f=>f.route.id&&(i==null?void 0:i[f.route.id])!==void 0);at(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(l=d),f.route.id){let{loaderData:h,errors:p}=r,b=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.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?(d,f)=>{var h,p;s(d,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:oD(r.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,h)=>{let p,b=!1,v=null,x=null;r&&(p=i&&f.route.id?i[f.route.id]:void 0,v=f.route.errorElement||SD,o&&(l<0&&h===0?(ZT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,x=null):l===h&&(b=!0,x=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,h+1)),y=()=>{let g;return p?g=v:b?g=x:f.route.Component?g=O.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=d,O.createElement(jD,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:r!=null},children:g})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?O.createElement(WT,{location:r.location,revalidation:r.revalidation,component:v,error:p,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):y()},null)}function Gb(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function AD(e){let t=O.useContext(ys);return at(t,Gb(e)),t}function ED(e){let t=O.useContext(pp);return at(t,Gb(e)),t}function _D(e){let t=O.useContext(pr);return at(t,Gb(e)),t}function Kb(e){let t=_D(e),n=t.matches[t.matches.length-1];return at(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function TD(){return Kb("useRouteId")}function ND(){var r;let e=O.useContext(Fb),t=ED("useRouteError"),n=Kb("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function CD(){let{router:e}=AD("useNavigate"),t=Kb("useNavigate"),n=O.useRef(!1);return XT(()=>{n.current=!0}),O.useCallback(async(a,i={})=>{dr(n.current,VT),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var WS={};function ZT(e,t,n){!t&&!WS[e]&&(WS[e]=!0,dr(!1,n))}O.memo(MD);function MD({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return QT(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function JT({to:e,replace:t,state:n,relative:r}){at(vs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=O.useContext(Dn);dr(!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}=O.useContext(pr),{pathname:o}=Cr(),l=mp(),s=hp(e,qb(i),o,r==="path"),u=JSON.stringify(s);return O.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function RD(e){return gD(e.context)}function Ee(e){at(!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 PD({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:o}){at(!vs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=O.useMemo(()=>({basename:l,navigator:a,static:i,useTransitions:o,future:{}}),[l,a,i,o]);typeof n=="string"&&(n=ms(n));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default",mask:b}=n,v=O.useMemo(()=>{let x=fa(u,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:h,key:p,mask:b},navigationType:r}},[l,u,d,f,h,p,r,b]);return dr(v!=null,`<Router basename="${l}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:O.createElement(Dn.Provider,{value:s},O.createElement(Gc.Provider,{children:t,value:v}))}function $D({children:e,location:t}){return bD(Iv(e),t)}function Iv(e,t=[]){let n=[];return O.Children.forEach(e,(r,a)=>{if(!O.isValidElement(r))return;let i=[...t,a];if(r.type===O.Fragment){n.push.apply(n,Iv(r.props.children,i));return}at(r.type===Ee,`[${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>`),at(!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=Iv(r.props.children,i)),n.push(o)}),n}var rd="get",ad="application/x-www-form-urlencoded";function yp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function DD(e){return yp(e)&&e.tagName.toLowerCase()==="button"}function kD(e){return yp(e)&&e.tagName.toLowerCase()==="form"}function LD(e){return yp(e)&&e.tagName.toLowerCase()==="input"}function zD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function BD(e,t){return e.button===0&&(!t||t==="_self")&&!zD(e)}var Af=null;function ID(){if(Af===null)try{new FormData(document.createElement("form"),0),Af=!1}catch{Af=!0}return Af}var UD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function iy(e){return e!=null&&!UD.has(e)?(dr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ad}"`),null):e}function HD(e,t){let n,r,a,i,o;if(kD(e)){let l=e.getAttribute("action");r=l?fa(l,t):null,n=e.getAttribute("method")||rd,a=iy(e.getAttribute("enctype"))||ad,i=new FormData(e)}else if(DD(e)||LD(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?fa(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||rd,a=iy(e.getAttribute("formenctype"))||iy(l.getAttribute("enctype"))||ad,i=new FormData(l,e),!ID()){let{name:u,type:d,value:f}=e;if(d==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,f)}}else{if(yp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=rd,r=null,a=ad,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 Yb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function eN(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&&fa(a.pathname,t)==="/"?a.pathname=`${Ud(t)}/_root.${r}`:a.pathname=`${Ud(a.pathname)}.${r}`,a}async function qD(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 FD(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 GD(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await qD(i,n);return o.links?o.links():[]}return[]}));return XD(r.flat(1).filter(FD).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ZS(e,t,n,r,a,i){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var d;return n[u].pathname!==s.pathname||((d=n[u].route.path)==null?void 0:d.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 f;let d=r.routes[s.route.id];if(!d||!d.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:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function KD(e,t,{includeHydrateFallback:n}={}){return YD(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 YD(e){return[...new Set(e)]}function VD(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function XD(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(VD(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function Vb(){let e=O.useContext(ys);return Yb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function QD(){let e=O.useContext(pp);return Yb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Xb=O.createContext(void 0);Xb.displayName="FrameworkContext";function Qb(){let e=O.useContext(Xb);return Yb(e,"You must render this element inside a <HydratedRouter> element"),e}function WD(e,t){let n=O.useContext(Xb),[r,a]=O.useState(!1),[i,o]=O.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,h=O.useRef(null);O.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let v=m=>{m.forEach(y=>{o(y.isIntersecting)})},x=new IntersectionObserver(v,{threshold:.5});return h.current&&x.observe(h.current),()=>{x.disconnect()}}},[e]),O.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:Hs(l,p),onBlur:Hs(s,b),onMouseEnter:Hs(u,p),onMouseLeave:Hs(d,b),onTouchStart:Hs(f,p)}]:[!1,h,{}]}function Hs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ZD({page:e,...t}){let n=sD(),{router:r}=Vb(),a=O.useMemo(()=>zT(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?O.createElement(ek,{page:e,matches:a,...t}):O.createElement(tk,{page:e,matches:a,...t}):null}function JD(e){let{manifest:t,routeModules:n}=Qb(),[r,a]=O.useState([]);return O.useEffect(()=>{let i=!1;return GD(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function ek({page:e,matches:t,...n}){let r=Cr(),{future:a}=Qb(),{basename:i}=Vb(),o=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=eN(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,u=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?s=!0:u.push(d.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 O.createElement(O.Fragment,null,o.map(l=>O.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function tk({page:e,matches:t,...n}){let r=Cr(),{future:a,manifest:i,routeModules:o}=Qb(),{basename:l}=Vb(),{loaderData:s,matches:u}=QD(),d=O.useMemo(()=>ZS(e,t,u,i,r,"data"),[e,t,u,i,r]),f=O.useMemo(()=>ZS(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,x=!1;if(t.forEach(y=>{var S;let g=i.routes[y.route.id];!g||!g.hasLoader||(!d.some(w=>w.route.id===y.route.id)&&y.route.id in s&&((S=o[y.route.id])!=null&&S.shouldRevalidate)||g.hasClientLoader?x=!0:v.add(y.route.id))}),v.size===0)return[];let m=eN(e,l,a.v8_trailingSlashAwareDataRequests,"data");return x&&v.size>0&&m.searchParams.set("_routes",t.filter(y=>v.has(y.route.id)).map(y=>y.route.id).join(",")),[m.pathname+m.search]},[l,a.v8_trailingSlashAwareDataRequests,s,r,i,d,t,e,o]),p=O.useMemo(()=>KD(f,i),[f,i]),b=JD(f);return O.createElement(O.Fragment,null,h.map(v=>O.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),p.map(v=>O.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),b.map(({key:v,link:x})=>O.createElement("link",{key:v,nonce:n.nonce,...x,crossOrigin:x.crossOrigin??n.crossOrigin})))}function nk(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var rk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rk&&(window.__reactRouterVersion="7.17.0")}catch{}function ak({basename:e,children:t,useTransitions:n,window:r}){let a=O.useRef();a.current==null&&(a.current=$$({window:r,v5Compat:!0}));let i=a.current,[o,l]=O.useState({action:i.action,location:i.location}),s=O.useCallback(u=>{n===!1?l(u):O.startTransition(()=>l(u))},[n]);return O.useLayoutEffect(()=>i.listen(s),[i,s]),O.createElement(PD,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var tN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nN=O.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,mask:l,state:s,target:u,to:d,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:p,...b},v){let{basename:x,navigator:m,useTransitions:y}=O.useContext(Dn),g=typeof d=="string"&&tN.test(d),S=qT(d,x);d=S.to;let w=mD(d,{relative:a}),j=Cr(),A=null;if(l){let C=hp(l,[],j.mask?j.mask.pathname:"/",!0);x!=="/"&&(C.pathname=C.pathname==="/"?x:fr([x,C.pathname])),A=m.createHref(C)}let[E,_,N]=WD(r,b),k=lk(d,{replace:o,mask:l,state:s,target:u,preventScrollReset:f,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:y});function P(C){t&&t(C),C.defaultPrevented||k(C)}let B=!(S.isExternal||i),D=O.createElement("a",{...b,...N,href:(B?A:void 0)||S.absoluteURL||w,onClick:B?P:t,ref:nk(v,_),target:u,"data-discover":!g&&n==="render"?"true":void 0});return E&&!g?O.createElement(O.Fragment,null,D,O.createElement(ZD,{page:w})):D});nN.displayName="Link";var Uv=O.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:l,children:s,...u},d){let f=Kc(o,{relative:u.relative}),h=Cr(),p=O.useContext(pp),{navigator:b,basename:v}=O.useContext(Dn),x=p!=null&&dk(f)&&l===!0,m=b.encodeLocation?b.encodeLocation(f).pathname:f.pathname,y=h.pathname,g=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(y=y.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase()),g&&v&&(g=fa(g,v)||g);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let w=y===m||!a&&y.startsWith(m)&&y.charAt(S)==="/",j=g!=null&&(g===m||!a&&g.startsWith(m)&&g.charAt(m.length)==="/"),A={isActive:w,isPending:j,isTransitioning:x},E=w?t:void 0,_;typeof r=="function"?_=r(A):_=[r,w?"active":null,j?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let N=typeof i=="function"?i(A):i;return O.createElement(nN,{...u,"aria-current":E,className:_,ref:d,style:N,to:o,viewTransition:l},typeof s=="function"?s(A):s)});Uv.displayName="NavLink";var ik=O.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=rd,action:l,onSubmit:s,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h,...p},b)=>{let{useTransitions:v}=O.useContext(Dn),x=ck(),m=fk(l,{relative:u}),y=o.toLowerCase()==="get"?"get":"post",g=typeof l=="string"&&tN.test(l),S=w=>{if(s&&s(w),w.defaultPrevented)return;w.preventDefault();let j=w.nativeEvent.submitter,A=(j==null?void 0:j.getAttribute("formmethod"))||o,E=()=>x(j||w.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h});v&&n!==!1?O.startTransition(()=>E()):E()};return O.createElement("form",{ref:b,method:y,action:m,onSubmit:r?s:S,...p,"data-discover":!g&&e==="render"?"true":void 0})});ik.displayName="Form";function ok(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function rN(e){let t=O.useContext(ys);return at(t,ok(e)),t}function lk(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s,useTransitions:u}={}){let d=mp(),f=Cr(),h=Kc(e,{relative:o});return O.useCallback(p=>{if(BD(p,t)){p.preventDefault();let b=n!==void 0?n:Uu(f)===Uu(h),v=()=>d(e,{replace:b,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s});u?O.startTransition(()=>v()):v()}},[f,d,h,n,r,a,t,e,i,o,l,s,u])}var sk=0,uk=()=>`__${String(++sk)}__`;function ck(){let{router:e}=rN("useSubmit"),{basename:t}=O.useContext(Dn),n=TD(),r=e.fetch,a=e.navigate;return O.useCallback(async(i,o={})=>{let{action:l,method:s,encType:u,formData:d,body:f}=HD(i,t);if(o.navigate===!1){let h=o.fetcherKey||uk();await r(h,n,o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await a(o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:f,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 fk(e,{relative:t}={}){let{basename:n}=O.useContext(Dn),r=O.useContext(pr);at(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Kc(e||".",{relative:t})},o=Cr();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),s=l.getAll("index");if(s.some(d=>d==="")){l.delete("index"),s.filter(f=>f).forEach(f=>l.append("index",f));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:fr([n,i.pathname])),Uu(i)}function dk(e,{relative:t}={}){let n=O.useContext(KT);at(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rN("useViewTransitionState"),a=Kc(e,{relative:t});if(!n.isTransitioning)return!1;let i=fa(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=fa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Id(a.pathname,o)!=null||Id(a.pathname,i)!=null}var gs=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(){}},Di,Ma,cl,AA,hk=(AA=class extends gs{constructor(){super();re(this,Di);re(this,Ma);re(this,cl);V(this,cl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Ma)||this.setEventListener(T(this,cl))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ma))==null||t.call(this),V(this,Ma,void 0))}setEventListener(t){var n;V(this,cl,t),(n=T(this,Ma))==null||n.call(this),V(this,Ma,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Di)!==t&&(V(this,Di,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Di)=="boolean"?T(this,Di):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Di=new WeakMap,Ma=new WeakMap,cl=new WeakMap,AA),Wb=new hk,pk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ra,U0,EA,mk=(EA=class{constructor(){re(this,Ra,pk);re(this,U0,!1)}setTimeoutProvider(e){V(this,Ra,e)}setTimeout(e,t){return T(this,Ra).setTimeout(e,t)}clearTimeout(e){T(this,Ra).clearTimeout(e)}setInterval(e,t){return T(this,Ra).setInterval(e,t)}clearInterval(e){T(this,Ra).clearInterval(e)}},Ra=new WeakMap,U0=new WeakMap,EA),Ni=new mk;function yk(e){setTimeout(e,0)}var vk=typeof window>"u"||"Deno"in globalThis;function Wt(){}function gk(e,t){return typeof e=="function"?e(t):e}function Hv(e){return typeof e=="number"&&e>=0&&e!==1/0}function aN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ti(e,t){return typeof e=="function"?e(t):e}function jn(e,t){return typeof e=="function"?e(t):e}function JS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Zb(o,t.options))return!1}else if(!Hu(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 ew(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ro(t.options.mutationKey)!==ro(i))return!1}else if(!Hu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Zb(e,t){return((t==null?void 0:t.queryKeyHashFn)||ro)(e)}function ro(e){return JSON.stringify(e,(t,n)=>qv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Hu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Hu(e[n],t[n])):!1}var bk=Object.prototype.hasOwnProperty;function iN(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=tw(e)&&tw(t);if(!r&&!(qv(e)&&qv(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 d=0;d<l;d++){const f=r?d:o[d],h=e[f],p=t[f];if(h===p){s[f]=h,(r?d<i:bk.call(e,f))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){s[f]=p;continue}const b=iN(h,p,n+1);s[f]=b,b===h&&u++}return i===l&&u===i?e:s}function Hd(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 tw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qv(e){if(!nw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!nw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function nw(e){return Object.prototype.toString.call(e)==="[object Object]"}function xk(e){return new Promise(t=>{Ni.setTimeout(t,e)})}function Fv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?iN(e,t):t}function Sk(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function wk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Jb=Symbol();function oN(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Jb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ex(e,t){return typeof e=="function"?e(...t):!!e}function jk(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 qu=(()=>{let e=()=>vk;return{isServer(){return e()},setIsServer(t){e=t}}})();function Gv(){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 Ok=yk;function Ak(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=Ok;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 wt=Ak(),fl,Pa,dl,_A,Ek=(_A=class extends gs{constructor(){super();re(this,fl,!0);re(this,Pa);re(this,dl);V(this,dl,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,Pa)||this.setEventListener(T(this,dl))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Pa))==null||t.call(this),V(this,Pa,void 0))}setEventListener(t){var n;V(this,dl,t),(n=T(this,Pa))==null||n.call(this),V(this,Pa,t(this.setOnline.bind(this)))}setOnline(t){T(this,fl)!==t&&(V(this,fl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,fl)}},fl=new WeakMap,Pa=new WeakMap,dl=new WeakMap,_A),qd=new Ek;function _k(e){return Math.min(1e3*2**e,3e4)}function lN(e){return(e??"online")==="online"?qd.isOnline():!0}var Kv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function sN(e){let t=!1,n=0,r;const a=Gv(),i=()=>a.status!=="pending",o=v=>{var x;if(!i()){const m=new Kv(v);h(m),(x=e.onCancel)==null||x.call(e,m)}},l=()=>{t=!0},s=()=>{t=!1},u=()=>Wb.isFocused()&&(e.networkMode==="always"||qd.isOnline())&&e.canRun(),d=()=>lN(e.networkMode)&&e.canRun(),f=v=>{i()||(r==null||r(),a.resolve(v))},h=v=>{i()||(r==null||r(),a.reject(v))},p=()=>new Promise(v=>{var x;r=m=>{(i()||u())&&v(m)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(i())return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(f).catch(m=>{var j;if(i())return;const y=e.retry??(qu.isServer()?0:3),g=e.retryDelay??_k,S=typeof g=="function"?g(n,m):g,w=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,m);if(t||!w){h(m);return}n++,(j=e.onFail)==null||j.call(e,n,m),xk(S).then(()=>u()?void 0:p()).then(()=>{t?h(m):b()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(r==null||r(),a),cancelRetry:l,continueRetry:s,canStart:d,start:()=>(d()?b():p().then(b),a)}}var ki,TA,uN=(TA=class{constructor(){re(this,ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hv(this.gcTime)&&V(this,ki,Ni.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qu.isServer()?1/0:5*60*1e3))}clearGcTimeout(){T(this,ki)!==void 0&&(Ni.clearTimeout(T(this,ki)),V(this,ki,void 0))}},ki=new WeakMap,TA);function Tk(e){return{onFetch:(t,n)=>{var d,f,h,p,b;const r=t.options,a=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.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 x=g=>{jk(g,()=>t.signal,()=>v=!0)},m=oN(t.options,t.fetchOptions),y=async(g,S,w)=>{if(v)return Promise.reject(t.signal.reason);if(S==null&&g.pages.length)return Promise.resolve(g);const A=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:S,direction:w?"backward":"forward",meta:t.options.meta};return x(k),k})(),E=await m(A),{maxPages:_}=t.options,N=w?wk:Sk;return{pages:N(g.pages,E,_),pageParams:N(g.pageParams,S,_)}};if(a&&i.length){const g=a==="backward",S=g?Nk:rw,w={pages:i,pageParams:o},j=S(r,w);l=await y(w,j,g)}else{const g=e??i.length;do{const S=s===0?o[0]??r.initialPageParam:rw(r,l);if(s>0&&S==null)break;l=await y(l,S),s++}while(s<g)}return l};t.options.persister?t.fetchFn=()=>{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function rw(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 Nk(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 hl,Li,pl,Bn,zi,_t,Tc,Bi,wn,cN,Ir,NA,Ck=(NA=class extends uN{constructor(t){super();re(this,wn);re(this,hl);re(this,Li);re(this,pl);re(this,Bn);re(this,zi);re(this,_t);re(this,Tc);re(this,Bi);V(this,Bi,!1),V(this,Tc,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,zi,t.client),V(this,Bn,T(this,zi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,Li,iw(this.options)),this.state=t.state??T(this,Li),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,hl)}get promise(){var t;return(t=T(this,_t))==null?void 0:t.promise}setOptions(t){if(this.options={...T(this,Tc),...t},t!=null&&t._type&&V(this,hl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=iw(this.options);n.data!==void 0&&(this.setState(aw(n.data,n.dataUpdatedAt)),V(this,Li,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Bn).remove(this)}setData(t,n){const r=Fv(this.state.data,t,this.options);return he(this,wn,Ir).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){he(this,wn,Ir).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=T(this,_t))==null?void 0:r.promise;return(a=T(this,_t))==null||a.cancel(t),n?n.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,Li)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>jn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Jb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ti(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:!aN(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,_t))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,_t))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Bn).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,_t)&&(T(this,Bi)||he(this,wn,cN).call(this)?T(this,_t).cancel({revert:!0}):T(this,_t).cancelRetry()),this.scheduleGc()),T(this,Bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||he(this,wn,Ir).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,h,p,b,v,x,m,y,g;if(this.state.fetchStatus!=="idle"&&((u=T(this,_t))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,_t))return T(this,_t).continueRetry(),T(this,_t).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(w=>w.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,a=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(V(this,Bi,!0),r.signal)})},i=()=>{const S=oN(this.options,n),j=(()=>{const A={client:T(this,zi),queryKey:this.queryKey,meta:this.meta};return a(A),A})();return V(this,Bi,!1),this.options.persister?this.options.persister(S,j,this):S(j)},l=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,zi),state:this.state,fetchFn:i};return a(S),S})(),s=T(this,hl)==="infinite"?Tk(this.options.pages):this.options.behavior;s==null||s.onFetch(l,this),V(this,pl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&he(this,wn,Ir).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),V(this,_t,sN({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:S=>{S instanceof Kv&&S.revert&&this.setState({...T(this,pl),fetchStatus:"idle"}),r.abort()},onFail:(S,w)=>{he(this,wn,Ir).call(this,{type:"failed",failureCount:S,error:w})},onPause:()=>{he(this,wn,Ir).call(this,{type:"pause"})},onContinue:()=>{he(this,wn,Ir).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const S=await T(this,_t).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(h=T(this,Bn).config).onSuccess)==null||p.call(h,S,this),(v=(b=T(this,Bn).config).onSettled)==null||v.call(b,S,this.state.error,this),S}catch(S){if(S instanceof Kv){if(S.silent)return T(this,_t).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw he(this,wn,Ir).call(this,{type:"error",error:S}),(m=(x=T(this,Bn).config).onError)==null||m.call(x,S,this),(g=(y=T(this,Bn).config).onSettled)==null||g.call(y,this.state.data,S,this),S}finally{this.scheduleGc()}}},hl=new WeakMap,Li=new WeakMap,pl=new WeakMap,Bn=new WeakMap,zi=new WeakMap,_t=new WeakMap,Tc=new WeakMap,Bi=new WeakMap,wn=new WeakSet,cN=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ir=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,...fN(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...aw(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return V(this,pl,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),wt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Bn).notify({query:this,type:"updated",action:t})})},NA);function fN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aw(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function iw(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 sn,je,Nc,Xt,Ii,ml,qr,$a,Cc,yl,vl,Ui,Hi,Da,gl,Me,iu,Yv,Vv,Xv,Qv,Wv,Zv,Jv,dN,CA,Mk=(CA=class extends gs{constructor(t,n){super();re(this,Me);re(this,sn);re(this,je);re(this,Nc);re(this,Xt);re(this,Ii);re(this,ml);re(this,qr);re(this,$a);re(this,Cc);re(this,yl);re(this,vl);re(this,Ui);re(this,Hi);re(this,Da);re(this,gl,new Set);this.options=n,V(this,sn,t),V(this,$a,null),V(this,qr,Gv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,je).addObserver(this),ow(T(this,je),this.options)?he(this,Me,iu).call(this):this.updateResult(),he(this,Me,Qv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eg(T(this,je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eg(T(this,je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,he(this,Me,Wv).call(this),he(this,Me,Zv).call(this),T(this,je).removeObserver(this)}setOptions(t){const n=this.options,r=T(this,je);if(this.options=T(this,sn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof jn(this.options.enabled,T(this,je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");he(this,Me,Jv).call(this),T(this,je).setOptions(this.options),n._defaulted&&!Hd(this.options,n)&&T(this,sn).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,je),observer:this});const a=this.hasListeners();a&&lw(T(this,je),r,this.options,n)&&he(this,Me,iu).call(this),this.updateResult(),a&&(T(this,je)!==r||jn(this.options.enabled,T(this,je))!==jn(n.enabled,T(this,je))||ti(this.options.staleTime,T(this,je))!==ti(n.staleTime,T(this,je)))&&he(this,Me,Yv).call(this);const i=he(this,Me,Vv).call(this);a&&(T(this,je)!==r||jn(this.options.enabled,T(this,je))!==jn(n.enabled,T(this,je))||i!==T(this,Da))&&he(this,Me,Xv).call(this,i)}getOptimisticResult(t){const n=T(this,sn).getQueryCache().build(T(this,sn),t),r=this.createResult(n,t);return Pk(this,r)&&(V(this,Xt,r),V(this,ml,this.options),V(this,Ii,T(this,je).state)),r}getCurrentResult(){return T(this,Xt)}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,qr).status==="pending"&&T(this,qr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){T(this,gl).add(t)}getCurrentQuery(){return T(this,je)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,sn).defaultQueryOptions(t),r=T(this,sn).getQueryCache().build(T(this,sn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return he(this,Me,iu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Xt)))}createResult(t,n){var _;const r=T(this,je),a=this.options,i=T(this,Xt),o=T(this,Ii),l=T(this,ml),u=t!==r?t.state:T(this,Nc),{state:d}=t;let f={...d},h=!1,p;if(n._optimisticResults){const N=this.hasListeners(),k=!N&&ow(t,n),P=N&&lw(t,r,n,a);(k||P)&&(f={...f,...fN(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:x}=f;p=f.data;let m=!1;if(n.placeholderData!==void 0&&p===void 0&&x==="pending"){let N;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(N=i.data,m=!0):N=typeof n.placeholderData=="function"?n.placeholderData((_=T(this,vl))==null?void 0:_.state.data,T(this,vl)):n.placeholderData,N!==void 0&&(x="success",p=Fv(i==null?void 0:i.data,N,n),h=!0)}if(n.select&&p!==void 0&&!m)if(i&&p===(o==null?void 0:o.data)&&n.select===T(this,Cc))p=T(this,yl);else try{V(this,Cc,n.select),p=n.select(p),p=Fv(i==null?void 0:i.data,p,n),V(this,yl,p),V(this,$a,null)}catch(N){V(this,$a,N)}T(this,$a)&&(b=T(this,$a),p=T(this,yl),v=Date.now(),x="error");const y=f.fetchStatus==="fetching",g=x==="pending",S=x==="error",w=g&&y,j=p!==void 0,E={status:x,fetchStatus:f.fetchStatus,isPending:g,isSuccess:x==="success",isError:S,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!g,isLoadingError:S&&!j,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&j,isStale:tx(t,n),refetch:this.refetch,promise:T(this,qr),isEnabled:jn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=E.data!==void 0,k=E.status==="error"&&!N,P=C=>{k?C.reject(E.error):N&&C.resolve(E.data)},B=()=>{const C=V(this,qr,E.promise=Gv());P(C)},D=T(this,qr);switch(D.status){case"pending":t.queryHash===r.queryHash&&P(D);break;case"fulfilled":(k||E.data!==D.value)&&B();break;case"rejected":(!k||E.error!==D.reason)&&B();break}}return E}updateResult(){const t=T(this,Xt),n=this.createResult(T(this,je),this.options);if(V(this,Ii,T(this,je).state),V(this,ml,this.options),T(this,Ii).data!==void 0&&V(this,vl,T(this,je)),Hd(n,t))return;V(this,Xt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!T(this,gl).size)return!0;const o=new Set(i??T(this,gl));return this.options.throwOnError&&o.add("error"),Object.keys(T(this,Xt)).some(l=>{const s=l;return T(this,Xt)[s]!==t[s]&&o.has(s)})};he(this,Me,dN).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&he(this,Me,Qv).call(this)}},sn=new WeakMap,je=new WeakMap,Nc=new WeakMap,Xt=new WeakMap,Ii=new WeakMap,ml=new WeakMap,qr=new WeakMap,$a=new WeakMap,Cc=new WeakMap,yl=new WeakMap,vl=new WeakMap,Ui=new WeakMap,Hi=new WeakMap,Da=new WeakMap,gl=new WeakMap,Me=new WeakSet,iu=function(t){he(this,Me,Jv).call(this);let n=T(this,je).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Wt)),n},Yv=function(){he(this,Me,Wv).call(this);const t=ti(this.options.staleTime,T(this,je));if(qu.isServer()||T(this,Xt).isStale||!Hv(t))return;const r=aN(T(this,Xt).dataUpdatedAt,t)+1;V(this,Ui,Ni.setTimeout(()=>{T(this,Xt).isStale||this.updateResult()},r))},Vv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,je)):this.options.refetchInterval)??!1},Xv=function(t){he(this,Me,Zv).call(this),V(this,Da,t),!(qu.isServer()||jn(this.options.enabled,T(this,je))===!1||!Hv(T(this,Da))||T(this,Da)===0)&&V(this,Hi,Ni.setInterval(()=>{(this.options.refetchIntervalInBackground||Wb.isFocused())&&he(this,Me,iu).call(this)},T(this,Da)))},Qv=function(){he(this,Me,Yv).call(this),he(this,Me,Xv).call(this,he(this,Me,Vv).call(this))},Wv=function(){T(this,Ui)!==void 0&&(Ni.clearTimeout(T(this,Ui)),V(this,Ui,void 0))},Zv=function(){T(this,Hi)!==void 0&&(Ni.clearInterval(T(this,Hi)),V(this,Hi,void 0))},Jv=function(){const t=T(this,sn).getQueryCache().build(T(this,sn),this.options);if(t===T(this,je))return;const n=T(this,je);V(this,je,t),V(this,Nc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},dN=function(t){wt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,Xt))}),T(this,sn).getQueryCache().notify({query:T(this,je),type:"observerResultsUpdated"})})},CA);function Rk(e,t){return jn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&jn(t.retryOnMount,e)===!1)}function ow(e,t){return Rk(e,t)||e.state.data!==void 0&&eg(e,t,t.refetchOnMount)}function eg(e,t,n){if(jn(t.enabled,e)!==!1&&ti(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&tx(e,t)}return!1}function lw(e,t,n,r){return(e!==t||jn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&tx(e,n)}function tx(e,t){return jn(t.enabled,e)!==!1&&e.isStaleByTime(ti(t.staleTime,e))}function Pk(e,t){return!Hd(e.getCurrentResult(),t)}var Mc,vr,Ft,qi,gr,wa,MA,$k=(MA=class extends uN{constructor(t){super();re(this,gr);re(this,Mc);re(this,vr);re(this,Ft);re(this,qi);V(this,Mc,t.client),this.mutationId=t.mutationId,V(this,Ft,t.mutationCache),V(this,vr,[]),this.state=t.state||hN(),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,vr).includes(t)||(T(this,vr).push(t),this.clearGcTimeout(),T(this,Ft).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,vr,T(this,vr).filter(n=>n!==t)),this.scheduleGc(),T(this,Ft).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,vr).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ft).remove(this))}continue(){var t;return((t=T(this,qi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,s,u,d,f,h,p,b,v,x,m,y,g,S,w,j,A;const n=()=>{he(this,gr,wa).call(this,{type:"continue"})},r={client:T(this,Mc),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,qi,sN({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,_)=>{he(this,gr,wa).call(this,{type:"failed",failureCount:E,error:_})},onPause:()=>{he(this,gr,wa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ft).canRun(this)}));const a=this.state.status==="pending",i=!T(this,qi).canStart();try{if(a)n();else{he(this,gr,wa).call(this,{type:"pending",variables:t,isPaused:i}),T(this,Ft).config.onMutate&&await T(this,Ft).config.onMutate(t,this,r);const _=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,r));_!==this.state.context&&he(this,gr,wa).call(this,{type:"pending",context:_,variables:t,isPaused:i})}const E=await T(this,qi).start();return await((u=(s=T(this,Ft).config).onSuccess)==null?void 0:u.call(s,E,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,E,t,this.state.context,r)),await((p=(h=T(this,Ft).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)),he(this,gr,wa).call(this,{type:"success",data:E}),E}catch(E){try{await((m=(x=T(this,Ft).config).onError)==null?void 0:m.call(x,E,t,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((g=(y=this.options).onError)==null?void 0:g.call(y,E,t,this.state.context,r))}catch(_){Promise.reject(_)}try{await((w=(S=T(this,Ft).config).onSettled)==null?void 0:w.call(S,void 0,E,this.state.variables,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((A=(j=this.options).onSettled)==null?void 0:A.call(j,void 0,E,t,this.state.context,r))}catch(_){Promise.reject(_)}throw he(this,gr,wa).call(this,{type:"error",error:E}),E}finally{T(this,Ft).runNext(this)}}},Mc=new WeakMap,vr=new WeakMap,Ft=new WeakMap,qi=new WeakMap,gr=new WeakSet,wa=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),wt.batch(()=>{T(this,vr).forEach(r=>{r.onMutationUpdate(t)}),T(this,Ft).notify({mutation:this,type:"updated",action:t})})},MA);function hN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fr,or,Rc,RA,Dk=(RA=class extends gs{constructor(t={}){super();re(this,Fr);re(this,or);re(this,Rc);this.config=t,V(this,Fr,new Set),V(this,or,new Map),V(this,Rc,0)}build(t,n,r){const a=new $k({client:t,mutationCache:this,mutationId:++lf(this,Rc)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){T(this,Fr).add(t);const n=Ef(t);if(typeof n=="string"){const r=T(this,or).get(n);r?r.push(t):T(this,or).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Fr).delete(t)){const n=Ef(t);if(typeof n=="string"){const r=T(this,or).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,or).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ef(t);if(typeof n=="string"){const r=T(this,or).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=Ef(t);if(typeof n=="string"){const a=(r=T(this,or).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(){wt.batch(()=>{T(this,Fr).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Fr).clear(),T(this,or).clear()})}getAll(){return Array.from(T(this,Fr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ew(n,r))}findAll(t={}){return this.getAll().filter(n=>ew(t,n))}notify(t){wt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return wt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Wt))))}},Fr=new WeakMap,or=new WeakMap,Rc=new WeakMap,RA);function Ef(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Gr,ka,un,Kr,ia,id,tg,PA,kk=(PA=class extends gs{constructor(n,r){super();re(this,ia);re(this,Gr);re(this,ka);re(this,un);re(this,Kr);V(this,Gr,n),this.setOptions(r),this.bindMethods(),he(this,ia,id).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,Gr).defaultMutationOptions(n),Hd(this.options,r)||T(this,Gr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,un),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ro(r.mutationKey)!==ro(this.options.mutationKey)?this.reset():((a=T(this,un))==null?void 0:a.state.status)==="pending"&&T(this,un).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=T(this,un))==null||n.removeObserver(this)}onMutationUpdate(n){he(this,ia,id).call(this),he(this,ia,tg).call(this,n)}getCurrentResult(){return T(this,ka)}reset(){var n;(n=T(this,un))==null||n.removeObserver(this),V(this,un,void 0),he(this,ia,id).call(this),he(this,ia,tg).call(this)}mutate(n,r){var a;return V(this,Kr,r),(a=T(this,un))==null||a.removeObserver(this),V(this,un,T(this,Gr).getMutationCache().build(T(this,Gr),this.options)),T(this,un).addObserver(this),T(this,un).execute(n)}},Gr=new WeakMap,ka=new WeakMap,un=new WeakMap,Kr=new WeakMap,ia=new WeakSet,id=function(){var r;const n=((r=T(this,un))==null?void 0:r.state)??hN();V(this,ka,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},tg=function(n){wt.batch(()=>{var r,a,i,o,l,s,u,d;if(T(this,Kr)&&this.hasListeners()){const f=T(this,ka).variables,h=T(this,ka).context,p={client:T(this,Gr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=T(this,Kr)).onSuccess)==null||a.call(r,n.data,f,h,p)}catch(b){Promise.reject(b)}try{(o=(i=T(this,Kr)).onSettled)==null||o.call(i,n.data,null,f,h,p)}catch(b){Promise.reject(b)}}else if((n==null?void 0:n.type)==="error"){try{(s=(l=T(this,Kr)).onError)==null||s.call(l,n.error,f,h,p)}catch(b){Promise.reject(b)}try{(d=(u=T(this,Kr)).onSettled)==null||d.call(u,void 0,n.error,f,h,p)}catch(b){Promise.reject(b)}}}this.listeners.forEach(f=>{f(T(this,ka))})})},PA),br,$A,Lk=($A=class extends gs{constructor(t={}){super();re(this,br);this.config=t,V(this,br,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??Zb(a,n);let o=this.get(i);return o||(o=new Ck({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){T(this,br).has(t.queryHash)||(T(this,br).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,br).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,br).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){wt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,br).get(t)}getAll(){return[...T(this,br).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>JS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>JS(t,r)):n}notify(t){wt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){wt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){wt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},br=new WeakMap,$A),lt,La,za,bl,xl,Ba,Sl,wl,DA,zk=(DA=class{constructor(e={}){re(this,lt);re(this,La);re(this,za);re(this,bl);re(this,xl);re(this,Ba);re(this,Sl);re(this,wl);V(this,lt,e.queryCache||new Lk),V(this,La,e.mutationCache||new Dk),V(this,za,e.defaultOptions||{}),V(this,bl,new Map),V(this,xl,new Map),V(this,Ba,0)}mount(){lf(this,Ba)._++,T(this,Ba)===1&&(V(this,Sl,Wb.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,lt).onFocus())})),V(this,wl,qd.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,lt).onOnline())})))}unmount(){var e,t;lf(this,Ba)._--,T(this,Ba)===0&&((e=T(this,Sl))==null||e.call(this),V(this,Sl,void 0),(t=T(this,wl))==null||t.call(this),V(this,wl,void 0))}isFetching(e){return T(this,lt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,La).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,lt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,lt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ti(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,lt).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,lt).get(r.queryHash),i=a==null?void 0:a.state.data,o=gk(t,i);if(o!==void 0)return T(this,lt).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return wt.batch(()=>T(this,lt).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,lt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,lt);wt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,lt);return wt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=wt.batch(()=>T(this,lt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Wt).catch(Wt)}invalidateQueries(e,t={}){return wt.batch(()=>(T(this,lt).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=wt.batch(()=>T(this,lt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Wt)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Wt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,lt).build(this,t);return n.isStaleByTime(ti(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Wt).catch(Wt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wt).catch(Wt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return qd.isOnline()?T(this,La).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,lt)}getMutationCache(){return T(this,La)}getDefaultOptions(){return T(this,za)}setDefaultOptions(e){V(this,za,e)}setQueryDefaults(e,t){T(this,bl).set(ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,bl).values()],n={};return t.forEach(r=>{Hu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,xl).set(ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,xl).values()],n={};return t.forEach(r=>{Hu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,za).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zb(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===Jb&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,za).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,lt).clear(),T(this,La).clear()}},lt=new WeakMap,La=new WeakMap,za=new WeakMap,bl=new WeakMap,xl=new WeakMap,Ba=new WeakMap,Sl=new WeakMap,wl=new WeakMap,DA),pN=O.createContext(void 0),rn=e=>{const t=O.useContext(pN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bk=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(pN.Provider,{value:e,children:t})),mN=O.createContext(!1),Ik=()=>O.useContext(mN);mN.Provider;function Uk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Hk=O.createContext(Uk()),qk=()=>O.useContext(Hk),Fk=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?ex(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Gk=e=>{O.useEffect(()=>{e.clearReset()},[e])},Kk=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||ex(n,[e.error,r])),Yk=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))}},Vk=(e,t)=>e.isLoading&&e.isFetching&&!t,Xk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Qk(e,t,n){var p,b,v,x;const r=Ik(),a=qk(),i=rn(),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,Yk(o),Fk(o,a,l),Gk(a);const u=!i.getQueryCache().get(o.queryHash),[d]=O.useState(()=>new t(i,o)),f=d.getOptimisticResult(o),h=!r&&s;if(O.useSyncExternalStore(O.useCallback(m=>{const y=h?d.subscribe(wt.batchCalls(m)):Wt;return d.updateResult(),y},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),O.useEffect(()=>{d.setOptions(o)},[o,d]),Xk(o,f))throw sw(o,d,a);if(Kk({result:f,errorResetBoundary:a,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw f.error;if((x=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||x.call(v,o,f),o.experimental_prefetchInRender&&!qu.isServer()&&Vk(f,r)){const m=u?sw(o,d,a):l==null?void 0:l.promise;m==null||m.catch(Wt).finally(()=>{d.updateResult()})}return o.notifyOnChangeProps?f:d.trackResult(f)}function Vt(e,t){return Qk(e,Mk)}function it(e,t){const n=rn(),[r]=O.useState(()=>new kk(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const a=O.useSyncExternalStore(O.useCallback(o=>r.subscribe(wt.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=O.useCallback((o,l)=>{r.mutate(o,l).catch(Wt)},[r]);if(a.error&&ex(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 Wk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yN=(...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 Zk={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 Jk=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},s)=>O.createElement("svg",{ref:s,...Zk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yN("lucide",a),...l},[...o.map(([u,d])=>O.createElement(u,d)),...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 ne=(e,t)=>{const n=O.forwardRef(({className:r,...a},i)=>O.createElement(Jk,{ref:i,iconNode:t,className:yN(`lucide-${Wk(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 e5=ne("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 vN=ne("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 gN=ne("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 bN=ne("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 t5=ne("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
 * @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 xN=ne("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 n5=ne("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 r5=ne("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @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 a5=ne("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 nx=ne("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 i5=ne("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 o5=ne("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 l5=ne("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 s5=ne("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 u5=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @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 $l=ne("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 c5=ne("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @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 f5=ne("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @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 d5=ne("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 h5=ne("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
 * @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 SN=ne("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
 * @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 p5=ne("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
 * @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 m5=ne("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 y5=ne("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 wN=ne("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 v5=ne("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 g5=ne("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]);/**
 * @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 b5=ne("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 x5=ne("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 S5=ne("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 w5=ne("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
 * @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 j5=ne("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 O5=ne("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 A5=ne("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
 * @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 bs=ne("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 vp=ne("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 E5=ne("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
 * @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 _5=ne("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 ng=ne("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 T5=ne("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
 * @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 N5=ne("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 C5=ne("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @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 M5=ne("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
 * @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 rg=ne("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @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 jN=ne("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @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 Yc=ne("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 R5=ne("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 ag=ne("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 P5=ne("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 $5=ne("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
 * @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 D5=ne("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
 * @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 vo=ne("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 Fu=ne("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 k5=ne("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 L5=ne("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 ON=ne("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 AN=ne("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 xs=ne("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 ig=ne("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"}]]),z5=[{to:"/dashboard",icon:m5,label:"대시보드"},{to:"/stores",icon:ag,label:"매장 관리"},{to:"/templates",icon:d5,label:"ESL 템플릿"},{to:"/pos-cvt",icon:vp,label:"POS 가격변환"},{to:"/tag-binding",icon:wN,label:"태그 바인딩"},{to:"/update-queue",icon:v5,label:"업데이트 큐"},{to:"/alarms",icon:gN,label:"알람 관리"},{to:"/hcore",icon:$l,label:"HCore 장치"},{to:"/works",icon:l5,label:"작업 이력"},{to:"/firmware",icon:ig,label:"펌웨어"},{to:"/products",icon:O5,label:"상품/가격"},{to:"/users",icon:L5,label:"사용자"},{to:"/tenants",icon:xN,label:"테넌트 관리"},{to:"/audit",icon:_5,label:"감사 로그"},{to:"/settings",icon:N5,label:"시스템 설정"},{to:"/ai",icon:bN,label:"AI 분석"},{to:"/ai-techniques",icon:jN,label:"AI 기법 설정"},{to:"/ai-platform",icon:$l,label:"AI 플랫폼 설정"},{to:"/worklogs",icon:j5,label:"업무일지"},{to:"/schedules",icon:n5,label:"일정 관리"},{to:"/messages",icon:x5,label:"쪽지"},{to:"/work-stats",icon:e5,label:"업무 통계"},{to:"/mobile-app",icon:rg,label:"모바일 앱 설치"}],B5=[{to:"/system/roles",icon:C5,label:"권한 관리"},{to:"/system/role-menus",icon:SN,label:"역할-메뉴 권한"},{to:"/system/menus",icon:g5,label:"메뉴 관리"},{to:"/system/codes",icon:w5,label:"공통코드 관리"},{to:"/system/depts",icon:h5,label:"부서 관리"},{to:"/system/companies",icon:t5,label:"거래처 관리"}];function I5(){const e=(localStorage.getItem("esn_role")||"")==="ADMIN";return c.jsxs("aside",{className:"w-56 bg-panel flex flex-col border-r border-edge flex-shrink-0",children:[c.jsxs("div",{className:"h-14 flex items-center px-4 border-b border-edge",children:[c.jsx("span",{className:"text-brand font-bold text-sm tracking-wide",children:"ESN"}),c.jsx("span",{className:"ml-2 text-xs text-gray-400",children:"ESL 통합 관리"})]}),c.jsxs("nav",{className:"flex-1 overflow-y-auto py-3",children:[z5.map(({to:t,icon:n,label:r})=>c.jsxs(Uv,{to:t,className:({isActive:a})=>`flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${a?"bg-brand/15 text-brand border-r-2 border-brand":"text-gray-400 hover:text-white hover:bg-edge/50"}`,children:[c.jsx(n,{size:16}),r]},t)),e&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"mt-3 px-4 pt-3 pb-1 border-t border-edge text-[10px] font-semibold tracking-wide text-gray-500 uppercase",children:"시스템관리 (권한)"}),B5.map(({to:t,icon:n,label:r})=>c.jsxs(Uv,{to:t,className:({isActive:a})=>`flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${a?"bg-brand/15 text-brand border-r-2 border-brand":"text-gray-400 hover:text-white hover:bg-edge/50"}`,children:[c.jsx(n,{size:16}),r]},t))]})]}),c.jsx("div",{className:"p-4 border-t border-edge text-xs text-gray-500",children:"zioinfo-esn v1.0"})]})}function U5(){const e=mp(),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 c.jsxs("header",{className:"h-14 bg-panel border-b border-edge flex items-center px-6 gap-4 flex-shrink-0",children:[c.jsx("div",{className:"flex-1"}),c.jsxs("span",{className:"text-xs text-gray-400",children:["테넌트: ",c.jsx("span",{className:"text-brand",children:r})]}),c.jsx("span",{className:"text-xs text-gray-400",children:"|"}),c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[c.jsx(k5,{size:14}),c.jsx("span",{children:t}),c.jsx("span",{className:"text-xs text-brand bg-brand/10 px-2 py-0.5 rounded",children:n})]}),c.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-gray-400 hover:text-white text-sm",children:[c.jsx(b5,{size:14}),"로그아웃"]})]})}function EN(e,t){return function(){return e.apply(t,arguments)}}const{toString:H5}=Object.prototype,{getPrototypeOf:Dl}=Object,{iterator:Vc,toStringTag:_N}=Symbol,Fd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gu=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Fd(n,t))return!0;n=Dl(n)}return!1},q5=(e,t)=>e!=null&&Gu(e,t)?e[t]:void 0,rx=(e=>t=>{const n=H5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mr=e=>(e=e.toLowerCase(),t=>rx(t)===e),gp=e=>t=>typeof t===e,{isArray:ao}=Array,kl=gp("undefined");function Ss(e){return e!==null&&!kl(e)&&e.constructor!==null&&!kl(e.constructor)&&pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const TN=mr("ArrayBuffer");function F5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&TN(e.buffer),t}const G5=gp("string"),pn=gp("function"),NN=gp("number"),ws=e=>e!==null&&typeof e=="object",K5=e=>e===!0||e===!1,od=e=>{if(!ws(e))return!1;const t=Dl(e);return(t===null||t===Object.prototype||Dl(t)===null)&&!Gu(e,_N)&&!Gu(e,Vc)},Y5=e=>{if(!ws(e)||Ss(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},V5=mr("Date"),X5=mr("File"),Q5=e=>!!(e&&typeof e.uri<"u"),W5=e=>e&&typeof e.getParts<"u",Z5=mr("Blob"),J5=mr("FileList"),eL=e=>ws(e)&&pn(e.pipe);function tL(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const uw=tL(),cw=typeof uw.FormData<"u"?uw.FormData:void 0,nL=e=>{if(!e)return!1;if(cw&&e instanceof cw)return!0;const t=Dl(e);if(!t||t===Object.prototype||!pn(e.append))return!1;const n=rx(e);return n==="formdata"||n==="object"&&pn(e.toString)&&e.toString()==="[object FormData]"},rL=mr("URLSearchParams"),[aL,iL,oL,lL]=["ReadableStream","Request","Response","Headers"].map(mr),sL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ao(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Ss(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 CN(e,t){if(Ss(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 Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,MN=e=>!kl(e)&&e!==Ci;function og(...e){const{caseless:t,skipUndefined:n}=MN(this)&&this||{},r={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&CN(r,o)||o,s=Fd(r,l)?r[l]:void 0;od(s)&&od(i)?r[l]=og(s,i):od(i)?r[l]=og({},i):ao(i)?r[l]=i.slice():(!n||!kl(i))&&(r[l]=i)};for(let i=0,o=e.length;i<o;i++){const l=e[i];if(!l||Ss(l)||(Xc(l,a),typeof l!="object"||ao(l)))continue;const s=Object.getOwnPropertySymbols(l);for(let u=0;u<s.length;u++){const d=s[u];xL.call(l,d)&&a(l[d],d)}}return r}const uL=(e,t,n,{allOwnKeys:r}={})=>(Xc(t,(a,i)=>{n&&pn(a)?Object.defineProperty(e,i,{__proto__:null,value:EN(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),cL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fL=(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)},dL=(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&&Dl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hL=(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},pL=e=>{if(!e)return null;if(ao(e))return e;let t=e.length;if(!NN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dl(Uint8Array)),yL=(e,t)=>{const r=(e&&e[Vc]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},vL=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gL=mr("HTMLFormElement"),bL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:xL}=Object.prototype,SL=mr("RegExp"),RN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Xc(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},wL=e=>{RN(e,(t,n)=>{if(pn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(pn(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+"'")})}})},jL=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ao(e)?r(e):r(String(e).split(t)),n},OL=()=>{},AL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function EL(e){return!!(e&&pn(e.append)&&e[_N]==="FormData"&&e[Vc])}const _L=e=>{const t=new WeakSet,n=r=>{if(ws(r)){if(t.has(r))return;if(Ss(r))return r;if(!("toJSON"in r)){t.add(r);const a=ao(r)?[]:{};return Xc(r,(i,o)=>{const l=n(i);!kl(l)&&(a[o]=l)}),t.delete(r),a}}return r};return n(e)},TL=mr("AsyncFunction"),NL=e=>e&&(ws(e)||pn(e))&&pn(e.then)&&pn(e.catch),PN=((e,t)=>e?setImmediate:t?((n,r)=>(Ci.addEventListener("message",({source:a,data:i})=>{a===Ci&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ci.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pn(Ci.postMessage)),CL=typeof queueMicrotask<"u"?queueMicrotask.bind(Ci):typeof process<"u"&&process.nextTick||PN,$N=e=>e!=null&&pn(e[Vc]),ML=e=>e!=null&&Gu(e,Vc)&&$N(e),M={isArray:ao,isArrayBuffer:TN,isBuffer:Ss,isFormData:nL,isArrayBufferView:F5,isString:G5,isNumber:NN,isBoolean:K5,isObject:ws,isPlainObject:od,isEmptyObject:Y5,isReadableStream:aL,isRequest:iL,isResponse:oL,isHeaders:lL,isUndefined:kl,isDate:V5,isFile:X5,isReactNativeBlob:Q5,isReactNative:W5,isBlob:Z5,isRegExp:SL,isFunction:pn,isStream:eL,isURLSearchParams:rL,isTypedArray:mL,isFileList:J5,forEach:Xc,merge:og,extend:uL,trim:sL,stripBOM:cL,inherits:fL,toFlatObject:dL,kindOf:rx,kindOfTest:mr,endsWith:hL,toArray:pL,forEachEntry:yL,matchAll:vL,isHTMLForm:gL,hasOwnProperty:Fd,hasOwnProp:Fd,hasOwnInPrototypeChain:Gu,getSafeProp:q5,reduceDescriptors:RN,freezeMethods:wL,toObjectSet:jL,toCamelCase:bL,noop:OL,toFiniteNumber:AL,findKey:CN,global:Ci,isContextDefined:MN,isSpecCompliantForm:EL,toJSONObject:_L,isAsyncFn:TL,isThenable:NL,setImmediate:PN,asap:CL,isIterable:$N,isSafeIterable:ML},RL=M.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"]),PL=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]&&RL[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function $L(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 DL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),kL=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ax(e,t){return M.isArray(e)?e.map(n=>ax(n,t)):$L(String(e).replace(t,""))}const LL=e=>ax(e,DL),zL=e=>ax(e,kL);function DN(e){const t=Object.create(null);return M.forEach(e.toJSON(),(n,r)=>{t[r]=zL(n)}),t}const fw=Symbol("internals");function qs(e){return e&&String(e).trim().toLowerCase()}function ld(e){return e===!1||e==null?e:M.isArray(e)?e.map(ld):LL(String(e))}function BL(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 IL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oy(e,t,n,r,a){if(M.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function UL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function HL(e,t){const n=M.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 Yt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const d=qs(s);if(!d)return;const f=M.findKey(a,d);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=ld(l))}const o=(l,s)=>M.forEach(l,(u,d)=>i(u,d,s));if(M.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(M.isString(t)&&(t=t.trim())&&!IL(t))o(PL(t),n);else if(M.isObject(t)&&M.isSafeIterable(t)){let l=Object.create(null),s,u;for(const d of t){if(!M.isArray(d))throw new TypeError("Object iterator must return a key-value pair");u=d[0],M.hasOwnProp(l,u)?(s=l[u],l[u]=M.isArray(s)?[...s,d[1]]:[s,d[1]]):l[u]=d[1]}o(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=qs(t),t){const r=M.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return BL(a);if(M.isFunction(n))return n.call(this,a,r);if(M.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qs(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||oy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=qs(o),o){const l=M.findKey(r,o);l&&(!n||oy(r,r[l],l,n))&&(delete r[l],a=!0)}}return M.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||oy(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return M.forEach(this,(a,i)=>{const o=M.findKey(r,i);if(o){n[o]=ld(a),delete n[i];return}const l=t?UL(i):String(i).trim();l!==i&&delete n[i],n[l]=ld(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&M.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[fw]=this[fw]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=qs(o);r[l]||(HL(a,o),r[l]=!0)}return M.isArray(t)?t.forEach(i):i(t),this}};Yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Yt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(Yt);const qL="[REDACTED ****]";function FL(e){if(M.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(M.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function GL(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||M.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Yt&&(i=i.toJSON()),r.push(i);let o;if(M.isArray(i))o=[],i.forEach((l,s)=>{const u=a(l);M.isUndefined(u)||(o[s]=u)});else{if(!M.isPlainObject(i)&&FL(i))return r.pop(),i;o=Object.create(null);for(const[l,s]of Object.entries(i)){const u=n.has(l.toLowerCase())?qL:a(s);M.isUndefined(u)||(o[l]=u)}}return r.pop(),o};return a(e)}let W=class kN extends Error{static from(t,n,r,a,i,o){const l=new kN(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&&M.hasOwnProp(t,"redact")?t.redact:void 0,r=M.isArray(n)&&n.length>0?GL(t,n):M.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}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ECONNREFUSED="ECONNREFUSED";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";W.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const KL=null,LN=100;function lg(e){return M.isPlainObject(e)||M.isArray(e)}function zN(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function ly(e,t,n){return e?e.concat(t).map(function(a,i){return a=zN(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function YL(e){return M.isArray(e)&&!e.some(lg)}const VL=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function bp(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!M.isUndefined(g[y])});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?LN:n.maxDepth,u=l&&M.isSpecCompliantForm(t),d=[];if(!M.isFunction(a))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(M.isBoolean(m))return m.toString();if(!u&&M.isBlob(m))throw new W("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m){if(m>s)throw new W("Object is too deeply nested ("+m+" levels). Max depth: "+s,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(m,y){if(s===1/0)return JSON.stringify(m);const g=[];return JSON.stringify(m,function(w,j){if(!M.isObject(j))return j;for(;g.length&&g[g.length-1]!==this;)g.pop();return g.push(j),h(y+g.length-1),j})}function b(m,y,g){let S=m;if(M.isReactNative(t)&&M.isReactNativeBlob(m))return t.append(ly(g,y,i),f(m)),!1;if(m&&!g&&typeof m=="object"){if(M.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=p(m,1);else if(M.isArray(m)&&YL(m)||(M.isFileList(m)||M.endsWith(y,"[]"))&&(S=M.toArray(m)))return y=zN(y),S.forEach(function(j,A){!(M.isUndefined(j)||j===null)&&t.append(o===!0?ly([y],A,i):o===null?y:y+"[]",f(j))}),!1}return lg(m)?!0:(t.append(ly(g,y,i),f(m)),!1)}const v=Object.assign(VL,{defaultVisitor:b,convertValue:f,isVisitable:lg});function x(m,y,g=0){if(!M.isUndefined(m)){if(h(g),d.indexOf(m)!==-1)throw new Error("Circular reference detected in "+y.join("."));d.push(m),M.forEach(m,function(w,j){(!(M.isUndefined(w)||w===null)&&a.call(t,w,M.isString(j)?j.trim():j,y,v))===!0&&x(w,y?y.concat(j):[j],g+1)}),d.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return x(e),t}function dw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function ix(e,t){this._pairs=[],e&&bp(e,this,t)}const BN=ix.prototype;BN.append=function(t,n){this._pairs.push([t,n])};BN.toString=function(t){const n=t?function(r){return t.call(this,r,dw)}:dw;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function XL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function IN(e,t,n){if(!t)return e;const r=M.isFunction(n)?{serialize:n}:n,a=M.getSafeProp(r,"encode")||XL,i=M.getSafeProp(r,"serialize");let o;if(i?o=i(t,r):o=M.isURLSearchParams(t)?t.toString():new ix(t,r).toString(a),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class hw{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){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ox={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},QL=typeof URLSearchParams<"u"?URLSearchParams:ix,WL=typeof FormData<"u"?FormData:null,ZL=typeof Blob<"u"?Blob:null,JL={isBrowser:!0,classes:{URLSearchParams:QL,FormData:WL,Blob:ZL},protocols:["http","https","file","blob","url","data"]},lx=typeof window<"u"&&typeof document<"u",sg=typeof navigator=="object"&&navigator||void 0,e6=lx&&(!sg||["ReactNative","NativeScript","NS"].indexOf(sg.product)<0),t6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",n6=lx&&window.location.href||"http://localhost",r6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lx,hasStandardBrowserEnv:e6,hasStandardBrowserWebWorkerEnv:t6,navigator:sg,origin:n6},Symbol.toStringTag,{value:"Module"})),It={...r6,...JL};function a6(e,t){return bp(e,new It.classes.URLSearchParams,{visitor:function(n,r,a,i){return It.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const pw=LN;function UN(e){if(e>pw)throw new W("FormData field is too deeply nested ("+e+" levels). Max depth: "+pw,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function i6(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)UN(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function o6(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 HN(e){function t(n,r,a,i){UN(i);let o=n[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=i>=n.length;return o=!o&&M.isArray(a)?a.length:o,s?(M.hasOwnProp(a,o)?a[o]=M.isArray(a[o])?a[o].concat(r):[a[o],r]:a[o]=r,!l):((!M.hasOwnProp(a,o)||!M.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&M.isArray(a[o])&&(a[o]=o6(a[o])),!l)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,a)=>{t(i6(r),a,n,0)}),n}return null}const _o=(e,t)=>e!=null&&M.hasOwnProp(e,t)?e[t]:void 0;function l6(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qc={transitional:ox,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=M.isObject(t);if(i&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return a?JSON.stringify(HN(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const s=_o(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return a6(t,s).toString();if((l=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=_o(this,"env"),d=u&&u.FormData;return bp(l?{"files[]":t}:t,d&&new d,s)}}return i||a?(n.setContentType("application/json",!1),l6(t)):t}],transformResponse:[function(t){const n=_o(this,"transitional")||Qc.transitional,r=n&&n.forcedJSONParsing,a=_o(this,"responseType"),i=a==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(r&&!a||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,_o(this,"parseReviver"))}catch(s){if(l)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,_o(this,"response")):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch","query"],e=>{Qc.headers[e]={}});function sy(e,t){const n=this||Qc,r=t||n,a=Yt.from(r.headers);let i=r.data;return M.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function qN(e){return!!(e&&e.__CANCEL__)}let Wc=class extends W{constructor(t,n,r){super(t??"canceled",W.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function FN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,n.status>=400&&n.status<500?W.ERR_BAD_REQUEST:W.ERR_BAD_RESPONSE,n.config,n.request,n))}function s6(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function u6(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(),d=r[i];o||(o=u),n[a]=s,r[a]=u;let f=i,h=0;for(;f!==a;)h+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const p=d&&u-d;return p?Math.round(h*1e3/p):void 0}}function c6(e,t){let n=0,r=1e3/t,a,i;const o=(u,d=Date.now())=>{n=d,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?o(u,d):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-f)))},()=>a&&o(a)]}const Gd=(e,t,n=3)=>{let r=0;const a=u6(50,250);return c6(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),d=a(u);r=Math.max(r,s);const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l?(l-s)/d:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},mw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},yw=e=>(...t)=>M.asap(()=>e(...t)),f6=It.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,It.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,d6=It.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];M.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),M.isString(r)&&l.push(`path=${r}`),M.isString(a)&&l.push(`domain=${a}`),i===!0&&l.push("secure"),M.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 h6(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function p6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const m6=/^https?:(?!\/\/)/i,y6=/[\t\n\r]/g;function v6(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function g6(e){return v6(e).replace(y6,"")}function vw(e,t){if(typeof e=="string"&&m6.test(g6(e)))throw new W('Invalid URL: missing "//" after protocol',W.ERR_INVALID_URL,t)}function GN(e,t,n,r){vw(t,r);let a=!h6(t);return e&&(a||n===!1)?(vw(e,r),p6(e,t)):t}const gw=e=>e instanceof Yt?{...e}:e;function io(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(d,f,h,p){return M.isPlainObject(d)&&M.isPlainObject(f)?M.merge.call({caseless:p},d,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function a(d,f,h,p){if(M.isUndefined(f)){if(!M.isUndefined(d))return r(void 0,d,h,p)}else return r(d,f,h,p)}function i(d,f){if(!M.isUndefined(f))return r(void 0,f)}function o(d,f){if(M.isUndefined(f)){if(!M.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d){const f=M.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!M.isUndefined(f))if(M.isPlainObject(f)){if(M.hasOwnProp(f,d))return f[d]}else return;const h=M.hasOwnProp(e,"transitional")?e.transitional:void 0;if(M.isPlainObject(h)&&M.hasOwnProp(h,d))return h[d]}function s(d,f,h){if(M.hasOwnProp(t,h))return r(d,f);if(M.hasOwnProp(e,h))return r(void 0,d)}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:(d,f,h)=>a(gw(d),gw(f),h,!0)};return M.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const h=M.hasOwnProp(u,f)?u[f]:a,p=M.hasOwnProp(e,f)?e[f]:void 0,b=M.hasOwnProp(t,f)?t[f]:void 0,v=h(p,b,f);M.isUndefined(v)&&h!==s||(n[f]=v)}),M.hasOwnProp(t,"validateStatus")&&M.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(M.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const b6=["content-type","content-length"];function x6(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{b6.includes(r.toLowerCase())&&e.set(r,a)})}const S6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function KN(e){const t=io({},e),n=h=>M.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"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=Yt.from(l),t.url=IN(GN(u,f,d,t),n("params"),n("paramsSerializer")),s){const h=M.getSafeProp(s,"username")||"",p=M.getSafeProp(s,"password")||"";l.set("Authorization","Basic "+btoa(h+":"+(p?S6(p):"")))}if(M.isFormData(r)&&(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv||M.isReactNative(r)?l.setContentType(void 0):M.isFunction(r.getHeaders)&&x6(l,r.getHeaders(),n("formDataHeaderPolicy"))),It.hasStandardBrowserEnv&&(M.isFunction(a)&&(a=a(t)),a===!0||a==null&&f6(t.url))){const p=i&&o&&d6.read(o);p&&l.set(i,p)}return t}const w6=typeof XMLHttpRequest<"u",j6=w6&&function(e){return new Promise(function(n,r){const a=KN(e);let i=a.data;const o=Yt.from(a.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=a,d,f,h,p,b;function v(){p&&p(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(a.method.toUpperCase(),a.url,!0),x.timeout=a.timeout;function m(){if(!x)return;const g=Yt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:g,config:e,request:x};FN(function(A){n(A),v()},function(A){r(A),v()},w),x=null}"onloadend"in x?x.onloadend=m:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(m)},x.onabort=function(){x&&(r(new W("Request aborted",W.ECONNABORTED,e,x)),v(),x=null)},x.onerror=function(S){const w=S&&S.message?S.message:"Network Error",j=new W(w,W.ERR_NETWORK,e,x);j.event=S||null,r(j),v(),x=null},x.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||ox;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),r(new W(S,w.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,x)),v(),x=null},i===void 0&&o.setContentType(null),"setRequestHeader"in x&&M.forEach(DN(o),function(S,w){x.setRequestHeader(w,S)}),M.isUndefined(a.withCredentials)||(x.withCredentials=!!a.withCredentials),l&&l!=="json"&&(x.responseType=a.responseType),u&&([h,b]=Gd(u,!0),x.addEventListener("progress",h)),s&&x.upload&&([f,p]=Gd(s),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=g=>{x&&(r(!g||g.type?new Wc(null,e,x):g),x.abort(),v(),x=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const y=s6(a.url);if(y&&!It.protocols.includes(y)){r(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e));return}x.send(i||null)})},O6=(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 W?u:new Wc(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new W(`timeout of ${t}ms exceeded`,W.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=()=>M.asap(o),l},A6=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},E6=async function*(e,t){for await(const n of _6(e))yield*A6(n,t)},_6=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()}},bw=(e,t,n,r)=>{const a=E6(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:d}=await a.next();if(u){l(),s.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}s.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(s){return l(s),a.return()}},{highWaterMark:2})},Kd=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,T6=(e,t,n)=>t+2<n&&Kd(e.charCodeAt(t+1))&&Kd(e.charCodeAt(t+2));function N6(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);Kd(b)&&Kd(v)&&(o-=2,p+=2)}let s=0,u=l-1;const d=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--):d(u)&&(s++,u-=3)),s===1&&u>=0&&(r.charCodeAt(u)===61||d(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&&T6(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 sx="1.18.0",xw=64*1024,{isFunction:_f}=M,C6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Sw=e=>{if(!M.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},ww=(e,...t)=>{try{return!!e(...t)}catch{return!1}},M6=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},R6=e=>{const t=M.global!==void 0&&M.global!==null?M.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=M.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,l=a?_f(a):typeof fetch=="function",s=_f(i),u=_f(o);if(!l)return!1;const d=l&&_f(n),f=l&&(typeof r=="function"?(m=>y=>m.encode(y))(new r):async m=>new Uint8Array(await new i(m).arrayBuffer())),h=s&&d&&ww(()=>{let m=!1;const y=new i(It.origin,{body:new n,method:"POST",get duplex(){return m=!0,"half"}}),g=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),m&&!g}),p=u&&d&&ww(()=>M.isReadableStream(new o("").body)),b={stream:p&&(m=>m.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!b[m]&&(b[m]=(y,g)=>{let S=y&&y[m];if(S)return S.call(y);throw new W(`Response type '${m}' is not supported`,W.ERR_NOT_SUPPORT,g)})});const v=async m=>{if(m==null)return 0;if(M.isBlob(m))return m.size;if(M.isSpecCompliantForm(m))return(await new i(It.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(M.isArrayBufferView(m)||M.isArrayBuffer(m))return m.byteLength;if(M.isURLSearchParams(m)&&(m=m+""),M.isString(m))return(await f(m)).byteLength},x=async(m,y)=>{const g=M.toFiniteNumber(m.getContentLength());return g??v(y)};return async m=>{let{url:y,method:g,data:S,signal:w,cancelToken:j,timeout:A,onDownloadProgress:E,onUploadProgress:_,responseType:N,headers:k,withCredentials:P="same-origin",fetchOptions:B,maxContentLength:D,maxBodyLength:C}=KN(m);const $=M.isNumber(D)&&D>-1,L=M.isNumber(C)&&C>-1,z=ce=>M.hasOwnProp(m,ce)?m[ce]:void 0;let F=a||fetch;N=N?(N+"").toLowerCase():"text";let G=O6([w,j&&j.toAbortSignal()],A),Q=null;const K=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let te,me=null;const Le=()=>new W("Request body larger than maxBodyLength limit",W.ERR_BAD_REQUEST,m,Q);try{let ce;const $t=z("auth");if($t){const J=M.getSafeProp($t,"username")||"",ze=M.getSafeProp($t,"password")||"";ce={username:J,password:ze}}if(M6(y)){const J=new URL(y,It.origin);if(!ce&&(J.username||J.password)){const ze=Sw(J.username),Dt=Sw(J.password);ce={username:ze,password:Dt}}(J.username||J.password)&&(J.username="",J.password="",y=J.href)}if(ce&&(k.delete("authorization"),k.set("Authorization","Basic "+btoa(C6((ce.username||"")+":"+(ce.password||""))))),$&&typeof y=="string"&&y.startsWith("data:")&&N6(y)>D)throw new W("maxContentLength size of "+D+" exceeded",W.ERR_BAD_RESPONSE,m,Q);if(L&&g!=="get"&&g!=="head"){const J=await v(S);if(typeof J=="number"&&isFinite(J)&&(te=J,J>C))throw Le()}const bt=L&&(M.isReadableStream(S)||M.isStream(S)),X=(J,ze,Dt)=>bw(J,xw,an=>{if(L&&an>C)throw me=Le();ze&&ze(an)},Dt);if(h&&g!=="get"&&g!=="head"&&(_||bt)){if(te=te??await x(k,S),te!==0||bt){let J=new i(y,{method:"POST",body:S,duplex:"half"}),ze;if(M.isFormData(S)&&(ze=J.headers.get("content-type"))&&k.setContentType(ze),J.body){const[Dt,an]=_&&mw(te,Gd(yw(_)))||[];S=X(J.body,Dt,an)}}}else if(bt&&!s&&d&&g!=="get"&&g!=="head")S=X(S);else if(bt&&s&&!h&&g!=="get"&&g!=="head")throw new W("Stream request bodies are not supported by the current fetch implementation",W.ERR_NOT_SUPPORT,m,Q);M.isString(P)||(P=P?"include":"omit");const le=s&&"credentials"in i.prototype;if(M.isFormData(S)){const J=k.getContentType();J&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&k.delete("content-type")}k.set("User-Agent","axios/"+sx,!1);const fe={...B,signal:G,method:g.toUpperCase(),headers:DN(k.normalize()),body:S,duplex:"half",credentials:le?P:void 0};Q=s&&new i(y,fe);let H=await(s?F(Q,B):F(y,fe));const Xe=Yt.from(H.headers);if($){const J=M.toFiniteNumber(Xe.getContentLength());if(J!=null&&J>D)throw new W("maxContentLength size of "+D+" exceeded",W.ERR_BAD_RESPONSE,m,Q)}const be=p&&(N==="stream"||N==="response");if(p&&H.body&&(E||$||be&&K)){const J={};["status","statusText","headers"].forEach(gn=>{J[gn]=H[gn]});const ze=M.toFiniteNumber(Xe.getContentLength()),[Dt,an]=E&&mw(ze,Gd(yw(E),!0))||[];let yi=0;const Pr=gn=>{if($&&(yi=gn,yi>D))throw new W("maxContentLength size of "+D+" exceeded",W.ERR_BAD_RESPONSE,m,Q);Dt&&Dt(gn)};H=new o(bw(H.body,xw,Pr,()=>{an&&an(),K&&K()}),J)}N=N||"text";let Re=await b[M.findKey(b,N)||"text"](H,m);if($&&!p&&!be){let J;if(Re!=null&&(typeof Re.byteLength=="number"?J=Re.byteLength:typeof Re.size=="number"?J=Re.size:typeof Re=="string"&&(J=typeof r=="function"?new r().encode(Re).byteLength:Re.length)),typeof J=="number"&&J>D)throw new W("maxContentLength size of "+D+" exceeded",W.ERR_BAD_RESPONSE,m,Q)}return!be&&K&&K(),await new Promise((J,ze)=>{FN(J,ze,{data:Re,headers:Yt.from(H.headers),status:H.status,statusText:H.statusText,config:m,request:Q})})}catch(ce){if(K&&K(),G&&G.aborted&&G.reason instanceof W){const $t=G.reason;throw $t.config=m,Q&&($t.request=Q),ce!==$t&&($t.cause=ce),$t}throw me?(Q&&!me.request&&(me.request=Q),me):ce instanceof W?(Q&&!ce.request&&(ce.request=Q),ce):ce&&ce.name==="TypeError"&&/Load failed|fetch/i.test(ce.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,m,Q,ce&&ce.response),{cause:ce.cause||ce}):W.from(ce,ce&&ce.code,m,Q,ce&&ce.response)}}},P6=new Map,YN=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,d=P6;for(;l--;)s=i[l],u=d.get(s),u===void 0&&d.set(s,u=l?new Map:R6(t)),d=u;return u};YN();const ux={http:KL,xhr:j6,fetch:{get:YN}};M.forEach(ux,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const jw=e=>`- ${e}`,$6=e=>M.isFunction(e)||e===null||e===!1;function D6(e,t){e=M.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,!$6(r)&&(a=ux[(l=String(r)).toLowerCase()],a===void 0))throw new W(`Unknown adapter '${l}'`);if(a&&(M.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(jw).join(`
`):" "+jw(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a}const VN={getAdapter:D6,adapters:ux};function uy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wc(null,e)}function Ow(e){return uy(e),e.headers=Yt.from(e.headers),e.data=sy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),VN.getAdapter(e.adapter||Qc.adapter,e)(e).then(function(r){uy(e),e.response=r;try{r.data=sy.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Yt.from(r.headers),r},function(r){if(!qN(r)&&(uy(e),r&&r.response)){e.response=r.response;try{r.response.data=sy.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Yt.from(r.response.headers)}return Promise.reject(r)})}const xp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Aw={};xp.transitional=function(t,n,r){function a(i,o){return"[Axios v"+sx+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new W(a(o," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!Aw[o]&&(Aw[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}};xp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function k6(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.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 W("option "+i+" must be "+s,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const sd={assertOptions:k6,validators:xp},qt=sd.validators;let Xi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new hw,response:new hw}}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=io(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&sd.assertOptions(r,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean),legacyInterceptorReqResOrdering:qt.transitional(qt.boolean),advertiseZstdAcceptEncoding:qt.transitional(qt.boolean),validateStatusUndefinedResolves:qt.transitional(qt.boolean)},!1),a!=null&&(M.isFunction(a)?n.paramsSerializer={serialize:a}:sd.assertOptions(a,{encode:qt.function,serialize:qt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),sd.assertOptions(n,{baseUrl:qt.spelling("baseURL"),withXsrfToken:qt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&M.merge(i.common,i[n.method]);i&&M.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete i[b]}),n.headers=Yt.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 x=n.transitional||ox;x&&x.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 d,f=0,h;if(!s){const b=[Ow.bind(this),void 0];for(b.unshift(...l),b.push(...u),h=b.length,d=Promise.resolve(n);f<h;)d=d.then(b[f++],b[f++]);return d}h=l.length;let p=n;for(;f<h;){const b=l[f++],v=l[f++];try{p=b(p)}catch(x){v.call(this,x);break}}try{d=Ow.call(this,p)}catch(b){return Promise.reject(b)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=io(this.defaults,t);const n=GN(t.baseURL,t.url,t.allowAbsoluteUrls,t);return IN(n,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){Xi.prototype[t]=function(n,r){return this.request(io(r||{},{method:t,url:n,data:r&&M.hasOwnProp(r,"data")?r.data:void 0}))}});M.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,o,l){return this.request(io(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Xi.prototype[t]=n(),t!=="query"&&(Xi.prototype[t+"Form"]=n(!0))});let L6=class XN{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 Wc(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 XN(function(a){t=a}),cancel:t}}};function z6(e){return function(n){return e.apply(null,n)}}function B6(e){return M.isObject(e)&&e.isAxiosError===!0}const ug={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(ug).forEach(([e,t])=>{ug[t]=e});function QN(e){const t=new Xi(e),n=EN(Xi.prototype.request,t);return M.extend(n,Xi.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return QN(io(e,a))},n}const dt=QN(Qc);dt.Axios=Xi;dt.CanceledError=Wc;dt.CancelToken=L6;dt.isCancel=qN;dt.VERSION=sx;dt.toFormData=bp;dt.AxiosError=W;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=z6;dt.isAxiosError=B6;dt.mergeConfig=io;dt.AxiosHeaders=Yt;dt.formToJSON=e=>HN(M.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=VN.getAdapter;dt.HttpStatusCode=ug;dt.default=dt;const{Axios:Mfe,AxiosError:Rfe,CanceledError:Pfe,isCancel:$fe,CancelToken:Dfe,VERSION:kfe,all:Lfe,Cancel:zfe,isAxiosError:Bfe,spread:Ife,toFormData:Ufe,AxiosHeaders:Hfe,HttpStatusCode:qfe,formToJSON:Ffe,getAdapter:Gfe,mergeConfig:Kfe,create:Yfe}=dt,q=dt.create({baseURL:""});q.interceptors.request.use(e=>{const t=localStorage.getItem("esn_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});q.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 Ae=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),I6=(e,t)=>q.post("/api/auth/login",{username:e,password:t}),U6=()=>q.get("/api/auth/me"),H6=e=>Ae(q.post("/api/auth/signup",e)),q6=(e,t)=>Ae(q.post("/api/auth/find-id",{name:e,email:t})),F6=(e,t,n)=>q.post("/api/auth/reset-password",{username:e,name:t,email:n}),G6=e=>Ae(q.get(`/api/dashboard${e?`?tenantCode=${e}`:""}`)),K6=()=>Ae(q.get("/api/tenants")),Y6=e=>Ae(q.post("/api/tenants",e)),V6=(e,t)=>Ae(q.put(`/api/tenants/${e}`,t)),X6=e=>q.delete(`/api/tenants/${e}`),Q6=e=>Ae(q.get("/api/stores",{params:e})),W6=e=>Ae(q.post("/api/stores",e)),Z6=(e,t)=>Ae(q.put(`/api/stores/${e}`,t)),J6=e=>q.delete(`/api/stores/${e}`),ez=e=>Ae(q.get("/api/templates",{params:e})),tz=e=>Ae(q.post("/api/templates",e)),nz=(e,t)=>Ae(q.put(`/api/templates/${e}`,t)),rz=e=>q.delete(`/api/templates/${e}`),az=e=>Ae(q.get("/api/pos-cvt",{params:e})),iz=e=>Ae(q.put(`/api/pos-cvt/${e}/process`)),oz=e=>Ae(q.put(`/api/pos-cvt/${e}/ignore`)),lz=e=>Ae(q.get("/api/alarms",{params:e})),sz=(e,t)=>Ae(q.put(`/api/alarms/${e}/resolve`,{resolution:t})),uz=e=>q.delete(`/api/alarms/${e}`),cz=e=>Ae(q.get("/api/hcore",{params:e})),fz=(e,t)=>Ae(q.put(`/api/hcore/${e}/status`,{status:t})),dz=e=>Ae(q.get("/api/works",{params:e})),hz=e=>Ae(q.get("/api/firmware",{params:e})),pz=e=>Ae(q.post("/api/firmware",e)),mz=e=>q.delete(`/api/firmware/${e}`),yz=e=>Ae(q.get("/api/users",{params:e})),vz=e=>Ae(q.post("/api/users",e)),gz=(e,t)=>Ae(q.put(`/api/users/${e}`,t)),bz=e=>q.delete(`/api/users/${e}`),xz=e=>Ae(q.get("/api/products",{params:e})),Sz=e=>Ae(q.post("/api/products",e)),wz=(e,t)=>Ae(q.put(`/api/products/${e}`,t)),jz=e=>q.delete(`/api/products/${e}`),Oz=e=>Ae(q.get("/api/admin/audit",{params:e})),Az=e=>Ae(q.get("/api/admin/settings",{params:{}})),Ez=(e,t)=>Ae(q.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t})),_z=e=>Ae(q.post("/api/ai/analyze-alarm",e)),Tz=e=>Ae(q.post("/api/ai/classify-pos",e)),Nz=e=>Ae(q.get("/api/ai/rag/toggles",{params:{tenantCode:e}})),Cz=(e,t,n)=>Ae(q.put(`/api/ai/rag/toggles/${e}`,{value:t,tenantCode:n},n?{headers:{"X-Tenant-Code":n}}:void 0));function Mz(){const e=localStorage.getItem("esn_token");return O.useEffect(()=>{e&&U6().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?c.jsxs("div",{className:"flex h-screen bg-ink",children:[c.jsx(I5,{}),c.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[c.jsx(U5,{}),c.jsx("main",{className:"flex-1 overflow-auto p-6",children:c.jsx(RD,{})})]})]}):c.jsx(JT,{to:"/login",replace:!0})}const Rz=(e,t)=>q.post("/api/auth/verify",{verifyToken:e,code:t}),Pz=e=>q.post("/api/messages",e),$z=e=>q.get("/api/messages/sent",{params:e}),Dz=e=>q.get(`/api/messages/sent/${e}`),kz=e=>q.get("/api/messages/received",{params:e}),Lz=e=>q.get(`/api/messages/received/${e}`),zz=e=>q.get("/api/schedules",{params:e}),Bz=e=>q.post("/api/schedules",e),Iz=e=>q.get(`/api/schedules/${e}`),Uz=e=>q.delete(`/api/schedules/${e}`),Hz=e=>q.get("/api/worklogs",{params:e}),qz=e=>q.get("/api/worklogs/dashboard/progress",{params:e}),Fz=e=>q.post("/api/worklogs",e),Gz=e=>q.get(`/api/worklogs/${e}`),Kz=e=>q.delete(`/api/worklogs/${e}`),Yz=(e,t)=>q.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),Vz=e=>q.get("/api/stats/personal-work",{params:e}),Xz=e=>q.get("/api/stats/company-work",{params:e});function Qz(){const e=mp(),[t,n]=O.useState(""),[r,a]=O.useState(""),[i,o]=O.useState(""),[l,s]=O.useState(!1),[u,d]=O.useState("login"),[f,h]=O.useState(""),[p,b]=O.useState(""),[v,x]=O.useState(""),[m,y]=O.useState(null);function g(j){localStorage.setItem("esn_token",j),localStorage.setItem("esn_user",t),e("/dashboard")}async function S(j){var A;j.preventDefault(),s(!0),o("");try{const _=(A=(await I6(t,r)).data)==null?void 0:A.data;if((_==null?void 0:_.twofa)==="true")h(_.verifyToken),b(_.maskedEmail||""),d("verify");else{if(!(_!=null&&_.token))throw new Error("토큰 없음");g(_.token)}}catch{o("아이디/비밀번호가 올바르지 않거나 계정이 잠겼습니다.")}finally{s(!1)}}async function w(j){var A,E;j.preventDefault(),s(!0),o("");try{const _=await Rz(f,v);g((E=(A=_.data)==null?void 0:A.data)==null?void 0:E.token)}catch{o("인증 코드가 올바르지 않거나 만료되었습니다.")}finally{s(!1)}}return c.jsxs("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:[c.jsxs("div",{className:"w-full max-w-sm",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("h1",{className:"text-2xl font-bold text-brand",children:"GUARDiA ESN"}),c.jsx("p",{className:"text-sm text-gray-400 mt-1",children:u==="login"?"ESL 통합 관리 플랫폼":"2차 인증"})]}),u==="login"?c.jsxs("form",{onSubmit:S,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),c.jsx("input",{value:t,onChange:j=>n(j.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호"}),c.jsx("input",{type:"password",value:r,onChange:j=>a(j.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&&c.jsx("p",{className:"text-red-400 text-xs",children:i}),c.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?"로그인 중...":"로그인"}),c.jsxs("div",{className:"flex items-center justify-center gap-3 pt-1 text-xs text-gray-400",children:[c.jsx("button",{type:"button",onClick:()=>y("signup"),className:"hover:text-brand transition-colors",children:"회원가입"}),c.jsx("span",{className:"text-edge",children:"|"}),c.jsx("button",{type:"button",onClick:()=>y("findId"),className:"hover:text-brand transition-colors",children:"아이디 찾기"}),c.jsx("span",{className:"text-edge",children:"|"}),c.jsx("button",{type:"button",onClick:()=>y("resetPw"),className:"hover:text-brand transition-colors",children:"비밀번호 재설정"})]})]}):c.jsxs("form",{onSubmit:w,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:p?`${p} 로 발송된 인증코드를 입력하세요.`:"발송된 인증코드를 입력하세요."}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"인증코드 6자리"}),c.jsx("input",{inputMode:"numeric",maxLength:6,value:v,onChange:j=>x(j.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&&c.jsx("p",{className:"text-red-400 text-xs",children:i}),c.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?"인증 중...":"인증하고 로그인"}),c.jsx("button",{type:"button",onClick:()=>{d("login"),x(""),o("")},className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"뒤로"})]})]}),m&&c.jsx(Wz,{mode:m,onClose:()=>y(null)})]})}function Wz({mode:e,onClose:t}){const[n,r]=O.useState(!1),[a,i]=O.useState(""),[o,l]=O.useState(""),[s,u]=O.useState({username:"",password:"",name:"",email:"",phone:"",tenantCode:""}),[d,f]=O.useState({name:"",email:""}),[h,p]=O.useState({username:"",name:"",email:""}),b=e==="signup"?"회원가입":e==="findId"?"아이디 찾기":"비밀번호 재설정";async function v(m){var y,g;m.preventDefault(),r(!0),i(""),l("");try{if(e==="signup"){const S=await H6(s);i(`가입 신청이 접수되었습니다 (아이디: ${S.username}, 상태: 승인 대기).`)}else if(e==="findId"){const S=await q6(d.name,d.email);i(S.found?`회원님의 아이디: ${S.maskedUsername}`:"일치하는 계정 없음")}else await F6(h.username,h.name,h.email),i("임시 비밀번호를 이메일로 발송했습니다.")}catch(S){l(((g=(y=S==null?void 0:S.response)==null?void 0:y.data)==null?void 0:g.message)||"요청 처리 중 오류가 발생했습니다.")}finally{r(!1)}}const x="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";return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:t,children:c.jsxs("div",{className:"w-full max-w-sm bg-card border border-edge rounded-lg p-6",onClick:m=>m.stopPropagation(),children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"text-sm font-bold text-brand",children:b}),c.jsx("button",{type:"button",onClick:t,className:"text-gray-500 hover:text-white text-sm",children:"✕"})]}),c.jsxs("form",{onSubmit:v,className:"space-y-3",children:[e==="signup"&&c.jsxs(c.Fragment,{children:[c.jsx("input",{className:x,placeholder:"아이디",value:s.username,onChange:m=>u({...s,username:m.target.value})}),c.jsx("input",{className:x,type:"password",placeholder:"비밀번호",value:s.password,onChange:m=>u({...s,password:m.target.value})}),c.jsx("input",{className:x,placeholder:"이름",value:s.name,onChange:m=>u({...s,name:m.target.value})}),c.jsx("input",{className:x,type:"email",placeholder:"이메일",value:s.email,onChange:m=>u({...s,email:m.target.value})}),c.jsx("input",{className:x,placeholder:"연락처",value:s.phone,onChange:m=>u({...s,phone:m.target.value})}),c.jsx("input",{className:x,placeholder:"기관 코드 (선택)",value:s.tenantCode,onChange:m=>u({...s,tenantCode:m.target.value})})]}),e==="findId"&&c.jsxs(c.Fragment,{children:[c.jsx("input",{className:x,placeholder:"이름",value:d.name,onChange:m=>f({...d,name:m.target.value})}),c.jsx("input",{className:x,type:"email",placeholder:"이메일",value:d.email,onChange:m=>f({...d,email:m.target.value})})]}),e==="resetPw"&&c.jsxs(c.Fragment,{children:[c.jsx("input",{className:x,placeholder:"아이디",value:h.username,onChange:m=>p({...h,username:m.target.value})}),c.jsx("input",{className:x,placeholder:"이름",value:h.name,onChange:m=>p({...h,name:m.target.value})}),c.jsx("input",{className:x,type:"email",placeholder:"이메일",value:h.email,onChange:m=>p({...h,email:m.target.value})})]}),a&&c.jsx("p",{className:"text-green-400 text-xs",children:a}),o&&c.jsx("p",{className:"text-red-400 text-xs",children:o}),c.jsx("button",{type:"submit",disabled:n,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:n?"처리 중...":b})]})]})})}function WN(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=WN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ve(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=WN(e))&&(r&&(r+=" "),r+=t);return r}var Zz=Array.isArray,vn=Zz,Jz=typeof sf=="object"&&sf&&sf.Object===Object&&sf,ZN=Jz,e8=ZN,t8=typeof self=="object"&&self&&self.Object===Object&&self,n8=e8||t8||Function("return this")(),Mr=n8,r8=Mr,a8=r8.Symbol,Zc=a8,Ew=Zc,JN=Object.prototype,i8=JN.hasOwnProperty,o8=JN.toString,Fs=Ew?Ew.toStringTag:void 0;function l8(e){var t=i8.call(e,Fs),n=e[Fs];try{e[Fs]=void 0;var r=!0}catch{}var a=o8.call(e);return r&&(t?e[Fs]=n:delete e[Fs]),a}var s8=l8,u8=Object.prototype,c8=u8.toString;function f8(e){return c8.call(e)}var d8=f8,_w=Zc,h8=s8,p8=d8,m8="[object Null]",y8="[object Undefined]",Tw=_w?_w.toStringTag:void 0;function v8(e){return e==null?e===void 0?y8:m8:Tw&&Tw in Object(e)?h8(e):p8(e)}var va=v8;function g8(e){return e!=null&&typeof e=="object"}var ga=g8,b8=va,x8=ga,S8="[object Symbol]";function w8(e){return typeof e=="symbol"||x8(e)&&b8(e)==S8}var js=w8,j8=vn,O8=js,A8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E8=/^\w*$/;function _8(e,t){if(j8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||O8(e)?!0:E8.test(e)||!A8.test(e)||t!=null&&e in Object(t)}var cx=_8;function T8(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ci=T8;const Os=He(ci);var N8=va,C8=ci,M8="[object AsyncFunction]",R8="[object Function]",P8="[object GeneratorFunction]",$8="[object Proxy]";function D8(e){if(!C8(e))return!1;var t=N8(e);return t==R8||t==P8||t==M8||t==$8}var fx=D8;const se=He(fx);var k8=Mr,L8=k8["__core-js_shared__"],z8=L8,cy=z8,Nw=function(){var e=/[^.]+$/.exec(cy&&cy.keys&&cy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function B8(e){return!!Nw&&Nw in e}var I8=B8,U8=Function.prototype,H8=U8.toString;function q8(e){if(e!=null){try{return H8.call(e)}catch{}try{return e+""}catch{}}return""}var eC=q8,F8=fx,G8=I8,K8=ci,Y8=eC,V8=/[\\^$.*+?()[\]{}|]/g,X8=/^\[object .+?Constructor\]$/,Q8=Function.prototype,W8=Object.prototype,Z8=Q8.toString,J8=W8.hasOwnProperty,eB=RegExp("^"+Z8.call(J8).replace(V8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tB(e){if(!K8(e)||G8(e))return!1;var t=F8(e)?eB:X8;return t.test(Y8(e))}var nB=tB;function rB(e,t){return e==null?void 0:e[t]}var aB=rB,iB=nB,oB=aB;function lB(e,t){var n=oB(e,t);return iB(n)?n:void 0}var go=lB,sB=go,uB=sB(Object,"create"),Sp=uB,Cw=Sp;function cB(){this.__data__=Cw?Cw(null):{},this.size=0}var fB=cB;function dB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hB=dB,pB=Sp,mB="__lodash_hash_undefined__",yB=Object.prototype,vB=yB.hasOwnProperty;function gB(e){var t=this.__data__;if(pB){var n=t[e];return n===mB?void 0:n}return vB.call(t,e)?t[e]:void 0}var bB=gB,xB=Sp,SB=Object.prototype,wB=SB.hasOwnProperty;function jB(e){var t=this.__data__;return xB?t[e]!==void 0:wB.call(t,e)}var OB=jB,AB=Sp,EB="__lodash_hash_undefined__";function _B(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=AB&&t===void 0?EB:t,this}var TB=_B,NB=fB,CB=hB,MB=bB,RB=OB,PB=TB;function As(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])}}As.prototype.clear=NB;As.prototype.delete=CB;As.prototype.get=MB;As.prototype.has=RB;As.prototype.set=PB;var $B=As;function DB(){this.__data__=[],this.size=0}var kB=DB;function LB(e,t){return e===t||e!==e&&t!==t}var dx=LB,zB=dx;function BB(e,t){for(var n=e.length;n--;)if(zB(e[n][0],t))return n;return-1}var wp=BB,IB=wp,UB=Array.prototype,HB=UB.splice;function qB(e){var t=this.__data__,n=IB(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():HB.call(t,n,1),--this.size,!0}var FB=qB,GB=wp;function KB(e){var t=this.__data__,n=GB(t,e);return n<0?void 0:t[n][1]}var YB=KB,VB=wp;function XB(e){return VB(this.__data__,e)>-1}var QB=XB,WB=wp;function ZB(e,t){var n=this.__data__,r=WB(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var JB=ZB,eI=kB,tI=FB,nI=YB,rI=QB,aI=JB;function Es(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])}}Es.prototype.clear=eI;Es.prototype.delete=tI;Es.prototype.get=nI;Es.prototype.has=rI;Es.prototype.set=aI;var jp=Es,iI=go,oI=Mr,lI=iI(oI,"Map"),hx=lI,Mw=$B,sI=jp,uI=hx;function cI(){this.size=0,this.__data__={hash:new Mw,map:new(uI||sI),string:new Mw}}var fI=cI;function dI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var hI=dI,pI=hI;function mI(e,t){var n=e.__data__;return pI(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Op=mI,yI=Op;function vI(e){var t=yI(this,e).delete(e);return this.size-=t?1:0,t}var gI=vI,bI=Op;function xI(e){return bI(this,e).get(e)}var SI=xI,wI=Op;function jI(e){return wI(this,e).has(e)}var OI=jI,AI=Op;function EI(e,t){var n=AI(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var _I=EI,TI=fI,NI=gI,CI=SI,MI=OI,RI=_I;function _s(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])}}_s.prototype.clear=TI;_s.prototype.delete=NI;_s.prototype.get=CI;_s.prototype.has=MI;_s.prototype.set=RI;var px=_s,tC=px,PI="Expected a function";function mx(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(PI);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(mx.Cache||tC),n}mx.Cache=tC;var nC=mx;const $I=He(nC);var DI=nC,kI=500;function LI(e){var t=DI(e,function(r){return n.size===kI&&n.clear(),r}),n=t.cache;return t}var zI=LI,BI=zI,II=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UI=/\\(\\)?/g,HI=BI(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(II,function(n,r,a,i){t.push(a?i.replace(UI,"$1"):r||n)}),t}),qI=HI;function FI(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 yx=FI,Rw=Zc,GI=yx,KI=vn,YI=js,Pw=Rw?Rw.prototype:void 0,$w=Pw?Pw.toString:void 0;function rC(e){if(typeof e=="string")return e;if(KI(e))return GI(e,rC)+"";if(YI(e))return $w?$w.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var VI=rC,XI=VI;function QI(e){return e==null?"":XI(e)}var aC=QI,WI=vn,ZI=cx,JI=qI,eU=aC;function tU(e,t){return WI(e)?e:ZI(e,t)?[e]:JI(eU(e))}var iC=tU,nU=js;function rU(e){if(typeof e=="string"||nU(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ap=rU,aU=iC,iU=Ap;function oU(e,t){t=aU(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[iU(t[n++])];return n&&n==r?e:void 0}var vx=oU,lU=vx;function sU(e,t,n){var r=e==null?void 0:lU(e,t);return r===void 0?n:r}var oC=sU;const Rn=He(oC);function uU(e){return e==null}var cU=uU;const ge=He(cU);var fU=va,dU=vn,hU=ga,pU="[object String]";function mU(e){return typeof e=="string"||!dU(e)&&hU(e)&&fU(e)==pU}var yU=mU;const oo=He(yU);var lC={exports:{}},ke={};/**
 * @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 gx=Symbol.for("react.element"),bx=Symbol.for("react.portal"),Ep=Symbol.for("react.fragment"),_p=Symbol.for("react.strict_mode"),Tp=Symbol.for("react.profiler"),Np=Symbol.for("react.provider"),Cp=Symbol.for("react.context"),vU=Symbol.for("react.server_context"),Mp=Symbol.for("react.forward_ref"),Rp=Symbol.for("react.suspense"),Pp=Symbol.for("react.suspense_list"),$p=Symbol.for("react.memo"),Dp=Symbol.for("react.lazy"),gU=Symbol.for("react.offscreen"),sC;sC=Symbol.for("react.module.reference");function tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gx:switch(e=e.type,e){case Ep:case Tp:case _p:case Rp:case Pp:return e;default:switch(e=e&&e.$$typeof,e){case vU:case Cp:case Mp:case Dp:case $p:case Np:return e;default:return t}}case bx:return t}}}ke.ContextConsumer=Cp;ke.ContextProvider=Np;ke.Element=gx;ke.ForwardRef=Mp;ke.Fragment=Ep;ke.Lazy=Dp;ke.Memo=$p;ke.Portal=bx;ke.Profiler=Tp;ke.StrictMode=_p;ke.Suspense=Rp;ke.SuspenseList=Pp;ke.isAsyncMode=function(){return!1};ke.isConcurrentMode=function(){return!1};ke.isContextConsumer=function(e){return tr(e)===Cp};ke.isContextProvider=function(e){return tr(e)===Np};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gx};ke.isForwardRef=function(e){return tr(e)===Mp};ke.isFragment=function(e){return tr(e)===Ep};ke.isLazy=function(e){return tr(e)===Dp};ke.isMemo=function(e){return tr(e)===$p};ke.isPortal=function(e){return tr(e)===bx};ke.isProfiler=function(e){return tr(e)===Tp};ke.isStrictMode=function(e){return tr(e)===_p};ke.isSuspense=function(e){return tr(e)===Rp};ke.isSuspenseList=function(e){return tr(e)===Pp};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ep||e===Tp||e===_p||e===Rp||e===Pp||e===gU||typeof e=="object"&&e!==null&&(e.$$typeof===Dp||e.$$typeof===$p||e.$$typeof===Np||e.$$typeof===Cp||e.$$typeof===Mp||e.$$typeof===sC||e.getModuleId!==void 0)};ke.typeOf=tr;lC.exports=ke;var bU=lC.exports,xU=va,SU=ga,wU="[object Number]";function jU(e){return typeof e=="number"||SU(e)&&xU(e)==wU}var uC=jU;const OU=He(uC);var AU=uC;function EU(e){return AU(e)&&e!=+e}var _U=EU;const Jc=He(_U);var Jt=function(t){return t===0?0:t>0?1:-1},Mi=function(t){return oo(t)&&t.indexOf("%")===t.length-1},Y=function(t){return OU(t)&&!Jc(t)},TU=function(t){return ge(t)},Ot=function(t){return Y(t)||oo(t)},NU=0,ef=function(t){var n=++NU;return"".concat(t||"").concat(n)},en=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(!Y(t)&&!oo(t))return r;var i;if(Mi(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return Jc(i)&&(i=r),a&&i>n&&(i=n),i},$o=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},CU=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},Aa=function(t,n){return Y(t)&&Y(n)?function(r){return t+r*(n-t)}:function(){return n}};function cg(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Rn(r,t))===n})}var MU=function(t,n){return Y(t)&&Y(n)?t-n:oo(t)&&oo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function ol(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 fg(e){"@babel/helpers - typeof";return fg=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},fg(e)}var RU=["viewBox","children"],PU=["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"],Dw=["points","pathLength"],fy={svg:RU,polygon:Dw,polyline:Dw},xx=["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"],Yd=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(O.isValidElement(t)&&(r=t.props),!Os(r))return null;var a={};return Object.keys(r).forEach(function(i){xx.includes(i)&&(a[i]=n||function(o){return r[i](r,o)})}),a},$U=function(t,n,r){return function(a){return t(n,r,a),null}},lo=function(t,n,r){if(!Os(t)||fg(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];xx.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=$U(o,n,r))}),a},DU=["children"],kU=["children"];function kw(e,t){if(e==null)return{};var n=LU(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 LU(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 Lw={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"},na=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zw=null,dy=null,Sx=function e(t){if(t===zw&&Array.isArray(dy))return dy;var n=[];return O.Children.forEach(t,function(r){ge(r)||(bU.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),dy=n,zw=t,n};function Wn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return na(a)}):r=[na(t)],Sx(e).forEach(function(a){var i=Rn(a,"type.displayName")||Rn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Sn(e,t){var n=Wn(e,t);return n&&n[0]}var Bw=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!Y(r)||r<=0||!Y(a)||a<=0)},zU=["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"],BU=function(t){return t&&t.type&&oo(t.type)&&zU.indexOf(t.type)>=0},IU=function(t,n,r,a){var i,o=(i=fy==null?void 0:fy[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!se(t)&&(a&&o.includes(n)||PU.includes(n))||r&&xx.includes(n)},oe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(O.isValidElement(t)&&(a=t.props),!Os(a))return null;var i={};return Object.keys(a).forEach(function(o){var l;IU((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},dg=function e(t,n){if(t===n)return!0;var r=O.Children.count(t);if(r!==O.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Iw(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(!Iw(i,o))return!1}return!0},Iw=function(t,n){if(ge(t)&&ge(n))return!0;if(!ge(t)&&!ge(n)){var r=t.props||{},a=r.children,i=kw(r,DU),o=n.props||{},l=o.children,s=kw(o,kU);return a&&l?ol(i,s)&&dg(a,l):!a&&!l?ol(i,s):!1}return!1},Uw=function(t,n){var r=[],a={};return Sx(t).forEach(function(i,o){if(BU(i))r.push(i);else if(i){var l=na(i.type),s=n[l]||{},u=s.handler,d=s.once;if(u&&(!d||!a[l])){var f=u(i,l,o);r.push(f),a[l]=!0}}}),r},UU=function(t){var n=t&&t.type;return n&&Lw[n]?Lw[n]:null},HU=function(t,n){return Sx(n).indexOf(t)},qU=["children","width","height","viewBox","className","style","title","desc"];function hg(){return hg=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},hg.apply(this,arguments)}function FU(e,t){if(e==null)return{};var n=GU(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 GU(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 pg(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=FU(e,qU),d=a||{width:n,height:r,x:0,y:0},f=ve("recharts-surface",i);return R.createElement("svg",hg({},oe(u,!0,"svg"),{className:f,width:n,height:r,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),R.createElement("title",null,l),R.createElement("desc",null,s),t)}var KU=["children","className"];function mg(){return mg=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},mg.apply(this,arguments)}function YU(e,t){if(e==null)return{};var n=VU(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 VU(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 De=R.forwardRef(function(e,t){var n=e.children,r=e.className,a=YU(e,KU),i=ve("recharts-layer",r);return R.createElement("g",mg({className:i},oe(a,!0),{ref:t}),n)}),ra=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 XU(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 QU=XU,WU=QU;function ZU(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:WU(e,t,n)}var JU=ZU,e7="\\ud800-\\udfff",t7="\\u0300-\\u036f",n7="\\ufe20-\\ufe2f",r7="\\u20d0-\\u20ff",a7=t7+n7+r7,i7="\\ufe0e\\ufe0f",o7="\\u200d",l7=RegExp("["+o7+e7+a7+i7+"]");function s7(e){return l7.test(e)}var cC=s7;function u7(e){return e.split("")}var c7=u7,fC="\\ud800-\\udfff",f7="\\u0300-\\u036f",d7="\\ufe20-\\ufe2f",h7="\\u20d0-\\u20ff",p7=f7+d7+h7,m7="\\ufe0e\\ufe0f",y7="["+fC+"]",yg="["+p7+"]",vg="\\ud83c[\\udffb-\\udfff]",v7="(?:"+yg+"|"+vg+")",dC="[^"+fC+"]",hC="(?:\\ud83c[\\udde6-\\uddff]){2}",pC="[\\ud800-\\udbff][\\udc00-\\udfff]",g7="\\u200d",mC=v7+"?",yC="["+m7+"]?",b7="(?:"+g7+"(?:"+[dC,hC,pC].join("|")+")"+yC+mC+")*",x7=yC+mC+b7,S7="(?:"+[dC+yg+"?",yg,hC,pC,y7].join("|")+")",w7=RegExp(vg+"(?="+vg+")|"+S7+x7,"g");function j7(e){return e.match(w7)||[]}var O7=j7,A7=c7,E7=cC,_7=O7;function T7(e){return E7(e)?_7(e):A7(e)}var N7=T7,C7=JU,M7=cC,R7=N7,P7=aC;function $7(e){return function(t){t=P7(t);var n=M7(t)?R7(t):void 0,r=n?n[0]:t.charAt(0),a=n?C7(n,1).join(""):t.slice(1);return r[e]()+a}}var D7=$7,k7=D7,L7=k7("toUpperCase"),z7=L7;const kp=He(z7);function Ke(e){return function(){return e}}const vC=Math.cos,Vd=Math.sin,yr=Math.sqrt,Xd=Math.PI,Lp=2*Xd,gg=Math.PI,bg=2*gg,Ai=1e-6,B7=bg-Ai;function gC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function I7(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return gC;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 U7{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?gC:I7(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,d=o-t,f=l-n,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ai)if(!(Math.abs(f*s-u*d)>Ai)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,b=a-l,v=s*s+u*u,x=p*p+b*b,m=Math.sqrt(v),y=Math.sqrt(h),g=i*Math.tan((gg-Math.acos((v+h-x)/(2*m*y)))/2),S=g/y,w=g/m;Math.abs(S-1)>Ai&&this._append`L${t+S*d},${n+S*f}`,this._append`A${i},${i},0,0,${+(f*p>d*b)},${this._x1=t+w*s},${this._y1=n+w*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,d=n+s,f=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Ai||Math.abs(this._y1-d)>Ai)&&this._append`L${u},${d}`,r&&(h<0&&(h=h%bg+bg),h>B7?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=d}`:h>Ai&&this._append`A${r},${r},0,${+(h>=gg)},${f},${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 wx(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 U7(t)}function jx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bC(e){this._context=e}bC.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 zp(e){return new bC(e)}function xC(e){return e[0]}function SC(e){return e[1]}function wC(e,t){var n=Ke(!0),r=null,a=zp,i=null,o=wx(l);e=typeof e=="function"?e:e===void 0?xC:Ke(e),t=typeof t=="function"?t:t===void 0?SC:Ke(t);function l(s){var u,d=(s=jx(s)).length,f,h=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=d;++u)!(u<d&&n(f=s[u],u,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(f,u,s),+t(f,u,s));if(p)return i=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:Ke(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:Ke(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Ke(!!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 Tf(e,t,n){var r=null,a=Ke(!0),i=null,o=zp,l=null,s=wx(u);e=typeof e=="function"?e:e===void 0?xC:Ke(+e),t=typeof t=="function"?t:Ke(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?SC:Ke(+n);function u(f){var h,p,b,v=(f=jx(f)).length,x,m=!1,y,g=new Array(v),S=new Array(v);for(i==null&&(l=o(y=s())),h=0;h<=v;++h){if(!(h<v&&a(x=f[h],h,f))===m)if(m=!m)p=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=h-1;b>=p;--b)l.point(g[b],S[b]);l.lineEnd(),l.areaEnd()}m&&(g[h]=+e(x,h,f),S[h]=+t(x,h,f),l.point(r?+r(x,h,f):g[h],n?+n(x,h,f):S[h]))}if(y)return l=null,y+""||null}function d(){return wC().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ke(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ke(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ke(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ke(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ke(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ke(+f),u):n},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(n)},u.lineX1=function(){return d().x(r).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Ke(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}class jC{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 H7(e){return new jC(e,!0)}function q7(e){return new jC(e,!1)}const Ox={draw(e,t){const n=yr(t/Xd);e.moveTo(n,0),e.arc(0,0,n,0,Lp)}},F7={draw(e,t){const n=yr(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()}},OC=yr(1/3),G7=OC*2,K7={draw(e,t){const n=yr(t/G7),r=n*OC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Y7={draw(e,t){const n=yr(t),r=-n/2;e.rect(r,r,n,n)}},V7=.8908130915292852,AC=Vd(Xd/10)/Vd(7*Xd/10),X7=Vd(Lp/10)*AC,Q7=-vC(Lp/10)*AC,W7={draw(e,t){const n=yr(t*V7),r=X7*n,a=Q7*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=Lp*i/5,l=vC(o),s=Vd(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},hy=yr(3),Z7={draw(e,t){const n=-yr(t/(hy*3));e.moveTo(0,n*2),e.lineTo(-hy*n,-n),e.lineTo(hy*n,-n),e.closePath()}},kn=-.5,Ln=yr(3)/2,xg=1/yr(12),J7=(xg/2+1)*3,e9={draw(e,t){const n=yr(t/J7),r=n/2,a=n*xg,i=r,o=n*xg+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(kn*r-Ln*a,Ln*r+kn*a),e.lineTo(kn*i-Ln*o,Ln*i+kn*o),e.lineTo(kn*l-Ln*s,Ln*l+kn*s),e.lineTo(kn*r+Ln*a,kn*a-Ln*r),e.lineTo(kn*i+Ln*o,kn*o-Ln*i),e.lineTo(kn*l+Ln*s,kn*s-Ln*l),e.closePath()}};function t9(e,t){let n=null,r=wx(a);e=typeof e=="function"?e:Ke(e||Ox),t=typeof t=="function"?t:Ke(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:Ke(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ke(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Qd(){}function Wd(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 EC(e){this._context=e}EC.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:Wd(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:Wd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function n9(e){return new EC(e)}function _C(e){this._context=e}_C.prototype={areaStart:Qd,areaEnd:Qd,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:Wd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function r9(e){return new _C(e)}function TC(e){this._context=e}TC.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:Wd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a9(e){return new TC(e)}function NC(e){this._context=e}NC.prototype={areaStart:Qd,areaEnd:Qd,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 i9(e){return new NC(e)}function Hw(e){return e<0?-1:1}function qw(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(Hw(i)+Hw(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function Fw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function py(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 Zd(e){this._context=e}Zd.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:py(this,this._t0,Fw(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,py(this,Fw(this,n=qw(this,e,t)),n);break;default:py(this,this._t0,n=qw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function CC(e){this._context=new MC(e)}(CC.prototype=Object.create(Zd.prototype)).point=function(e,t){Zd.prototype.point.call(this,t,e)};function MC(e){this._context=e}MC.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 o9(e){return new Zd(e)}function l9(e){return new CC(e)}function RC(e){this._context=e}RC.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=Gw(e),a=Gw(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 Gw(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 s9(e){return new RC(e)}function Bp(e,t){this._context=e,this._t=t}Bp.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 u9(e){return new Bp(e,.5)}function c9(e){return new Bp(e,0)}function f9(e){return new Bp(e,1)}function Ll(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 Sg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function d9(e,t){return e[t]}function h9(e){const t=[];return t.key=e,t}function p9(){var e=Ke([]),t=Sg,n=Ll,r=d9;function a(i){var o=Array.from(e.apply(this,arguments),h9),l,s=o.length,u=-1,d;for(const f of i)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(f,o[l].key,u,i)]).data=f;for(l=0,d=jx(t(o));l<s;++l)o[d[l]].index=l;return n(o,d),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ke(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Ke(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?Sg:typeof i=="function"?i:Ke(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Ll,a):n},a}function m9(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}Ll(e,t)}}function y9(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}Ll(e,t)}}function v9(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 d=e[t[l]],f=d[r][1]||0,h=d[r-1][1]||0,p=(f-h)/2,b=0;b<l;++b){var v=e[t[b]],x=v[r][1]||0,m=v[r-1][1]||0;p+=x-m}s+=f,u+=p*f}a[r-1][1]+=a[r-1][0]=n,s&&(n-=u/s)}a[r-1][1]+=a[r-1][0]=n,Ll(e,t)}}function Ku(e){"@babel/helpers - typeof";return Ku=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},Ku(e)}var g9=["type","size","sizeType"];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 Kw(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 Yw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(n),!0).forEach(function(r){b9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b9(e,t,n){return t=x9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x9(e){var t=S9(e,"string");return Ku(t)=="symbol"?t:t+""}function S9(e,t){if(Ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w9(e,t){if(e==null)return{};var n=j9(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 j9(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 PC={symbolCircle:Ox,symbolCross:F7,symbolDiamond:K7,symbolSquare:Y7,symbolStar:W7,symbolTriangle:Z7,symbolWye:e9},O9=Math.PI/180,A9=function(t){var n="symbol".concat(kp(t));return PC[n]||Ox},E9=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*O9;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}},_9=function(t,n){PC["symbol".concat(kp(t))]=n},Ax=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=w9(t,g9),u=Yw(Yw({},s),{},{type:r,size:i,sizeType:l}),d=function(){var x=A9(r),m=t9().type(x).size(E9(i,l,r));return m()},f=u.className,h=u.cx,p=u.cy,b=oe(u,!0);return h===+h&&p===+p&&i===+i?R.createElement("path",wg({},b,{className:ve("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:d()})):null};Ax.registerSymbol=_9;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)}function jg(){return jg=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},jg.apply(this,arguments)}function Vw(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 T9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vw(Object(n),!0).forEach(function(r){Yu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C9(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,DC(r.key),r)}}function M9(e,t,n){return t&&C9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R9(e,t,n){return t=Jd(t),P9(e,$C()?Reflect.construct(t,n||[],Jd(e).constructor):t.apply(e,n))}function P9(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 $9(e)}function $9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($C=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jd(e)}function D9(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&&Og(e,t)}function Og(e,t){return Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Og(e,t)}function Yu(e,t,n){return t=DC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DC(e){var t=k9(e,"string");return zl(t)=="symbol"?t:t+""}function k9(e,t){if(zl(e)!="object"||!e)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 String(e)}var zn=32,Ex=function(e){function t(){return N9(this,t),R9(this,t,arguments)}return D9(t,e),M9(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=zn/2,o=zn/6,l=zn/3,s=r.inactive?a:r.color;if(r.type==="plainline")return R.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:zn,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return R.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(zn,"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 R.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(zn/8,"h").concat(zn,"v").concat(zn*3/4,"h").concat(-zn,"z"),className:"recharts-legend-icon"});if(R.isValidElement(r.legendIcon)){var u=T9({},r);return delete u.legendIcon,R.cloneElement(r.legendIcon,u)}return R.createElement(Ax,{fill:s,cx:i,cy:i,size:zn,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,d={x:0,y:0,width:zn,height:zn},f={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,x=ve(Yu(Yu({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",p.inactive));if(p.type==="none")return null;var m=se(p.value)?null:p.value;ra(!se(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 y=p.inactive?u:p.color;return R.createElement("li",jg({className:x,style:f,key:"legend-item-".concat(b)},lo(r.props,p,b)),R.createElement(pg,{width:o,height:o,viewBox:d,style:h},r.renderIcon(p)),R.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},v?v(m,p,b):m))})}},{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 R.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(O.PureComponent);Yu(Ex,"displayName","Legend");Yu(Ex,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var L9=jp;function z9(){this.__data__=new L9,this.size=0}var B9=z9;function I9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var U9=I9;function H9(e){return this.__data__.get(e)}var q9=H9;function F9(e){return this.__data__.has(e)}var G9=F9,K9=jp,Y9=hx,V9=px,X9=200;function Q9(e,t){var n=this.__data__;if(n instanceof K9){var r=n.__data__;if(!Y9||r.length<X9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new V9(r)}return n.set(e,t),this.size=n.size,this}var W9=Q9,Z9=jp,J9=B9,eH=U9,tH=q9,nH=G9,rH=W9;function Ts(e){var t=this.__data__=new Z9(e);this.size=t.size}Ts.prototype.clear=J9;Ts.prototype.delete=eH;Ts.prototype.get=tH;Ts.prototype.has=nH;Ts.prototype.set=rH;var kC=Ts,aH="__lodash_hash_undefined__";function iH(e){return this.__data__.set(e,aH),this}var oH=iH;function lH(e){return this.__data__.has(e)}var sH=lH,uH=px,cH=oH,fH=sH;function eh(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new uH;++t<n;)this.add(e[t])}eh.prototype.add=eh.prototype.push=cH;eh.prototype.has=fH;var LC=eh;function dH(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 zC=dH;function hH(e,t){return e.has(t)}var BC=hH,pH=LC,mH=zC,yH=BC,vH=1,gH=2;function bH(e,t,n,r,a,i){var o=n&vH,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=n&gH?new pH:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var b=e[f],v=t[f];if(r)var x=o?r(v,b,f,t,e,i):r(b,v,f,e,t,i);if(x!==void 0){if(x)continue;h=!1;break}if(p){if(!mH(t,function(m,y){if(!yH(p,y)&&(b===m||a(b,m,n,r,i)))return p.push(y)})){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 IC=bH,xH=Mr,SH=xH.Uint8Array,wH=SH;function jH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var OH=jH;function AH(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var _x=AH,Xw=Zc,Qw=wH,EH=dx,_H=IC,TH=OH,NH=_x,CH=1,MH=2,RH="[object Boolean]",PH="[object Date]",$H="[object Error]",DH="[object Map]",kH="[object Number]",LH="[object RegExp]",zH="[object Set]",BH="[object String]",IH="[object Symbol]",UH="[object ArrayBuffer]",HH="[object DataView]",Ww=Xw?Xw.prototype:void 0,my=Ww?Ww.valueOf:void 0;function qH(e,t,n,r,a,i,o){switch(n){case HH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case UH:return!(e.byteLength!=t.byteLength||!i(new Qw(e),new Qw(t)));case RH:case PH:case kH:return EH(+e,+t);case $H:return e.name==t.name&&e.message==t.message;case LH:case BH:return e==t+"";case DH:var l=TH;case zH:var s=r&CH;if(l||(l=NH),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=MH,o.set(e,t);var d=_H(l(e),l(t),r,a,i,o);return o.delete(e),d;case IH:if(my)return my.call(e)==my.call(t)}return!1}var FH=qH;function GH(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var UC=GH,KH=UC,YH=vn;function VH(e,t,n){var r=t(e);return YH(e)?r:KH(r,n(e))}var XH=VH;function QH(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 WH=QH;function ZH(){return[]}var JH=ZH,eq=WH,tq=JH,nq=Object.prototype,rq=nq.propertyIsEnumerable,Zw=Object.getOwnPropertySymbols,aq=Zw?function(e){return e==null?[]:(e=Object(e),eq(Zw(e),function(t){return rq.call(e,t)}))}:tq,iq=aq;function oq(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var lq=oq,sq=va,uq=ga,cq="[object Arguments]";function fq(e){return uq(e)&&sq(e)==cq}var dq=fq,Jw=dq,hq=ga,HC=Object.prototype,pq=HC.hasOwnProperty,mq=HC.propertyIsEnumerable,yq=Jw(function(){return arguments}())?Jw:function(e){return hq(e)&&pq.call(e,"callee")&&!mq.call(e,"callee")},Tx=yq,th={exports:{}};function vq(){return!1}var gq=vq;th.exports;(function(e,t){var n=Mr,r=gq,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})(th,th.exports);var qC=th.exports,bq=9007199254740991,xq=/^(?:0|[1-9]\d*)$/;function Sq(e,t){var n=typeof e;return t=t??bq,!!t&&(n=="number"||n!="symbol"&&xq.test(e))&&e>-1&&e%1==0&&e<t}var Nx=Sq,wq=9007199254740991;function jq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wq}var Cx=jq,Oq=va,Aq=Cx,Eq=ga,_q="[object Arguments]",Tq="[object Array]",Nq="[object Boolean]",Cq="[object Date]",Mq="[object Error]",Rq="[object Function]",Pq="[object Map]",$q="[object Number]",Dq="[object Object]",kq="[object RegExp]",Lq="[object Set]",zq="[object String]",Bq="[object WeakMap]",Iq="[object ArrayBuffer]",Uq="[object DataView]",Hq="[object Float32Array]",qq="[object Float64Array]",Fq="[object Int8Array]",Gq="[object Int16Array]",Kq="[object Int32Array]",Yq="[object Uint8Array]",Vq="[object Uint8ClampedArray]",Xq="[object Uint16Array]",Qq="[object Uint32Array]",We={};We[Hq]=We[qq]=We[Fq]=We[Gq]=We[Kq]=We[Yq]=We[Vq]=We[Xq]=We[Qq]=!0;We[_q]=We[Tq]=We[Iq]=We[Nq]=We[Uq]=We[Cq]=We[Mq]=We[Rq]=We[Pq]=We[$q]=We[Dq]=We[kq]=We[Lq]=We[zq]=We[Bq]=!1;function Wq(e){return Eq(e)&&Aq(e.length)&&!!We[Oq(e)]}var Zq=Wq;function Jq(e){return function(t){return e(t)}}var FC=Jq,nh={exports:{}};nh.exports;(function(e,t){var n=ZN,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})(nh,nh.exports);var eF=nh.exports,tF=Zq,nF=FC,ej=eF,tj=ej&&ej.isTypedArray,rF=tj?nF(tj):tF,GC=rF,aF=lq,iF=Tx,oF=vn,lF=qC,sF=Nx,uF=GC,cF=Object.prototype,fF=cF.hasOwnProperty;function dF(e,t){var n=oF(e),r=!n&&iF(e),a=!n&&!r&&lF(e),i=!n&&!r&&!a&&uF(e),o=n||r||a||i,l=o?aF(e.length,String):[],s=l.length;for(var u in e)(t||fF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||sF(u,s)))&&l.push(u);return l}var hF=dF,pF=Object.prototype;function mF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||pF;return e===n}var yF=mF;function vF(e,t){return function(n){return e(t(n))}}var KC=vF,gF=KC,bF=gF(Object.keys,Object),xF=bF,SF=yF,wF=xF,jF=Object.prototype,OF=jF.hasOwnProperty;function AF(e){if(!SF(e))return wF(e);var t=[];for(var n in Object(e))OF.call(e,n)&&n!="constructor"&&t.push(n);return t}var EF=AF,_F=fx,TF=Cx;function NF(e){return e!=null&&TF(e.length)&&!_F(e)}var Ip=NF,CF=hF,MF=EF,RF=Ip;function PF(e){return RF(e)?CF(e):MF(e)}var Mx=PF,$F=XH,DF=iq,kF=Mx;function LF(e){return $F(e,kF,DF)}var zF=LF,nj=zF,BF=1,IF=Object.prototype,UF=IF.hasOwnProperty;function HF(e,t,n,r,a,i){var o=n&BF,l=nj(e),s=l.length,u=nj(t),d=u.length;if(s!=d&&!o)return!1;for(var f=s;f--;){var h=l[f];if(!(o?h in t:UF.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 x=o;++f<s;){h=l[f];var m=e[h],y=t[h];if(r)var g=o?r(y,m,h,t,e,i):r(m,y,h,e,t,i);if(!(g===void 0?m===y||a(m,y,n,r,i):g)){v=!1;break}x||(x=h=="constructor")}if(v&&!x){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(v=!1)}return i.delete(e),i.delete(t),v}var qF=HF,FF=go,GF=Mr,KF=FF(GF,"DataView"),YF=KF,VF=go,XF=Mr,QF=VF(XF,"Promise"),WF=QF,ZF=go,JF=Mr,eG=ZF(JF,"Set"),YC=eG,tG=go,nG=Mr,rG=tG(nG,"WeakMap"),aG=rG,Ag=YF,Eg=hx,_g=WF,Tg=YC,Ng=aG,VC=va,Ns=eC,rj="[object Map]",iG="[object Object]",aj="[object Promise]",ij="[object Set]",oj="[object WeakMap]",lj="[object DataView]",oG=Ns(Ag),lG=Ns(Eg),sG=Ns(_g),uG=Ns(Tg),cG=Ns(Ng),Ei=VC;(Ag&&Ei(new Ag(new ArrayBuffer(1)))!=lj||Eg&&Ei(new Eg)!=rj||_g&&Ei(_g.resolve())!=aj||Tg&&Ei(new Tg)!=ij||Ng&&Ei(new Ng)!=oj)&&(Ei=function(e){var t=VC(e),n=t==iG?e.constructor:void 0,r=n?Ns(n):"";if(r)switch(r){case oG:return lj;case lG:return rj;case sG:return aj;case uG:return ij;case cG:return oj}return t});var fG=Ei,yy=kC,dG=IC,hG=FH,pG=qF,sj=fG,uj=vn,cj=qC,mG=GC,yG=1,fj="[object Arguments]",dj="[object Array]",Nf="[object Object]",vG=Object.prototype,hj=vG.hasOwnProperty;function gG(e,t,n,r,a,i){var o=uj(e),l=uj(t),s=o?dj:sj(e),u=l?dj:sj(t);s=s==fj?Nf:s,u=u==fj?Nf:u;var d=s==Nf,f=u==Nf,h=s==u;if(h&&cj(e)){if(!cj(t))return!1;o=!0,d=!1}if(h&&!d)return i||(i=new yy),o||mG(e)?dG(e,t,n,r,a,i):hG(e,t,s,n,r,a,i);if(!(n&yG)){var p=d&&hj.call(e,"__wrapped__"),b=f&&hj.call(t,"__wrapped__");if(p||b){var v=p?e.value():e,x=b?t.value():t;return i||(i=new yy),a(v,x,n,r,i)}}return h?(i||(i=new yy),pG(e,t,n,r,a,i)):!1}var bG=gG,xG=bG,pj=ga;function XC(e,t,n,r,a){return e===t?!0:e==null||t==null||!pj(e)&&!pj(t)?e!==e&&t!==t:xG(e,t,n,r,XC,a)}var Rx=XC,SG=kC,wG=Rx,jG=1,OG=2;function AG(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],d=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new SG;if(r)var h=r(u,d,s,e,t,f);if(!(h===void 0?wG(d,u,jG|OG,r,f):h))return!1}}return!0}var EG=AG,_G=ci;function TG(e){return e===e&&!_G(e)}var QC=TG,NG=QC,CG=Mx;function MG(e){for(var t=CG(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,NG(a)]}return t}var RG=MG;function PG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var WC=PG,$G=EG,DG=RG,kG=WC;function LG(e){var t=DG(e);return t.length==1&&t[0][2]?kG(t[0][0],t[0][1]):function(n){return n===e||$G(n,e,t)}}var zG=LG;function BG(e,t){return e!=null&&t in Object(e)}var IG=BG,UG=iC,HG=Tx,qG=vn,FG=Nx,GG=Cx,KG=Ap;function YG(e,t,n){t=UG(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=KG(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&&GG(a)&&FG(o,a)&&(qG(e)||HG(e)))}var VG=YG,XG=IG,QG=VG;function WG(e,t){return e!=null&&QG(e,t,XG)}var ZG=WG,JG=Rx,eK=oC,tK=ZG,nK=cx,rK=QC,aK=WC,iK=Ap,oK=1,lK=2;function sK(e,t){return nK(e)&&rK(t)?aK(iK(e),t):function(n){var r=eK(n,e);return r===void 0&&r===t?tK(n,e):JG(t,r,oK|lK)}}var uK=sK;function cK(e){return e}var Cs=cK;function fK(e){return function(t){return t==null?void 0:t[e]}}var dK=fK,hK=vx;function pK(e){return function(t){return hK(t,e)}}var mK=pK,yK=dK,vK=mK,gK=cx,bK=Ap;function xK(e){return gK(e)?yK(bK(e)):vK(e)}var SK=xK,wK=zG,jK=uK,OK=Cs,AK=vn,EK=SK;function _K(e){return typeof e=="function"?e:e==null?OK:typeof e=="object"?AK(e)?jK(e[0],e[1]):wK(e):EK(e)}var fi=_K;function TK(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 NK=TK;function CK(e){return e!==e}var MK=CK;function RK(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var PK=RK,$K=NK,DK=MK,kK=PK;function LK(e,t,n){return t===t?kK(e,t,n):$K(e,DK,n)}var zK=LK,BK=zK;function IK(e,t){var n=e==null?0:e.length;return!!n&&BK(e,t,0)>-1}var UK=IK;function HK(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 qK=HK;function FK(){}var GK=FK,vy=YC,KK=GK,YK=_x,VK=1/0,XK=vy&&1/YK(new vy([,-0]))[1]==VK?function(e){return new vy(e)}:KK,QK=XK,WK=LC,ZK=UK,JK=qK,eY=BC,tY=QK,nY=_x,rY=200;function aY(e,t,n){var r=-1,a=ZK,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=JK;else if(i>=rY){var u=t?null:tY(e);if(u)return nY(u);o=!1,a=eY,s=new WK}else s=t?[]:l;e:for(;++r<i;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,o&&f===f){for(var h=s.length;h--;)if(s[h]===f)continue e;t&&s.push(f),l.push(d)}else a(s,f,n)||(s!==l&&s.push(f),l.push(d))}return l}var iY=aY,oY=fi,lY=iY;function sY(e,t){return e&&e.length?lY(e,oY(t)):[]}var uY=sY;const mj=He(uY);function ZC(e,t,n){return t===!0?mj(e,n):se(t)?mj(e,t):e}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)}var cY=["ref"];function yj(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?yj(Object(n),!0).forEach(function(r){Up(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vj(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,eM(r.key),r)}}function dY(e,t,n){return t&&vj(e.prototype,t),n&&vj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hY(e,t,n){return t=rh(t),pY(e,JC()?Reflect.construct(t,n||[],rh(e).constructor):t.apply(e,n))}function pY(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 mY(e)}function mY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JC=function(){return!!e})()}function rh(e){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rh(e)}function yY(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&&Cg(e,t)}function Cg(e,t){return Cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Cg(e,t)}function Up(e,t,n){return t=eM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eM(e){var t=vY(e,"string");return Bl(t)=="symbol"?t:t+""}function vY(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 String(e)}function gY(e,t){if(e==null)return{};var n=bY(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 bY(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 xY(e){return e.value}function SY(e,t){if(R.isValidElement(e))return R.cloneElement(e,t);if(typeof e=="function")return R.createElement(e,t);t.ref;var n=gY(t,cY);return R.createElement(Ex,n)}var gj=1,ll=function(e){function t(){var n;fY(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=hY(this,t,[].concat(a)),Up(n,"lastBoundingBox",{width:-1,height:-1}),n}return yY(t,e),dY(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)>gj||Math.abs(a.height-this.lastBoundingBox.height)>gj)&&(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?zr({},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,d=a.chartHeight,f,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();f={left:((u||0)-p.width)/2}}else f=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:((d||0)-b.height)/2}}else h=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return zr(zr({},f),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,d=a.payload,f=zr(zr({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return R.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},SY(i,zr(zr({},this.props),{},{payload:ZC(d,u,xY)})))}}],[{key:"getWithHeight",value:function(r,a){var i=zr(zr({},this.defaultProps),r.props),o=i.layout;return o==="vertical"&&Y(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||a}:null}}])}(O.PureComponent);Up(ll,"displayName","Legend");Up(ll,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var bj=Zc,wY=Tx,jY=vn,xj=bj?bj.isConcatSpreadable:void 0;function OY(e){return jY(e)||wY(e)||!!(xj&&e&&e[xj])}var AY=OY,EY=UC,_Y=AY;function tM(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=_Y),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?tM(l,t-1,n,r,a):EY(a,l):r||(a[a.length]=l)}return a}var nM=tM;function TY(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 NY=TY,CY=NY,MY=CY(),RY=MY,PY=RY,$Y=Mx;function DY(e,t){return e&&PY(e,t,$Y)}var rM=DY,kY=Ip;function LY(e,t){return function(n,r){if(n==null)return n;if(!kY(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 zY=LY,BY=rM,IY=zY,UY=IY(BY),Px=UY,HY=Px,qY=Ip;function FY(e,t){var n=-1,r=qY(e)?Array(e.length):[];return HY(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var aM=FY;function GY(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var KY=GY,Sj=js;function YY(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=Sj(e),o=t!==void 0,l=t===null,s=t===t,u=Sj(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 VY=YY,XY=VY;function QY(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=XY(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 WY=QY,gy=yx,ZY=vx,JY=fi,eV=aM,tV=KY,nV=FC,rV=WY,aV=Cs,iV=vn;function oV(e,t,n){t.length?t=gy(t,function(i){return iV(i)?function(o){return ZY(o,i.length===1?i[0]:i)}:i}):t=[aV];var r=-1;t=gy(t,nV(JY));var a=eV(e,function(i,o,l){var s=gy(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return tV(a,function(i,o){return rV(i,o,n)})}var lV=oV;function sV(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 uV=sV,cV=uV,wj=Math.max;function fV(e,t,n){return t=wj(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=wj(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),cV(e,this,l)}}var dV=fV;function hV(e){return function(){return e}}var pV=hV,mV=go,yV=function(){try{var e=mV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),iM=yV,vV=pV,jj=iM,gV=Cs,bV=jj?function(e,t){return jj(e,"toString",{configurable:!0,enumerable:!1,value:vV(t),writable:!0})}:gV,xV=bV,SV=800,wV=16,jV=Date.now;function OV(e){var t=0,n=0;return function(){var r=jV(),a=wV-(r-n);if(n=r,a>0){if(++t>=SV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var AV=OV,EV=xV,_V=AV,TV=_V(EV),NV=TV,CV=Cs,MV=dV,RV=NV;function PV(e,t){return RV(MV(e,t,CV),e+"")}var $V=PV,DV=dx,kV=Ip,LV=Nx,zV=ci;function BV(e,t,n){if(!zV(n))return!1;var r=typeof t;return(r=="number"?kV(n)&&LV(t,n.length):r=="string"&&t in n)?DV(n[t],e):!1}var Hp=BV,IV=nM,UV=lV,HV=$V,Oj=Hp,qV=HV(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Oj(e,t[0],t[1])?t=[]:n>2&&Oj(t[0],t[1],t[2])&&(t=[t[0]]),UV(e,IV(t,1),[])}),FV=qV;const $x=He(FV);function Vu(e){"@babel/helpers - typeof";return Vu=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},Vu(e)}function Mg(){return Mg=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},Mg.apply(this,arguments)}function GV(e,t){return XV(e)||VV(e,t)||YV(e,t)||KV()}function KV(){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 Aj(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 Aj(e,t)}}function Aj(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 VV(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function XV(e){if(Array.isArray(e))return e}function Ej(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 by(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ej(Object(n),!0).forEach(function(r){QV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ej(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QV(e,t,n){return t=WV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WV(e){var t=ZV(e,"string");return Vu(t)=="symbol"?t:t+""}function ZV(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JV(e){return Array.isArray(e)&&Ot(e[0])&&Ot(e[1])?e.join(" ~ "):e}var eX=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,d=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,b=t.labelClassName,v=t.label,x=t.labelFormatter,m=t.accessibilityLayer,y=m===void 0?!1:m,g=function(){if(d&&d.length){var P={padding:0,margin:0},B=(h?$x(d,h):d).map(function(D,C){if(D.type==="none")return null;var $=by({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),L=D.formatter||f||JV,z=D.value,F=D.name,G=z,Q=F;if(L&&G!=null&&Q!=null){var K=L(z,F,D,C,d);if(Array.isArray(K)){var te=GV(K,2);G=te[0],Q=te[1]}else G=K}return R.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:$},Ot(Q)?R.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,Ot(Q)?R.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,R.createElement("span",{className:"recharts-tooltip-item-value"},G),R.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return R.createElement("ul",{className:"recharts-tooltip-item-list",style:P},B)}return null},S=by({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=by({margin:0},u),j=!ge(v),A=j?v:"",E=ve("recharts-default-tooltip",p),_=ve("recharts-tooltip-label",b);j&&x&&d!==void 0&&d!==null&&(A=x(v,d));var N=y?{role:"status","aria-live":"assertive"}:{};return R.createElement("div",Mg({className:E,style:S},N),R.createElement("p",{className:_,style:w},R.isValidElement(A)?A:"".concat(A)),g())};function Xu(e){"@babel/helpers - typeof";return Xu=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},Xu(e)}function Cf(e,t,n){return t=tX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tX(e){var t=nX(e,"string");return Xu(t)=="symbol"?t:t+""}function nX(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gs="recharts-tooltip-wrapper",rX={visibility:"hidden"};function aX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ve(Gs,Cf(Cf(Cf(Cf({},"".concat(Gs,"-right"),Y(n)&&t&&Y(t.x)&&n>=t.x),"".concat(Gs,"-left"),Y(n)&&t&&Y(t.x)&&n<t.x),"".concat(Gs,"-bottom"),Y(r)&&t&&Y(t.y)&&r>=t.y),"".concat(Gs,"-top"),Y(r)&&t&&Y(t.y)&&r<t.y))}function _j(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&&Y(i[r]))return i[r];var d=n[r]-l-a,f=n[r]+a;if(t[r])return o[r]?d:f;if(o[r]){var h=d,p=s[r];return h<p?Math.max(f,s[r]):Math.max(d,s[r])}var b=f+l,v=s[r]+u;return b>v?Math.max(d,s[r]):Math.max(f,s[r])}function iX(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 oX(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,d,f;return o.height>0&&o.width>0&&n?(d=_j({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=_j({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=iX({translateX:d,translateY:f,useTranslate3d:l})):u=rX,{cssProperties:u,cssClasses:aX({translateX:d,translateY:f,coordinate:n})}}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 Tj(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 Nj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tj(Object(n),!0).forEach(function(r){Pg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sX(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,lM(r.key),r)}}function uX(e,t,n){return t&&sX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cX(e,t,n){return t=ah(t),fX(e,oM()?Reflect.construct(t,n||[],ah(e).constructor):t.apply(e,n))}function fX(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 dX(e)}function dX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oM=function(){return!!e})()}function ah(e){return ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ah(e)}function hX(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&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Rg(e,t)}function Pg(e,t,n){return t=lM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lM(e){var t=pX(e,"string");return Il(t)=="symbol"?t:t+""}function pX(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 Cj=1,mX=function(e){function t(){var n;lX(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=cX(this,t,[].concat(a)),Pg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Pg(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,d;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=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return hX(t,e),uX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Cj||Math.abs(r.height-this.state.lastBoundingBox.height)>Cj)&&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,d=a.coordinate,f=a.hasPayload,h=a.isAnimationActive,p=a.offset,b=a.position,v=a.reverseDirection,x=a.useTranslate3d,m=a.viewBox,y=a.wrapperStyle,g=oX({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:p,position:b,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:m}),S=g.cssClasses,w=g.cssProperties,j=Nj(Nj({transition:h&&i?"transform ".concat(l,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},y);return R.createElement("div",{tabIndex:-1,className:S,style:j,ref:function(E){r.wrapperNode=E}},u)}}])}(O.PureComponent),yX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ms={isSsr:yX()};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 Mj(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 Rj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mj(Object(n),!0).forEach(function(r){Dx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gX(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,uM(r.key),r)}}function bX(e,t,n){return t&&gX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xX(e,t,n){return t=ih(t),SX(e,sM()?Reflect.construct(t,n||[],ih(e).constructor):t.apply(e,n))}function SX(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 wX(e)}function wX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sM=function(){return!!e})()}function ih(e){return ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ih(e)}function jX(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&&$g(e,t)}function $g(e,t){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$g(e,t)}function Dx(e,t,n){return t=uM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uM(e){var t=OX(e,"string");return Ul(t)=="symbol"?t:t+""}function OX(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 String(e)}function AX(e){return e.dataKey}function EX(e,t){return R.isValidElement(e)?R.cloneElement(e,t):typeof e=="function"?R.createElement(e,t):R.createElement(eX,t)}var sr=function(e){function t(){return vX(this,t),xX(this,t,arguments)}return jX(t,e),bX(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,d=a.coordinate,f=a.filterNull,h=a.isAnimationActive,p=a.offset,b=a.payload,v=a.payloadUniqBy,x=a.position,m=a.reverseDirection,y=a.useTranslate3d,g=a.viewBox,S=a.wrapperStyle,w=b??[];f&&w.length&&(w=ZC(b.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),v,AX));var j=w.length>0;return R.createElement(mX,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:h,active:i,coordinate:d,hasPayload:j,offset:p,position:x,reverseDirection:m,useTranslate3d:y,viewBox:g,wrapperStyle:S},EX(u,Rj(Rj({},this.props),{},{payload:w})))}}])}(O.PureComponent);Dx(sr,"displayName","Tooltip");Dx(sr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ms.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 _X=Mr,TX=function(){return _X.Date.now()},NX=TX,CX=/\s/;function MX(e){for(var t=e.length;t--&&CX.test(e.charAt(t)););return t}var RX=MX,PX=RX,$X=/^\s+/;function DX(e){return e&&e.slice(0,PX(e)+1).replace($X,"")}var kX=DX,LX=kX,Pj=ci,zX=js,$j=NaN,BX=/^[-+]0x[0-9a-f]+$/i,IX=/^0b[01]+$/i,UX=/^0o[0-7]+$/i,HX=parseInt;function qX(e){if(typeof e=="number")return e;if(zX(e))return $j;if(Pj(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pj(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=LX(e);var n=IX.test(e);return n||UX.test(e)?HX(e.slice(2),n?2:8):BX.test(e)?$j:+e}var cM=qX,FX=ci,xy=NX,Dj=cM,GX="Expected a function",KX=Math.max,YX=Math.min;function VX(e,t,n){var r,a,i,o,l,s,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(GX);t=Dj(t)||0,FX(n)&&(d=!!n.leading,f="maxWait"in n,i=f?KX(Dj(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(j){var A=r,E=a;return r=a=void 0,u=j,o=e.apply(E,A),o}function b(j){return u=j,l=setTimeout(m,t),d?p(j):o}function v(j){var A=j-s,E=j-u,_=t-A;return f?YX(_,i-E):_}function x(j){var A=j-s,E=j-u;return s===void 0||A>=t||A<0||f&&E>=i}function m(){var j=xy();if(x(j))return y(j);l=setTimeout(m,v(j))}function y(j){return l=void 0,h&&r?p(j):(r=a=void 0,o)}function g(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function S(){return l===void 0?o:y(xy())}function w(){var j=xy(),A=x(j);if(r=arguments,a=this,s=j,A){if(l===void 0)return b(s);if(f)return clearTimeout(l),l=setTimeout(m,t),p(s)}return l===void 0&&(l=setTimeout(m,t)),o}return w.cancel=g,w.flush=S,w}var XX=VX,QX=XX,WX=ci,ZX="Expected a function";function JX(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(ZX);return WX(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),QX(e,t,{leading:r,maxWait:t,trailing:a})}var eQ=JX;const fM=He(eQ);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 kj(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 Mf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kj(Object(n),!0).forEach(function(r){tQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tQ(e,t,n){return t=nQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nQ(e){var t=rQ(e,"string");return Qu(t)=="symbol"?t:t+""}function rQ(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)}function aQ(e,t){return sQ(e)||lQ(e,t)||oQ(e,t)||iQ()}function iQ(){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 oQ(e,t){if(e){if(typeof e=="string")return Lj(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 Lj(e,t)}}function Lj(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 lQ(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function sQ(e){if(Array.isArray(e))return e}var zj=O.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,d=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,b=e.debounce,v=b===void 0?0:b,x=e.id,m=e.className,y=e.onResize,g=e.style,S=g===void 0?{}:g,w=O.useRef(null),j=O.useRef();j.current=y,O.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var A=O.useState({containerWidth:a.width,containerHeight:a.height}),E=aQ(A,2),_=E[0],N=E[1],k=O.useCallback(function(B,D){N(function(C){var $=Math.round(B),L=Math.round(D);return C.containerWidth===$&&C.containerHeight===L?C:{containerWidth:$,containerHeight:L}})},[]);O.useEffect(function(){var B=function(F){var G,Q=F[0].contentRect,K=Q.width,te=Q.height;k(K,te),(G=j.current)===null||G===void 0||G.call(j,K,te)};v>0&&(B=fM(B,v,{trailing:!0,leading:!1}));var D=new ResizeObserver(B),C=w.current.getBoundingClientRect(),$=C.width,L=C.height;return k($,L),D.observe(w.current),function(){D.disconnect()}},[k,v]);var P=O.useMemo(function(){var B=_.containerWidth,D=_.containerHeight;if(B<0||D<0)return null;ra(Mi(o)||Mi(s),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,s),ra(!n||n>0,"The aspect(%s) must be greater than zero.",n);var C=Mi(o)?B:o,$=Mi(s)?D:s;n&&n>0&&(C?$=C/n:$&&(C=$*n),h&&$>h&&($=h)),ra(C>0||$>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.`,C,$,o,s,d,f,n);var L=!Array.isArray(p)&&na(p.type).endsWith("Chart");return R.Children.map(p,function(z){return R.isValidElement(z)?O.cloneElement(z,Mf({width:C,height:$},L?{style:Mf({height:"100%",width:"100%",maxHeight:$,maxWidth:C},z.props.style)}:{})):z})},[n,p,s,h,f,d,_,o]);return R.createElement("div",{id:x?"".concat(x):void 0,className:ve("recharts-responsive-container",m),style:Mf(Mf({},S),{},{width:o,height:s,minWidth:d,minHeight:f,maxHeight:h}),ref:w},P)}),qp=function(t){return null};qp.displayName="Cell";function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function Bj(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 Dg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bj(Object(n),!0).forEach(function(r){uQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uQ(e,t,n){return t=cQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cQ(e){var t=fQ(e,"string");return Wu(t)=="symbol"?t:t+""}function fQ(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var To={widthCache:{},cacheCount:0},dQ=2e3,hQ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ij="recharts_measurement_span";function pQ(e){var t=Dg({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Su=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ms.isSsr)return{width:0,height:0};var r=pQ(n),a=JSON.stringify({text:t,copyStyle:r});if(To.widthCache[a])return To.widthCache[a];try{var i=document.getElementById(Ij);i||(i=document.createElement("span"),i.setAttribute("id",Ij),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Dg(Dg({},hQ),r);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return To.widthCache[a]=s,++To.cacheCount>dQ&&(To.cacheCount=0,To.widthCache={}),s}catch{return{width:0,height:0}}},mQ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 oh(e,t){return bQ(e)||gQ(e,t)||vQ(e,t)||yQ()}function yQ(){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 vQ(e,t){if(e){if(typeof e=="string")return Uj(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 Uj(e,t)}}function Uj(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 gQ(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function bQ(e){if(Array.isArray(e))return e}function xQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hj(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,wQ(r.key),r)}}function SQ(e,t,n){return t&&Hj(e.prototype,t),n&&Hj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wQ(e){var t=jQ(e,"string");return Zu(t)=="symbol"?t:t+""}function jQ(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 String(e)}var qj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Fj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,OQ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,AQ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,dM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},EQ=Object.keys(dM),Yo="NaN";function _Q(e,t){return e*dM[t]}var Rf=function(){function e(t,n){xQ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!OQ.test(n)&&(this.num=NaN,this.unit=""),EQ.includes(n)&&(this.num=_Q(t,n),this.unit="px")}return SQ(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=AQ.exec(n))!==null&&r!==void 0?r:[],i=oh(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function hM(e){if(e.includes(Yo))return Yo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=qj.exec(t))!==null&&n!==void 0?n:[],a=oh(r,4),i=a[1],o=a[2],l=a[3],s=Rf.parse(i??""),u=Rf.parse(l??""),d=o==="*"?s.multiply(u):s.divide(u);if(d.isNaN())return Yo;t=t.replace(qj,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=Fj.exec(t))!==null&&f!==void 0?f:[],p=oh(h,4),b=p[1],v=p[2],x=p[3],m=Rf.parse(b??""),y=Rf.parse(x??""),g=v==="+"?m.add(y):m.subtract(y);if(g.isNaN())return Yo;t=t.replace(Fj,g.toString())}return t}var Gj=/\(([^()]*)\)/;function TQ(e){for(var t=e;t.includes("(");){var n=Gj.exec(t),r=oh(n,2),a=r[1];t=t.replace(Gj,hM(a))}return t}function NQ(e){var t=e.replace(/\s+/g,"");return t=TQ(t),t=hM(t),t}function CQ(e){try{return NQ(e)}catch{return Yo}}function Sy(e){var t=CQ(e.slice(5,-1));return t===Yo?"":t}var MQ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],RQ=["dx","dy","angle","className","breakAll"];function kg(){return kg=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},kg.apply(this,arguments)}function Kj(e,t){if(e==null)return{};var n=PQ(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 PQ(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 Yj(e,t){return LQ(e)||kQ(e,t)||DQ(e,t)||$Q()}function $Q(){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 DQ(e,t){if(e){if(typeof e=="string")return Vj(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 Vj(e,t)}}function Vj(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 kQ(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function LQ(e){if(Array.isArray(e))return e}var pM=/[ \f\n\r\t\v\u2028\u2029]+/,mM=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];ge(n)||(r?i=n.toString().split(""):i=n.toString().split(pM));var o=i.map(function(s){return{word:s,width:Su(s,a).width}}),l=r?0:Su(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},zQ=function(t,n,r,a,i){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,d=Y(o),f=l,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function($,L){var z=L.word,F=L.width,G=$[$.length-1];if(G&&(a==null||i||G.width+F+r<Number(a)))G.words.push(z),G.width+=F+r;else{var Q={words:[z],width:F};$.push(Q)}return $},[])},p=h(n),b=function(C){return C.reduce(function($,L){return $.width>L.width?$:L})};if(!d)return p;for(var v="…",x=function(C){var $=f.slice(0,C),L=mM({breakAll:u,style:s,children:$+v}).wordsWithComputedWidth,z=h(L),F=z.length>o||b(z).width>Number(a);return[F,z]},m=0,y=f.length-1,g=0,S;m<=y&&g<=f.length-1;){var w=Math.floor((m+y)/2),j=w-1,A=x(j),E=Yj(A,2),_=E[0],N=E[1],k=x(w),P=Yj(k,1),B=P[0];if(!_&&!B&&(m=w+1),_&&B&&(y=w-1),!_&&B){S=N;break}g++}return S||p},Xj=function(t){var n=ge(t)?[]:t.toString().split(pM);return[{words:n}]},BQ=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!Ms.isSsr){var s,u,d=mM({breakAll:o,children:a,style:i});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;s=f,u=h}else return Xj(a);return zQ({breakAll:o,children:a,maxLines:l,style:i},s,u,n,r)}return Xj(a)},Qj="#808080",so=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,d=t.scaleToFit,f=d===void 0?!1:d,h=t.textAnchor,p=h===void 0?"start":h,b=t.verticalAnchor,v=b===void 0?"end":b,x=t.fill,m=x===void 0?Qj:x,y=Kj(t,MQ),g=O.useMemo(function(){return BQ({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:f,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,f,y.style,y.width]),S=y.dx,w=y.dy,j=y.angle,A=y.className,E=y.breakAll,_=Kj(y,RQ);if(!Ot(r)||!Ot(i))return null;var N=r+(Y(S)?S:0),k=i+(Y(w)?w:0),P;switch(v){case"start":P=Sy("calc(".concat(u,")"));break;case"middle":P=Sy("calc(".concat((g.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:P=Sy("calc(".concat(g.length-1," * -").concat(l,")"));break}var B=[];if(f){var D=g[0].width,C=y.width;B.push("scale(".concat((Y(C)?C/D:1)/D,")"))}return j&&B.push("rotate(".concat(j,", ").concat(N,", ").concat(k,")")),B.length&&(_.transform=B.join(" ")),R.createElement("text",kg({},oe(_,!0),{x:N,y:k,className:ve("recharts-text",A),textAnchor:p,fill:m.includes("url")?Qj:m}),g.map(function($,L){var z=$.words.join(E?"":" ");return R.createElement("tspan",{x:N,dy:L===0?P:l,key:"".concat(z,"-").concat(L)},z)}))};function ni(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function IQ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function kx(e){let t,n,r;e.length!==2?(t=ni,n=(l,s)=>ni(e(l),s),r=(l,s)=>e(l)-s):(t=e===ni||e===IQ?e:UQ,n=e,r=e);function a(l,s,u=0,d=l.length){if(u<d){if(t(s,s)!==0)return d;do{const f=u+d>>>1;n(l[f],s)<0?u=f+1:d=f}while(u<d)}return u}function i(l,s,u=0,d=l.length){if(u<d){if(t(s,s)!==0)return d;do{const f=u+d>>>1;n(l[f],s)<=0?u=f+1:d=f}while(u<d)}return u}function o(l,s,u=0,d=l.length){const f=a(l,s,u,d-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:a,center:o,right:i}}function UQ(){return 0}function yM(e){return e===null?NaN:+e}function*HQ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const qQ=kx(ni),tf=qQ.right;kx(yM).center;class Wj extends Map{constructor(t,n=KQ){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(Zj(this,t))}has(t){return super.has(Zj(this,t))}set(t,n){return super.set(FQ(this,t),n)}delete(t){return super.delete(GQ(this,t))}}function Zj({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function FQ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function GQ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function KQ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function YQ(e=ni){if(e===ni)return vM;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 vM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const VQ=Math.sqrt(50),XQ=Math.sqrt(10),QQ=Math.sqrt(2);function lh(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>=VQ?10:i>=XQ?5:i>=QQ?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?lh(e,t,n*2):[l,s,u]}function Lg(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?lh(t,e,n):lh(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 zg(e,t,n){return t=+t,e=+e,n=+n,lh(e,t,n)[2]}function Bg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?zg(t,e,n):zg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Jj(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function e2(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function gM(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?vM:YQ(a);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,d=Math.log(s),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(s-f)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*f/s+h)),b=Math.min(r,Math.floor(t+(s-u)*f/s+h));gM(e,t,p,b,a)}const i=e[t];let o=n,l=r;for(Ks(e,n,t),a(e[r],i)>0&&Ks(e,n,r);o<l;){for(Ks(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Ks(e,n,l):(++l,Ks(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Ks(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function WQ(e,t,n){if(e=Float64Array.from(HQ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return e2(e);if(t>=1)return Jj(e);var r,a=(r-1)*t,i=Math.floor(a),o=Jj(gM(e,i).subarray(0,i+1)),l=e2(e.subarray(i+1));return o+(l-o)*(a-i)}}function ZQ(e,t,n=yM){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 JQ(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 nr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ba(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 Ig=Symbol("implicit");function Lx(){var e=new Wj,t=[],n=[],r=Ig;function a(i){let o=e.get(i);if(o===void 0){if(r!==Ig)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 Wj;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 Lx(t,n).unknown(r)},nr.apply(a,arguments),a}function Ju(){var e=Lx().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,l=!1,s=0,u=0,d=.5;delete e.unknown;function f(){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))*d,o=i*(1-s),l&&(b=Math.round(b),o=Math.round(o));var x=JQ(h).map(function(m){return b+i*m});return n(p?x.reverse():x)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,f()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(h){return arguments.length?(l=!!h,f()):l},e.padding=function(h){return arguments.length?(s=Math.min(1,u=+h),f()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),f()):s},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),f()):d},e.copy=function(){return Ju(t(),[r,a]).round(l).paddingInner(s).paddingOuter(u).align(d)},nr.apply(f(),arguments)}function bM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bM(t())},e}function wu(){return bM(Ju.apply(null,arguments).paddingInner(1))}function zx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function xM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nf(){}var ec=.7,sh=1/ec,sl="\\s*([+-]?\\d+)\\s*",tc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ar="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eW=/^#([0-9a-f]{3,8})$/,tW=new RegExp(`^rgb\\(${sl},${sl},${sl}\\)$`),nW=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),rW=new RegExp(`^rgba\\(${sl},${sl},${sl},${tc}\\)$`),aW=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${tc}\\)$`),iW=new RegExp(`^hsl\\(${tc},${Ar},${Ar}\\)$`),oW=new RegExp(`^hsla\\(${tc},${Ar},${Ar},${tc}\\)$`),t2={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};zx(nf,nc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:n2,formatHex:n2,formatHex8:lW,formatHsl:sW,formatRgb:r2,toString:r2});function n2(){return this.rgb().formatHex()}function lW(){return this.rgb().formatHex8()}function sW(){return SM(this).formatHsl()}function r2(){return this.rgb().formatRgb()}function nc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=eW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?a2(t):n===3?new dn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Pf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Pf(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=tW.exec(e))?new dn(t[1],t[2],t[3],1):(t=nW.exec(e))?new dn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rW.exec(e))?Pf(t[1],t[2],t[3],t[4]):(t=aW.exec(e))?Pf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iW.exec(e))?l2(t[1],t[2]/100,t[3]/100,1):(t=oW.exec(e))?l2(t[1],t[2]/100,t[3]/100,t[4]):t2.hasOwnProperty(e)?a2(t2[e]):e==="transparent"?new dn(NaN,NaN,NaN,0):null}function a2(e){return new dn(e>>16&255,e>>8&255,e&255,1)}function Pf(e,t,n,r){return r<=0&&(e=t=n=NaN),new dn(e,t,n,r)}function uW(e){return e instanceof nf||(e=nc(e)),e?(e=e.rgb(),new dn(e.r,e.g,e.b,e.opacity)):new dn}function Ug(e,t,n,r){return arguments.length===1?uW(e):new dn(e,t,n,r??1)}function dn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}zx(dn,Ug,xM(nf,{brighter(e){return e=e==null?sh:Math.pow(sh,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ec:Math.pow(ec,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dn(Qi(this.r),Qi(this.g),Qi(this.b),uh(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:i2,formatHex:i2,formatHex8:cW,formatRgb:o2,toString:o2}));function i2(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}`}function cW(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}${Ri((isNaN(this.opacity)?1:this.opacity)*255)}`}function o2(){const e=uh(this.opacity);return`${e===1?"rgb(":"rgba("}${Qi(this.r)}, ${Qi(this.g)}, ${Qi(this.b)}${e===1?")":`, ${e})`}`}function uh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ri(e){return e=Qi(e),(e<16?"0":"")+e.toString(16)}function l2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cr(e,t,n,r)}function SM(e){if(e instanceof cr)return new cr(e.h,e.s,e.l,e.opacity);if(e instanceof nf||(e=nc(e)),!e)return new cr;if(e instanceof cr)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 cr(o,l,s,e.opacity)}function fW(e,t,n,r){return arguments.length===1?SM(e):new cr(e,t,n,r??1)}function cr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}zx(cr,fW,xM(nf,{brighter(e){return e=e==null?sh:Math.pow(sh,e),new cr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ec:Math.pow(ec,e),new cr(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 dn(wy(e>=240?e-240:e+120,a,r),wy(e,a,r),wy(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new cr(s2(this.h),$f(this.s),$f(this.l),uh(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=uh(this.opacity);return`${e===1?"hsl(":"hsla("}${s2(this.h)}, ${$f(this.s)*100}%, ${$f(this.l)*100}%${e===1?")":`, ${e})`}`}}));function s2(e){return e=(e||0)%360,e<0?e+360:e}function $f(e){return Math.max(0,Math.min(1,e||0))}function wy(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 Bx=e=>()=>e;function dW(e,t){return function(n){return e+n*t}}function hW(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 pW(e){return(e=+e)==1?wM:function(t,n){return n-t?hW(t,n,e):Bx(isNaN(t)?n:t)}}function wM(e,t){var n=t-e;return n?dW(e,n):Bx(isNaN(e)?t:e)}const u2=function e(t){var n=pW(t);function r(a,i){var o=n((a=Ug(a)).r,(i=Ug(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=wM(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=s(d),a.opacity=u(d),a+""}}return r.gamma=e,r}(1);function mW(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 yW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vW(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]=Rs(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 gW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ch(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function bW(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]=Rs(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Hg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jy=new RegExp(Hg.source,"g");function xW(e){return function(){return e}}function SW(e){return function(t){return e(t)+""}}function wW(e,t){var n=Hg.lastIndex=jy.lastIndex=0,r,a,i,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=Hg.exec(e))&&(a=jy.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:ch(r,a)})),n=jy.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?s[0]?SW(s[0].x):xW(t):(t=s.length,function(u){for(var d=0,f;d<t;++d)l[(f=s[d]).i]=f.x(u);return l.join("")})}function Rs(e,t){var n=typeof t,r;return t==null||n==="boolean"?Bx(t):(n==="number"?ch:n==="string"?(r=nc(t))?(t=r,u2):wW:t instanceof nc?u2:t instanceof Date?gW:yW(t)?mW:Array.isArray(t)?vW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bW:ch)(e,t)}function Ix(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function jW(e,t){t===void 0&&(t=e,e=Rs);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 OW(e){return function(){return e}}function fh(e){return+e}var c2=[0,1];function tn(e){return e}function qg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:OW(isNaN(t)?NaN:.5)}function AW(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function EW(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=qg(a,r),i=n(o,i)):(r=qg(r,a),i=n(i,o)),function(l){return i(r(l))}}function _W(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]=qg(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var s=tf(e,l,1,r)-1;return i[s](a[s](l))}}function rf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fp(){var e=c2,t=c2,n=Rs,r,a,i,o=tn,l,s,u;function d(){var h=Math.min(e.length,t.length);return o!==tn&&(o=AW(e[0],e[h-1])),l=h>2?_W:EW,s=u=null,f}function f(h){return h==null||isNaN(h=+h)?i:(s||(s=l(e.map(r),t,n)))(r(o(h)))}return f.invert=function(h){return o(a((u||(u=l(t,e.map(r),ch)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,fh),d()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=Ix,d()},f.clamp=function(h){return arguments.length?(o=h?!0:tn,d()):o!==tn},f.interpolate=function(h){return arguments.length?(n=h,d()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,p){return r=h,a=p,d()}}function Ux(){return Fp()(tn,tn)}function TW(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function dh(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 Hl(e){return e=dh(Math.abs(e)),e?e[1]:NaN}function NW(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 CW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var MW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rc(e){if(!(t=MW.exec(e)))throw new Error("invalid format: "+e);var t;return new Hx({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]})}rc.prototype=Hx.prototype;function Hx(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+""}Hx.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 RW(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 hh;function PW(e,t){var n=dh(e,t);if(!n)return hh=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(hh=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")+dh(e,Math.max(0,t+i-1))[0]}function f2(e,t){var n=dh(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 d2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:TW,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)=>f2(e*100,t),r:f2,s:PW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function h2(e){return e}var p2=Array.prototype.map,m2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function $W(e){var t=e.grouping===void 0||e.thousands===void 0?h2:NW(p2.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?h2:CW(p2.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(f,h){f=rc(f);var p=f.fill,b=f.align,v=f.sign,x=f.symbol,m=f.zero,y=f.width,g=f.comma,S=f.precision,w=f.trim,j=f.type;j==="n"?(g=!0,j="g"):d2[j]||(S===void 0&&(S=12),w=!0,j="g"),(m||p==="0"&&b==="=")&&(m=!0,p="0",b="=");var A=(h&&h.prefix!==void 0?h.prefix:"")+(x==="$"?n:x==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),E=(x==="$"?r:/[%p]/.test(j)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),_=d2[j],N=/[defgprs%]/.test(j);S=S===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function k(P){var B=A,D=E,C,$,L;if(j==="c")D=_(P)+D,P="";else{P=+P;var z=P<0||1/P<0;if(P=isNaN(P)?s:_(Math.abs(P),S),w&&(P=RW(P)),z&&+P==0&&v!=="+"&&(z=!1),B=(z?v==="("?v:l:v==="-"||v==="("?"":v)+B,D=(j==="s"&&!isNaN(P)&&hh!==void 0?m2[8+hh/3]:"")+D+(z&&v==="("?")":""),N){for(C=-1,$=P.length;++C<$;)if(L=P.charCodeAt(C),48>L||L>57){D=(L===46?a+P.slice(C+1):P.slice(C))+D,P=P.slice(0,C);break}}}g&&!m&&(P=t(P,1/0));var F=B.length+P.length+D.length,G=F<y?new Array(y-F+1).join(p):"";switch(g&&m&&(P=t(G+P,G.length?y-D.length:1/0),G=""),b){case"<":P=B+P+D+G;break;case"=":P=B+G+P+D;break;case"^":P=G.slice(0,F=G.length>>1)+B+P+D+G.slice(F);break;default:P=G+B+P+D;break}return i(P)}return k.toString=function(){return f+""},k}function d(f,h){var p=Math.max(-8,Math.min(8,Math.floor(Hl(h)/3)))*3,b=Math.pow(10,-p),v=u((f=rc(f),f.type="f",f),{suffix:m2[8+p/3]});return function(x){return v(b*x)}}return{format:u,formatPrefix:d}}var Df,qx,jM;DW({thousands:",",grouping:[3],currency:["$",""]});function DW(e){return Df=$W(e),qx=Df.format,jM=Df.formatPrefix,Df}function kW(e){return Math.max(0,-Hl(Math.abs(e)))}function LW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Hl(t)/3)))*3-Hl(Math.abs(e)))}function zW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Hl(t)-Hl(e))+1}function OM(e,t,n,r){var a=Bg(e,t,n),i;switch(r=rc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=LW(a,o))&&(r.precision=i),jM(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=zW(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=kW(a))&&(r.precision=i-(r.type==="%")*2);break}}return qx(r)}function di(e){var t=e.domain;return e.ticks=function(n){var r=t();return Lg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return OM(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,d=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);d-- >0;){if(u=zg(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 ph(){var e=Ux();return e.copy=function(){return rf(e,ph())},nr.apply(e,arguments),di(e)}function AM(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,fh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return AM(e).unknown(t)},e=arguments.length?Array.from(e,fh):[0,1],di(n)}function EM(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 y2(e){return Math.log(e)}function v2(e){return Math.exp(e)}function BW(e){return-Math.log(-e)}function IW(e){return-Math.exp(-e)}function UW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function HW(e){return e===10?UW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function qW(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 g2(e){return(t,n)=>-e(-t,n)}function Fx(e){const t=e(y2,v2),n=t.domain;let r=10,a,i;function o(){return a=qW(r),i=HW(r),n()[0]<0?(a=g2(a),i=g2(i),e(BW,IW)):e(y2,v2),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],d=s[s.length-1];const f=d<u;f&&([u,d]=[d,u]);let h=a(u),p=a(d),b,v;const x=l==null?10:+l;let m=[];if(!(r%1)&&p-h<x){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>d)break;m.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>d)break;m.push(v)}m.length*2<x&&(m=Lg(u,d,x))}else m=Lg(h,p,Math.min(p-h,x)).map(i);return f?m.reverse():m},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=rc(s)).precision==null&&(s.trim=!0),s=qx(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return d=>{let f=d/i(Math.round(a(d)));return f*r<r-.5&&(f*=r),f<=u?s(d):""}},t.nice=()=>n(EM(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function _M(){const e=Fx(Fp()).domain([1,10]);return e.copy=()=>rf(e,_M()).base(e.base()),nr.apply(e,arguments),e}function b2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function x2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Gx(e){var t=1,n=e(b2(t),x2(t));return n.constant=function(r){return arguments.length?e(b2(t=+r),x2(t)):t},di(n)}function TM(){var e=Gx(Fp());return e.copy=function(){return rf(e,TM()).constant(e.constant())},nr.apply(e,arguments)}function S2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function FW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function GW(e){return e<0?-e*e:e*e}function Kx(e){var t=e(tn,tn),n=1;function r(){return n===1?e(tn,tn):n===.5?e(FW,GW):e(S2(n),S2(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},di(t)}function Yx(){var e=Kx(Fp());return e.copy=function(){return rf(e,Yx()).exponent(e.exponent())},nr.apply(e,arguments),e}function KW(){return Yx.apply(null,arguments).exponent(.5)}function w2(e){return Math.sign(e)*e*e}function YW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function NM(){var e=Ux(),t=[0,1],n=!1,r;function a(i){var o=YW(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(w2(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,fh)).map(w2)),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 NM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},nr.apply(a,arguments),di(a)}function CM(){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]=ZQ(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[tf(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(ni),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 CM().domain(e).range(t).unknown(r)},nr.apply(i,arguments)}function MM(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(s){return s!=null&&s<=s?a[tf(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 MM().domain([e,t]).range(a).unknown(i)},nr.apply(di(o),arguments)}function RM(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[tf(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 RM().domain(e).range(t).unknown(n)},nr.apply(a,arguments)}const Oy=new Date,Ay=new Date;function Et(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=>Et(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)=>(Oy.setTime(+i),Ay.setTime(+o),e(Oy),e(Ay),Math.floor(n(Oy,Ay))),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 mh=Et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);mh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):mh);mh.range;const Wr=1e3,Vn=Wr*60,Zr=Vn*60,da=Zr*24,Vx=da*7,j2=da*30,Ey=da*365,Pi=Et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wr)},(e,t)=>(t-e)/Wr,e=>e.getUTCSeconds());Pi.range;const Xx=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wr)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getMinutes());Xx.range;const Qx=Et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getUTCMinutes());Qx.range;const Wx=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wr-e.getMinutes()*Vn)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getHours());Wx.range;const Zx=Et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCHours());Zx.range;const af=Et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vn)/da,e=>e.getDate()-1);af.range;const Gp=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/da,e=>e.getUTCDate()-1);Gp.range;const PM=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/da,e=>Math.floor(e/da));PM.range;function bo(e){return Et(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())*Vn)/Vx)}const Kp=bo(0),yh=bo(1),VW=bo(2),XW=bo(3),ql=bo(4),QW=bo(5),WW=bo(6);Kp.range;yh.range;VW.range;XW.range;ql.range;QW.range;WW.range;function xo(e){return Et(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)/Vx)}const Yp=xo(0),vh=xo(1),ZW=xo(2),JW=xo(3),Fl=xo(4),eZ=xo(5),tZ=xo(6);Yp.range;vh.range;ZW.range;JW.range;Fl.range;eZ.range;tZ.range;const Jx=Et(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());Jx.range;const e1=Et(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());e1.range;const ha=Et(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());ha.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(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)});ha.range;const pa=Et(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());pa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(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)});pa.range;function $M(e,t,n,r,a,i){const o=[[Pi,1,Wr],[Pi,5,5*Wr],[Pi,15,15*Wr],[Pi,30,30*Wr],[i,1,Vn],[i,5,5*Vn],[i,15,15*Vn],[i,30,30*Vn],[a,1,Zr],[a,3,3*Zr],[a,6,6*Zr],[a,12,12*Zr],[r,1,da],[r,2,2*da],[n,1,Vx],[t,1,j2],[t,3,3*j2],[e,1,Ey]];function l(u,d,f){const h=d<u;h&&([u,d]=[d,u]);const p=f&&typeof f.range=="function"?f:s(u,d,f),b=p?p.range(u,+d+1):[];return h?b.reverse():b}function s(u,d,f){const h=Math.abs(d-u)/f,p=kx(([,,x])=>x).right(o,h);if(p===o.length)return e.every(Bg(u/Ey,d/Ey,f));if(p===0)return mh.every(Math.max(Bg(u,d,f),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[nZ,rZ]=$M(pa,e1,Yp,PM,Zx,Qx),[aZ,iZ]=$M(ha,Jx,Kp,af,Wx,Xx);function _y(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 Ty(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 Ys(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function oZ(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=Vs(a),d=Xs(a),f=Vs(i),h=Xs(i),p=Vs(o),b=Xs(o),v=Vs(l),x=Xs(l),m=Vs(s),y=Xs(s),g={a:L,A:z,b:F,B:G,c:null,d:N2,e:N2,f:NZ,g:BZ,G:UZ,H:EZ,I:_Z,j:TZ,L:DM,m:CZ,M:MZ,p:Q,q:K,Q:R2,s:P2,S:RZ,u:PZ,U:$Z,V:DZ,w:kZ,W:LZ,x:null,X:null,y:zZ,Y:IZ,Z:HZ,"%":M2},S={a:te,A:me,b:Le,B:ce,c:null,d:C2,e:C2,f:KZ,g:nJ,G:aJ,H:qZ,I:FZ,j:GZ,L:LM,m:YZ,M:VZ,p:$t,q:bt,Q:R2,s:P2,S:XZ,u:QZ,U:WZ,V:ZZ,w:JZ,W:eJ,x:null,X:null,y:tJ,Y:rJ,Z:iJ,"%":M2},w={a:N,A:k,b:P,B,c:D,d:_2,e:_2,f:wZ,g:E2,G:A2,H:T2,I:T2,j:gZ,L:SZ,m:vZ,M:bZ,p:_,q:yZ,Q:OZ,s:AZ,S:xZ,u:fZ,U:dZ,V:hZ,w:cZ,W:pZ,x:C,X:$,y:E2,Y:A2,Z:mZ,"%":jZ};g.x=j(n,g),g.X=j(r,g),g.c=j(t,g),S.x=j(n,S),S.X=j(r,S),S.c=j(t,S);function j(X,le){return function(fe){var H=[],Xe=-1,be=0,Re=X.length,J,ze,Dt;for(fe instanceof Date||(fe=new Date(+fe));++Xe<Re;)X.charCodeAt(Xe)===37&&(H.push(X.slice(be,Xe)),(ze=O2[J=X.charAt(++Xe)])!=null?J=X.charAt(++Xe):ze=J==="e"?" ":"0",(Dt=le[J])&&(J=Dt(fe,ze)),H.push(J),be=Xe+1);return H.push(X.slice(be,Xe)),H.join("")}}function A(X,le){return function(fe){var H=Ys(1900,void 0,1),Xe=E(H,X,fe+="",0),be,Re;if(Xe!=fe.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(le&&!("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?(be=Ty(Ys(H.y,0,1)),Re=be.getUTCDay(),be=Re>4||Re===0?vh.ceil(be):vh(be),be=Gp.offset(be,(H.V-1)*7),H.y=be.getUTCFullYear(),H.m=be.getUTCMonth(),H.d=be.getUTCDate()+(H.w+6)%7):(be=_y(Ys(H.y,0,1)),Re=be.getDay(),be=Re>4||Re===0?yh.ceil(be):yh(be),be=af.offset(be,(H.V-1)*7),H.y=be.getFullYear(),H.m=be.getMonth(),H.d=be.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),Re="Z"in H?Ty(Ys(H.y,0,1)).getUTCDay():_y(Ys(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Re+5)%7:H.w+H.U*7-(Re+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,Ty(H)):_y(H)}}function E(X,le,fe,H){for(var Xe=0,be=le.length,Re=fe.length,J,ze;Xe<be;){if(H>=Re)return-1;if(J=le.charCodeAt(Xe++),J===37){if(J=le.charAt(Xe++),ze=w[J in O2?le.charAt(Xe++):J],!ze||(H=ze(X,fe,H))<0)return-1}else if(J!=fe.charCodeAt(H++))return-1}return H}function _(X,le,fe){var H=u.exec(le.slice(fe));return H?(X.p=d.get(H[0].toLowerCase()),fe+H[0].length):-1}function N(X,le,fe){var H=p.exec(le.slice(fe));return H?(X.w=b.get(H[0].toLowerCase()),fe+H[0].length):-1}function k(X,le,fe){var H=f.exec(le.slice(fe));return H?(X.w=h.get(H[0].toLowerCase()),fe+H[0].length):-1}function P(X,le,fe){var H=m.exec(le.slice(fe));return H?(X.m=y.get(H[0].toLowerCase()),fe+H[0].length):-1}function B(X,le,fe){var H=v.exec(le.slice(fe));return H?(X.m=x.get(H[0].toLowerCase()),fe+H[0].length):-1}function D(X,le,fe){return E(X,t,le,fe)}function C(X,le,fe){return E(X,n,le,fe)}function $(X,le,fe){return E(X,r,le,fe)}function L(X){return o[X.getDay()]}function z(X){return i[X.getDay()]}function F(X){return s[X.getMonth()]}function G(X){return l[X.getMonth()]}function Q(X){return a[+(X.getHours()>=12)]}function K(X){return 1+~~(X.getMonth()/3)}function te(X){return o[X.getUTCDay()]}function me(X){return i[X.getUTCDay()]}function Le(X){return s[X.getUTCMonth()]}function ce(X){return l[X.getUTCMonth()]}function $t(X){return a[+(X.getUTCHours()>=12)]}function bt(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var le=j(X+="",g);return le.toString=function(){return X},le},parse:function(X){var le=A(X+="",!1);return le.toString=function(){return X},le},utcFormat:function(X){var le=j(X+="",S);return le.toString=function(){return X},le},utcParse:function(X){var le=A(X+="",!0);return le.toString=function(){return X},le}}}var O2={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,lZ=/^%/,sZ=/[\\^$*+?|[\]().{}]/g;function _e(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 uZ(e){return e.replace(sZ,"\\$&")}function Vs(e){return new RegExp("^(?:"+e.map(uZ).join("|")+")","i")}function Xs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function cZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function fZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function dZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function hZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function A2(e,t,n){var r=Pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function E2(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function mZ(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 yZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function vZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _2(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function gZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function T2(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function bZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function xZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function SZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function wZ(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function jZ(e,t,n){var r=lZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function OZ(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function AZ(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function N2(e,t){return _e(e.getDate(),t,2)}function EZ(e,t){return _e(e.getHours(),t,2)}function _Z(e,t){return _e(e.getHours()%12||12,t,2)}function TZ(e,t){return _e(1+af.count(ha(e),e),t,3)}function DM(e,t){return _e(e.getMilliseconds(),t,3)}function NZ(e,t){return DM(e,t)+"000"}function CZ(e,t){return _e(e.getMonth()+1,t,2)}function MZ(e,t){return _e(e.getMinutes(),t,2)}function RZ(e,t){return _e(e.getSeconds(),t,2)}function PZ(e){var t=e.getDay();return t===0?7:t}function $Z(e,t){return _e(Kp.count(ha(e)-1,e),t,2)}function kM(e){var t=e.getDay();return t>=4||t===0?ql(e):ql.ceil(e)}function DZ(e,t){return e=kM(e),_e(ql.count(ha(e),e)+(ha(e).getDay()===4),t,2)}function kZ(e){return e.getDay()}function LZ(e,t){return _e(yh.count(ha(e)-1,e),t,2)}function zZ(e,t){return _e(e.getFullYear()%100,t,2)}function BZ(e,t){return e=kM(e),_e(e.getFullYear()%100,t,2)}function IZ(e,t){return _e(e.getFullYear()%1e4,t,4)}function UZ(e,t){var n=e.getDay();return e=n>=4||n===0?ql(e):ql.ceil(e),_e(e.getFullYear()%1e4,t,4)}function HZ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_e(t/60|0,"0",2)+_e(t%60,"0",2)}function C2(e,t){return _e(e.getUTCDate(),t,2)}function qZ(e,t){return _e(e.getUTCHours(),t,2)}function FZ(e,t){return _e(e.getUTCHours()%12||12,t,2)}function GZ(e,t){return _e(1+Gp.count(pa(e),e),t,3)}function LM(e,t){return _e(e.getUTCMilliseconds(),t,3)}function KZ(e,t){return LM(e,t)+"000"}function YZ(e,t){return _e(e.getUTCMonth()+1,t,2)}function VZ(e,t){return _e(e.getUTCMinutes(),t,2)}function XZ(e,t){return _e(e.getUTCSeconds(),t,2)}function QZ(e){var t=e.getUTCDay();return t===0?7:t}function WZ(e,t){return _e(Yp.count(pa(e)-1,e),t,2)}function zM(e){var t=e.getUTCDay();return t>=4||t===0?Fl(e):Fl.ceil(e)}function ZZ(e,t){return e=zM(e),_e(Fl.count(pa(e),e)+(pa(e).getUTCDay()===4),t,2)}function JZ(e){return e.getUTCDay()}function eJ(e,t){return _e(vh.count(pa(e)-1,e),t,2)}function tJ(e,t){return _e(e.getUTCFullYear()%100,t,2)}function nJ(e,t){return e=zM(e),_e(e.getUTCFullYear()%100,t,2)}function rJ(e,t){return _e(e.getUTCFullYear()%1e4,t,4)}function aJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fl(e):Fl.ceil(e),_e(e.getUTCFullYear()%1e4,t,4)}function iJ(){return"+0000"}function M2(){return"%"}function R2(e){return+e}function P2(e){return Math.floor(+e/1e3)}var No,BM,IM;oJ({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 oJ(e){return No=oZ(e),BM=No.format,No.parse,IM=No.utcFormat,No.utcParse,No}function lJ(e){return new Date(e)}function sJ(e){return e instanceof Date?+e:+new Date(+e)}function t1(e,t,n,r,a,i,o,l,s,u){var d=Ux(),f=d.invert,h=d.domain,p=u(".%L"),b=u(":%S"),v=u("%I:%M"),x=u("%I %p"),m=u("%a %d"),y=u("%b %d"),g=u("%B"),S=u("%Y");function w(j){return(s(j)<j?p:l(j)<j?b:o(j)<j?v:i(j)<j?x:r(j)<j?a(j)<j?m:y:n(j)<j?g:S)(j)}return d.invert=function(j){return new Date(f(j))},d.domain=function(j){return arguments.length?h(Array.from(j,sJ)):h().map(lJ)},d.ticks=function(j){var A=h();return e(A[0],A[A.length-1],j??10)},d.tickFormat=function(j,A){return A==null?w:u(A)},d.nice=function(j){var A=h();return(!j||typeof j.range!="function")&&(j=t(A[0],A[A.length-1],j??10)),j?h(EM(A,j)):d},d.copy=function(){return rf(d,t1(e,t,n,r,a,i,o,l,s,u))},d}function uJ(){return nr.apply(t1(aZ,iZ,ha,Jx,Kp,af,Wx,Xx,Pi,BM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cJ(){return nr.apply(t1(nZ,rZ,pa,e1,Yp,Gp,Zx,Qx,Pi,IM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Vp(){var e=0,t=1,n,r,a,i,o=tn,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(a===0?.5:(f=(i(f)-n)*a,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function d(f){return function(h){var p,b;return arguments.length?([p,b]=h,o=f(p,b),u):[o(0),o(1)]}}return u.range=d(Rs),u.rangeRound=d(Ix),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return i=f,n=f(e),r=f(t),a=n===r?0:1/(r-n),u}}function hi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function UM(){var e=di(Vp()(tn));return e.copy=function(){return hi(e,UM())},ba.apply(e,arguments)}function HM(){var e=Fx(Vp()).domain([1,10]);return e.copy=function(){return hi(e,HM()).base(e.base())},ba.apply(e,arguments)}function qM(){var e=Gx(Vp());return e.copy=function(){return hi(e,qM()).constant(e.constant())},ba.apply(e,arguments)}function n1(){var e=Kx(Vp());return e.copy=function(){return hi(e,n1()).exponent(e.exponent())},ba.apply(e,arguments)}function fJ(){return n1.apply(null,arguments).exponent(.5)}function FM(){var e=[],t=tn;function n(r){if(r!=null&&!isNaN(r=+r))return t((tf(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(ni),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)=>WQ(e,i/r))},n.copy=function(){return FM(t).domain(e)},ba.apply(n,arguments)}function Xp(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=tn,d,f=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+d(v))-i)*(r*v<r*i?l:s),u(f?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,n]=v,a=d(e=+e),i=d(t=+t),o=d(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?(f=!!v,p):f},p.interpolator=function(v){return arguments.length?(u=v,p):u};function b(v){return function(x){var m,y,g;return arguments.length?([m,y,g]=x,u=jW(v,[m,y,g]),p):[u(0),u(.5),u(1)]}}return p.range=b(Rs),p.rangeRound=b(Ix),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return d=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 GM(){var e=di(Xp()(tn));return e.copy=function(){return hi(e,GM())},ba.apply(e,arguments)}function KM(){var e=Fx(Xp()).domain([.1,1,10]);return e.copy=function(){return hi(e,KM()).base(e.base())},ba.apply(e,arguments)}function YM(){var e=Gx(Xp());return e.copy=function(){return hi(e,YM()).constant(e.constant())},ba.apply(e,arguments)}function r1(){var e=Kx(Xp());return e.copy=function(){return hi(e,r1()).exponent(e.exponent())},ba.apply(e,arguments)}function dJ(){return r1.apply(null,arguments).exponent(.5)}const $2=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ju,scaleDiverging:GM,scaleDivergingLog:KM,scaleDivergingPow:r1,scaleDivergingSqrt:dJ,scaleDivergingSymlog:YM,scaleIdentity:AM,scaleImplicit:Ig,scaleLinear:ph,scaleLog:_M,scaleOrdinal:Lx,scalePoint:wu,scalePow:Yx,scaleQuantile:CM,scaleQuantize:MM,scaleRadial:NM,scaleSequential:UM,scaleSequentialLog:HM,scaleSequentialPow:n1,scaleSequentialQuantile:FM,scaleSequentialSqrt:fJ,scaleSequentialSymlog:qM,scaleSqrt:KW,scaleSymlog:TM,scaleThreshold:RM,scaleTime:uJ,scaleUtc:cJ,tickFormat:OM},Symbol.toStringTag,{value:"Module"}));var hJ=js;function pJ(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&&!hJ(o):n(o,l)))var l=o,s=i}return s}var Qp=pJ;function mJ(e,t){return e>t}var VM=mJ,yJ=Qp,vJ=VM,gJ=Cs;function bJ(e){return e&&e.length?yJ(e,gJ,vJ):void 0}var xJ=bJ;const Wp=He(xJ);function SJ(e,t){return e<t}var XM=SJ,wJ=Qp,jJ=XM,OJ=Cs;function AJ(e){return e&&e.length?wJ(e,OJ,jJ):void 0}var EJ=AJ;const Zp=He(EJ);var _J=yx,TJ=fi,NJ=aM,CJ=vn;function MJ(e,t){var n=CJ(e)?_J:NJ;return n(e,TJ(t))}var RJ=MJ,PJ=nM,$J=RJ;function DJ(e,t){return PJ($J(e,t),1)}var kJ=DJ;const LJ=He(kJ);var zJ=Rx;function BJ(e,t){return zJ(e,t)}var IJ=BJ;const Jp=He(IJ);var Ps=1e9,UJ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},i1,rt=!0,Jn="[DecimalError] ",Wi=Jn+"Invalid argument: ",a1=Jn+"Exponent out of range: ",$s=Math.floor,_i=Math.pow,HJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,En,Tt=1e7,Ze=7,QM=9007199254740991,gh=$s(QM/Ze),Z={};Z.absoluteValue=Z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Z.comparedTo=Z.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};Z.decimalPlaces=Z.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ze;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Z.dividedBy=Z.div=function(e){return aa(this,new this.constructor(e))};Z.dividedToIntegerBy=Z.idiv=function(e){var t=this,n=t.constructor;return qe(aa(t,new n(e),0,1),n.precision)};Z.equals=Z.eq=function(e){return!this.cmp(e)};Z.exponent=function(){return gt(this)};Z.greaterThan=Z.gt=function(e){return this.cmp(e)>0};Z.greaterThanOrEqualTo=Z.gte=function(e){return this.cmp(e)>=0};Z.isInteger=Z.isint=function(){return this.e>this.d.length-2};Z.isNegative=Z.isneg=function(){return this.s<0};Z.isPositive=Z.ispos=function(){return this.s>0};Z.isZero=function(){return this.s===0};Z.lessThan=Z.lt=function(e){return this.cmp(e)<0};Z.lessThanOrEqualTo=Z.lte=function(e){return this.cmp(e)<1};Z.logarithm=Z.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(En))throw Error(Jn+"NaN");if(n.s<1)throw Error(Jn+(n.s?"NaN":"-Infinity"));return n.eq(En)?new r(0):(rt=!1,t=aa(ac(n,i),ac(e,i),i),rt=!0,qe(t,a))};Z.minus=Z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?JM(t,e):WM(t,(e.s=-e.s,e))};Z.modulo=Z.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Jn+"NaN");return n.s?(rt=!1,t=aa(n,e,0,1).times(e),rt=!0,n.minus(t)):qe(new r(n),a)};Z.naturalExponential=Z.exp=function(){return ZM(this)};Z.naturalLogarithm=Z.ln=function(){return ac(this)};Z.negated=Z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Z.plus=Z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?WM(t,e):JM(t,(e.s=-e.s,e))};Z.precision=Z.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wi+e);if(t=gt(a)+1,r=a.d.length-1,n=r*Ze+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};Z.squareRoot=Z.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(Jn+"NaN")}for(e=gt(l),rt=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=jr(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=$s((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(aa(l,i,o+2)).times(.5),jr(i.d).slice(0,o)===(t=jr(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(qe(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if(t!="9999")break;o+=4}return rt=!0,qe(r,n)};Z.times=Z.mul=function(e){var t,n,r,a,i,o,l,s,u,d=this,f=d.constructor,h=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.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%Tt|0,t=l/Tt|0;i[a]=(i[a]+t)%Tt|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,rt?qe(e,f.precision):e};Z.toDecimalPlaces=Z.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(_r(e,0,Ps),t===void 0?t=r.rounding:_r(t,0,8),qe(n,e+gt(n)+1,t))};Z.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=uo(r,!0):(_r(e,0,Ps),t===void 0?t=a.rounding:_r(t,0,8),r=qe(new a(r),e+1,t),n=uo(r,!0,e+1)),n};Z.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?uo(a):(_r(e,0,Ps),t===void 0?t=i.rounding:_r(t,0,8),r=qe(new i(a),e+gt(a)+1,t),n=uo(r.abs(),!1,e+gt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};Z.toInteger=Z.toint=function(){var e=this,t=e.constructor;return qe(new t(e),gt(e)+1,t.rounding)};Z.toNumber=function(){return+this};Z.toPower=Z.pow=function(e){var t,n,r,a,i,o,l=this,s=l.constructor,u=12,d=+(e=new s(e));if(!e.s)return new s(En);if(l=new s(l),!l.s){if(e.s<1)throw Error(Jn+"Infinity");return l}if(l.eq(En))return l;if(r=s.precision,e.eq(En))return qe(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=l.s,o){if((n=d<0?-d:d)<=QM){for(a=new s(En),t=Math.ceil(r/Ze+4),rt=!1;n%2&&(a=a.times(l),k2(a.d,t)),n=$s(n/2),n!==0;)l=l.times(l),k2(l.d,t);return rt=!0,e.s<0?new s(En).div(a):qe(a,r)}}else if(i<0)throw Error(Jn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,rt=!1,a=e.times(ac(l,r+u)),rt=!0,a=ZM(a),a.s=i,a};Z.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=gt(a),r=uo(a,n<=i.toExpNeg||n>=i.toExpPos)):(_r(e,1,Ps),t===void 0?t=i.rounding:_r(t,0,8),a=qe(new i(a),e,t),n=gt(a),r=uo(a,e<=n||n<=i.toExpNeg,e)),r};Z.toSignificantDigits=Z.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(_r(e,1,Ps),t===void 0?t=r.rounding:_r(t,0,8)),qe(new r(n),e,t)};Z.toString=Z.valueOf=Z.val=Z.toJSON=Z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=gt(e),n=e.constructor;return uo(e,t<=n.toExpNeg||t>=n.toExpPos)};function WM(e,t){var n,r,a,i,o,l,s,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),rt?qe(t,f):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(f/Ze),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)/Tt|0,s[i]%=Tt;for(n&&(s.unshift(n),++a),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=a,rt?qe(t,f):t}function _r(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Wi+e)}function jr(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=Ze-r.length,n&&(i+=Ea(n)),i+=r;o=e[t],r=o+"",n=Ze-r.length,n&&(i+=Ea(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var aa=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%Tt|0,o=i/Tt|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*Tt+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,o){var l,s,u,d,f,h,p,b,v,x,m,y,g,S,w,j,A,E,_=r.constructor,N=r.s==a.s?1:-1,k=r.d,P=a.d;if(!r.s)return new _(r);if(!a.s)throw Error(Jn+"Division by zero");for(s=r.e-a.e,A=P.length,w=k.length,p=new _(N),b=p.d=[],u=0;P[u]==(k[u]||0);)++u;if(P[u]>(k[u]||0)&&--s,i==null?y=i=_.precision:o?y=i+(gt(r)-gt(a))+1:y=i,y<0)return new _(0);if(y=y/Ze+2|0,u=0,A==1)for(d=0,P=P[0],y++;(u<w||d)&&y--;u++)g=d*Tt+(k[u]||0),b[u]=g/P|0,d=g%P|0;else{for(d=Tt/(P[0]+1)|0,d>1&&(P=e(P,d),k=e(k,d),A=P.length,w=k.length),S=A,v=k.slice(0,A),x=v.length;x<A;)v[x++]=0;E=P.slice(),E.unshift(0),j=P[0],P[1]>=Tt/2&&++j;do d=0,l=t(P,v,A,x),l<0?(m=v[0],A!=x&&(m=m*Tt+(v[1]||0)),d=m/j|0,d>1?(d>=Tt&&(d=Tt-1),f=e(P,d),h=f.length,x=v.length,l=t(f,v,h,x),l==1&&(d--,n(f,A<h?E:P,h))):(d==0&&(l=d=1),f=P.slice()),h=f.length,h<x&&f.unshift(0),n(v,f,x),l==-1&&(x=v.length,l=t(P,v,A,x),l<1&&(d++,n(v,A<x?E:P,x))),x=v.length):l===0&&(d++,v=[0]),b[u++]=d,l&&v[0]?v[x++]=k[S]||0:(v=[k[S]],x=1);while((S++<w||v[0]!==void 0)&&y--)}return b[0]||b.shift(),p.e=s,qe(p,o?i+gt(p)+1:i)}}();function ZM(e,t){var n,r,a,i,o,l,s=0,u=0,d=e.constructor,f=d.precision;if(gt(e)>16)throw Error(a1+gt(e));if(!e.s)return new d(En);for(rt=!1,l=f,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(_i(2,u))/Math.LN10*2+5|0,l+=r,n=a=i=new d(En),d.precision=l;;){if(a=qe(a.times(e),l),n=n.times(++s),o=i.plus(aa(a,n,l)),jr(o.d).slice(0,l)===jr(i.d).slice(0,l)){for(;u--;)i=qe(i.times(i),l);return d.precision=f,t==null?(rt=!0,qe(i,f)):i}i=o}}function gt(e){for(var t=e.e*Ze,n=e.d[0];n>=10;n/=10)t++;return t}function Ny(e,t,n){if(t>e.LN10.sd())throw rt=!0,n&&(e.precision=n),Error(Jn+"LN10 precision limit exceeded");return qe(new e(e.LN10),t)}function Ea(e){for(var t="";e--;)t+="0";return t}function ac(e,t){var n,r,a,i,o,l,s,u,d,f=1,h=10,p=e,b=p.d,v=p.constructor,x=v.precision;if(p.s<1)throw Error(Jn+(p.s?"NaN":"-Infinity"));if(p.eq(En))return new v(0);if(t==null?(rt=!1,u=x):u=t,p.eq(10))return t==null&&(rt=!0),Ny(v,u);if(u+=h,v.precision=u,n=jr(b),r=n.charAt(0),i=gt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=jr(p.d),r=n.charAt(0),f++;i=gt(p),r>1?(p=new v("0."+n),i++):p=new v(r+"."+n.slice(1))}else return s=Ny(v,u+2,x).times(i+""),p=ac(new v(r+"."+n.slice(1)),u-h).plus(s),v.precision=x,t==null?(rt=!0,qe(p,x)):p;for(l=o=p=aa(p.minus(En),p.plus(En),u),d=qe(p.times(p),u),a=3;;){if(o=qe(o.times(d),u),s=l.plus(aa(o,new v(a),u)),jr(s.d).slice(0,u)===jr(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(Ny(v,u+2,x).times(i+""))),l=aa(l,new v(f),u),v.precision=x,t==null?(rt=!0,qe(l,x)):l;l=s,a+=2}}function D2(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=$s(n/Ze),e.d=[],r=(n+1)%Ze,n<0&&(r+=Ze),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Ze;r<a;)e.d.push(+t.slice(r,r+=Ze));t=t.slice(r),r=Ze-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),rt&&(e.e>gh||e.e<-gh))throw Error(a1+n)}else e.s=0,e.e=0,e.d=[0];return e}function qe(e,t,n){var r,a,i,o,l,s,u,d,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=Ze,a=t,u=f[d=0];else{if(d=Math.ceil((r+1)/Ze),i=f.length,d>=i)return e;for(u=i=f[d],o=1;i>=10;i/=10)o++;r%=Ze,a=r-Ze+o}if(n!==void 0&&(i=_i(10,o-a-1),l=u/i%10|0,s=t<0||f[d+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/_i(10,o-a):0:f[d-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(i=gt(e),f.length=1,t=t-i-1,f[0]=_i(10,(Ze-t%Ze)%Ze),e.e=$s(-t/Ze)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=d,i=1,d--):(f.length=d+1,i=_i(10,Ze-r),f[d]=a>0?(u/_i(10,o-a)%_i(10,a)|0)*i:0),s)for(;;)if(d==0){(f[0]+=i)==Tt&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=Tt)break;f[d--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(rt&&(e.e>gh||e.e<-gh))throw Error(a1+gt(e));return e}function JM(e,t){var n,r,a,i,o,l,s,u,d,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),rt?qe(t,p):t;if(s=e.d,f=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(d=o<0,d?(n=s,o=-o,l=f.length):(n=f,r=u,l=s.length),a=Math.max(Math.ceil(p/Ze),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=f.length,d=a<l,d&&(l=a),a=0;a<l;a++)if(s[a]!=f[a]){d=s[a]<f[a];break}o=0}for(d&&(n=s,s=f,f=n,t.s=-t.s),l=s.length,a=f.length-l;a>0;--a)s[l++]=0;for(a=f.length;a>o;){if(s[--a]<f[a]){for(i=a;i&&s[--i]===0;)s[i]=Tt-1;--s[i],s[a]+=Tt}s[a]-=f[a]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,rt?qe(t,p):t):new h(0)}function uo(e,t,n){var r,a=gt(e),i=jr(e.d),o=i.length;return t?(n&&(r=n-o)>0?i=i.charAt(0)+"."+i.slice(1)+Ea(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Ea(-a-1)+i,n&&(r=n-o)>0&&(i+=Ea(r))):a>=o?(i+=Ea(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+Ea(r))):((r=a+1)<o&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(i+="."),i+=Ea(r))),e.s<0?"-"+i:i}function k2(e,t){if(e.length>t)return e.length=t,!0}function e3(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(Wi+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 D2(o,i.toString())}else if(typeof i!="string")throw Error(Wi+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,HJ.test(i))D2(o,i);else throw Error(Wi+i)}if(a.prototype=Z,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=e3,a.config=a.set=qJ,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 qJ(e){if(!e||typeof e!="object")throw Error(Jn+"Object expected");var t,n,r,a=["precision",1,Ps,"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($s(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Wi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Wi+n+": "+r);return this}var i1=e3(UJ);En=new i1(1);const Ie=i1;function FJ(e){return VJ(e)||YJ(e)||KJ(e)||GJ()}function GJ(){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 KJ(e,t){if(e){if(typeof e=="string")return Fg(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 Fg(e,t)}}function YJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function VJ(e){if(Array.isArray(e))return Fg(e)}function Fg(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 XJ=function(t){return t},t3={},n3=function(t){return t===t3},L2=function(t){return function n(){return arguments.length===0||arguments.length===1&&n3(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},QJ=function e(t,n){return t===1?n:L2(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!==t3}).length;return o>=t?n.apply(void 0,a):e(t-o,L2(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var d=a.map(function(f){return n3(f)?s.shift():f});return n.apply(void 0,FJ(d).concat(s))}))})},em=function(t){return QJ(t.length,t)},Gg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},WJ=em(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),ZJ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return XJ;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))}},Kg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},r3=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 JJ(e){var t;return e===0?t=1:t=Math.floor(new Ie(e).abs().log(10).toNumber())+1,t}function eee(e,t,n){for(var r=new Ie(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var tee=em(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),nee=em(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),ree=em(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const tm={rangeStep:eee,getDigitCount:JJ,interpolateNumber:tee,uninterpolateNumber:nee,uninterpolateTruncation:ree};function Yg(e){return oee(e)||iee(e)||a3(e)||aee()}function aee(){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 iee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function oee(e){if(Array.isArray(e))return Vg(e)}function ic(e,t){return uee(e)||see(e,t)||a3(e,t)||lee()}function lee(){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 a3(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 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}function see(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 uee(e){if(Array.isArray(e))return e}function i3(e){var t=ic(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function o3(e,t,n){if(e.lte(0))return new Ie(0);var r=tm.getDigitCount(e.toNumber()),a=new Ie(10).pow(r),i=e.div(a),o=r!==1?.05:.1,l=new Ie(Math.ceil(i.div(o).toNumber())).add(n).mul(o),s=l.mul(a);return t?s:new Ie(Math.ceil(s))}function cee(e,t,n){var r=1,a=new Ie(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Ie(10).pow(tm.getDigitCount(e)-1),a=new Ie(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Ie(Math.floor(e)))}else e===0?a=new Ie(Math.floor((t-1)/2)):n||(a=new Ie(Math.floor(e)));var o=Math.floor((t-1)/2),l=ZJ(WJ(function(s){return a.add(new Ie(s-o).mul(r)).toNumber()}),Gg);return l(0,t)}function l3(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 Ie(0),tickMin:new Ie(0),tickMax:new Ie(0)};var i=o3(new Ie(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new Ie(0):(o=new Ie(e).add(t).div(2),o=o.sub(new Ie(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),s=Math.ceil(new Ie(t).sub(o).div(i).toNumber()),u=l+s+1;return u>n?l3(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 Ie(l).mul(i)),tickMax:o.add(new Ie(s).mul(i))})}function fee(e){var t=ic(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=i3([n,r]),s=ic(l,2),u=s[0],d=s[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(Yg(Gg(0,a-1).map(function(){return 1/0}))):[].concat(Yg(Gg(0,a-1).map(function(){return-1/0})),[d]);return n>r?Kg(f):f}if(u===d)return cee(u,a,i);var h=l3(u,d,o,i),p=h.step,b=h.tickMin,v=h.tickMax,x=tm.rangeStep(b,v.add(new Ie(.1).mul(p)),p);return n>r?Kg(x):x}function dee(e,t){var n=ic(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=i3([r,a]),l=ic(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,a];if(s===u)return[s];var d=Math.max(t,2),f=o3(new Ie(u).sub(s).div(d-1),i,0),h=[].concat(Yg(tm.rangeStep(new Ie(s),new Ie(u).sub(new Ie(.99).mul(f)),f)),[u]);return r>a?Kg(h):h}var hee=r3(fee),pee=r3(dee),mee="Invariant failed";function co(e,t){throw new Error(mee)}var yee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 bh(){return bh=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},bh.apply(this,arguments)}function vee(e,t){return See(e)||xee(e,t)||bee(e,t)||gee()}function gee(){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 bee(e,t){if(e){if(typeof e=="string")return z2(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 z2(e,t)}}function z2(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 xee(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function See(e){if(Array.isArray(e))return e}function wee(e,t){if(e==null)return{};var n=jee(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 jee(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 Oee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aee(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,c3(r.key),r)}}function Eee(e,t,n){return t&&Aee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ee(e,t,n){return t=xh(t),Tee(e,s3()?Reflect.construct(t,n||[],xh(e).constructor):t.apply(e,n))}function Tee(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 Nee(e)}function Nee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s3=function(){return!!e})()}function xh(e){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xh(e)}function Cee(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&&Xg(e,t)}function Xg(e,t){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Xg(e,t)}function u3(e,t,n){return t=c3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c3(e){var t=Mee(e,"string");return Gl(t)=="symbol"?t:t+""}function Mee(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)}var nm=function(e){function t(){return Oee(this,t),_ee(this,t,arguments)}return Cee(t,e),Eee(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,d=r.xAxis,f=r.yAxis,h=wee(r,yee),p=oe(h,!1);this.props.direction==="x"&&d.type!=="number"&&co();var b=s.map(function(v){var x=u(v,l),m=x.x,y=x.y,g=x.value,S=x.errorVal;if(!S)return null;var w=[],j,A;if(Array.isArray(S)){var E=vee(S,2);j=E[0],A=E[1]}else j=A=S;if(i==="vertical"){var _=d.scale,N=y+a,k=N+o,P=N-o,B=_(g-j),D=_(g+A);w.push({x1:D,y1:k,x2:D,y2:P}),w.push({x1:B,y1:N,x2:D,y2:N}),w.push({x1:B,y1:k,x2:B,y2:P})}else if(i==="horizontal"){var C=f.scale,$=m+a,L=$-o,z=$+o,F=C(g-j),G=C(g+A);w.push({x1:L,y1:G,x2:z,y2:G}),w.push({x1:$,y1:F,x2:$,y2:G}),w.push({x1:L,y1:F,x2:z,y2:F})}return R.createElement(De,bh({className:"recharts-errorBar",key:"bar-".concat(w.map(function(Q){return"".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))},p),w.map(function(Q){return R.createElement("line",bh({},Q,{key:"line-".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))}))});return R.createElement(De,{className:"recharts-errorBars"},b)}}])}(R.Component);u3(nm,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});u3(nm,"displayName","ErrorBar");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 B2(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 gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(n),!0).forEach(function(r){Ree(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ree(e,t,n){return t=Pee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pee(e){var t=$ee(e,"string");return oc(t)=="symbol"?t:t+""}function $ee(e,t){if(oc(e)!="object"||!e)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 f3=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=Sn(n,ll);if(!o)return null;var l=ll.defaultProps,s=l!==void 0?gi(gi({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(r||[]).reduce(function(d,f){var h=f.item,p=f.props,b=p.sectors||p.data||[];return d.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(d){var f=d.item,h=f.type.defaultProps,p=h!==void 0?gi(gi({},h),f.props):{},b=p.dataKey,v=p.name,x=p.legendType,m=p.hide;return{inactive:m,dataKey:b,type:s.iconType||x||"square",color:o1(f),value:v||b,payload:p}}),gi(gi(gi({},s),ll.getWithHeight(o,a)),{},{payload:u,item:o})};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 I2(e){return zee(e)||Lee(e)||kee(e)||Dee()}function Dee(){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 kee(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 Lee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zee(e){if(Array.isArray(e))return Qg(e)}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 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 st(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){ul(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 ul(e,t,n){return t=Bee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bee(e){var t=Iee(e,"string");return lc(t)=="symbol"?t:t+""}function Iee(e,t){if(lc(e)!="object"||!e)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 Kt(e,t,n){return ge(e)||ge(t)?n:Ot(t)?Rn(e,t,n):se(t)?t(e):n}function ju(e,t,n,r){var a=LJ(e,function(l){return Kt(l,t)});if(n==="number"){var i=a.filter(function(l){return Y(l)||parseFloat(l)});return i.length?[Zp(i),Wp(i)]:[1/0,-1/0]}var o=r?a.filter(function(l){return!ge(l)}):a;return o.map(function(l){return Ot(l)||l instanceof Date?l:""})}var Uee=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 d=u>0?a[u-1].coordinate:a[l-1].coordinate,f=a[u].coordinate,h=u>=l-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(Jt(f-d)!==Jt(h-f)){var b=[];if(Jt(h-f)===Jt(s[1]-s[0])){p=h;var v=f+s[1]-s[0];b[0]=Math.min(v,(v+d)/2),b[1]=Math.max(v,(v+d)/2)}else{p=d;var x=h+s[1]-s[0];b[0]=Math.min(f,(x+f)/2),b[1]=Math.max(f,(x+f)/2)}var m=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>m[0]&&t<=m[1]||t>=b[0]&&t<=b[1]){o=a[u].index;break}}else{var y=Math.min(d,h),g=Math.max(d,h);if(t>(y+f)/2&&t<=(g+f)/2){o=a[u].index;break}}}else for(var S=0;S<l;S++)if(S===0&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S>0&&S<l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){o=r[S].index;break}return o},o1=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?st(st({},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},Hee=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 d=i[l[s]].stackGroups,f=Object.keys(d),h=0,p=f.length;h<p;h++){var b=d[f[h]],v=b.items,x=b.cateAxisId,m=v.filter(function(A){return na(A.type).indexOf("Bar")>=0});if(m&&m.length){var y=m[0].type.defaultProps,g=y!==void 0?st(st({},y),m[0].props):m[0].props,S=g.barSize,w=g[x];o[w]||(o[w]=[]);var j=ge(S)?n:S;o[w].push({item:m[0],stackList:m.slice(1),barSize:ge(j)?void 0:en(j,r,0)})}}return o},qee=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=en(n,a,0,!0),d,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=a/s,b=o.reduce(function(S,w){return S+w.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,x={offset:v-u,size:0};d=o.reduce(function(S,w){var j={item:w.item,position:{offset:x.offset+x.size+u,size:h?p:w.barSize}},A=[].concat(I2(S),[j]);return x=A[A.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(E){A.push({item:E,position:x})}),A},f)}else{var m=en(r,a,0,!0);a-2*m-(s-1)*u<=0&&(u=0);var y=(a-2*m-(s-1)*u)/s;y>1&&(y>>=0);var g=l===+l?Math.min(y,l):y;d=o.reduce(function(S,w,j){var A=[].concat(I2(S),[{item:w.item,position:{offset:m+(y+u)*j+(y-g)/2,size:g}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(E){A.push({item:E,position:A[A.length-1].position})}),A},f)}return d},Fee=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=f3({children:i,legendWidth:s});if(u){var d=a||{},f=d.width,h=d.height,p=u.align,b=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&b==="middle")&&p!=="center"&&Y(t[p]))return st(st({},t),{},ul({},p,t[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&b!=="middle"&&Y(t[b]))return st(st({},t),{},ul({},b,t[b]+(h||0)))}return t},Gee=function(t,n,r){return ge(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},d3=function(t,n,r,a,i){var o=n.props.children,l=Wn(o,nm).filter(function(u){return Gee(a,i,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=Kt(d,r);if(ge(f))return u;var h=Array.isArray(f)?[Zp(f),Wp(f)]:[f,f],p=s.reduce(function(b,v){var x=Kt(d,v,0),m=h[0]-Math.abs(Array.isArray(x)?x[0]:x),y=h[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(m,b[0]),Math.max(y,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},Kee=function(t,n,r,a,i){var o=n.map(function(l){return d3(t,l,r,i,a)}).filter(function(l){return!ge(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},h3=function(t,n,r,a,i){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&d3(t,s,u,a)||ju(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 d=0,f=u.length;d<f;d++)l[u[d]]||(l[u[d]]=!0,s.push(u[d]));return s},[])},p3=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},$i=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?Jt(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var h=i?i.indexOf(f):f;return{coordinate:a(h)+u,value:f,offset:u}});return d.filter(function(f){return!Jc(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:a(f)+u,value:f,index:h,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,h){return{coordinate:a(f)+u,value:i?i[f]:f,index:h,offset:u}})},Cy=new WeakMap,kf=function(t,n){if(typeof n!="function")return t;Cy.has(t)||Cy.set(t,new WeakMap);var r=Cy.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},m3=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:Ju(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:ph(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:wu(),realScaleType:"point"}:i==="category"?{scale:Ju(),realScaleType:"band"}:{scale:ph(),realScaleType:"linear"};if(oo(a)){var s="scale".concat(kp(a));return{scale:($2[s]||wu)(),realScaleType:$2[s]?s:"point"}}return se(a)?{scale:a}:{scale:wu(),realScaleType:"point"}},H2=1e-4,y3=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])-H2,o=Math.max(a[0],a[1])+H2,l=t(n[0]),s=t(n[r-1]);(l<i||l>o||s<i||s>o)&&t.domain([n[0],n[r-1]])}},Yee=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},Vee=function(t,n){if(!n||n.length!==2||!Y(n[0])||!Y(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(!Y(t[0])||t[0]<r)&&(i[0]=r),(!Y(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},Xee=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=Jc(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])}},Qee=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=Jc(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)}},Wee={sign:Xee,expand:m9,none:Ll,silhouette:y9,wiggle:v9,positive:Qee},Zee=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=Wee[r],o=p9().keys(a).value(function(l,s){return+Kt(l,s,0)}).order(Sg).offset(i);return o(t)},Jee=function(t,n,r,a,i,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(f,h){var p,b=(p=h.type)!==null&&p!==void 0&&p.defaultProps?st(st({},h.type.defaultProps),h.props):h.props,v=b.stackId,x=b.hide;if(x)return f;var m=b[r],y=f[m]||{hasStack:!1,stackGroups:{}};if(Ot(v)){var g=y.stackGroups[v]||{numericAxisId:r,cateAxisId:a,items:[]};g.items.push(h),y.hasStack=!0,y.stackGroups[v]=g}else y.stackGroups[ef("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return st(st({},f),{},ul({},m,y))},s),d={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var b={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,x){var m=p.stackGroups[x];return st(st({},v),{},ul({},x,{numericAxisId:r,cateAxisId:a,items:m.items,stackedData:Zee(t,m.items,i)}))},b)}return st(st({},f),{},ul({},h,p))},d)},v3=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 d=hee(u,i,l);return t.domain([Zp(d),Wp(d)]),{niceTicks:d}}if(i&&a==="number"){var f=t.domain(),h=pee(f,i,l);return{niceTicks:h}}return null},q2=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=Kt(o,n.dataKey,n.domain[l]);return ge(s)?null:n.scale(s)-i/2+a},ete=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]},tte=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?st(st({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Ot(i)){var o=n[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},nte=function(t){return t.reduce(function(n,r){return[Zp(r.concat([n[0]]).filter(Y)),Wp(r.concat([n[1]]).filter(Y))]},[1/0,-1/0])},g3=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,s=l.reduce(function(u,d){var f=nte(d.slice(n,r+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[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})},F2=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,G2=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Wg=function(t,n,r){if(se(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(Y(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(F2.test(t[0])){var i=+F2.exec(t[0])[1];a[0]=n[0]-i}else se(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(Y(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(G2.test(t[1])){var o=+G2.exec(t[1])[1];a[1]=n[1]+o}else se(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Sh=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=$x(n,function(f){return f.coordinate}),o=1/0,l=1,s=i.length;l<s;l++){var u=i[l],d=i[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},K2=function(t,n,r){return!t||!t.length||Jp(t,Rn(r,"type.defaultProps.domain"))?n:t},b3=function(t,n){var r=t.type.defaultProps?st(st({},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,d=r.hide;return st(st({},oe(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:o1(t),value:Kt(n,a),type:s,payload:n,chartType:u,hide:d})};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 Y2(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 Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y2(Object(n),!0).forEach(function(r){x3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x3(e,t,n){return t=rte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rte(e){var t=ate(e,"string");return sc(t)=="symbol"?t:t+""}function ate(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)}function ite(e,t){return ute(e)||ste(e,t)||lte(e,t)||ote()}function ote(){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 lte(e,t){if(e){if(typeof e=="string")return V2(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 V2(e,t)}}function V2(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 ste(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function ute(e){if(Array.isArray(e))return e}var wh=Math.PI/180,cte=function(t){return t*180/Math.PI},Ve=function(t,n,r,a){return{x:t+Math.cos(-wh*a)*r,y:n+Math.sin(-wh*a)*r}},S3=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},fte=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,d=en(t.cx,o,o/2),f=en(t.cy,l,l/2),h=S3(o,l,r),p=en(t.innerRadius,h,0),b=en(t.outerRadius,h,h*.8),v=Object.keys(n);return v.reduce(function(x,m){var y=n[m],g=y.domain,S=y.reversed,w;if(ge(y.range))a==="angleAxis"?w=[s,u]:a==="radiusAxis"&&(w=[p,b]),S&&(w=[w[1],w[0]]);else{w=y.range;var j=w,A=ite(j,2);s=A[0],u=A[1]}var E=m3(y,i),_=E.realScaleType,N=E.scale;N.domain(g).range(w),y3(N);var k=v3(N,Ur(Ur({},y),{},{realScaleType:_})),P=Ur(Ur(Ur({},y),k),{},{range:w,radius:b,realScaleType:_,scale:N,cx:d,cy:f,innerRadius:p,outerRadius:b,startAngle:s,endAngle:u});return Ur(Ur({},x),{},x3({},m,P))},{})},dte=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))},hte=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=dte({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:cte(u),angleInRadian:u}},pte=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}},mte=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},X2=function(t,n){var r=t.x,a=t.y,i=hte({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 d=pte(n),f=d.startAngle,h=d.endAngle,p=l,b;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;b=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;b=p>=h&&p<=f}return b?Ur(Ur({},n),{},{radius:o,angle:mte(p,n)}):null},w3=function(t){return!O.isValidElement(t)&&!se(t)&&typeof t!="boolean"?t.className:""};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 yte=["offset"];function vte(e){return Ste(e)||xte(e)||bte(e)||gte()}function gte(){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 bte(e,t){if(e){if(typeof e=="string")return Zg(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 Zg(e,t)}}function xte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ste(e){if(Array.isArray(e))return Zg(e)}function Zg(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 wte(e,t){if(e==null)return{};var n=jte(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 jte(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 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 St(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){Ote(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 Ote(e,t,n){return t=Ate(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ate(e){var t=Ete(e,"string");return uc(t)=="symbol"?t:t+""}function Ete(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 cc(){return cc=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},cc.apply(this,arguments)}var _te=function(t){var n=t.value,r=t.formatter,a=ge(t.children)?n:t.children;return se(r)?r(a):a},Tte=function(t,n){var r=Jt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Nte=function(t,n,r){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,s=i,u=s.cx,d=s.cy,f=s.innerRadius,h=s.outerRadius,p=s.startAngle,b=s.endAngle,v=s.clockWise,x=(f+h)/2,m=Tte(p,b),y=m>=0?1:-1,g,S;a==="insideStart"?(g=p+y*o,S=v):a==="insideEnd"?(g=b-y*o,S=!v):a==="end"&&(g=b+y*o,S=v),S=m<=0?S:!S;var w=Ve(u,d,x,g),j=Ve(u,d,x,g+(S?1:-1)*359),A="M".concat(w.x,",").concat(w.y,`
    A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`,
    `).concat(j.x,",").concat(j.y),E=ge(t.id)?ef("recharts-radial-line-"):t.id;return R.createElement("text",cc({},r,{dominantBaseline:"central",className:ve("recharts-radial-bar-label",l)}),R.createElement("defs",null,R.createElement("path",{id:E,d:A})),R.createElement("textPath",{xlinkHref:"#".concat(E)},n))},Cte=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,d=i.startAngle,f=i.endAngle,h=(d+f)/2;if(a==="outside"){var p=Ve(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 x=(s+u)/2,m=Ve(o,l,x,h),y=m.x,g=m.y;return{x:y,y:g,textAnchor:"middle",verticalAnchor:"middle"}},Mte=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,d=o.height,f=d>=0?1:-1,h=f*a,p=f>0?"end":"start",b=f>0?"start":"end",v=u>=0?1:-1,x=v*a,m=v>0?"end":"start",y=v>0?"start":"end";if(i==="top"){var g={x:l+u/2,y:s-f*a,textAnchor:"middle",verticalAnchor:p};return St(St({},g),r?{height:Math.max(s-r.y,0),width:u}:{})}if(i==="bottom"){var S={x:l+u/2,y:s+d+h,textAnchor:"middle",verticalAnchor:b};return St(St({},S),r?{height:Math.max(r.y+r.height-(s+d),0),width:u}:{})}if(i==="left"){var w={x:l-x,y:s+d/2,textAnchor:m,verticalAnchor:"middle"};return St(St({},w),r?{width:Math.max(w.x-r.x,0),height:d}:{})}if(i==="right"){var j={x:l+u+x,y:s+d/2,textAnchor:y,verticalAnchor:"middle"};return St(St({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:d}:{})}var A=r?{width:u,height:d}:{};return i==="insideLeft"?St({x:l+x,y:s+d/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideRight"?St({x:l+u-x,y:s+d/2,textAnchor:m,verticalAnchor:"middle"},A):i==="insideTop"?St({x:l+u/2,y:s+h,textAnchor:"middle",verticalAnchor:b},A):i==="insideBottom"?St({x:l+u/2,y:s+d-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?St({x:l+x,y:s+h,textAnchor:y,verticalAnchor:b},A):i==="insideTopRight"?St({x:l+u-x,y:s+h,textAnchor:m,verticalAnchor:b},A):i==="insideBottomLeft"?St({x:l+x,y:s+d-h,textAnchor:y,verticalAnchor:p},A):i==="insideBottomRight"?St({x:l+u-x,y:s+d-h,textAnchor:m,verticalAnchor:p},A):Os(i)&&(Y(i.x)||Mi(i.x))&&(Y(i.y)||Mi(i.y))?St({x:l+en(i.x,u),y:s+en(i.y,d),textAnchor:"end",verticalAnchor:"end"},A):St({x:l+u/2,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Rte=function(t){return"cx"in t&&Y(t.cx)};function Mt(e){var t=e.offset,n=t===void 0?5:t,r=wte(e,yte),a=St({offset:n},r),i=a.viewBox,o=a.position,l=a.value,s=a.children,u=a.content,d=a.className,f=d===void 0?"":d,h=a.textBreakAll;if(!i||ge(l)&&ge(s)&&!O.isValidElement(u)&&!se(u))return null;if(O.isValidElement(u))return O.cloneElement(u,a);var p;if(se(u)){if(p=O.createElement(u,a),O.isValidElement(p))return p}else p=_te(a);var b=Rte(i),v=oe(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Nte(a,p,v);var x=b?Cte(a):Mte(a);return R.createElement(so,cc({className:ve("recharts-label",f)},v,x,{breakAll:h}),p)}Mt.displayName="Label";var j3=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,d=t.outerRadius,f=t.x,h=t.y,p=t.top,b=t.left,v=t.width,x=t.height,m=t.clockWise,y=t.labelViewBox;if(y)return y;if(Y(v)&&Y(x)){if(Y(f)&&Y(h))return{x:f,y:h,width:v,height:x};if(Y(p)&&Y(b))return{x:p,y:b,width:v,height:x}}return Y(f)&&Y(h)?{x:f,y:h,width:0,height:0}:Y(n)&&Y(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:d||s||l||0,clockWise:m}:t.viewBox?t.viewBox:{}},Pte=function(t,n){return t?t===!0?R.createElement(Mt,{key:"label-implicit",viewBox:n}):Ot(t)?R.createElement(Mt,{key:"label-implicit",viewBox:n,value:t}):O.isValidElement(t)?t.type===Mt?O.cloneElement(t,{key:"label-implicit",viewBox:n}):R.createElement(Mt,{key:"label-implicit",content:t,viewBox:n}):se(t)?R.createElement(Mt,{key:"label-implicit",content:t,viewBox:n}):Os(t)?R.createElement(Mt,cc({viewBox:n},t,{key:"label-implicit"})):null:null},$te=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=j3(t),o=Wn(a,Mt).map(function(s,u){return O.cloneElement(s,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var l=Pte(t.label,n||i);return[l].concat(vte(o))};Mt.parseViewBox=j3;Mt.renderCallByParent=$te;function Dte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var kte=Dte;const Lte=He(kte);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)}var zte=["valueAccessor"],Bte=["data","dataKey","clockWise","id","textBreakAll"];function Ite(e){return Fte(e)||qte(e)||Hte(e)||Ute()}function Ute(){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 Hte(e,t){if(e){if(typeof e=="string")return Jg(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 Jg(e,t)}}function qte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fte(e){if(Array.isArray(e))return Jg(e)}function Jg(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 jh(){return jh=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},jh.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 Z2(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){Gte(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 Gte(e,t,n){return t=Kte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kte(e){var t=Yte(e,"string");return fc(t)=="symbol"?t:t+""}function Yte(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 J2(e,t){if(e==null)return{};var n=Vte(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 Vte(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 Xte=function(t){return Array.isArray(t.value)?Lte(t.value):t.value};function ri(e){var t=e.valueAccessor,n=t===void 0?Xte:t,r=J2(e,zte),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=J2(r,Bte);return!a||!a.length?null:R.createElement(De,{className:"recharts-label-list"},a.map(function(d,f){var h=ge(i)?n(d,f):Kt(d&&d.payload,i),p=ge(l)?{}:{id:"".concat(l,"-").concat(f)};return R.createElement(Mt,jh({},oe(d,!0),u,p,{parentViewBox:d.parentViewBox,value:h,textBreakAll:s,viewBox:Mt.parseViewBox(ge(o)?d:Z2(Z2({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}ri.displayName="LabelList";function Qte(e,t){return e?e===!0?R.createElement(ri,{key:"labelList-implicit",data:t}):R.isValidElement(e)||se(e)?R.createElement(ri,{key:"labelList-implicit",data:t,content:e}):Os(e)?R.createElement(ri,jh({data:t},e,{key:"labelList-implicit"})):null:null}function Wte(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=Wn(r,ri).map(function(o,l){return O.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=Qte(e.label,t);return[i].concat(Ite(a))}ri.renderCallByParent=Wte;function dc(e){"@babel/helpers - typeof";return dc=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},dc(e)}function e0(){return e0=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},e0.apply(this,arguments)}function eO(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 tO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(n),!0).forEach(function(r){Zte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zte(e,t,n){return t=Jte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jte(e){var t=ene(e,"string");return dc(t)=="symbol"?t:t+""}function ene(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tne=function(t,n){var r=Jt(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Lf=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,d=s*(l?1:-1)+a,f=Math.asin(s/d)/wh,h=u?i:i+o*f,p=Ve(n,r,d,h),b=Ve(n,r,a,h),v=u?i-o*f:i,x=Ve(n,r,d*Math.cos(f*wh),v);return{center:p,circleTangency:b,lineTangency:x,theta:f}},O3=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,s=tne(o,l),u=o+s,d=Ve(n,r,i,o),f=Ve(n,r,i,u),h="M ".concat(d.x,",").concat(d.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
    `).concat(f.x,",").concat(f.y,`
  `);if(a>0){var p=Ve(n,r,a,o),b=Ve(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},nne=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,d=t.endAngle,f=Jt(d-u),h=Lf({cx:n,cy:r,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,b=h.lineTangency,v=h.theta,x=Lf({cx:n,cy:r,radius:i,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:s}),m=x.circleTangency,y=x.lineTangency,g=x.theta,S=s?Math.abs(u-d):Math.abs(u-d)-v-g;if(S<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
      `):O3({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var w="M ".concat(b.x,",").concat(b.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(m.x,",").concat(m.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
  `);if(a>0){var j=Lf({cx:n,cy:r,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=j.circleTangency,E=j.lineTangency,_=j.theta,N=Lf({cx:n,cy:r,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),k=N.circleTangency,P=N.lineTangency,B=N.theta,D=s?Math.abs(u-d):Math.abs(u-d)-_-B;if(D<0&&o===0)return"".concat(w,"L").concat(n,",").concat(r,"Z");w+="L".concat(P.x,",").concat(P.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else w+="L".concat(n,",").concat(r,"Z");return w},rne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},A3=function(t){var n=tO(tO({},rne),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,d=n.startAngle,f=n.endAngle,h=n.className;if(o<i||d===f)return null;var p=ve("recharts-sector",h),b=o-i,v=en(l,b,0,!0),x;return v>0&&Math.abs(d-f)<360?x=nne({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,b/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}):x=O3({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:f}),R.createElement("path",e0({},oe(n,!0),{className:p,d:x,role:"img"}))};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 t0(){return t0=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},t0.apply(this,arguments)}function nO(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 rO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nO(Object(n),!0).forEach(function(r){ane(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ane(e,t,n){return t=ine(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ine(e){var t=one(e,"string");return hc(t)=="symbol"?t:t+""}function one(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 aO={curveBasisClosed:r9,curveBasisOpen:a9,curveBasis:n9,curveBumpX:H7,curveBumpY:q7,curveLinearClosed:i9,curveLinear:zp,curveMonotoneX:o9,curveMonotoneY:l9,curveNatural:s9,curveStep:u9,curveStepAfter:f9,curveStepBefore:c9},zf=function(t){return t.x===+t.x&&t.y===+t.y},Qs=function(t){return t.x},Ws=function(t){return t.y},lne=function(t,n){if(se(t))return t;var r="curve".concat(kp(t));return(r==="curveMonotone"||r==="curveBump")&&n?aO["".concat(r).concat(n==="vertical"?"Y":"X")]:aO[r]||zp},sne=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,d=lne(r,l),f=u?i.filter(function(v){return zf(v)}):i,h;if(Array.isArray(o)){var p=u?o.filter(function(v){return zf(v)}):o,b=f.map(function(v,x){return rO(rO({},v),{},{base:p[x]})});return l==="vertical"?h=Tf().y(Ws).x1(Qs).x0(function(v){return v.base.x}):h=Tf().x(Qs).y1(Ws).y0(function(v){return v.base.y}),h.defined(zf).curve(d),h(b)}return l==="vertical"&&Y(o)?h=Tf().y(Ws).x1(Qs).x0(o):Y(o)?h=Tf().x(Qs).y1(Ws).y0(o):h=wC().x(Qs).y(Ws),h.defined(zf).curve(d),h(f)},n0=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?sne(t):a;return O.createElement("path",t0({},oe(t,!1),Yd(t),{className:ve("recharts-curve",n),d:o,ref:i}))},E3={exports:{}},une="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",cne=une,fne=cne;function _3(){}function T3(){}T3.resetWarningCache=_3;var dne=function(){function e(r,a,i,o,l,s){if(s!==fne){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:T3,resetWarningCache:_3};return n.PropTypes=n,n};E3.exports=dne();var hne=E3.exports;const Ce=He(hne),{getOwnPropertyNames:pne,getOwnPropertySymbols:mne}=Object,{hasOwnProperty:yne}=Object.prototype;function My(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Bf(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 vne(e){return e!=null?e[Symbol.toStringTag]:void 0}function iO(e){return pne(e).concat(mne(e))}const gne=Object.hasOwn||((e,t)=>yne.call(e,t));function So(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const bne="__v",xne="__o",Sne="_owner",{getOwnPropertyDescriptor:oO,keys:lO}=Object;function wne(e,t){return e.byteLength===t.byteLength&&Oh(new Uint8Array(e),new Uint8Array(t))}function jne(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 One(e,t){return e.byteLength===t.byteLength&&Oh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Ane(e,t){return So(e.getTime(),t.getTime())}function Ene(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function _ne(e,t){return e===t}function sO(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 d=!1,f=0;for(;(l=u.next())&&!l.done;){if(a[f]){f++;continue}const h=o.value,p=l.value;if(n.equals(h[0],p[0],s,f,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){d=a[f]=!0;break}f++}if(!d)return!1;s++}return!0}const Tne=So;function Nne(e,t,n){const r=lO(e);let a=r.length;if(lO(t).length!==a)return!1;for(;a-- >0;)if(!N3(e,t,n,r[a]))return!1;return!0}function Zs(e,t,n){const r=iO(e);let a=r.length;if(iO(t).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=r[a],!N3(e,t,n,i)||(o=oO(e,i),l=oO(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Cne(e,t){return So(e.valueOf(),t.valueOf())}function Mne(e,t){return e.source===t.source&&e.flags===t.flags}function uO(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,d=0;for(;(l=s.next())&&!l.done;){if(!a[d]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function Oh(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 Rne(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 N3(e,t,n,r){return(r===Sne||r===xne||r===bne)&&(e.$$typeof||t.$$typeof)?!0:gne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Pne="[object ArrayBuffer]",$ne="[object Arguments]",Dne="[object Boolean]",kne="[object DataView]",Lne="[object Date]",zne="[object Error]",Bne="[object Map]",Ine="[object Number]",Une="[object Object]",Hne="[object RegExp]",qne="[object Set]",Fne="[object String]",Gne={"[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},Kne="[object URL]",Yne=Object.prototype.toString;function Vne({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:f,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:b}){return function(x,m,y){if(x===m)return!0;if(x==null||m==null)return!1;const g=typeof x;if(g!==typeof m)return!1;if(g!=="object")return g==="number"?l(x,m,y):g==="function"?i(x,m,y):!1;const S=x.constructor;if(S!==m.constructor)return!1;if(S===Object)return s(x,m,y);if(Array.isArray(x))return t(x,m,y);if(S===Date)return r(x,m,y);if(S===RegExp)return d(x,m,y);if(S===Map)return o(x,m,y);if(S===Set)return f(x,m,y);const w=Yne.call(x);if(w===Lne)return r(x,m,y);if(w===Hne)return d(x,m,y);if(w===Bne)return o(x,m,y);if(w===qne)return f(x,m,y);if(w===Une)return typeof x.then!="function"&&typeof m.then!="function"&&s(x,m,y);if(w===Kne)return p(x,m,y);if(w===zne)return a(x,m,y);if(w===$ne)return s(x,m,y);if(Gne[w])return h(x,m,y);if(w===Pne)return e(x,m,y);if(w===kne)return n(x,m,y);if(w===Dne||w===Ine||w===Fne)return u(x,m,y);if(b){let j=b[w];if(!j){const A=vne(x);A&&(j=b[A])}if(j)return j(x,m,y)}return!1}}function Xne({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:wne,areArraysEqual:n?Zs:jne,areDataViewsEqual:One,areDatesEqual:Ane,areErrorsEqual:Ene,areFunctionsEqual:_ne,areMapsEqual:n?My(sO,Zs):sO,areNumbersEqual:Tne,areObjectsEqual:n?Zs:Nne,arePrimitiveWrappersEqual:Cne,areRegExpsEqual:Mne,areSetsEqual:n?My(uO,Zs):uO,areTypedArraysEqual:n?My(Oh,Zs):Oh,areUrlsEqual:Rne,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Bf(r.areArraysEqual),i=Bf(r.areMapsEqual),o=Bf(r.areObjectsEqual),l=Bf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return r}function Qne(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function Wne({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:d}=n();return t(l,s,{cache:u,equals:r,meta:d,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 Zne=pi();pi({strict:!0});pi({circular:!0});pi({circular:!0,strict:!0});pi({createInternalComparator:()=>So});pi({strict:!0,createInternalComparator:()=>So});pi({circular:!0,createInternalComparator:()=>So});pi({circular:!0,createInternalComparator:()=>So,strict:!0});function pi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=Xne(e),o=Vne(i),l=n?n(o):Qne(o);return Wne({circular:t,comparator:o,createState:r,equals:l,strict:a})}function Jne(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function cO(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):Jne(a)};requestAnimationFrame(r)}function r0(e){"@babel/helpers - typeof";return r0=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},r0(e)}function ere(e){return are(e)||rre(e)||nre(e)||tre()}function tre(){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 nre(e,t){if(e){if(typeof e=="string")return fO(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 fO(e,t)}}function fO(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 rre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function are(e){if(Array.isArray(e))return e}function ire(){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=ere(o),s=l[0],u=l.slice(1);if(typeof s=="number"){cO(a.bind(null,u),s);return}a(s),cO(a.bind(null,u));return}r0(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 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 dO(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 hO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dO(Object(n),!0).forEach(function(r){C3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C3(e,t,n){return t=ore(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ore(e){var t=lre(e,"string");return pc(t)==="symbol"?t:String(t)}function lre(e,t){if(pc(e)!=="object"||e===null)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)}var sre=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},ure=function(t){return t},cre=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Ou=function(t,n){return Object.keys(n).reduce(function(r,a){return hO(hO({},r),{},C3({},a,t(a,n[a])))},{})},pO=function(t,n,r){return t.map(function(a){return"".concat(cre(a)," ").concat(n,"ms ").concat(r)}).join(",")};function fre(e,t){return pre(e)||hre(e,t)||M3(e,t)||dre()}function dre(){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 hre(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function pre(e){if(Array.isArray(e))return e}function mre(e){return gre(e)||vre(e)||M3(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 M3(e,t){if(e){if(typeof e=="string")return a0(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 a0(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 a0(e)}function a0(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 Ah=1e-4,R3=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},P3=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},mO=function(t,n){return function(r){var a=R3(t,n);return P3(a,r)}},bre=function(t,n){return function(r){var a=R3(t,n),i=[].concat(mre(a.map(function(o,l){return o*l}).slice(1)),[0]);return P3(i,r)}},yO=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(x){return parseFloat(x)}),d=fre(u,4);a=d[0],i=d[1],o=d[2],l=d[3]}}}var f=mO(a,o),h=mO(i,l),p=bre(a,o),b=function(m){return m>1?1:m<0?0:m},v=function(m){for(var y=m>1?1:m,g=y,S=0;S<8;++S){var w=f(g)-y,j=p(g);if(Math.abs(w-y)<Ah||j<Ah)return h(g);g=b(g-w/j)}return h(g)};return v.isStepper=!1,v},xre=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(d,f,h){var p=-(d-f)*r,b=h*i,v=h+(p-b)*l/1e3,x=h*l/1e3+d;return Math.abs(x-f)<Ah&&Math.abs(v)<Ah?[f,0]:[x,v]};return s.isStepper=!0,s.dt=l,s},Sre=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 yO(a);case"spring":return xre();default:if(a.split("(")[0]==="cubic-bezier")return yO(a)}return typeof a=="function"?a:null};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 vO(e){return Ore(e)||jre(e)||$3(e)||wre()}function wre(){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 jre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ore(e){if(Array.isArray(e))return o0(e)}function gO(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 kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(n),!0).forEach(function(r){i0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i0(e,t,n){return t=Are(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Are(e){var t=Ere(e,"string");return mc(t)==="symbol"?t:String(t)}function Ere(e,t){if(mc(e)!=="object"||e===null)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 _re(e,t){return Cre(e)||Nre(e,t)||$3(e,t)||Tre()}function Tre(){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 $3(e,t){if(e){if(typeof e=="string")return o0(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 o0(e,t)}}function o0(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 Nre(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Cre(e){if(Array.isArray(e))return e}var Eh=function(t,n,r){return t+(n-t)*r},l0=function(t){var n=t.from,r=t.to;return n!==r},Mre=function e(t,n,r){var a=Ou(function(i,o){if(l0(o)){var l=t(o.from,o.to,o.velocity),s=_re(l,2),u=s[0],d=s[1];return kt(kt({},o),{},{from:u,velocity:d})}return o},n);return r<1?Ou(function(i,o){return l0(o)?kt(kt({},o),{},{velocity:Eh(o.velocity,a[i].velocity,r),from:Eh(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const Rre=function(e,t,n,r,a){var i=sre(e,t),o=i.reduce(function(x,m){return kt(kt({},x),{},i0({},m,[e[m],t[m]]))},{}),l=i.reduce(function(x,m){return kt(kt({},x),{},i0({},m,{from:e[m],velocity:0,to:t[m]}))},{}),s=-1,u,d,f=function(){return null},h=function(){return Ou(function(m,y){return y.from},l)},p=function(){return!Object.values(l).filter(l0).length},b=function(m){u||(u=m);var y=m-u,g=y/n.dt;l=Mre(n,l,g),a(kt(kt(kt({},e),t),h())),u=m,p()||(s=requestAnimationFrame(f))},v=function(m){d||(d=m);var y=(m-d)/r,g=Ou(function(w,j){return Eh.apply(void 0,vO(j).concat([n(y)]))},o);if(a(kt(kt(kt({},e),t),g)),y<1)s=requestAnimationFrame(f);else{var S=Ou(function(w,j){return Eh.apply(void 0,vO(j).concat([n(1)]))},o);a(kt(kt(kt({},e),t),S))}};return f=n.isStepper?b:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};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)}var Pre=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function $re(e,t){if(e==null)return{};var n=Dre(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 Dre(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 Ry(e){return Bre(e)||zre(e)||Lre(e)||kre()}function kre(){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 Lre(e,t){if(e){if(typeof e=="string")return s0(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 s0(e,t)}}function zre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bre(e){if(Array.isArray(e))return s0(e)}function s0(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 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 ir(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){ou(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 ou(e,t,n){return t=D3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ure(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,D3(r.key),r)}}function Hre(e,t,n){return t&&Ure(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function D3(e){var t=qre(e,"string");return Kl(t)==="symbol"?t:String(t)}function qre(e,t){if(Kl(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function Fre(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 Gre(e){var t=Kre();return function(){var r=_h(e),a;if(t){var i=_h(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return c0(this,a)}}function c0(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 f0(e)}function f0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kre(){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 _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_h(e)}var ma=function(e){Fre(n,e);var t=Gre(n);function n(r,a){var i;Ire(this,n),i=t.call(this,r,a);var o=i.props,l=o.isActive,s=o.attributeName,u=o.from,d=o.to,f=o.steps,h=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(f0(i)),i.changeStyle=i.changeStyle.bind(f0(i)),!l||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:d}),c0(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof h=="function")return i.state={style:u},c0(i);i.state={style:s?ou({},s,u):u}}else i.state={style:{}};return i}return Hre(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,d=i.to,f=i.from,h=this.state.style;if(l){if(!o){var p={style:s?ou({},s,d):d};this.state&&h&&(s&&h[s]!==d||!s&&h!==d)&&this.setState(p);return}if(!(Zne(a.to,d)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=b||u?f:a.to;if(this.state&&h){var x={style:s?ou({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(x)}this.runAnimation(ir(ir({},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,d=a.begin,f=a.onAnimationEnd,h=a.onAnimationStart,p=Rre(o,l,Sre(u),s,this.changeStyle),b=function(){i.stopJSAnimation=p()};this.manager.start([h,d,b,s,f])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,s=a.onAnimationStart,u=o[0],d=u.style,f=u.duration,h=f===void 0?0:f,p=function(v,x,m){if(m===0)return v;var y=x.duration,g=x.easing,S=g===void 0?"ease":g,w=x.style,j=x.properties,A=x.onAnimationEnd,E=m>0?o[m-1]:x,_=j||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat(Ry(v),[i.runJSAnimation.bind(i,{from:E.style,to:w,duration:y,easing:S}),y]);var N=pO(_,y,S),k=ir(ir(ir({},E.style),w),{},{transition:N});return[].concat(Ry(v),[k,y,A]).filter(ure)};return this.manager.start([s].concat(Ry(o.reduce(p,[d,Math.max(h,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=ire());var i=a.begin,o=a.duration,l=a.attributeName,s=a.to,u=a.easing,d=a.onAnimationStart,f=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?ou({},l,s):s,x=pO(Object.keys(v),o,u);b.start([d,i,ir(ir({},v),{},{transition:x}),o,f])}},{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=$re(a,Pre),u=O.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!l||u===0||o<=0)return i;var f=function(p){var b=p.props,v=b.style,x=v===void 0?{}:v,m=b.className,y=O.cloneElement(p,ir(ir({},s),{},{style:ir(ir({},x),d),className:m}));return y};return u===1?f(O.Children.only(i)):R.createElement("div",null,O.Children.map(i,function(h){return f(h)}))}}]),n}(O.PureComponent);ma.displayName="Animate";ma.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ma.propTypes={from:Ce.oneOfType([Ce.object,Ce.string]),to:Ce.oneOfType([Ce.object,Ce.string]),attributeName:Ce.string,duration:Ce.number,begin:Ce.number,easing:Ce.oneOfType([Ce.string,Ce.func]),steps:Ce.arrayOf(Ce.shape({duration:Ce.number.isRequired,style:Ce.object.isRequired,easing:Ce.oneOfType([Ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ce.func]),properties:Ce.arrayOf("string"),onAnimationEnd:Ce.func})),children:Ce.oneOfType([Ce.node,Ce.func]),isActive:Ce.bool,canBegin:Ce.bool,onAnimationEnd:Ce.func,shouldReAnimate:Ce.bool,onAnimationStart:Ce.func,onAnimationReStart:Ce.func};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 Th(){return Th=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},Th.apply(this,arguments)}function Yre(e,t){return Wre(e)||Qre(e,t)||Xre(e,t)||Vre()}function Vre(){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 Xre(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 Qre(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Wre(e){if(Array.isArray(e))return e}function SO(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 wO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(n),!0).forEach(function(r){Zre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zre(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=eae(e,"string");return yc(t)=="symbol"?t:t+""}function eae(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 jO=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,d;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=i[h]>o?o:i[h];d="M".concat(t,",").concat(n+l*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+s*f[0],",").concat(n)),d+="L ".concat(t+r-s*f[1],",").concat(n),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
        `).concat(t+r,",").concat(n+l*f[1])),d+="L ".concat(t+r,",").concat(n+a-l*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
        `).concat(t+r-s*f[2],",").concat(n+a)),d+="L ".concat(t+s*f[3],",").concat(n+a),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
        `).concat(t,",").concat(n+a-l*f[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);d="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 d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return d},tae=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),d=Math.max(i,i+l),f=Math.min(o,o+s),h=Math.max(o,o+s);return r>=u&&r<=d&&a>=f&&a<=h}return!1},nae={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},l1=function(t){var n=wO(wO({},nae),t),r=O.useRef(),a=O.useState(-1),i=Yre(a,2),o=i[0],l=i[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&l(S)}catch{}},[]);var s=n.x,u=n.y,d=n.width,f=n.height,h=n.radius,p=n.className,b=n.animationEasing,v=n.animationDuration,x=n.animationBegin,m=n.isAnimationActive,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var g=ve("recharts-rectangle",p);return y?R.createElement(ma,{canBegin:o>0,from:{width:d,height:f,x:s,y:u},to:{width:d,height:f,x:s,y:u},duration:v,animationEasing:b,isActive:y},function(S){var w=S.width,j=S.height,A=S.x,E=S.y;return R.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,isActive:m,easing:b},R.createElement("path",Th({},oe(n,!0),{className:g,d:jO(A,E,w,j,h),ref:r})))}):R.createElement("path",Th({},oe(n,!0),{className:g,d:jO(s,u,d,f,h)}))},rae=["points","className","baseLinePoints","connectNulls"];function Vo(){return Vo=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},Vo.apply(this,arguments)}function aae(e,t){if(e==null)return{};var n=iae(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 iae(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 OO(e){return uae(e)||sae(e)||lae(e)||oae()}function oae(){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 lae(e,t){if(e){if(typeof e=="string")return d0(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 d0(e,t)}}function sae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uae(e){if(Array.isArray(e))return d0(e)}function d0(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 AO=function(t){return t&&t.x===+t.x&&t.y===+t.y},cae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){AO(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),AO(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Au=function(t,n){var r=cae(t);n&&(r=[r.reduce(function(i,o){return[].concat(OO(i),OO(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},fae=function(t,n,r){var a=Au(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(Au(n.reverse(),r).slice(1))},dae=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,o=aae(t,rae);if(!n||!n.length)return null;var l=ve("recharts-polygon",r);if(a&&a.length){var s=o.stroke&&o.stroke!=="none",u=fae(n,a,i);return R.createElement("g",{className:l},R.createElement("path",Vo({},oe(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?R.createElement("path",Vo({},oe(o,!0),{fill:"none",d:Au(n,i)})):null,s?R.createElement("path",Vo({},oe(o,!0),{fill:"none",d:Au(a,i)})):null)}var d=Au(n,i);return R.createElement("path",Vo({},oe(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:l,d}))};function h0(){return h0=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},h0.apply(this,arguments)}var s1=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,o=ve("recharts-dot",i);return n===+n&&r===+r&&a===+a?O.createElement("circle",h0({},oe(t,!1),Yd(t),{className:o,cx:n,cy:r,r:a})):null};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)}var hae=["x","y","top","left","width","height","className"];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)}function EO(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 pae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(n),!0).forEach(function(r){mae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mae(e,t,n){return t=yae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yae(e){var t=vae(e,"string");return vc(t)=="symbol"?t:t+""}function vae(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(t==="string"?String:Number)(e)}function gae(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}var xae=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},Sae=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,d=t.width,f=d===void 0?0:d,h=t.height,p=h===void 0?0:h,b=t.className,v=gae(t,hae),x=pae({x:r,y:i,top:l,left:u,width:f,height:p},v);return!Y(r)||!Y(i)||!Y(f)||!Y(p)||!Y(l)||!Y(u)?null:R.createElement("path",p0({},oe(x,!0),{className:ve("recharts-cross",b),d:xae(r,i,f,p,l,u)}))},wae=Qp,jae=VM,Oae=fi;function Aae(e,t){return e&&e.length?wae(e,Oae(t),jae):void 0}var Eae=Aae;const _ae=He(Eae);var Tae=Qp,Nae=fi,Cae=XM;function Mae(e,t){return e&&e.length?Tae(e,Nae(t),Cae):void 0}var Rae=Mae;const Pae=He(Rae);var $ae=["cx","cy","angle","ticks","axisLine"],Dae=["ticks","tick","angle","tickFormatter","stroke"];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 Eu(){return Eu=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},Eu.apply(this,arguments)}function _O(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 bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_O(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TO(e,t){if(e==null)return{};var n=kae(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 kae(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 Lae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NO(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,L3(r.key),r)}}function zae(e,t,n){return t&&NO(e.prototype,t),n&&NO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bae(e,t,n){return t=Nh(t),Iae(e,k3()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function Iae(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 Uae(e)}function Uae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k3=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function Hae(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&&m0(e,t)}function m0(e,t){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},m0(e,t)}function rm(e,t,n){return t=L3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L3(e){var t=qae(e,"string");return Yl(t)=="symbol"?t:t+""}function qae(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(t==="string"?String:Number)(e)}var am=function(e){function t(){return Lae(this,t),Bae(this,t,arguments)}return Hae(t,e),zae(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,o=i.angle,l=i.cx,s=i.cy;return Ve(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=_ae(l,function(d){return d.coordinate||0}),u=Pae(l,function(d){return d.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=TO(r,$ae),d=l.reduce(function(b,v){return[Math.min(b[0],v.coordinate),Math.max(b[1],v.coordinate)]},[1/0,-1/0]),f=Ve(a,i,d[0],o),h=Ve(a,i,d[1],o),p=bi(bi(bi({},oe(u,!1)),{},{fill:"none"},oe(s,!1)),{},{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return R.createElement("line",Eu({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,d=TO(a,Dae),f=this.getTickTextAnchor(),h=oe(d,!1),p=oe(o,!1),b=i.map(function(v,x){var m=r.getTickValueCoord(v),y=bi(bi(bi(bi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(m.x,", ").concat(m.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:x},m),{},{payload:v});return R.createElement(De,Eu({className:ve("recharts-polar-radius-axis-tick",w3(o)),key:"tick-".concat(v.coordinate)},lo(r.props,v,x)),t.renderTickItem(o,y,s?s(v.value,x):v.value))});return R.createElement(De,{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:R.createElement(De,{className:ve("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Mt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var o;return R.isValidElement(r)?o=R.cloneElement(r,a):se(r)?o=r(a):o=R.createElement(so,Eu({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(O.PureComponent);rm(am,"displayName","PolarRadiusAxis");rm(am,"axisType","radiusAxis");rm(am,"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 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 Ti(){return Ti=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},Ti.apply(this,arguments)}function CO(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 xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(n),!0).forEach(function(r){im(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MO(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,B3(r.key),r)}}function Gae(e,t,n){return t&&MO(e.prototype,t),n&&MO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kae(e,t,n){return t=Ch(t),Yae(e,z3()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function Yae(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 Vae(e)}function Vae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z3=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function Xae(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&&y0(e,t)}function y0(e,t){return y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},y0(e,t)}function im(e,t,n){return t=B3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B3(e){var t=Qae(e,"string");return Vl(t)=="symbol"?t:t+""}function Qae(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(t==="string"?String:Number)(e)}var Wae=Math.PI/180,RO=1e-5,om=function(e){function t(){return Fae(this,t),Kae(this,t,arguments)}return Xae(t,e),Gae(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,d=u||8,f=Ve(i,o,l,r.coordinate),h=Ve(i,o,l+(s==="inner"?-1:1)*d,r.coordinate);return{x1:f.x,y1:f.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*Wae),o;return i>RO?o=a==="outer"?"start":"end":i<-RO?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=xi(xi({},oe(this.props,!1)),{},{fill:"none"},oe(l,!1));if(s==="circle")return R.createElement(s1,Ti({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var d=this.props.ticks,f=d.map(function(h){return Ve(a,i,o,h.coordinate)});return R.createElement(dae,Ti({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{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,d=oe(this.props,!1),f=oe(o,!1),h=xi(xi({},d),{},{fill:"none"},oe(l,!1)),p=i.map(function(b,v){var x=r.getTickLineCoord(b),m=r.getTickTextAnchor(b),y=xi(xi(xi({textAnchor:m},d),{},{stroke:"none",fill:u},f),{},{index:v,payload:b,x:x.x2,y:x.y2});return R.createElement(De,Ti({className:ve("recharts-polar-angle-axis-tick",w3(o)),key:"tick-".concat(b.coordinate)},lo(r.props,b,v)),l&&R.createElement("line",Ti({className:"recharts-polar-angle-axis-tick-line"},h,x)),o&&t.renderTickItem(o,y,s?s(b.value,v):b.value))});return R.createElement(De,{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:R.createElement(De,{className:ve("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var o;return R.isValidElement(r)?o=R.cloneElement(r,a):se(r)?o=r(a):o=R.createElement(so,Ti({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(O.PureComponent);im(om,"displayName","PolarAngleAxis");im(om,"axisType","angleAxis");im(om,"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 Zae=KC,Jae=Zae(Object.getPrototypeOf,Object),eie=Jae,tie=va,nie=eie,rie=ga,aie="[object Object]",iie=Function.prototype,oie=Object.prototype,I3=iie.toString,lie=oie.hasOwnProperty,sie=I3.call(Object);function uie(e){if(!rie(e)||tie(e)!=aie)return!1;var t=nie(e);if(t===null)return!0;var n=lie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&I3.call(n)==sie}var cie=uie;const fie=He(cie);var die=va,hie=ga,pie="[object Boolean]";function mie(e){return e===!0||e===!1||hie(e)&&die(e)==pie}var yie=mie;const vie=He(yie);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 Mh(){return Mh=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},Mh.apply(this,arguments)}function gie(e,t){return wie(e)||Sie(e,t)||xie(e,t)||bie()}function bie(){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 xie(e,t){if(e){if(typeof e=="string")return PO(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 PO(e,t)}}function PO(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 Sie(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function wie(e){if(Array.isArray(e))return e}function $O(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?$O(Object(n),!0).forEach(function(r){jie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jie(e,t,n){return t=Oie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oie(e){var t=Aie(e,"string");return gc(t)=="symbol"?t:t+""}function Aie(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)}var kO=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},Eie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_ie=function(t){var n=DO(DO({},Eie),t),r=O.useRef(),a=O.useState(-1),i=gie(a,2),o=i[0],l=i[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var g=r.current.getTotalLength();g&&l(g)}catch{}},[]);var s=n.x,u=n.y,d=n.upperWidth,f=n.lowerWidth,h=n.height,p=n.className,b=n.animationEasing,v=n.animationDuration,x=n.animationBegin,m=n.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||h!==+h||d===0&&f===0||h===0)return null;var y=ve("recharts-trapezoid",p);return m?R.createElement(ma,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:u},to:{upperWidth:d,lowerWidth:f,height:h,x:s,y:u},duration:v,animationEasing:b,isActive:m},function(g){var S=g.upperWidth,w=g.lowerWidth,j=g.height,A=g.x,E=g.y;return R.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,easing:b},R.createElement("path",Mh({},oe(n,!0),{className:y,d:kO(A,E,S,w,j),ref:r})))}):R.createElement("g",null,R.createElement("path",Mh({},oe(n,!0),{className:y,d:kO(s,u,d,f,h)})))},Tie=["option","shapeType","propTransformer","activeClassName","isActive"];function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}function Nie(e,t){if(e==null)return{};var n=Cie(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 Cie(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 LO(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 Rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(n),!0).forEach(function(r){Mie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mie(e,t,n){return t=Rie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rie(e){var t=Pie(e,"string");return bc(t)=="symbol"?t:t+""}function Pie(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $ie(e,t){return Rh(Rh({},t),e)}function Die(e,t){return e==="symbols"}function zO(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return R.createElement(l1,n);case"trapezoid":return R.createElement(_ie,n);case"sector":return R.createElement(A3,n);case"symbols":if(Die(t))return R.createElement(Ax,n);break;default:return null}}function kie(e){return O.isValidElement(e)?e.props:e}function U3(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?$ie:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,s=Nie(e,Tie),u;if(O.isValidElement(t))u=O.cloneElement(t,Rh(Rh({},s),kie(t)));else if(se(t))u=t(s);else if(fie(t)&&!vie(t)){var d=a(t,s);u=R.createElement(zO,{shapeType:n,elementProps:d})}else{var f=s;u=R.createElement(zO,{shapeType:n,elementProps:f})}return l?R.createElement(De,{className:o},u):u}function lm(e,t){return t!=null&&"trapezoids"in e.props}function sm(e,t){return t!=null&&"sectors"in e.props}function xc(e,t){return t!=null&&"points"in e.props}function Lie(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 zie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Bie(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Iie(e,t){var n;return lm(e,t)?n=Lie:sm(e,t)?n=zie:xc(e,t)&&(n=Bie),n}function Uie(e,t){var n;return lm(e,t)?n="trapezoids":sm(e,t)?n="sectors":xc(e,t)&&(n="points"),n}function Hie(e,t){if(lm(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(sm(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 xc(e,t)?t.payload:{}}function qie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Uie(n,t),i=Hie(n,t),o=r.filter(function(s,u){var d=Jp(i,s),f=n.props[a].filter(function(b){var v=Iie(n,t);return v(b,t)}),h=n.props[a].indexOf(f[f.length-1]),p=u===h;return d&&p}),l=r.indexOf(o[o.length-1]);return l}var ud;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 Xo(){return Xo=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},Xo.apply(this,arguments)}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 Ge(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){Yn(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 Fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IO(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,q3(r.key),r)}}function Gie(e,t,n){return t&&IO(e.prototype,t),n&&IO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kie(e,t,n){return t=Ph(t),Yie(e,H3()?Reflect.construct(t,n||[],Ph(e).constructor):t.apply(e,n))}function Yie(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 Vie(e)}function Vie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H3=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ph(e)}function Xie(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 Yn(e,t,n){return t=q3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q3(e){var t=Qie(e,"string");return Xl(t)=="symbol"?t:t+""}function Qie(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 xa=function(e){function t(n){var r;return Fie(this,t),r=Kie(this,t,[n]),Yn(r,"pieRef",null),Yn(r,"sectorRefs",[]),Yn(r,"id",ef("recharts-pie-")),Yn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),se(a)&&a()}),Yn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),se(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Xie(t,e),Gie(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,d=oe(this.props,!1),f=oe(o,!1),h=oe(l,!1),p=o&&o.offsetRadius||20,b=r.map(function(v,x){var m=(v.startAngle+v.endAngle)/2,y=Ve(v.cx,v.cy,v.outerRadius+p,m),g=Ge(Ge(Ge(Ge({},d),v),{},{stroke:"none"},f),{},{index:x,textAnchor:t.getTextAnchor(y.x,v.cx)},y),S=Ge(Ge(Ge(Ge({},d),v),{},{fill:"none",stroke:v.fill},h),{},{index:x,points:[Ve(v.cx,v.cy,v.outerRadius,m),y]}),w=s;return ge(s)&&ge(u)?w="value":ge(s)&&(w=u),R.createElement(De,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(x)},l&&t.renderLabelLineItem(l,S,"line"),t.renderLabelItem(o,g,Kt(v,w)))});return R.createElement(De,{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,d){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var f=a.isActiveIndex(d),h=s&&a.hasActiveIndex()?s:null,p=f?o:h,b=Ge(Ge({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return R.createElement(De,Xo({ref:function(x){x&&!a.sectorRefs.includes(x)&&a.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},lo(a.props,u,d),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(d)}),R.createElement(U3,Xo({option:p,isActive:f,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,d=a.animationId,f=this.state,h=f.prevSectors,p=f.prevIsAnimationActive;return R.createElement(ma,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(b){var v=b.t,x=[],m=i&&i[0],y=m.startAngle;return i.forEach(function(g,S){var w=h&&h[S],j=S>0?Rn(g,"paddingAngle",0):0;if(w){var A=Aa(w.endAngle-w.startAngle,g.endAngle-g.startAngle),E=Ge(Ge({},g),{},{startAngle:y+j,endAngle:y+A(v)+j});x.push(E),y=E.endAngle}else{var _=g.endAngle,N=g.startAngle,k=Aa(0,_-N),P=k(v),B=Ge(Ge({},g),{},{startAngle:y+j,endAngle:y+P+j});x.push(B),y=B.endAngle}}),R.createElement(De,null,r.renderSectorsStatically(x))})}},{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||!Jp(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,d=a.cy,f=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,b=this.state.isAnimationFinished;if(i||!o||!o.length||!Y(u)||!Y(d)||!Y(f)||!Y(h))return null;var v=ve("recharts-pie",l);return R.createElement(De,{tabIndex:this.props.rootTabIndex,className:v,ref:function(m){r.pieRef=m}},this.renderSectors(),s&&this.renderLabels(o),Mt.renderCallByParent(this.props,null,!1),(!p||b)&&ri.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(R.isValidElement(r))return R.cloneElement(r,a);if(se(r))return r(a);var o=ve("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return R.createElement(n0,Xo({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,a,i){if(R.isValidElement(r))return R.cloneElement(r,a);var o=i;if(se(r)&&(o=r(a),R.isValidElement(o)))return o;var l=ve("recharts-pie-label-text",typeof r!="boolean"&&!se(r)?r.className:"");return R.createElement(so,Xo({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(O.PureComponent);ud=xa;Yn(xa,"displayName","Pie");Yn(xa,"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:!Ms.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Yn(xa,"parseDeltaAngle",function(e,t){var n=Jt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Yn(xa,"getRealPieData",function(e){var t=e.data,n=e.children,r=oe(e,!1),a=Wn(n,qp);return t&&t.length?t.map(function(i,o){return Ge(Ge(Ge({payload:i},r),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return Ge(Ge({},r),i.props)}):[]});Yn(xa,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=S3(a,i),l=r+en(e.cx,a,a/2),s=n+en(e.cy,i,i/2),u=en(e.innerRadius,o,0),d=en(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:d,maxRadius:f}});Yn(xa,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Ge(Ge({},t.type.defaultProps),t.props):t.props,a=ud.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,d=r.nameKey,f=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),b=ud.parseCoordinateOfPie(r,n),v=ud.parseDeltaAngle(o,l),x=Math.abs(v),m=u;ge(u)&&ge(f)?(ra(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),m="value"):ge(u)&&(ra(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),m=f);var y=a.filter(function(E){return Kt(E,m,0)!==0}).length,g=(x>=360?y:y-1)*s,S=x-y*p-g,w=a.reduce(function(E,_){var N=Kt(_,m,0);return E+(Y(N)?N:0)},0),j;if(w>0){var A;j=a.map(function(E,_){var N=Kt(E,m,0),k=Kt(E,d,_),P=(Y(N)?N:0)/w,B;_?B=A.endAngle+Jt(v)*s*(N!==0?1:0):B=o;var D=B+Jt(v)*((N!==0?p:0)+P*S),C=(B+D)/2,$=(b.innerRadius+b.outerRadius)/2,L=[{name:k,value:N,payload:E,dataKey:m,type:h}],z=Ve(b.cx,b.cy,$,C);return A=Ge(Ge(Ge({percent:P,cornerRadius:i,name:k,tooltipPayload:L,midAngle:C,middleRadius:$,tooltipPosition:z},E),b),{},{value:Kt(E,m),startAngle:B,endAngle:D,payload:E,paddingAngle:Jt(v)*s}),A})}return Ge(Ge({},b),{},{sectors:j,data:a})});var Wie=Math.ceil,Zie=Math.max;function Jie(e,t,n,r){for(var a=-1,i=Zie(Wie((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var eoe=Jie,toe=cM,UO=1/0,noe=17976931348623157e292;function roe(e){if(!e)return e===0?e:0;if(e=toe(e),e===UO||e===-UO){var t=e<0?-1:1;return t*noe}return e===e?e:0}var aoe=roe,ioe=eoe,ooe=Hp,Py=aoe;function loe(e){return function(t,n,r){return r&&typeof r!="number"&&ooe(t,n,r)&&(n=r=void 0),t=Py(t),n===void 0?(n=t,t=0):n=Py(n),r=r===void 0?t<n?1:-1:Py(r),ioe(t,n,r,e)}}var soe=loe,uoe=soe,coe=uoe(),foe=coe;const $h=He(foe);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 HO(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 qO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(n),!0).forEach(function(r){F3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F3(e,t,n){return t=doe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function doe(e){var t=hoe(e,"string");return Sc(t)=="symbol"?t:t+""}function hoe(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 poe=["Webkit","Moz","O","ms"],moe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=poe.reduce(function(i,o){return qO(qO({},i),{},F3({},o+r,n))},{});return a[t]=n,a};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 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 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 $y(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){bn(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 yoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GO(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,K3(r.key),r)}}function voe(e,t,n){return t&&GO(e.prototype,t),n&&GO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function goe(e,t,n){return t=kh(t),boe(e,G3()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function boe(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 xoe(e)}function xoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G3=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Soe(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&&g0(e,t)}function g0(e,t){return g0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},g0(e,t)}function bn(e,t,n){return t=K3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K3(e){var t=woe(e,"string");return Ql(t)=="symbol"?t:t+""}function woe(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)}var joe=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=wu().domain($h(0,s)).range([i,i+o-l]),d=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:d}},KO=function(t){return t.changedTouches&&!!t.changedTouches.length},Wl=function(e){function t(n){var r;return yoe(this,t),r=goe(this,t,[n]),bn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),bn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),bn(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()}),bn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),bn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),bn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),bn(r,"handleSlideDragStart",function(a){var i=KO(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 Soe(t,e),voe(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,d=u.length-1,f=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(o,f),b=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:b===d?d:b-b%s}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,s=Kt(i[r],l,r);return se(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,d=s.width,f=s.travellerWidth,h=s.startIndex,p=s.endIndex,b=s.onChange,v=r.pageX-i;v>0?v=Math.min(v,u+d-f-l,u+d-f-o):v<0&&(v=Math.max(v,u-o,u-l));var x=this.getIndex({startX:o+v,endX:l+v});(x.startIndex!==h||x.endIndex!==p)&&b&&b(x),this.setState({startX:o+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=KO(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],d=this.props,f=d.x,h=d.width,p=d.travellerWidth,b=d.onChange,v=d.gap,x=d.data,m={startX:this.state.startX,endX:this.state.endX},y=r.pageX-i;y>0?y=Math.min(y,f+h-p-u):y<0&&(y=Math.max(y,f-u)),m[o]=u+y;var g=this.getIndex(m),S=g.startIndex,w=g.endIndex,j=function(){var E=x.length-1;return o==="startX"&&(l>s?S%v===0:w%v===0)||l<s&&w===E||o==="endX"&&(l>s?w%v===0:S%v===0)||l>s&&w===E};this.setState(bn(bn({},o,u+y),"brushMoveStartX",r.pageX),function(){b&&j()&&b(g)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,d=this.state[a],f=l.indexOf(d);if(f!==-1){var h=f+r;if(!(h===-1||h>=l.length)){var p=l[h];a==="startX"&&p>=u||a==="endX"&&p<=s||this.setState(bn({},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 R.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,d=r.padding,f=O.Children.only(u);return f?R.cloneElement(f,{x:a,y:i,width:o,height:l,margin:d,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,o,l=this,s=this.props,u=s.y,d=s.travellerWidth,f=s.height,h=s.traveller,p=s.ariaLabel,b=s.data,v=s.startIndex,x=s.endIndex,m=Math.max(r,this.props.x),y=$y($y({},oe(this.props,!1)),{},{x:m,y:u,width:d,height:f}),g=p||"Min value: ".concat((i=b[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[x])===null||o===void 0?void 0:o.name);return R.createElement(De,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),l.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,y))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,s=i.stroke,u=i.travellerWidth,d=Math.min(r,a)+u,f=Math.max(Math.abs(a-r)-u,0);return R.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:d,y:o,width:f,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,d=this.state,f=d.startX,h=d.endX,p=5,b={pointerEvents:"none",fill:u};return R.createElement(De,{className:"recharts-brush-texts"},R.createElement(so,Dh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+l/2},b),this.getTextOfTick(a)),R.createElement(so,Dh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,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,d=r.height,f=r.alwaysShowText,h=this.state,p=h.startX,b=h.endX,v=h.isTextActive,x=h.isSlideMoving,m=h.isTravellerMoving,y=h.isTravellerFocused;if(!a||!a.length||!Y(l)||!Y(s)||!Y(u)||!Y(d)||u<=0||d<=0)return null;var g=ve("recharts-brush",i),S=R.Children.count(o)===1,w=moe("userSelect","none");return R.createElement(De,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,b),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(b,"endX"),(v||x||m||y||f)&&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 R.createElement(R.Fragment,null,R.createElement("rect",{x:a,y:i,width:o,height:l,fill:s,stroke:"none"}),R.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),R.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 R.isValidElement(r)?i=R.cloneElement(r,a):se(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,d=r.startIndex,f=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return $y({prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?joe({data:i,width:o,x:l,travellerWidth:s,startIndex:d,endIndex:f}):{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}}])}(O.PureComponent);bn(Wl,"displayName","Brush");bn(Wl,"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 Ooe=Px;function Aoe(e,t){var n;return Ooe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var Eoe=Aoe,_oe=zC,Toe=fi,Noe=Eoe,Coe=vn,Moe=Hp;function Roe(e,t,n){var r=Coe(e)?_oe:Noe;return n&&Moe(e,t,n)&&(t=void 0),r(e,Toe(t))}var Poe=Roe;const $oe=He(Poe);var Er=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},YO=iM;function Doe(e,t,n){t=="__proto__"&&YO?YO(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var koe=Doe,Loe=koe,zoe=rM,Boe=fi;function Ioe(e,t){var n={};return t=Boe(t),zoe(e,function(r,a,i){Loe(n,a,t(r,a,i))}),n}var Uoe=Ioe;const Hoe=He(Uoe);function qoe(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 Foe=qoe,Goe=Px;function Koe(e,t){var n=!0;return Goe(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var Yoe=Koe,Voe=Foe,Xoe=Yoe,Qoe=fi,Woe=vn,Zoe=Hp;function Joe(e,t,n){var r=Woe(e)?Voe:Xoe;return n&&Zoe(e,t,n)&&(t=void 0),r(e,Qoe(t))}var ele=Joe;const tle=He(ele);var nle=["x","y"];function wc(e){"@babel/helpers - typeof";return wc=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},wc(e)}function b0(){return b0=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},b0.apply(this,arguments)}function VO(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 Js(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(n),!0).forEach(function(r){rle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rle(e,t,n){return t=ale(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ale(e){var t=ile(e,"string");return wc(t)=="symbol"?t:t+""}function ile(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ole(e,t){if(e==null)return{};var n=lle(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 lle(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 sle(e,t){var n=e.x,r=e.y,a=ole(e,nle),i="".concat(n),o=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||a.height),d=parseInt(u,10),f="".concat(t.width||a.width),h=parseInt(f,10);return Js(Js(Js(Js(Js({},t),a),o?{x:o}:{}),s?{y:s}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function XO(e){return R.createElement(U3,b0({shapeType:"rectangle",propTransformer:sle,activeClassName:"recharts-active-bar"},e))}var ule=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=Y(r)||TU(r);return i?t(r,a):(i||co(),n)}},cle=["value","background"],Y3;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)}function fle(e,t){if(e==null)return{};var n=dle(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 dle(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 Lh(){return Lh=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},Lh.apply(this,arguments)}function QO(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 ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QO(Object(n),!0).forEach(function(r){Ga(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(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,X3(r.key),r)}}function ple(e,t,n){return t&&WO(e.prototype,t),n&&WO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mle(e,t,n){return t=zh(t),yle(e,V3()?Reflect.construct(t,n||[],zh(e).constructor):t.apply(e,n))}function yle(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 vle(e)}function vle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V3=function(){return!!e})()}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zh(e)}function gle(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&&x0(e,t)}function x0(e,t){return x0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},x0(e,t)}function Ga(e,t,n){return t=X3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X3(e){var t=ble(e,"string");return Zl(t)=="symbol"?t:t+""}function ble(e,t){if(Zl(e)!="object"||!e)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 String(e)}var wo=function(e){function t(){var n;hle(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=mle(this,t,[].concat(a)),Ga(n,"state",{isAnimationFinished:!1}),Ga(n,"id",ef("recharts-bar-")),Ga(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ga(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return gle(t,e),ple(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.dataKey,s=i.activeIndex,u=i.activeBar,d=oe(this.props,!1);return r&&r.map(function(f,h){var p=h===s,b=p?u:o,v=ht(ht(ht({},d),f),{},{isActive:p,option:b,index:h,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return R.createElement(De,Lh({className:"recharts-bar-rectangle"},lo(a.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),R.createElement(XO,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,d=a.animationEasing,f=a.animationId,h=this.state.prevData;return R.createElement(ma,{begin:s,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var b=p.t,v=i.map(function(x,m){var y=h&&h[m];if(y){var g=Aa(y.x,x.x),S=Aa(y.y,x.y),w=Aa(y.width,x.width),j=Aa(y.height,x.height);return ht(ht({},x),{},{x:g(b),y:S(b),width:w(b),height:j(b)})}if(o==="horizontal"){var A=Aa(0,x.height),E=A(b);return ht(ht({},x),{},{y:x.y+x.height-E,height:E})}var _=Aa(0,x.width),N=_(b);return ht(ht({},x),{},{width:N})});return R.createElement(De,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||!Jp(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=oe(this.props.background,!1);return i.map(function(u,d){u.value;var f=u.background,h=fle(u,cle);if(!f)return null;var p=ht(ht(ht(ht(ht({},h),{},{fill:"#eee"},f),s),lo(r.props,u,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return R.createElement(XO,Lh({key:"background-bar-".concat(d),option:r.props.background,isActive:d===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,d=i.children,f=Wn(d,nm);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(x,m){var y=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:y,errorVal:Kt(x,m)}},b={clipPath:r?"url(#clipPath-".concat(a,")"):null};return R.createElement(De,b,f.map(function(v){return R.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,d=r.top,f=r.width,h=r.height,p=r.isAnimationActive,b=r.background,v=r.id;if(a||!i||!i.length)return null;var x=this.state.isAnimationFinished,m=ve("recharts-bar",o),y=l&&l.allowDataOverflow,g=s&&s.allowDataOverflow,S=y||g,w=ge(v)?this.id:v;return R.createElement(De,{className:m},y||g?R.createElement("defs",null,R.createElement("clipPath",{id:"clipPath-".concat(w)},R.createElement("rect",{x:y?u:u-f/2,y:g?d:d-h/2,width:y?f:f*2,height:g?h:h*2}))):null,R.createElement(De,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(w,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,w),(!p||x)&&ri.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}}])}(O.PureComponent);Y3=wo;Ga(wo,"displayName","Bar");Ga(wo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ms.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ga(wo,"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,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=Yee(r,n);if(!p)return null;var b=t.layout,v=n.type.defaultProps,x=v!==void 0?ht(ht({},v),n.props):n.props,m=x.dataKey,y=x.children,g=x.minPointSize,S=b==="horizontal"?o:i,w=u?S.scale.domain():null,j=ete({numericAxis:S}),A=Wn(y,qp),E=f.map(function(_,N){var k,P,B,D,C,$;u?k=Vee(u[d+N],w):(k=Kt(_,m),Array.isArray(k)||(k=[j,k]));var L=ule(g,Y3.defaultProps.minPointSize)(k[1],N);if(b==="horizontal"){var z,F=[o.scale(k[0]),o.scale(k[1])],G=F[0],Q=F[1];P=q2({axis:i,ticks:l,bandSize:a,offset:p.offset,entry:_,index:N}),B=(z=Q??G)!==null&&z!==void 0?z:void 0,D=p.size;var K=G-Q;if(C=Number.isNaN(K)?0:K,$={x:P,y:o.y,width:D,height:o.height},Math.abs(L)>0&&Math.abs(C)<Math.abs(L)){var te=Jt(C||L)*(Math.abs(L)-Math.abs(C));B-=te,C+=te}}else{var me=[i.scale(k[0]),i.scale(k[1])],Le=me[0],ce=me[1];if(P=Le,B=q2({axis:o,ticks:s,bandSize:a,offset:p.offset,entry:_,index:N}),D=ce-Le,C=p.size,$={x:i.x,y:B,width:i.width,height:C},Math.abs(L)>0&&Math.abs(D)<Math.abs(L)){var $t=Jt(D||L)*(Math.abs(L)-Math.abs(D));D+=$t}}return ht(ht(ht({},_),{},{x:P,y:B,width:D,height:C,value:u?k:k[1],payload:_,background:$},A&&A[N]&&A[N].props),{},{tooltipPayload:[b3(n,_)],tooltipPosition:{x:P+D/2,y:B+C/2}})});return ht({data:E,layout:b},h)});function jc(e){"@babel/helpers - typeof";return jc=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},jc(e)}function xle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZO(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,Q3(r.key),r)}}function Sle(e,t,n){return t&&ZO(e.prototype,t),n&&ZO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function JO(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 ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){um(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function um(e,t,n){return t=Q3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q3(e){var t=wle(e,"string");return jc(t)=="symbol"?t:t+""}function wle(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jle=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.layout,u=t.children,d=Object.keys(n),f={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=!!Sn(u,wo);return d.reduce(function(p,b){var v=n[b],x=v.orientation,m=v.domain,y=v.padding,g=y===void 0?{}:y,S=v.mirror,w=v.reversed,j="".concat(x).concat(S?"Mirror":""),A,E,_,N,k;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=m[1]-m[0],B=1/0,D=v.categoricalDomain.sort(MU);if(D.forEach(function(me,Le){Le>0&&(B=Math.min((me||0)-(D[Le-1]||0),B))}),Number.isFinite(B)){var C=B/P,$=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(A=C*$/2),v.padding==="no-gap"){var L=en(t.barCategoryGap,C*$),z=C*$/2;A=z-L-(z-L)/$*L}}}a==="xAxis"?E=[r.left+(g.left||0)+(A||0),r.left+r.width-(g.right||0)-(A||0)]:a==="yAxis"?E=s==="horizontal"?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(A||0),r.top+r.height-(g.bottom||0)-(A||0)]:E=v.range,w&&(E=[E[1],E[0]]);var F=m3(v,i,h),G=F.scale,Q=F.realScaleType;G.domain(m).range(E),y3(G);var K=v3(G,ur(ur({},v),{},{realScaleType:Q}));a==="xAxis"?(k=x==="top"&&!S||x==="bottom"&&S,_=r.left,N=f[j]-k*v.height):a==="yAxis"&&(k=x==="left"&&!S||x==="right"&&S,_=f[j]-k*v.width,N=r.top);var te=ur(ur(ur({},v),K),{},{realScaleType:Q,x:_,y:N,scale:G,width:a==="xAxis"?r.width:v.width,height:a==="yAxis"?r.height:v.height});return te.bandSize=Sh(te,K),!v.hide&&a==="xAxis"?f[j]+=(k?-1:1)*te.height:v.hide||(f[j]+=(k?-1:1)*te.width),ur(ur({},p),{},um({},b,te))},{})},W3=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)}},Ole=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return W3({x:n,y:r},{x:a,y:i})},Z3=function(){function e(t){xle(this,e),this.scale=t}return Sle(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)}}])}();um(Z3,"EPS",1e-4);var u1=function(t){var n=Object.keys(t).reduce(function(r,a){return ur(ur({},r),{},um({},a,Z3.create(t[a])))},{});return ur(ur({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return Hoe(a,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(a){return tle(a,function(i,o){return n[o].isInRange(i)})}})};function Ale(e){return(e%180+180)%180}var Ele=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Ale(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)},_le=$I(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("")}),J3=O.createContext(void 0),eR=O.createContext(void 0),tR=O.createContext(void 0),Tle=O.createContext({}),nR=O.createContext(void 0),rR=O.createContext(0),aR=O.createContext(0),eA=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,d=_le(i);return R.createElement(J3.Provider,{value:r},R.createElement(eR.Provider,{value:a},R.createElement(Tle.Provider,{value:i},R.createElement(tR.Provider,{value:d},R.createElement(nR.Provider,{value:o},R.createElement(rR.Provider,{value:u},R.createElement(aR.Provider,{value:s},l)))))))},Nle=function(){return O.useContext(nR)},iR=function(t){var n=O.useContext(J3);n==null&&co();var r=n[t];return r==null&&co(),r},oR=function(t){var n=O.useContext(eR);n==null&&co();var r=n[t];return r==null&&co(),r},Cle=function(){var t=O.useContext(tR);return t},lR=function(){return O.useContext(aR)},sR=function(){return O.useContext(rR)};function Jl(e){"@babel/helpers - typeof";return Jl=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},Jl(e)}function Mle(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,cR(r.key),r)}}function Ple(e,t,n){return t&&Rle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $le(e,t,n){return t=Bh(t),Dle(e,uR()?Reflect.construct(t,n||[],Bh(e).constructor):t.apply(e,n))}function Dle(e,t){if(t&&(Jl(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 uR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uR=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function Lle(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&&S0(e,t)}function S0(e,t){return S0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},S0(e,t)}function tA(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 nA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(r){c1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c1(e,t,n){return t=cR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cR(e){var t=zle(e,"string");return Jl(t)=="symbol"?t:t+""}function zle(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ble(e,t){return qle(e)||Hle(e,t)||Ule(e,t)||Ile()}function Ile(){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 Ule(e,t){if(e){if(typeof e=="string")return rA(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 rA(e,t)}}function rA(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 Hle(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function qle(e){if(Array.isArray(e))return e}function w0(){return w0=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},w0.apply(this,arguments)}var Fle=function(t,n){var r;return R.isValidElement(t)?r=R.cloneElement(t,n):se(t)?r=t(n):r=R.createElement("line",w0({},n,{className:"recharts-reference-line-line"})),r},Gle=function(t,n,r,a,i,o,l,s,u){var d=i.x,f=i.y,h=i.width,p=i.height;if(r){var b=u.y,v=t.y.apply(b,{position:o});if(Er(u,"discard")&&!t.y.isInRange(v))return null;var x=[{x:d+h,y:v},{x:d,y:v}];return s==="left"?x.reverse():x}if(n){var m=u.x,y=t.x.apply(m,{position:o});if(Er(u,"discard")&&!t.x.isInRange(y))return null;var g=[{x:y,y:f+p},{x:y,y:f}];return l==="top"?g.reverse():g}if(a){var S=u.segment,w=S.map(function(j){return t.apply(j,{position:o})});return Er(u,"discard")&&$oe(w,function(j){return!t.isInRange(j)})?null:w}return null};function Kle(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=Nle(),d=iR(a),f=oR(i),h=Cle();if(!u||!h)return null;ra(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=u1({x:d.scale,y:f.scale}),b=Ot(t),v=Ot(n),x=r&&r.length===2,m=Gle(p,b,v,x,h,e.position,d.orientation,f.orientation,e);if(!m)return null;var y=Ble(m,2),g=y[0],S=g.x,w=g.y,j=y[1],A=j.x,E=j.y,_=Er(e,"hidden")?"url(#".concat(u,")"):void 0,N=nA(nA({clipPath:_},oe(e,!0)),{},{x1:S,y1:w,x2:A,y2:E});return R.createElement(De,{className:ve("recharts-reference-line",l)},Fle(o,N),Mt.renderCallByParent(e,Ole({x1:S,y1:w,x2:A,y2:E})))}var f1=function(e){function t(){return Mle(this,t),$le(this,t,arguments)}return Lle(t,e),Ple(t,[{key:"render",value:function(){return R.createElement(Kle,this.props)}}])}(R.Component);c1(f1,"displayName","ReferenceLine");c1(f1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function j0(){return j0=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},j0.apply(this,arguments)}function es(e){"@babel/helpers - typeof";return es=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},es(e)}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 iA(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){cm(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 Yle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vle(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,dR(r.key),r)}}function Xle(e,t,n){return t&&Vle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qle(e,t,n){return t=Ih(t),Wle(e,fR()?Reflect.construct(t,n||[],Ih(e).constructor):t.apply(e,n))}function Wle(e,t){if(t&&(es(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 fR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fR=function(){return!!e})()}function Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}function Jle(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&&O0(e,t)}function O0(e,t){return O0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},O0(e,t)}function cm(e,t,n){return t=dR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dR(e){var t=ese(e,"string");return es(t)=="symbol"?t:t+""}function ese(e,t){if(es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tse=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,o=u1({x:a.scale,y:i.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Er(t,"discard")&&!o.isInRange(l)?null:l},fm=function(e){function t(){return Yle(this,t),Qle(this,t,arguments)}return Jle(t,e),Xle(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=Ot(a),d=Ot(i);if(ra(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=tse(this.props);if(!f)return null;var h=f.x,p=f.y,b=this.props,v=b.shape,x=b.className,m=Er(this.props,"hidden")?"url(#".concat(s,")"):void 0,y=iA(iA({clipPath:m},oe(this.props,!0)),{},{cx:h,cy:p});return R.createElement(De,{className:ve("recharts-reference-dot",x)},t.renderDot(v,y),Mt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(R.Component);cm(fm,"displayName","ReferenceDot");cm(fm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});cm(fm,"renderDot",function(e,t){var n;return R.isValidElement(e)?n=R.cloneElement(e,t):se(e)?n=e(t):n=R.createElement(s1,j0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function A0(){return A0=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},A0.apply(this,arguments)}function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}function oA(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 lA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(n),!0).forEach(function(r){dm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rse(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,pR(r.key),r)}}function ase(e,t,n){return t&&rse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ise(e,t,n){return t=Uh(t),ose(e,hR()?Reflect.construct(t,n||[],Uh(e).constructor):t.apply(e,n))}function ose(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lse(e)}function lse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hR=function(){return!!e})()}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}function sse(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 dm(e,t,n){return t=pR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pR(e){var t=use(e,"string");return ts(t)=="symbol"?t:t+""}function use(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cse=function(t,n,r,a,i){var o=i.x1,l=i.x2,s=i.y1,u=i.y2,d=i.xAxis,f=i.yAxis;if(!d||!f)return null;var h=u1({x:d.scale,y:f.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 Er(i,"discard")&&(!h.isInRange(p)||!h.isInRange(b))?null:W3(p,b)},hm=function(e){function t(){return nse(this,t),ise(this,t,arguments)}return sse(t,e),ase(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,d=r.clipPathId;ra(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Ot(a),h=Ot(i),p=Ot(o),b=Ot(l),v=this.props.shape;if(!f&&!h&&!p&&!b&&!v)return null;var x=cse(f,h,p,b,this.props);if(!x&&!v)return null;var m=Er(this.props,"hidden")?"url(#".concat(d,")"):void 0;return R.createElement(De,{className:ve("recharts-reference-area",s)},t.renderRect(v,lA(lA({clipPath:m},oe(this.props,!0)),x)),Mt.renderCallByParent(this.props,x))}}])}(R.Component);dm(hm,"displayName","ReferenceArea");dm(hm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});dm(hm,"renderRect",function(e,t){var n;return R.isValidElement(e)?n=R.cloneElement(e,t):se(e)?n=e(t):n=R.createElement(l1,A0({},t,{className:"recharts-reference-area-rect"})),n});function mR(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 fse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Ele(r,n)}function dse(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 Hh(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 hse(e,t){return mR(e,t+1)}function pse(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,l=t.end,s=0,u=1,d=o,f=function(){var b=r==null?void 0:r[s];if(b===void 0)return{v:mR(r,u)};var v=s,x,m=function(){return x===void 0&&(x=n(b,v)),x},y=b.coordinate,g=s===0||Hh(e,y,m,d,l);g||(s=0,d=o,u+=1),g&&(d=y+e*(m()/2+a),s+=u)},h;u<=i.length;)if(h=f(),h)return h.v;return[]}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 sA(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?sA(Object(n),!0).forEach(function(r){mse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mse(e,t,n){return t=yse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yse(e){var t=vse(e,"string");return Oc(t)=="symbol"?t:t+""}function vse(e,t){if(Oc(e)!="object"||!e)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)}function gse(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 x=e*(p.coordinate+e*v()/2-s);i[h]=p=Gt(Gt({},p),{},{tickCoord:x>0?p.coordinate-x*e:p.coordinate})}else i[h]=p=Gt(Gt({},p),{},{tickCoord:p.coordinate});var m=Hh(e,p.tickCoord,v,l,s);m&&(s=p.tickCoord-e*(v()/2+a),i[h]=Gt(Gt({},p),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return i}function bse(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,s=t.start,u=t.end;if(i){var d=r[l-1],f=n(d,l-1),h=e*(d.coordinate+e*f/2-u);o[l-1]=d=Gt(Gt({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var p=Hh(e,d.tickCoord,function(){return f},s,u);p&&(u=d.tickCoord-e*(f/2+a),o[l-1]=Gt(Gt({},d),{},{isShow:!0}))}for(var b=i?l-1:l,v=function(y){var g=o[y],S,w=function(){return S===void 0&&(S=n(g,y)),S};if(y===0){var j=e*(g.coordinate-e*w()/2-s);o[y]=g=Gt(Gt({},g),{},{tickCoord:j<0?g.coordinate-j*e:g.coordinate})}else o[y]=g=Gt(Gt({},g),{},{tickCoord:g.coordinate});var A=Hh(e,g.tickCoord,w,s,u);A&&(s=g.tickCoord+e*(w()/2+a),o[y]=Gt(Gt({},g),{},{isShow:!0}))},x=0;x<b;x++)v(x);return o}function xse(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,d=e.unit,f=e.angle;if(!a||!a.length||!r)return[];if(Y(s)||Ms.isSsr)return hse(a,typeof s=="number"&&Y(s)?s:0);var h=[],p=l==="top"||l==="bottom"?"width":"height",b=d&&p==="width"?Su(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=function(g,S){var w=se(u)?u(g.value,S):g.value;return p==="width"?fse(Su(w,{fontSize:t,letterSpacing:n}),b,f):Su(w,{fontSize:t,letterSpacing:n})[p]},x=a.length>=2?Jt(a[1].coordinate-a[0].coordinate):1,m=dse(i,x,p);return s==="equidistantPreserveStart"?pse(x,m,v,a,o):(s==="preserveStart"||s==="preserveStartEnd"?h=bse(x,m,v,a,o,s==="preserveStartEnd"):h=gse(x,m,v,a,o),h.filter(function(y){return y.isShow}))}var Sse=["viewBox"],wse=["viewBox"],jse=["ticks"];function ns(e){"@babel/helpers - typeof";return ns=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},ns(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 uA(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 xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){d1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dy(e,t){if(e==null)return{};var n=Ose(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 Ose(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 Ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cA(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,vR(r.key),r)}}function Ese(e,t,n){return t&&cA(e.prototype,t),n&&cA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _se(e,t,n){return t=qh(t),Tse(e,yR()?Reflect.construct(t,n||[],qh(e).constructor):t.apply(e,n))}function Tse(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nse(e)}function Nse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yR=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function Cse(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&&_0(e,t)}function _0(e,t){return _0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_0(e,t)}function d1(e,t,n){return t=vR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vR(e){var t=Mse(e,"string");return ns(t)=="symbol"?t:t+""}function Mse(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pm=function(e){function t(n){var r;return Ase(this,t),r=_se(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Cse(t,e),Ese(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=Dy(r,Sse),l=this.props,s=l.viewBox,u=Dy(l,wse);return!ol(i,s)||!ol(o,u)||!ol(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,d=a.tickSize,f=a.mirror,h=a.tickMargin,p,b,v,x,m,y,g=f?-1:1,S=r.tickSize||d,w=Y(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=b=r.coordinate,x=o+ +!f*s,v=x-g*S,y=v-g*h,m=w;break;case"left":v=x=r.coordinate,b=i+ +!f*l,p=b-g*S,m=p-g*h,y=w;break;case"right":v=x=r.coordinate,b=i+ +f*l,p=b+g*S,m=p+g*h,y=w;break;default:p=b=r.coordinate,x=o+ +f*s,v=x+g*S,y=v+g*h,m=w;break}return{line:{x1:p,y1:v,x2:b,y2:x},tick:{x:m,y}}}},{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,d=r.axisLine,f=xt(xt(xt({},oe(this.props,!1)),oe(d,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!u||s==="bottom"&&u);f=xt(xt({},f),{},{x1:a,y1:i+h*l,x2:a+o,y2:i+h*l})}else{var p=+(s==="left"&&!u||s==="right"&&u);f=xt(xt({},f),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+l})}return R.createElement("line",Qo({},f,{className:ve("recharts-cartesian-axis-line",Rn(d,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var o=this,l=this.props,s=l.tickLine,u=l.stroke,d=l.tick,f=l.tickFormatter,h=l.unit,p=xse(xt(xt({},this.props),{},{ticks:r}),a,i),b=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),x=oe(this.props,!1),m=oe(d,!1),y=xt(xt({},x),{},{fill:"none"},oe(s,!1)),g=p.map(function(S,w){var j=o.getTickLineCoord(S),A=j.line,E=j.tick,_=xt(xt(xt(xt({textAnchor:b,verticalAnchor:v},x),{},{stroke:"none",fill:u},m),E),{},{index:w,payload:S,visibleTicksCount:p.length,tickFormatter:f});return R.createElement(De,Qo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},lo(o.props,S,w)),s&&R.createElement("line",Qo({},y,A,{className:ve("recharts-cartesian-axis-tick-line",Rn(s,"className"))})),d&&t.renderTickItem(d,_,"".concat(se(f)?f(S.value,w):S.value).concat(h||"")))});return R.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{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,d=a.hide;if(d)return null;var f=this.props,h=f.ticks,p=Dy(f,jse),b=h;return se(s)&&(b=h&&h.length>0?s(this.props):s(p)),o<=0||l<=0||!b||!b.length?null:R.createElement(De,{className:ve("recharts-cartesian-axis",u),ref:function(x){r.layerReference=x}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Mt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var o,l=ve(a.className,"recharts-cartesian-axis-tick-value");return R.isValidElement(r)?o=R.cloneElement(r,xt(xt({},a),{},{className:l})):se(r)?o=r(xt(xt({},a),{},{className:l})):o=R.createElement(so,Qo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(O.Component);d1(pm,"displayName","CartesianAxis");d1(pm,"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 rs(e){"@babel/helpers - typeof";return rs=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},rs(e)}function Rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pse(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,xR(r.key),r)}}function $se(e,t,n){return t&&Pse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dse(e,t,n){return t=Fh(t),kse(e,gR()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}function kse(e,t){if(t&&(rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lse(e)}function Lse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gR=function(){return!!e})()}function Fh(e){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fh(e)}function zse(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 bR(e,t,n){return t=xR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xR(e){var t=Bse(e,"string");return rs(t)=="symbol"?t:t+""}function Bse(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(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 Ise(e){var t=e.xAxisId,n=lR(),r=sR(),a=iR(t);return a==null?null:O.createElement(pm,N0({},a,{className:ve("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return $i(o,!0)}}))}var mm=function(e){function t(){return Rse(this,t),Dse(this,t,arguments)}return zse(t,e),$se(t,[{key:"render",value:function(){return O.createElement(Ise,this.props)}}])}(O.Component);bR(mm,"displayName","XAxis");bR(mm,"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 as(e){"@babel/helpers - typeof";return as=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},as(e)}function Use(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hse(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,jR(r.key),r)}}function qse(e,t,n){return t&&Hse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fse(e,t,n){return t=Gh(t),Gse(e,SR()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}function Gse(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kse(e)}function Kse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SR=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function Yse(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 wR(e,t,n){return t=jR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jR(e){var t=Vse(e,"string");return as(t)=="symbol"?t:t+""}function Vse(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function M0(){return M0=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},M0.apply(this,arguments)}var Xse=function(t){var n=t.yAxisId,r=lR(),a=sR(),i=oR(n);return i==null?null:O.createElement(pm,M0({},i,{className:ve("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(l){return $i(l,!0)}}))},ym=function(e){function t(){return Use(this,t),Fse(this,t,arguments)}return Yse(t,e),qse(t,[{key:"render",value:function(){return O.createElement(Xse,this.props)}}])}(O.Component);wR(ym,"displayName","YAxis");wR(ym,"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 fA(e){return Jse(e)||Zse(e)||Wse(e)||Qse()}function Qse(){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 Wse(e,t){if(e){if(typeof e=="string")return R0(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 R0(e,t)}}function Zse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jse(e){if(Array.isArray(e))return R0(e)}function R0(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 P0=function(t,n,r,a,i){var o=Wn(t,f1),l=Wn(t,fm),s=[].concat(fA(o),fA(l)),u=Wn(t,hm),d="".concat(a,"Id"),f=a[0],h=n;if(s.length&&(h=s.reduce(function(v,x){if(x.props[d]===r&&Er(x.props,"extendDomain")&&Y(x.props[f])){var m=x.props[f];return[Math.min(v[0],m),Math.max(v[1],m)]}return v},h)),u.length){var p="".concat(f,"1"),b="".concat(f,"2");h=u.reduce(function(v,x){if(x.props[d]===r&&Er(x.props,"extendDomain")&&Y(x.props[p])&&Y(x.props[b])){var m=x.props[p],y=x.props[b];return[Math.min(v[0],m,y),Math.max(v[1],m,y)]}return v},h)}return i&&i.length&&(h=i.reduce(function(v,x){return Y(x)?[Math.min(v[0],x),Math.max(v[1],x)]:v},h)),h},OR={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,d){this.fn=s,this.context=u,this.once=d||!1}function i(s,u,d,f,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new a(d,f||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=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)t.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,b=new Array(p);h<p;h++)b[h]=f[h].fn;return b},l.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,d,f,h,p,b){var v=n?n+u:u;if(!this._events[v])return!1;var x=this._events[v],m=arguments.length,y,g;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),m){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,d),!0;case 3:return x.fn.call(x.context,d,f),!0;case 4:return x.fn.call(x.context,d,f,h),!0;case 5:return x.fn.call(x.context,d,f,h,p),!0;case 6:return x.fn.call(x.context,d,f,h,p,b),!0}for(g=1,y=new Array(m-1);g<m;g++)y[g-1]=arguments[g];x.fn.apply(x.context,y)}else{var S=x.length,w;for(g=0;g<S;g++)switch(x[g].once&&this.removeListener(u,x[g].fn,void 0,!0),m){case 1:x[g].fn.call(x[g].context);break;case 2:x[g].fn.call(x[g].context,d);break;case 3:x[g].fn.call(x[g].context,d,f);break;case 4:x[g].fn.call(x[g].context,d,f,h);break;default:if(!y)for(w=1,y=new Array(m-1);w<m;w++)y[w-1]=arguments[w];x[g].fn.apply(x[g].context,y)}}return!0},l.prototype.on=function(u,d,f){return i(this,u,d,f,!1)},l.prototype.once=function(u,d,f){return i(this,u,d,f,!0)},l.prototype.removeListener=function(u,d,f,h){var p=n?n+u:u;if(!this._events[p])return this;if(!d)return o(this,p),this;var b=this._events[p];if(b.fn)b.fn===d&&(!h||b.once)&&(!f||b.context===f)&&o(this,p);else{for(var v=0,x=[],m=b.length;v<m;v++)(b[v].fn!==d||h&&!b[v].once||f&&b[v].context!==f)&&x.push(b[v]);x.length?this._events[p]=x.length===1?x[0]:x:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&o(this,d)):(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})(OR);var eue=OR.exports;const tue=He(eue);var ky=new tue,Ly="recharts.syncMouseEvents";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 nue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rue(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,AR(r.key),r)}}function aue(e,t,n){return t&&rue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zy(e,t,n){return t=AR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AR(e){var t=iue(e,"string");return Ac(t)=="symbol"?t:t+""}function iue(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 String(e)}var oue=function(){function e(){nue(this,e),zy(this,"activeIndex",0),zy(this,"coordinateList",[]),zy(this,"layout","horizontal")}return aue(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,d=n.offset,f=d===void 0?null:d,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=f??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,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=i+s+u,h=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])}();function lue(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&&Y(r)&&Y(a))return!0}return!1}function sue(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 ER(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Ve(t,n,r,a),l=Ve(t,n,r,i);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function uue(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,d=t.outerRadius,f=t.angle,h=Ve(l,s,u,f),p=Ve(l,s,d,f);r=h.x,a=h.y,i=p.x,o=p.y}else return ER(t);return[{x:r,y:a},{x:i,y:o}]}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 dA(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 If(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){cue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cue(e,t,n){return t=fue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fue(e){var t=due(e,"string");return Ec(t)=="symbol"?t:t+""}function due(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 hue(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,d=e.tooltipAxisBandSize,f=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=n0;if(h==="ScatterChart")b=o,v=Sae;else if(h==="BarChart")b=sue(f,o,s,d),v=l1;else if(f==="radial"){var x=ER(o),m=x.cx,y=x.cy,g=x.radius,S=x.startAngle,w=x.endAngle;b={cx:m,cy:y,startAngle:S,endAngle:w,innerRadius:g,outerRadius:g},v=A3}else b={points:uue(f,o,s)},v=n0;var j=If(If(If(If({stroke:"#ccc",pointerEvents:"none"},s),b),oe(p,!1)),{},{payload:l,payloadIndex:u,className:ve("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,j):O.createElement(v,j)}var pue=["item"],mue=["children","className","width","height","style","compact","title","desc"];function is(e){"@babel/helpers - typeof";return is=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},is(e)}function Wo(){return Wo=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},Wo.apply(this,arguments)}function hA(e,t){return gue(e)||vue(e,t)||TR(e,t)||yue()}function yue(){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 vue(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function gue(e){if(Array.isArray(e))return e}function pA(e,t){if(e==null)return{};var n=bue(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 bue(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 xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sue(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,NR(r.key),r)}}function wue(e,t,n){return t&&Sue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jue(e,t,n){return t=Kh(t),Oue(e,_R()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function Oue(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aue(e)}function Aue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_R=function(){return!!e})()}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function Eue(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&&$0(e,t)}function $0(e,t){return $0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$0(e,t)}function os(e){return Nue(e)||Tue(e)||TR(e)||_ue()}function _ue(){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 TR(e,t){if(e){if(typeof e=="string")return D0(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 D0(e,t)}}function Tue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nue(e){if(Array.isArray(e))return D0(e)}function D0(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 mA(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 I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mA(Object(n),!0).forEach(function(r){ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ae(e,t,n){return t=NR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NR(e){var t=Cue(e,"string");return is(t)=="symbol"?t:t+""}function Cue(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mue={xAxis:["bottom","top"],yAxis:["left","right"]},Rue={width:"100%",height:"100%"},CR={x:0,y:0};function Uf(e){return e}var Pue=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},$ue=function(t,n,r,a){var i=n.find(function(d){return d&&d.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 I(I(I({},a),Ve(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var s=i.coordinate,u=a.angle;return I(I(I({},a),Ve(a.cx,a.cy,s,u)),{},{angle:u,radius:s})}return CR},vm=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(os(l),os(u)):l},[]);return o.length>0?o:t&&t.length&&Y(a)&&Y(i)?t.slice(a,i+1):[]};function MR(e){return e==="number"?[0,"auto"]:void 0}var k0=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=vm(n,t);return r<0||!i||!i.length||r>=l.length?null:i.reduce(function(s,u){var d,f=(d=u.props.data)!==null&&d!==void 0?d:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?l:f;h=cg(p,o.dataKey,a)}else h=f&&f[r]||l[r];return h?[].concat(os(s),[b3(u,h)]):s},[])},yA=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=Pue(i,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,d=Uee(o,l,u,s);if(d>=0&&u){var f=u[d]&&u[d].value,h=k0(t,n,d,f),p=$ue(r,l,d,i);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},Due=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,d=t.layout,f=t.children,h=t.stackOffset,p=p3(d,i);return r.reduce(function(b,v){var x,m=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,y=m.type,g=m.dataKey,S=m.allowDataOverflow,w=m.allowDuplicatedCategory,j=m.scale,A=m.ticks,E=m.includeHidden,_=m[o];if(b[_])return b;var N=vm(t.data,{graphicalItems:a.filter(function(K){var te,me=o in K.props?K.props[o]:(te=K.type.defaultProps)===null||te===void 0?void 0:te[o];return me===_}),dataStartIndex:s,dataEndIndex:u}),k=N.length,P,B,D;lue(m.domain,S,y)&&(P=Wg(m.domain,null,S),p&&(y==="number"||j!=="auto")&&(D=ju(N,g,"category")));var C=MR(y);if(!P||P.length===0){var $,L=($=m.domain)!==null&&$!==void 0?$:C;if(g){if(P=ju(N,g,y),y==="category"&&p){var z=CU(P);w&&z?(B=P,P=$h(0,k)):w||(P=K2(L,P,v).reduce(function(K,te){return K.indexOf(te)>=0?K:[].concat(os(K),[te])},[]))}else if(y==="category")w?P=P.filter(function(K){return K!==""&&!ge(K)}):P=K2(L,P,v).reduce(function(K,te){return K.indexOf(te)>=0||te===""||ge(te)?K:[].concat(os(K),[te])},[]);else if(y==="number"){var F=Kee(N,a.filter(function(K){var te,me,Le=o in K.props?K.props[o]:(te=K.type.defaultProps)===null||te===void 0?void 0:te[o],ce="hide"in K.props?K.props.hide:(me=K.type.defaultProps)===null||me===void 0?void 0:me.hide;return Le===_&&(E||!ce)}),g,i,d);F&&(P=F)}p&&(y==="number"||j!=="auto")&&(D=ju(N,g,"category"))}else p?P=$h(0,k):l&&l[_]&&l[_].hasStack&&y==="number"?P=h==="expand"?[0,1]:g3(l[_].stackGroups,s,u):P=h3(N,a.filter(function(K){var te=o in K.props?K.props[o]:K.type.defaultProps[o],me="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return te===_&&(E||!me)}),y,d,!0);if(y==="number")P=P0(f,P,_,i,A),L&&(P=Wg(L,P,S));else if(y==="category"&&L){var G=L,Q=P.every(function(K){return G.indexOf(K)>=0});Q&&(P=G)}}return I(I({},b),{},ae({},_,I(I({},m),{},{axisType:i,domain:P,categoricalDomain:D,duplicateDomain:B,originalDomain:(x=m.domain)!==null&&x!==void 0?x:C,isCategorical:p,layout:d})))},{})},kue=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,d=t.layout,f=t.children,h=vm(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=h.length,b=p3(d,i),v=-1;return r.reduce(function(x,m){var y=m.type.defaultProps!==void 0?I(I({},m.type.defaultProps),m.props):m.props,g=y[o],S=MR("number");if(!x[g]){v++;var w;return b?w=$h(0,p):l&&l[g]&&l[g].hasStack?(w=g3(l[g].stackGroups,s,u),w=P0(f,w,g,i)):(w=Wg(S,h3(h,r.filter(function(j){var A,E,_=o in j.props?j.props[o]:(A=j.type.defaultProps)===null||A===void 0?void 0:A[o],N="hide"in j.props?j.props.hide:(E=j.type.defaultProps)===null||E===void 0?void 0:E.hide;return _===g&&!N}),"number",d),a.defaultProps.allowDataOverflow),w=P0(f,w,g,i)),I(I({},x),{},ae({},g,I(I({axisType:i},a.defaultProps),{},{hide:!0,orientation:Rn(Mue,"".concat(i,".").concat(v%2),null),domain:w,originalDomain:S,isCategorical:b,layout:d})))}return x},{})},Lue=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,d=t.children,f="".concat(a,"Id"),h=Wn(d,i),p={};return h&&h.length?p=Due(t,{axes:h,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=kue(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},zue=function(t){var n=$o(t),r=$i(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:$x(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Sh(n,r)}},vA=function(t){var n=t.children,r=t.defaultShowTooltip,a=Sn(n,Wl),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}},Bue=function(t){return!t||!t.length?!1:t.some(function(n){var r=na(n&&n.type);return r&&r.indexOf("Bar")>=0})},gA=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"}},Iue=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,d=r.height,f=r.children,h=r.margin||{},p=Sn(f,Wl),b=Sn(f,ll),v=Object.keys(s).reduce(function(w,j){var A=s[j],E=A.orientation;return!A.mirror&&!A.hide?I(I({},w),{},ae({},E,w[E]+A.width)):w},{left:h.left||0,right:h.right||0}),x=Object.keys(o).reduce(function(w,j){var A=o[j],E=A.orientation;return!A.mirror&&!A.hide?I(I({},w),{},ae({},E,Rn(w,"".concat(E))+A.height)):w},{top:h.top||0,bottom:h.bottom||0}),m=I(I({},x),v),y=m.bottom;p&&(m.bottom+=p.props.height||Wl.defaultProps.height),b&&n&&(m=Fee(m,a,r,n));var g=u-m.left-m.right,S=d-m.top-m.bottom;return I(I({brushBottom:y},m),{},{width:Math.max(g,0),height:Math.max(S,0)})},Uue=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},RR=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,d=t.formatAxisMap,f=t.defaultProps,h=function(m,y){var g=y.graphicalItems,S=y.stackGroups,w=y.offset,j=y.updateId,A=y.dataStartIndex,E=y.dataEndIndex,_=m.barSize,N=m.layout,k=m.barGap,P=m.barCategoryGap,B=m.maxBarSize,D=gA(N),C=D.numericAxisName,$=D.cateAxisName,L=Bue(g),z=[];return g.forEach(function(F,G){var Q=vm(m.data,{graphicalItems:[F],dataStartIndex:A,dataEndIndex:E}),K=F.type.defaultProps!==void 0?I(I({},F.type.defaultProps),F.props):F.props,te=K.dataKey,me=K.maxBarSize,Le=K["".concat(C,"Id")],ce=K["".concat($,"Id")],$t={},bt=s.reduce(function(Pr,gn){var gm=y["".concat(gn.axisType,"Map")],m1=K["".concat(gn.axisType,"Id")];gm&&gm[m1]||gn.axisType==="zAxis"||co();var y1=gm[m1];return I(I({},Pr),{},ae(ae({},gn.axisType,y1),"".concat(gn.axisType,"Ticks"),$i(y1)))},$t),X=bt[$],le=bt["".concat($,"Ticks")],fe=S&&S[Le]&&S[Le].hasStack&&tte(F,S[Le].stackGroups),H=na(F.type).indexOf("Bar")>=0,Xe=Sh(X,le),be=[],Re=L&&Hee({barSize:_,stackGroups:S,totalSize:Uue(bt,$)});if(H){var J,ze,Dt=ge(me)?B:me,an=(J=(ze=Sh(X,le,!0))!==null&&ze!==void 0?ze:Dt)!==null&&J!==void 0?J:0;be=qee({barGap:k,barCategoryGap:P,bandSize:an!==Xe?an:Xe,sizeList:Re[ce],maxBarSize:Dt}),an!==Xe&&(be=be.map(function(Pr){return I(I({},Pr),{},{position:I(I({},Pr.position),{},{offset:Pr.position.offset-an/2})})}))}var yi=F&&F.type&&F.type.getComposedData;yi&&z.push({props:I(I({},yi(I(I({},bt),{},{displayedData:Q,props:m,dataKey:te,item:F,bandSize:Xe,barPosition:be,offset:w,stackedData:fe,layout:N,dataStartIndex:A,dataEndIndex:E}))),{},ae(ae(ae({key:F.key||"item-".concat(G)},C,bt[C]),$,bt[$]),"animationId",j)),childIndex:HU(F,m.children),item:F})}),z},p=function(m,y){var g=m.props,S=m.dataStartIndex,w=m.dataEndIndex,j=m.updateId;if(!Bw({props:g}))return null;var A=g.children,E=g.layout,_=g.stackOffset,N=g.data,k=g.reverseStackOrder,P=gA(E),B=P.numericAxisName,D=P.cateAxisName,C=Wn(A,r),$=Jee(N,C,"".concat(B,"Id"),"".concat(D,"Id"),_,k),L=s.reduce(function(K,te){var me="".concat(te.axisType,"Map");return I(I({},K),{},ae({},me,Lue(g,I(I({},te),{},{graphicalItems:C,stackGroups:te.axisType===B&&$,dataStartIndex:S,dataEndIndex:w}))))},{}),z=Iue(I(I({},L),{},{props:g,graphicalItems:C}),y==null?void 0:y.legendBBox);Object.keys(L).forEach(function(K){L[K]=d(g,L[K],z,K.replace("Map",""),n)});var F=L["".concat(D,"Map")],G=zue(F),Q=h(g,I(I({},L),{},{dataStartIndex:S,dataEndIndex:w,updateId:j,graphicalItems:C,stackGroups:$,offset:z}));return I(I({formattedGraphicalItems:Q,graphicalItems:C,offset:z,stackGroups:$},G),L)},b=function(x){function m(y){var g,S,w;return xue(this,m),w=jue(this,m,[y]),ae(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(w,"accessibilityManager",new oue),ae(w,"handleLegendBBoxUpdate",function(j){if(j){var A=w.state,E=A.dataStartIndex,_=A.dataEndIndex,N=A.updateId;w.setState(I({legendBBox:j},p({props:w.props,dataStartIndex:E,dataEndIndex:_,updateId:N},I(I({},w.state),{},{legendBBox:j}))))}}),ae(w,"handleReceiveSyncEvent",function(j,A,E){if(w.props.syncId===j){if(E===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(A)}}),ae(w,"handleBrushChange",function(j){var A=j.startIndex,E=j.endIndex;if(A!==w.state.dataStartIndex||E!==w.state.dataEndIndex){var _=w.state.updateId;w.setState(function(){return I({dataStartIndex:A,dataEndIndex:E},p({props:w.props,dataStartIndex:A,dataEndIndex:E,updateId:_},w.state))}),w.triggerSyncEvent({dataStartIndex:A,dataEndIndex:E})}}),ae(w,"handleMouseEnter",function(j){var A=w.getMouseInfo(j);if(A){var E=I(I({},A),{},{isTooltipActive:!0});w.setState(E),w.triggerSyncEvent(E);var _=w.props.onMouseEnter;se(_)&&_(E,j)}}),ae(w,"triggeredAfterMouseMove",function(j){var A=w.getMouseInfo(j),E=A?I(I({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(E),w.triggerSyncEvent(E);var _=w.props.onMouseMove;se(_)&&_(E,j)}),ae(w,"handleItemMouseEnter",function(j){w.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),ae(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ae(w,"handleMouseMove",function(j){j.persist(),w.throttleTriggeredAfterMouseMove(j)}),ae(w,"handleMouseLeave",function(j){w.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};w.setState(A),w.triggerSyncEvent(A);var E=w.props.onMouseLeave;se(E)&&E(A,j)}),ae(w,"handleOuterEvent",function(j){var A=UU(j),E=Rn(w.props,"".concat(A));if(A&&se(E)){var _,N;/.*touch.*/i.test(A)?N=w.getMouseInfo(j.changedTouches[0]):N=w.getMouseInfo(j),E((_=N)!==null&&_!==void 0?_:{},j)}}),ae(w,"handleClick",function(j){var A=w.getMouseInfo(j);if(A){var E=I(I({},A),{},{isTooltipActive:!0});w.setState(E),w.triggerSyncEvent(E);var _=w.props.onClick;se(_)&&_(E,j)}}),ae(w,"handleMouseDown",function(j){var A=w.props.onMouseDown;if(se(A)){var E=w.getMouseInfo(j);A(E,j)}}),ae(w,"handleMouseUp",function(j){var A=w.props.onMouseUp;if(se(A)){var E=w.getMouseInfo(j);A(E,j)}}),ae(w,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),ae(w,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.handleMouseDown(j.changedTouches[0])}),ae(w,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&w.handleMouseUp(j.changedTouches[0])}),ae(w,"handleDoubleClick",function(j){var A=w.props.onDoubleClick;if(se(A)){var E=w.getMouseInfo(j);A(E,j)}}),ae(w,"handleContextMenu",function(j){var A=w.props.onContextMenu;if(se(A)){var E=w.getMouseInfo(j);A(E,j)}}),ae(w,"triggerSyncEvent",function(j){w.props.syncId!==void 0&&ky.emit(Ly,w.props.syncId,j,w.eventEmitterSymbol)}),ae(w,"applySyncEvent",function(j){var A=w.props,E=A.layout,_=A.syncMethod,N=w.state.updateId,k=j.dataStartIndex,P=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)w.setState(I({dataStartIndex:k,dataEndIndex:P},p({props:w.props,dataStartIndex:k,dataEndIndex:P,updateId:N},w.state)));else if(j.activeTooltipIndex!==void 0){var B=j.chartX,D=j.chartY,C=j.activeTooltipIndex,$=w.state,L=$.offset,z=$.tooltipTicks;if(!L)return;if(typeof _=="function")C=_(z,j);else if(_==="value"){C=-1;for(var F=0;F<z.length;F++)if(z[F].value===j.activeLabel){C=F;break}}var G=I(I({},L),{},{x:L.left,y:L.top}),Q=Math.min(B,G.x+G.width),K=Math.min(D,G.y+G.height),te=z[C]&&z[C].value,me=k0(w.state,w.props.data,C),Le=z[C]?{x:E==="horizontal"?z[C].coordinate:Q,y:E==="horizontal"?K:z[C].coordinate}:CR;w.setState(I(I({},j),{},{activeLabel:te,activeCoordinate:Le,activePayload:me,activeTooltipIndex:C}))}else w.setState(j)}),ae(w,"renderCursor",function(j){var A,E=w.state,_=E.isTooltipActive,N=E.activeCoordinate,k=E.activePayload,P=E.offset,B=E.activeTooltipIndex,D=E.tooltipAxisBandSize,C=w.getTooltipEventType(),$=(A=j.props.active)!==null&&A!==void 0?A:_,L=w.props.layout,z=j.key||"_recharts-cursor";return R.createElement(hue,{key:z,activeCoordinate:N,activePayload:k,activeTooltipIndex:B,chartName:n,element:j,isActive:$,layout:L,offset:P,tooltipAxisBandSize:D,tooltipEventType:C})}),ae(w,"renderPolarAxis",function(j,A,E){var _=Rn(j,"type.axisType"),N=Rn(w.state,"".concat(_,"Map")),k=j.type.defaultProps,P=k!==void 0?I(I({},k),j.props):j.props,B=N&&N[P["".concat(_,"Id")]];return O.cloneElement(j,I(I({},B),{},{className:ve(_,B.className),key:j.key||"".concat(A,"-").concat(E),ticks:$i(B,!0)}))}),ae(w,"renderPolarGrid",function(j){var A=j.props,E=A.radialLines,_=A.polarAngles,N=A.polarRadius,k=w.state,P=k.radiusAxisMap,B=k.angleAxisMap,D=$o(P),C=$o(B),$=C.cx,L=C.cy,z=C.innerRadius,F=C.outerRadius;return O.cloneElement(j,{polarAngles:Array.isArray(_)?_:$i(C,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(N)?N:$i(D,!0).map(function(G){return G.coordinate}),cx:$,cy:L,innerRadius:z,outerRadius:F,key:j.key||"polar-grid",radialLines:E})}),ae(w,"renderLegend",function(){var j=w.state.formattedGraphicalItems,A=w.props,E=A.children,_=A.width,N=A.height,k=w.props.margin||{},P=_-(k.left||0)-(k.right||0),B=f3({children:E,formattedGraphicalItems:j,legendWidth:P,legendContent:u});if(!B)return null;var D=B.item,C=pA(B,pue);return O.cloneElement(D,I(I({},C),{},{chartWidth:_,chartHeight:N,margin:k,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),ae(w,"renderTooltip",function(){var j,A=w.props,E=A.children,_=A.accessibilityLayer,N=Sn(E,sr);if(!N)return null;var k=w.state,P=k.isTooltipActive,B=k.activeCoordinate,D=k.activePayload,C=k.activeLabel,$=k.offset,L=(j=N.props.active)!==null&&j!==void 0?j:P;return O.cloneElement(N,{viewBox:I(I({},$),{},{x:$.left,y:$.top}),active:L,label:C,payload:L?D:[],coordinate:B,accessibilityLayer:_})}),ae(w,"renderBrush",function(j){var A=w.props,E=A.margin,_=A.data,N=w.state,k=N.offset,P=N.dataStartIndex,B=N.dataEndIndex,D=N.updateId;return O.cloneElement(j,{key:j.key||"_recharts-brush",onChange:kf(w.handleBrushChange,j.props.onChange),data:_,x:Y(j.props.x)?j.props.x:k.left,y:Y(j.props.y)?j.props.y:k.top+k.height+k.brushBottom-(E.bottom||0),width:Y(j.props.width)?j.props.width:k.width,startIndex:P,endIndex:B,updateId:"brush-".concat(D)})}),ae(w,"renderReferenceElement",function(j,A,E){if(!j)return null;var _=w,N=_.clipPathId,k=w.state,P=k.xAxisMap,B=k.yAxisMap,D=k.offset,C=j.type.defaultProps||{},$=j.props,L=$.xAxisId,z=L===void 0?C.xAxisId:L,F=$.yAxisId,G=F===void 0?C.yAxisId:F;return O.cloneElement(j,{key:j.key||"".concat(A,"-").concat(E),xAxis:P[z],yAxis:B[G],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:N})}),ae(w,"renderActivePoints",function(j){var A=j.item,E=j.activePoint,_=j.basePoint,N=j.childIndex,k=j.isRange,P=[],B=A.props.key,D=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,C=D.activeDot,$=D.dataKey,L=I(I({index:N,dataKey:$,cx:E.x,cy:E.y,r:4,fill:o1(A.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},oe(C,!1)),Yd(C));return P.push(m.renderActiveDot(C,L,"".concat(B,"-activePoint-").concat(N))),_?P.push(m.renderActiveDot(C,I(I({},L),{},{cx:_.x,cy:_.y}),"".concat(B,"-basePoint-").concat(N))):k&&P.push(null),P}),ae(w,"renderGraphicChild",function(j,A,E){var _=w.filterFormatItem(j,A,E);if(!_)return null;var N=w.getTooltipEventType(),k=w.state,P=k.isTooltipActive,B=k.tooltipAxis,D=k.activeTooltipIndex,C=k.activeLabel,$=w.props.children,L=Sn($,sr),z=_.props,F=z.points,G=z.isRange,Q=z.baseLine,K=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,te=K.activeDot,me=K.hide,Le=K.activeBar,ce=K.activeShape,$t=!!(!me&&P&&L&&(te||Le||ce)),bt={};N!=="axis"&&L&&L.props.trigger==="click"?bt={onClick:kf(w.handleItemMouseEnter,j.props.onClick)}:N!=="axis"&&(bt={onMouseLeave:kf(w.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:kf(w.handleItemMouseEnter,j.props.onMouseEnter)});var X=O.cloneElement(j,I(I({},_.props),bt));function le(gn){return typeof B.dataKey=="function"?B.dataKey(gn.payload):null}if($t)if(D>=0){var fe,H;if(B.dataKey&&!B.allowDuplicatedCategory){var Xe=typeof B.dataKey=="function"?le:"payload.".concat(B.dataKey.toString());fe=cg(F,Xe,C),H=G&&Q&&cg(Q,Xe,C)}else fe=F==null?void 0:F[D],H=G&&Q&&Q[D];if(ce||Le){var be=j.props.activeIndex!==void 0?j.props.activeIndex:D;return[O.cloneElement(j,I(I(I({},_.props),bt),{},{activeIndex:be})),null,null]}if(!ge(fe))return[X].concat(os(w.renderActivePoints({item:_,activePoint:fe,basePoint:H,childIndex:D,isRange:G})))}else{var Re,J=(Re=w.getItemByXY(w.state.activeCoordinate))!==null&&Re!==void 0?Re:{graphicalItem:X},ze=J.graphicalItem,Dt=ze.item,an=Dt===void 0?j:Dt,yi=ze.childIndex,Pr=I(I(I({},_.props),bt),{},{activeIndex:yi});return[O.cloneElement(an,Pr),null,null]}return G?[X,null,null]:[X,null]}),ae(w,"renderCustomized",function(j,A,E){return O.cloneElement(j,I(I({key:"recharts-customized-".concat(E)},w.props),w.state))}),ae(w,"renderMap",{CartesianGrid:{handler:Uf,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Uf},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Uf},YAxis:{handler:Uf},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((g=y.id)!==null&&g!==void 0?g:ef("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=fM(w.triggeredAfterMouseMove,(S=y.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return Eue(m,x),wue(m,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,w=g.data,j=g.height,A=g.layout,E=Sn(S,sr);if(E){var _=E.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,k=k0(this.state,w,_,N),P=this.state.tooltipTicks[_].coordinate,B=(this.state.offset.top+j)/2,D=A==="horizontal",C=D?{x:P,y:B}:{y:P,x:B},$=this.state.formattedGraphicalItems.find(function(z){var F=z.item;return F.type.name==="Scatter"});$&&(C=I(I({},C),$.props.points[_].tooltipPosition),k=$.props.points[_].tooltipPayload);var L={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:N,activePayload:k,activeCoordinate:C};this.setState(L),this.renderCursor(E),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var w,j;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(g){dg([Sn(g.children,sr)],[Sn(this.props.children,sr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=Sn(this.props.children,sr);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return l.indexOf(S)>=0?S:i}return i}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),j=mQ(w),A={chartX:Math.round(g.pageX-j.left),chartY:Math.round(g.pageY-j.top)},E=w.width/S.offsetWidth||1,_=this.inRange(A.chartX,A.chartY,E);if(!_)return null;var N=this.state,k=N.xAxisMap,P=N.yAxisMap,B=this.getTooltipEventType(),D=yA(this.state,this.props.data,this.props.layout,_);if(B!=="axis"&&k&&P){var C=$o(k).scale,$=$o(P).scale,L=C&&C.invert?C.invert(A.chartX):null,z=$&&$.invert?$.invert(A.chartY):null;return I(I({},A),{},{xValue:L,yValue:z},D)}return D?I(I({},A),D):null}},{key:"inRange",value:function(g,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,A=g/w,E=S/w;if(j==="horizontal"||j==="vertical"){var _=this.state.offset,N=A>=_.left&&A<=_.left+_.width&&E>=_.top&&E<=_.top+_.height;return N?{x:A,y:E}:null}var k=this.state,P=k.angleAxisMap,B=k.radiusAxisMap;if(P&&B){var D=$o(P);return X2({x:A,y:E},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),w=Sn(g,sr),j={};w&&S==="axis"&&(w.props.trigger==="click"?j={onClick:this.handleClick}:j={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=Yd(this.props,this.handleOuterEvent);return I(I({},A),j)}},{key:"addListener",value:function(){ky.on(Ly,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ky.removeListener(Ly,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,w){for(var j=this.state.formattedGraphicalItems,A=0,E=j.length;A<E;A++){var _=j[A];if(_.item===g||_.props.key===g.key||S===na(_.item.type)&&w===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,S=this.state.offset,w=S.left,j=S.top,A=S.height,E=S.width;return R.createElement("defs",null,R.createElement("clipPath",{id:g},R.createElement("rect",{x:w,y:j,height:A,width:E})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(S,w){var j=hA(w,2),A=j[0],E=j[1];return I(I({},S),{},ae({},A,E.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(S,w){var j=hA(w,2),A=j[0],E=j[1];return I(I({},S),{},ae({},A,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(g){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(g){var S=this.state,w=S.formattedGraphicalItems,j=S.activeItem;if(w&&w.length)for(var A=0,E=w.length;A<E;A++){var _=w[A],N=_.props,k=_.item,P=k.type.defaultProps!==void 0?I(I({},k.type.defaultProps),k.props):k.props,B=na(k.type);if(B==="Bar"){var D=(N.data||[]).find(function(z){return tae(g,z)});if(D)return{graphicalItem:_,payload:D}}else if(B==="RadialBar"){var C=(N.data||[]).find(function(z){return X2(g,z)});if(C)return{graphicalItem:_,payload:C}}else if(lm(_,j)||sm(_,j)||xc(_,j)){var $=qie({graphicalItem:_,activeTooltipItem:j,itemData:P.data}),L=P.activeIndex===void 0?$:P.activeIndex;return{graphicalItem:I(I({},_),{},{childIndex:L}),payload:xc(_,j)?P.data[$]:_.props.data[$]}}}return null}},{key:"render",value:function(){var g=this;if(!Bw(this))return null;var S=this.props,w=S.children,j=S.className,A=S.width,E=S.height,_=S.style,N=S.compact,k=S.title,P=S.desc,B=pA(S,mue),D=oe(B,!1);if(N)return R.createElement(eA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},R.createElement(pg,Wo({},D,{width:A,height:E,title:k,desc:P}),this.renderClipPath(),Uw(w,this.renderMap)));if(this.props.accessibilityLayer){var C,$;D.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,D.role=($=this.props.role)!==null&&$!==void 0?$:"application",D.onKeyDown=function(z){g.accessibilityManager.keyboardEvent(z)},D.onFocus=function(){g.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return R.createElement(eA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},R.createElement("div",Wo({className:ve("recharts-wrapper",j),style:I({position:"relative",cursor:"default",width:A,height:E},_)},L,{ref:function(F){g.container=F}}),R.createElement(pg,Wo({},D,{width:A,height:E,title:k,desc:P,style:Rue}),this.renderClipPath(),Uw(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(O.Component);ae(b,"displayName",n),ae(b,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ae(b,"getDerivedStateFromProps",function(x,m){var y=x.dataKey,g=x.data,S=x.children,w=x.width,j=x.height,A=x.layout,E=x.stackOffset,_=x.margin,N=m.dataStartIndex,k=m.dataEndIndex;if(m.updateId===void 0){var P=vA(x);return I(I(I({},P),{},{updateId:0},p(I(I({props:x},P),{},{updateId:0}),m)),{},{prevDataKey:y,prevData:g,prevWidth:w,prevHeight:j,prevLayout:A,prevStackOffset:E,prevMargin:_,prevChildren:S})}if(y!==m.prevDataKey||g!==m.prevData||w!==m.prevWidth||j!==m.prevHeight||A!==m.prevLayout||E!==m.prevStackOffset||!ol(_,m.prevMargin)){var B=vA(x),D={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},C=I(I({},yA(m,g,A)),{},{updateId:m.updateId+1}),$=I(I(I({},B),D),C);return I(I(I({},$),p(I({props:x},$),m)),{},{prevDataKey:y,prevData:g,prevWidth:w,prevHeight:j,prevLayout:A,prevStackOffset:E,prevMargin:_,prevChildren:S})}if(!dg(S,m.prevChildren)){var L,z,F,G,Q=Sn(S,Wl),K=Q&&(L=(z=Q.props)===null||z===void 0?void 0:z.startIndex)!==null&&L!==void 0?L:N,te=Q&&(F=(G=Q.props)===null||G===void 0?void 0:G.endIndex)!==null&&F!==void 0?F:k,me=K!==N||te!==k,Le=!ge(g),ce=Le&&!me?m.updateId:m.updateId+1;return I(I({updateId:ce},p(I(I({props:x},m),{},{updateId:ce,dataStartIndex:K,dataEndIndex:te}),m)),{},{prevChildren:S,dataStartIndex:K,dataEndIndex:te})}return null}),ae(b,"renderActiveDot",function(x,m,y){var g;return O.isValidElement(x)?g=O.cloneElement(x,m):se(x)?g=x(m):g=R.createElement(s1,m),R.createElement(De,{className:"recharts-active-dot",key:y},g)});var v=O.forwardRef(function(m,y){return R.createElement(b,Wo({},m,{ref:y}))});return v.displayName=b.displayName,v},Hue=RR({chartName:"BarChart",GraphicalChild:wo,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:mm},{axisType:"yAxis",AxisComp:ym}],formatAxisMap:jle}),que=RR({chartName:"PieChart",GraphicalChild:xa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:om},{axisType:"radiusAxis",AxisComp:am}],formatAxisMap:fte,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Co({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 c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4 flex items-center gap-4",children:[c.jsx("div",{className:`p-3 rounded-lg ${o}`,children:c.jsx(n,{size:20})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-gray-400",children:e}),c.jsx("p",{className:`text-2xl font-bold ${o.split(" ")[0]}`,children:t}),a&&c.jsx("p",{className:"text-xs text-gray-500",children:a})]})]})}const bA=["#00a0c8","#3ddc97","#f59e0b","#ef4444"];function Fue(){const e=localStorage.getItem("esn_tenant")||void 0,{data:t,isLoading:n}=Vt({queryKey:["dashboard",e],queryFn:()=>G6(e),refetchInterval:3e4});if(n)return c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."});if(!t)return c.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 c.jsxs("div",{className:"space-y-6",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"대시보드"}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:[c.jsx(Co,{title:"전체 매장",value:t.totalStores||0,icon:ag,color:"brand"}),c.jsx(Co,{title:"운영 매장",value:t.activeStores||0,icon:ag,color:"green"}),c.jsx(Co,{title:"미해결 알람",value:t.unresolvedAlarms||0,icon:gN,color:"red"}),c.jsx(Co,{title:"긴급 알람",value:t.criticalAlarms||0,icon:Fu,color:"red"}),c.jsx(Co,{title:"온라인 장치",value:t.onlineDevices||0,icon:$l,color:"green"}),c.jsx(Co,{title:"POS 대기",value:t.pendingPosCvt||0,icon:vp,color:"yellow"})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"장치 상태 현황"}),c.jsx(zj,{width:"100%",height:200,children:c.jsxs(que,{children:[c.jsx(xa,{data:r,cx:"50%",cy:"50%",outerRadius:70,dataKey:"value",label:({name:i,value:o})=>`${i}: ${o}`,children:r.map((i,o)=>c.jsx(qp,{fill:bA[o%bA.length]},o))}),c.jsx(sr,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}})]})})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"오늘의 작업/POS 현황"}),c.jsx(zj,{width:"100%",height:200,children:c.jsxs(Hue,{data:a,children:[c.jsx(mm,{dataKey:"name",tick:{fill:"#9ca3af",fontSize:11}}),c.jsx(ym,{tick:{fill:"#9ca3af",fontSize:11}}),c.jsx(sr,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}}),c.jsx(wo,{dataKey:"value",fill:"#00a0c8",radius:[3,3,0,0]})]})})]})]}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:"오늘 작업"}),c.jsx("p",{className:"text-2xl font-bold text-brand",children:t.totalWorkToday||0}),c.jsxs("p",{className:"text-xs text-gray-500",children:["완료: ",t.completedWorkToday||0]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:"전체 알람"}),c.jsx("p",{className:"text-2xl font-bold text-yellow-400",children:t.totalAlarms||0}),c.jsxs("p",{className:"text-xs text-gray-500",children:["미해결: ",t.unresolvedAlarms||0]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:"전체 장치"}),c.jsx("p",{className:"text-2xl font-bold text-accent",children:t.totalDevices||0}),c.jsxs("p",{className:"text-xs text-gray-500",children:["오프라인: ",t.offlineDevices||0]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:"POS 처리(오늘)"}),c.jsx("p",{className:"text-2xl font-bold text-green-400",children:t.processedPosCvtToday||0}),c.jsxs("p",{className:"text-xs text-gray-500",children:["대기: ",t.pendingPosCvt||0]})]})]})]})}function Gue(){const e=rn(),[t,n]=O.useState(null),[r,a]=O.useState(""),{data:i=[],isLoading:o}=Vt({queryKey:["stores",r],queryFn:()=>Q6({keyword:r||void 0})}),l=it({mutationFn:u=>u.id?Z6(u.id,u):W6(u),onSuccess:()=>{e.invalidateQueries({queryKey:["stores"]}),n(null)}}),s=it({mutationFn:J6,onSuccess:()=>e.invalidateQueries({queryKey:["stores"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"매장 관리"}),c.jsxs("div",{className:"flex gap-2",children:[c.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"}),c.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:[c.jsx(bs,{size:14})," 매장 추가"]})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["테넌트","코드","매장명","주소","담당자","상태","액션"].map(u=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),c.jsxs("tbody",{children:[i.map(u=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:u.tenantCode}),c.jsx("td",{className:"px-4 py-3 text-gray-300 font-mono text-xs",children:u.storeCode}),c.jsx("td",{className:"px-4 py-3 text-white",children:u.storeName}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs truncate max-w-xs",children:u.address}),c.jsx("td",{className:"px-4 py-3 text-gray-400",children:u.managerName}),c.jsx("td",{className:"px-4 py-3",children:c.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?"운영":"중지"})}),c.jsx("td",{className:"px-4 py-3",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>n(u),className:"text-brand hover:text-blue-300",children:c.jsx(Yc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})})]},u.id)),i.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"매장이 없습니다"})})]})]})}),t&&c.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[c.jsxs("div",{className:"flex justify-between mb-4",children:[c.jsx("h2",{className:"font-semibold",children:t.id?"매장 수정":"매장 추가"}),c.jsx("button",{onClick:()=>n(null),children:c.jsx(xs,{size:16})})]}),c.jsx(Kue,{initial:t,onSave:u=>l.mutate(u)})]})})]})}function Kue({initial:e,onSave:t}){const[n,r]=O.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 c.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})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:i}),l==="select"?c.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=>c.jsx("option",{value:u,children:u},u))}):c.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)),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function Yue(){const e=rn(),[t,n]=O.useState(null),{data:r=[],isLoading:a}=Vt({queryKey:["templates"],queryFn:()=>ez()}),i=it({mutationFn:l=>l.id?nz(l.id,l):tz(l),onSuccess:()=>{e.invalidateQueries({queryKey:["templates"]}),n(null)}}),o=it({mutationFn:rz,onSuccess:()=>e.invalidateQueries({queryKey:["templates"]})});return a?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"ESL 템플릿"}),c.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:[c.jsx(bs,{size:14})," 템플릿 추가"]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.map(l=>c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsxs("div",{className:"flex justify-between items-start mb-2",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-white",children:l.templateName}),c.jsxs("p",{className:"text-xs text-brand mt-0.5",children:[l.tenantCode," · ",l.templateType]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>n(l),className:"text-brand hover:text-blue-300",children:c.jsx(Yc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})]}),c.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:c.jsxs("div",{className:"text-center",children:[c.jsxs("p",{className:"text-xs text-gray-400",children:[l.width,"×",l.height,"px"]}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:l.description})]})}),c.jsxs("p",{className:"text-xs text-gray-500 mt-2",children:["코드: ",l.templateCode]})]},l.id)),r.length===0&&c.jsx("div",{className:"col-span-3 text-center text-gray-500 py-8",children:"템플릿이 없습니다"})]}),t&&c.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[c.jsxs("div",{className:"flex justify-between mb-4",children:[c.jsx("h2",{className:"font-semibold",children:t.id?"템플릿 수정":"템플릿 추가"}),c.jsx("button",{onClick:()=>n(null),children:c.jsx(xs,{size:16})})]}),c.jsx(Vue,{initial:t,onSave:l=>i.mutate(l)})]})})]})}function Vue({initial:e,onSave:t}){const n=!!e.id,[r,a]=O.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 c.jsxs("form",{onSubmit:o,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),c.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=>c.jsx("option",{value:l,children:l},l))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"템플릿 코드"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"템플릿명"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"유형"}),c.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=>c.jsx("option",{value:l,children:l},l))})]}),c.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{label:"너비(px)",key:"width"},{label:"높이(px)",key:"height"}].map(({label:l,key:s})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:l}),c.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))}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"레이아웃 JSON (선택)"}),c.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"})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function Xue(){const e=rn(),[t,n]=O.useState("PENDING"),[r,a]=O.useState(""),{data:i=[],isLoading:o}=Vt({queryKey:["pos-cvt",t,r],queryFn:()=>az({status:t||void 0,keyword:r||void 0})}),l=it({mutationFn:iz,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})}),s=it({mutationFn:oz,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"POS 가격 변환"}),c.jsxs("div",{className:"flex gap-2",children:[c.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"}),c.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=>c.jsx("option",{value:u,children:u||"전체"},u))})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["테넌트","매장","상품코드","상품명","정가","판매가","상태","수신일시","액션"].map(u=>c.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),c.jsxs("tbody",{children:[i.map(u=>{var d,f;return c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:u.tenantCode}),c.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:u.storeName||"-"}),c.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:u.productCode}),c.jsx("td",{className:"px-3 py-3 text-white text-xs",children:u.productName}),c.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(d=u.price)==null?void 0:d.toLocaleString()}),c.jsx("td",{className:"px-3 py-3 text-accent text-xs",children:(f=u.salePrice)==null?void 0:f.toLocaleString()}),c.jsx("td",{className:"px-3 py-3",children:c.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})}),c.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-3 py-3",children:u.status==="PENDING"&&c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>l.mutate(u.id),title:"처리",className:"text-green-400 hover:text-green-300",children:c.jsx(nx,{size:14})}),c.jsx("button",{onClick:()=>s.mutate(u.id),title:"무시",className:"text-gray-400 hover:text-gray-300",children:c.jsx(i5,{size:14})})]})})]},u.id)}),i.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"데이터가 없습니다"})})]})]})})]})}function Que({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 c.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${n}`,children:e})}function Wue(){const e=rn(),[t,n]=O.useState(""),[r,a]=O.useState("OPEN"),{data:i=[],isLoading:o}=Vt({queryKey:["alarms",t,r],queryFn:()=>lz({severity:t||void 0,status:r||void 0})}),l=it({mutationFn:({id:u,resolution:d})=>sz(u,d),onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})}),s=it({mutationFn:uz,onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"알람 관리"}),c.jsxs("div",{className:"flex gap-2",children:[c.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:[c.jsx("option",{value:"",children:"전체 심각도"}),["CRITICAL","HIGH","MEDIUM","LOW"].map(u=>c.jsx("option",{value:u,children:u},u))]}),c.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:[c.jsx("option",{value:"",children:"전체 상태"}),["OPEN","ACKNOWLEDGED","RESOLVED"].map(u=>c.jsx("option",{value:u,children:u},u))]})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["매장","유형","심각도","메시지","상태","발생일시","액션"].map(u=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),c.jsxs("tbody",{children:[i.map(u=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30 transition-colors",children:[c.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.storeName||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.alarmType}),c.jsx("td",{className:"px-4 py-3",children:c.jsx(Que,{severity:u.severity})}),c.jsx("td",{className:"px-4 py-3 text-gray-400 max-w-xs truncate",children:u.message}),c.jsx("td",{className:"px-4 py-3",children:c.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})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsxs("div",{className:"flex gap-2",children:[u.status!=="RESOLVED"&&c.jsx("button",{onClick:()=>l.mutate({id:u.id,resolution:"운영자 확인 후 해결"}),className:"text-green-400 hover:text-green-300",title:"해결 처리",children:c.jsx(nx,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})})]},u.id)),i.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"알람이 없습니다"})})]})]})})]})}const Zue={ONLINE:c.jsx(AN,{size:14,className:"text-green-400"}),OFFLINE:c.jsx(ON,{size:14,className:"text-red-400"}),ERROR:c.jsx(Fu,{size:14,className:"text-orange-400"}),UPDATING:c.jsx($l,{size:14,className:"text-yellow-400"})},Jue={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 ece(){const e=rn(),[t,n]=R.useState(""),[r,a]=R.useState(""),{data:i=[],isLoading:o}=Vt({queryKey:["hcore",t,r],queryFn:()=>cz({deviceType:t||void 0,status:r||void 0}),refetchInterval:15e3}),l=it({mutationFn:({id:s,status:u})=>fz(s,u),onSuccess:()=>e.invalidateQueries({queryKey:["hcore"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"HCore 장치 현황"}),c.jsxs("div",{className:"flex gap-2",children:[c.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:[c.jsx("option",{value:"",children:"전체 유형"}),["GATEWAY","HUB","ESL_DEVICE"].map(s=>c.jsx("option",{value:s,children:s},s))]}),c.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:[c.jsx("option",{value:"",children:"전체 상태"}),["ONLINE","OFFLINE","ERROR","UPDATING"].map(s=>c.jsx("option",{value:s,children:s},s))]})]})]}),c.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=>c.jsxs("div",{className:`border rounded-lg p-4 ${Jue[s.status]||"border-edge bg-card"}`,children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[Zue[s.status],c.jsx("span",{className:"text-xs font-mono text-gray-300",children:s.deviceId})]}),c.jsx("span",{className:"text-xs text-brand",children:s.deviceType})]}),c.jsx("p",{className:"text-xs text-gray-400",children:s.storeName||"미배정"}),c.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["FW: ",s.firmwareVersion||"-"]}),s.ipAddress&&c.jsx("p",{className:"text-xs text-gray-600 font-mono",children:s.ipAddress}),s.batteryLevel!=null&&c.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[c.jsx(vN,{size:12,className:s.batteryLevel<20?"text-red-400":"text-gray-400"}),c.jsxs("span",{className:`text-xs ${s.batteryLevel<20?"text-red-400":"text-gray-400"}`,children:[s.batteryLevel,"%"]})]}),s.status==="OFFLINE"&&c.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&&c.jsx("div",{className:"col-span-4 text-center text-gray-500 py-8",children:"장치가 없습니다"})]})]})}const tce={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 nce(){const{data:e=[],isLoading:t}=Vt({queryKey:["works"],queryFn:()=>dz()});return t?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"작업 이력"}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["테넌트","매장","작업유형","작업내용","담당자","상태","시작일시","완료일시"].map(n=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:n},n))})}),c.jsxs("tbody",{children:[e.map(n=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:n.tenantCode}),c.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.storeName||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:n.workType}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs max-w-xs truncate",children:n.workContent}),c.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.workerName}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${tce[n.status]||"bg-gray-500/20 text-gray-400"}`,children:n.status})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:n.startedAt?new Date(n.startedAt).toLocaleString("ko-KR"):"-"}),c.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&&c.jsx("tr",{children:c.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-gray-500",children:"작업 이력이 없습니다"})})]})]})})]})}function rce(){const e=rn(),[t,n]=O.useState(null),{data:r=[],isLoading:a}=Vt({queryKey:["firmware"],queryFn:()=>hz()}),i=it({mutationFn:l=>pz(l),onSuccess:()=>{e.invalidateQueries({queryKey:["firmware"]}),n(null)}}),o=it({mutationFn:mz,onSuccess:()=>e.invalidateQueries({queryKey:["firmware"]})});return a?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"펌웨어 관리"}),c.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:[c.jsx(bs,{size:14})," 펌웨어 등록"]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["버전","테넌트","장치유형","파일명","크기","체크섬","최신","등록일","액션"].map(l=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:l},l))})}),c.jsxs("tbody",{children:[r.map(l=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-brand font-mono text-xs",children:l.firmwareVersion}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.tenantCode}),c.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:l.deviceType}),c.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:l.fileName}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.fileSize?`${(l.fileSize/1024).toFixed(1)}KB`:"-"}),c.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)+"...":"-"}),c.jsx("td",{className:"px-4 py-3",children:l.latest&&c.jsx(R5,{size:14,className:"text-yellow-400",fill:"currentColor"})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:l.createdAt?new Date(l.createdAt).toLocaleDateString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})})]},l.id)),r.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"펌웨어가 없습니다"})})]})]})}),t&&c.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[c.jsxs("div",{className:"flex justify-between mb-4",children:[c.jsx("h2",{className:"font-semibold",children:"펌웨어 등록"}),c.jsx("button",{onClick:()=>n(null),children:c.jsx(xs,{size:16})})]}),c.jsx(ace,{onSave:l=>i.mutate(l)})]})})]})}function ace({onSave:e}){const[t,n]=O.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 c.jsxs("form",{onSubmit:a,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),c.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=>c.jsx("option",{value:i,children:i},i))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"장치 유형"}),c.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=>c.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})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:i}),c.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)),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"최신 버전 지정"}),c.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:[c.jsx("option",{value:"true",children:"최신으로 지정"}),c.jsx("option",{value:"false",children:"일반"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"등록"})]})}function ice(){const e=rn(),[t,n]=O.useState(null),{data:r=[],isLoading:a}=Vt({queryKey:["users"],queryFn:()=>yz()}),i=it({mutationFn:l=>l.id?gz(l.id,l):vz(l),onSuccess:()=>{e.invalidateQueries({queryKey:["users"]}),n(null)}}),o=it({mutationFn:bz,onSuccess:()=>e.invalidateQueries({queryKey:["users"]})});return a?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"사용자 관리"}),c.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:[c.jsx(bs,{size:14})," 사용자 추가"]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["아이디","테넌트","역할","이메일","전화","상태","마지막 로그인","액션"].map(l=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:l},l))})}),c.jsxs("tbody",{children:[r.map(l=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-white font-medium",children:l.username}),c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:l.tenantCode||"SUPER"}),c.jsx("td",{className:"px-4 py-3",children:c.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})}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.email||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.phone||"-"}),c.jsx("td",{className:"px-4 py-3",children:c.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?"활성":"비활성"})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:l.lastLoginAt?new Date(l.lastLoginAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>n(l),className:"text-brand hover:text-blue-300",children:c.jsx(Yc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})})]},l.id)),r.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-gray-500",children:"사용자가 없습니다"})})]})]})}),t&&c.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[c.jsxs("div",{className:"flex justify-between mb-4",children:[c.jsx("h2",{className:"font-semibold",children:t.id?"사용자 수정":"사용자 추가"}),c.jsx("button",{onClick:()=>n(null),children:c.jsx(xs,{size:16})})]}),c.jsx(oce,{initial:t,onSave:l=>i.mutate(l)})]})})]})}function oce({initial:e,onSave:t}){const n=!!e.id,[r,a]=O.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 c.jsxs("form",{onSubmit:o,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),c.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&&c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"초기 비밀번호 (미입력 시 changeme123)"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"역할"}),c.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=>c.jsx("option",{value:l,children:l},l))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트 (SUPER는 비움)"}),c.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:[c.jsx("option",{value:"",children:"(SUPER / 전체)"}),["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(l=>c.jsx("option",{value:l,children:l},l))]})]}),[{label:"이메일",key:"email",type:"email"},{label:"전화",key:"phone"}].map(({label:l,key:s,type:u})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:l}),c.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)),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),c.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:[c.jsx("option",{value:"true",children:"활성"}),c.jsx("option",{value:"false",children:"비활성"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function lce(){const e=rn(),[t,n]=O.useState(""),[r,a]=O.useState(null),{data:i=[],isLoading:o}=Vt({queryKey:["products",t],queryFn:()=>xz({keyword:t||void 0})}),l=it({mutationFn:u=>u.id?wz(u.id,u):Sz(u),onSuccess:()=>{e.invalidateQueries({queryKey:["products"]}),a(null)}}),s=it({mutationFn:jz,onSuccess:()=>e.invalidateQueries({queryKey:["products"]})});return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"상품/가격 관리"}),c.jsxs("div",{className:"flex gap-2",children:[c.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"}),c.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:[c.jsx(bs,{size:14})," 상품 추가"]})]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["테넌트","매장","상품코드","상품명","카테고리","정가","판매가","화폐","상태","액션"].map(u=>c.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),c.jsxs("tbody",{children:[i.map(u=>{var d,f;return c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:u.tenantCode}),c.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:u.storeName||"-"}),c.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:u.productCode}),c.jsx("td",{className:"px-3 py-3 text-white",children:u.productName}),c.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:u.category}),c.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(d=u.price)==null?void 0:d.toLocaleString()}),c.jsx("td",{className:"px-3 py-3 text-accent text-xs font-medium",children:(f=u.salePrice)==null?void 0:f.toLocaleString()}),c.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:u.currency}),c.jsx("td",{className:"px-3 py-3",children:c.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?"활성":"비활성"})}),c.jsx("td",{className:"px-3 py-3",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>a(u),className:"text-brand hover:text-blue-300",children:c.jsx(Yc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})})]},u.id)}),i.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"px-4 py-8 text-center text-gray-500",children:"상품이 없습니다"})})]})]})}),r&&c.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[c.jsxs("div",{className:"flex justify-between mb-4",children:[c.jsx("h2",{className:"font-semibold",children:r.id?"상품 수정 / 가격 변경":"상품 추가"}),c.jsx("button",{onClick:()=>a(null),children:c.jsx(xs,{size:16})})]}),c.jsx(sce,{initial:r,onSave:u=>l.mutate(u)})]})})]})}function sce({initial:e,onSave:t}){const[n,r]=O.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 c.jsxs("form",{onSubmit:i,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),c.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=>c.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})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:o}),c.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)),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"화폐"}),c.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=>c.jsx("option",{value:o,children:o},o))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),c.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:[c.jsx("option",{value:"true",children:"활성"}),c.jsx("option",{value:"false",children:"비활성"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function uce(){const e=rn(),[t,n]=O.useState(null),{data:r=[],isLoading:a}=Vt({queryKey:["tenants"],queryFn:()=>K6()}),i=it({mutationFn:s=>s.id?V6(s.id,s):Y6(s),onSuccess:()=>{e.invalidateQueries({queryKey:["tenants"]}),n(null)}}),o=it({mutationFn:X6,onSuccess:()=>e.invalidateQueries({queryKey:["tenants"]})});return a?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):localStorage.getItem("esn_role")!=="ADMIN"?c.jsx("div",{className:"text-center py-16",children:c.jsx("p",{className:"text-gray-400",children:"관리자 전용 메뉴입니다."})}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"테넌트 관리"}),c.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:[c.jsx(bs,{size:14})," 테넌트 추가"]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[r.map(s=>c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(xN,{size:18,className:"text-brand"}),c.jsx("span",{className:"font-bold text-brand",children:s.tenantCode})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>n(s),className:"text-brand hover:text-blue-300",children:c.jsx(Yc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(s.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})]}),c.jsx("p",{className:"text-sm text-white",children:s.tenantName}),c.jsx("p",{className:"text-xs text-gray-400 mt-1",children:s.description}),c.jsx("div",{className:"mt-3",children:c.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&&c.jsx("div",{className:"col-span-full text-center text-gray-500 py-12",children:"테넌트가 없습니다"})]}),t&&c.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[c.jsxs("div",{className:"flex justify-between mb-4",children:[c.jsx("h2",{className:"font-semibold",children:t.id?"테넌트 수정":"테넌트 추가"}),c.jsx("button",{onClick:()=>n(null),children:c.jsx(xs,{size:16})})]}),c.jsx(cce,{initial:t,onSave:s=>i.mutate(s)})]})})]})}function cce({initial:e,onSave:t}){const n=!!e.id,[r,a]=O.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 c.jsxs("form",{onSubmit:o,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트 코드"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트명"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),c.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"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),c.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:[c.jsx("option",{value:"true",children:"운영중"}),c.jsx("option",{value:"false",children:"비활성"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}const fce=()=>q.get("/api/admin/ai-config").then(e=>{var t;return(t=e.data)==null?void 0:t.data}),dce=e=>q.put("/api/admin/ai-config",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data}),hce=()=>q.post("/api/admin/ai-config/test",{}).then(e=>{var t;return(t=e.data)==null?void 0:t.data}),pce=e=>q.post("/api/ai/feedback",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data});function xA({feature:e,question:t,answer:n,answerId:r,tenantCode:a}){const[i,o]=O.useState(null),[l,s]=O.useState(""),[u,d]=O.useState(!1),[f,h]=O.useState(!1),p=async(m,y)=>{h(!0);try{await pce({feature:e,question:t,answer:n,verdict:m,correction:y,answerId:r,tenantCode:a}),d(!0)}catch{d(!0)}finally{h(!1)}},b=()=>{o("up"),p("up")},v=()=>{o("down")},x=()=>p("down",l.trim()||void 0);return u?c.jsx("div",{className:"mt-2 text-[11px] text-emerald-300",children:"피드백 감사합니다. 학습에 반영됩니다."}):c.jsxs("div",{className:"mt-3 flex flex-col gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-slate-500",children:[c.jsx("span",{children:"이 답변이 도움이 되었나요?"}),c.jsx("button",{onClick:b,disabled:f,className:`p-1.5 rounded border ${i==="up"?"bg-emerald-500/15 border-emerald-500/40 text-emerald-300":"border-edge text-slate-400 hover:border-emerald-500/50"}`,"aria-label":"도움됨",children:c.jsx(D5,{size:13})}),c.jsx("button",{onClick:v,disabled:f,className:`p-1.5 rounded border ${i==="down"?"bg-rose-500/15 border-rose-500/40 text-rose-300":"border-edge text-slate-400 hover:border-rose-500/50"}`,"aria-label":"도움안됨",children:c.jsx($5,{size:13})})]}),i==="down"&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("input",{value:l,onChange:m=>s(m.target.value),placeholder:"올바른 답/개선 의견(선택)",className:"flex-1 bg-ink border border-edge rounded px-2 py-1 text-xs text-slate-300 placeholder-slate-600"}),c.jsxs("button",{onClick:x,disabled:f,className:"flex items-center gap-1 px-2 py-1 rounded bg-brand/20 text-brand border border-brand/40 text-xs disabled:opacity-40",children:[c.jsx(ng,{size:12})," 전송"]})]})]})}function mce(){const[e,t]=O.useState(""),[n,r]=O.useState(""),[a,i]=O.useState(""),[o,l]=O.useState(""),s=it({mutationFn:_z,onSuccess:d=>r(d.analysis||JSON.stringify(d)),onError:()=>r("Ollama 응답 실패 — 서비스를 확인해주세요.")}),u=it({mutationFn:Tz,onSuccess:d=>l(d.category||JSON.stringify(d)),onError:()=>l("Ollama 응답 실패 — 서비스를 확인해주세요.")});return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("h1",{className:"text-xl font-semibold text-white flex items-center gap-2",children:[c.jsx(bN,{size:20,className:"text-brand"})," AI 분석"]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[c.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[c.jsx(Fu,{size:16,className:"text-yellow-400"})," 알람 원인 분석"]}),c.jsx("textarea",{value:e,onChange:d=>t(d.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"}),c.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:[c.jsx(ig,{size:14}),s.isPending?"분석 중...":"Ollama 분석"]}),n&&c.jsxs("div",{className:"mt-4 bg-panel border border-edge rounded p-4",children:[c.jsx("div",{className:"text-sm text-gray-300 whitespace-pre-wrap",children:n}),c.jsx(xA,{feature:"alarm-analysis",question:e,answer:n})]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[c.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[c.jsx(P5,{size:16,className:"text-accent"})," POS 데이터 자동 분류"]}),c.jsx("textarea",{value:a,onChange:d=>i(d.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"}),c.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:[c.jsx(ig,{size:14}),u.isPending?"분류 중...":"Ollama 분류"]}),o&&c.jsxs("div",{className:"mt-4 bg-panel border border-edge rounded p-4",children:[c.jsx("div",{className:"text-sm text-gray-300 whitespace-pre-wrap",children:o}),c.jsx(xA,{feature:"pos-classify",question:a,answer:o})]})]})]})}const SA=["LGINNOTEK","LGIT","EMART","ZIOINFO"],yce=[{key:"rag.enabled",label:"RAG 경유 사용",desc:"끄면 기존 Ollama/룰 경로로 동작"},{key:"rag.rerank",label:"리랭킹 (rerank)",desc:"검색 결과 재정렬 — 품질↑·비용↑",heavy:!0},{key:"rag.graphrag",label:"GraphRAG (의존성 추적)",desc:"허브→단말 연쇄 원인 추적 — 무거움",heavy:!0},{key:"rag.tool_use",label:"에이전틱 tool-use (/agent)",desc:"다단계 진단 루프 — 무거움",heavy:!0},{key:"rag.structured",label:"구조화 출력 (/structured)",desc:"결정론 JSON — POS 분류 권장 on"},{key:"rag.stream",label:"토큰 스트리밍 (SSE)",desc:"긴 답변 점진 표시 — 동시 스트림 제한",heavy:!0}];function vce(){const e=rn(),[t,n]=O.useState(SA[3]),[r,a]=O.useState({}),{data:i,isLoading:o}=Vt({queryKey:["rag-toggles",t],queryFn:()=>Nz(t)}),l=it({mutationFn:({key:u,value:d})=>Cz(u,d,t),onSuccess:()=>e.invalidateQueries({queryKey:["rag-toggles",t]})});if(o)return c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."});const s=i||{};return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("h1",{className:"text-xl font-semibold text-white flex items-center gap-2",children:[c.jsx(jN,{size:20,className:"text-brand"})," AI 기법 설정 (중앙 guardia-rag)"]}),c.jsx("p",{className:"text-xs text-gray-500",children:"테넌트별로 격리되어 저장됩니다. 무거운 기법(리랭킹·GraphRAG·tool-use·스트리밍)은 서버 RAM 보호를 위해 기본 OFF입니다. 변경은 MANAGER 이상 권한이 필요합니다."}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5 flex flex-wrap items-center gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(T5,{size:16,className:"text-accent"}),c.jsx("span",{className:"text-sm text-gray-300",children:"테넌트"}),c.jsx("select",{value:t,onChange:u=>{n(u.target.value),a({})},className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100",children:SA.map(u=>c.jsx("option",{value:u,children:u},u))})]}),c.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[c.jsx("span",{className:"text-gray-400",children:"중앙 RAG:"}),s.ragAvailable?c.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/20 text-green-300 text-xs",children:"가용"}):c.jsx("span",{className:"px-2 py-0.5 rounded bg-amber-500/20 text-amber-300 text-xs",children:"미가용 (degraded 폴백)"})]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5 space-y-3",children:[c.jsxs("h2",{className:"text-sm font-medium text-white flex items-center gap-2 mb-2",children:[c.jsx(p5,{size:16,className:"text-brand"})," 기법 On/Off"]}),yce.map(u=>{const d=!!s[gce(u.key)];return c.jsxs("div",{className:"flex items-center justify-between border-b border-edge/60 pb-3",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"text-sm text-gray-200 flex items-center gap-2",children:[u.label,u.heavy&&c.jsx("span",{className:"px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 text-[10px]",children:"무거움"})]}),c.jsx("div",{className:"text-xs text-gray-500",children:u.desc})]}),c.jsx("button",{onClick:()=>l.mutate({key:u.key,value:!d}),disabled:l.isPending,className:`relative w-11 h-6 rounded-full transition ${d?"bg-brand":"bg-edge"}`,children:c.jsx("span",{className:`absolute top-0.5 left-0.5 w-5 h-5 rounded-full bg-white transition ${d?"translate-x-5":""}`})})]},u.key)})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5 space-y-4",children:[c.jsxs("h2",{className:"text-sm font-medium text-white flex items-center gap-2 mb-2",children:[c.jsx(M5,{size:16,className:"text-accent"})," 파라미터"]}),c.jsx(Yh,{label:"검색 모드 (retrieval_mode)",hint:"vector | hybrid | graph (GraphRAG on 이면 graph 강제)",children:c.jsxs("select",{value:r["rag.retrieval_mode"]??s.retrievalMode??"vector",onChange:u=>a(d=>({...d,"rag.retrieval_mode":u.target.value})),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100",children:[c.jsx("option",{value:"vector",children:"vector"}),c.jsx("option",{value:"hybrid",children:"hybrid (BM25+벡터)"}),c.jsx("option",{value:"graph",children:"graph (GraphRAG)"})]})}),c.jsx(wA,{label:"top_k (검색 문서 수)",k:"rag.top_k",cur:s.topK,min:1,max:20,draft:r,setDraft:a}),c.jsx(wA,{label:"에이전트 최대 스텝 (agent_max_steps)",k:"rag.agent_max_steps",cur:s.agentMaxSteps,min:1,max:8,draft:r,setDraft:a}),c.jsx(jA,{label:"temperature",k:"rag.temperature",cur:s.temperature,draft:r,setDraft:a}),c.jsx(jA,{label:"신뢰도 임계 (faithfulness_threshold)",k:"rag.faithfulness_threshold",cur:s.faithfulnessThreshold,draft:r,setDraft:a}),c.jsx(Yh,{label:"생성 모델 (generation_model)",hint:"소형 모델 권장 (예: llama3.2:1b)",children:c.jsx("input",{value:r["rag.generation_model"]??s.generationModel??"",onChange:u=>a(d=>({...d,"rag.generation_model":u.target.value})),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100 w-48"})}),c.jsxs("div",{className:"pt-2 flex flex-wrap gap-2",children:[Object.keys(r).map(u=>c.jsxs("button",{onClick:()=>l.mutate({key:u,value:r[u]}),disabled:l.isPending,className:"text-xs px-3 py-1.5 rounded bg-brand/80 text-white hover:bg-brand",children:["저장: ",u.replace("rag.","")]},u)),Object.keys(r).length>0&&c.jsx("button",{onClick:()=>a({}),className:"text-xs px-3 py-1.5 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:"변경 취소"})]})]})]})}function gce(e){return{"rag.enabled":"ragEnabled","rag.rerank":"rerank","rag.graphrag":"graphrag","rag.tool_use":"toolUse","rag.structured":"structured","rag.stream":"stream"}[e]||e}function Yh({label:e,hint:t,children:n}){return c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-gray-200",children:e}),t&&c.jsx("div",{className:"text-xs text-gray-500",children:t})]}),n]})}function wA({label:e,k:t,cur:n,min:r,max:a,draft:i,setDraft:o}){return c.jsx(Yh,{label:e,hint:`범위 ${r}~${a}`,children:c.jsx("input",{type:"number",min:r,max:a,value:i[t]??n??r,onChange:l=>o(s=>({...s,[t]:l.target.value})),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100 w-24"})})}function jA({label:e,k:t,cur:n,draft:r,setDraft:a}){return c.jsx(Yh,{label:e,hint:"0.0 ~ 1.0",children:c.jsx("input",{type:"number",step:"0.1",min:0,max:1,value:r[t]??n??0,onChange:i=>a(o=>({...o,[t]:i.target.value})),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100 w-24"})})}const bce=[{id:"ollama",label:"Ollama (기본)",hint:"온프레미스 · llama3.2:1b"},{id:"qwen3",label:"Qwen3",hint:"온프레미스 · qwen3:1.7b"},{id:"deepseek",label:"DeepSeek",hint:"온프레미스 · deepseek-r1:1.5b"},{id:"glm",label:"GLM",hint:"온프레미스 · glm4:9b",ramWarn:!0},{id:"claude",label:"Claude (외부)",hint:"api.anthropic.com · 키 필요"}],PR=["claude-sonnet-4-6","claude-haiku-4-5","claude-opus-4-8"],cd="claude-sonnet-4-6",By=e=>PR.includes(e)?e:cd;function Iy(e){var n,r,a;const t=((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"";return((a=e==null?void 0:e.response)==null?void 0:a.status)===403?"권한이 없습니다 (AI 설정은 ADMIN 전용).":t.includes("ERR-AI-400")?t.replace(/^ERR-AI-400:\s*/,""):"AI 설정을 처리하지 못했습니다."}function xce(){const[e,t]=O.useState("ollama"),[n,r]=O.useState(cd),[a,i]=O.useState(!1),[o,l]=O.useState(""),[s,u]=O.useState(!0),[d,f]=O.useState(!1),[h,p]=O.useState(!1),[b,v]=O.useState(!1),[x,m]=O.useState(""),[y,g]=O.useState(!1),[S,w]=O.useState(null),j=()=>{f(!0),fce().then(C=>{t(C.provider),r(By(C.claudeModel??cd)),i(!!C.claudeKeySet),l(C.ollamaTextModel??""),u(!!C.aiEnabled),m("")}).catch(C=>m(Iy(C))).finally(()=>f(!1))};O.useEffect(()=>{j()},[]);const A=()=>{v(!1),w(null)},E=async()=>{p(!0),v(!1);try{const C=await dce({provider:e,claudeModel:n});t(C.provider),r(By(C.claudeModel??cd)),i(!!C.claudeKeySet),l(C.ollamaTextModel??""),u(!!C.aiEnabled),v(!0),m("")}catch(C){m(Iy(C))}finally{p(!1)}},_=async()=>{g(!0),w(null);try{w(await hce())}catch(C){w({ok:!1,degraded:!1,message:Iy(C)})}finally{g(!1)}},N=e==="claude",k=e==="glm",P=N&&!a,B=!N&&!s,D=S?S.degraded?"text-amber-300":S.ok?"text-emerald-300":"text-rose-300":"";return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2 text-white",children:[c.jsx($l,{size:20,className:"text-brand"})," AI 플랫폼 설정"]}),c.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"알람 원인분석·POS 분류 등 텍스트 생성에 사용할 LLM 제공자와 모델을 선택합니다."})]}),c.jsx("button",{onClick:j,disabled:d,className:"px-3 py-1.5 rounded-lg bg-card border border-edge text-sm disabled:opacity-40",children:"새로고침"})]}),x&&c.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:x}),(P||B)&&c.jsx("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:P?"Claude API 키가 설정되지 않아 Ollama(온프레미스)로 폴백 동작합니다. 서버 환경변수 ANTHROPIC_API_KEY 설정 후 사용하세요.":"AI 기능이 비활성 상태입니다. 모든 AI 결과는 규칙 기반(degraded)으로 동작합니다."}),c.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[c.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsxs("h2",{className:"text-sm font-semibold mb-4 flex items-center gap-2 text-white",children:[c.jsx($l,{size:16,className:"text-brand"})," 제공자 & 모델"]}),c.jsx("div",{className:"grid grid-cols-2 gap-2 mb-4",children:bce.map(C=>c.jsxs("button",{onClick:()=>{t(C.id),A()},className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${e===C.id?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-slate-300 hover:border-brand/50"}`,children:[c.jsxs("div",{className:"font-semibold flex items-center gap-1",children:[C.label,C.ramWarn&&c.jsx(Fu,{size:12,className:"text-amber-400"})]}),c.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5",children:C.hint})]},C.id))}),k&&c.jsxs("div",{className:"mb-4 bg-amber-500/10 border border-amber-500/40 text-amber-300 text-xs rounded-lg px-3 py-2 flex items-start gap-2",children:[c.jsx(Fu,{size:13,className:"mt-0.5 shrink-0"}),c.jsx("span",{children:"GLM(glm4:9b)은 약 5.5GB 로드가 필요합니다. 서버 RAM 여유가 부족하면 콜드로드에 실패하며 소형 모델/폴백으로 동작합니다. RAM 증설 후 사용을 권장합니다."})]}),!N&&c.jsxs("div",{className:"mb-4",children:[c.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Ollama 텍스트 모델"}),c.jsx("div",{className:"px-3 py-2 rounded-lg bg-ink border border-edge text-sm font-mono text-slate-300",children:o||"llama3.2:1b"}),c.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"온프레미스 소형 모델 — 서버 RAM 제약으로 고정. 외부 호출 없음."})]}),N&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mb-4",children:[c.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Claude 모델"}),c.jsx("select",{value:n,onChange:C=>{r(By(C.target.value)),A()},className:"w-full px-3 py-2 rounded-lg bg-ink border border-edge text-sm text-slate-200 focus:border-brand outline-none",children:PR.map(C=>c.jsx("option",{value:C,children:C},C))})]}),c.jsxs("div",{className:"mb-4",children:[c.jsxs("label",{className:"block text-xs text-slate-500 mb-1 flex items-center gap-1",children:[c.jsx(SN,{size:13})," API 키"]}),c.jsx("span",{className:`inline-block px-3 py-1 rounded-lg text-xs font-semibold ${a?"bg-emerald-500/15 text-emerald-300 border border-emerald-500/40":"bg-rose-500/15 text-rose-300 border border-rose-500/40"}`,children:a?"설정됨":"미설정"}),c.jsx("p",{className:"text-[11px] text-slate-500 mt-1.5",children:"키는 서버 환경변수(ANTHROPIC_API_KEY)로만 주입되며 화면·응답·로그에 노출되지 않습니다."})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("button",{onClick:E,disabled:h||d,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-brand text-ink text-sm font-semibold disabled:opacity-40",children:[c.jsx(E5,{size:15})," ",h?"저장 중…":"저장"]}),b&&c.jsx("span",{className:"text-emerald-300 text-xs",children:"저장됨"})]})]}),c.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[c.jsxs("h2",{className:"text-sm font-semibold mb-2 flex items-center gap-2 text-white",children:[c.jsx(A5,{size:16,className:"text-brand"})," 연결 테스트"]}),c.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"저장된 설정 기준으로 선택한 제공자에 짧은 ping 을 보내 연결을 확인합니다(요약 결과만)."}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{onClick:_,disabled:y,className:"px-4 py-2 rounded-lg bg-card border border-edge text-sm disabled:opacity-40 hover:border-brand/50",children:y?"테스트 중…":"테스트 실행"}),S&&c.jsx("span",{className:`text-sm ${D}`,role:"status","aria-live":"polite",children:S.message})]}),c.jsx("p",{className:"text-[11px] text-slate-500 mt-3",children:"먼저 변경 사항을 저장한 뒤 테스트하세요. Claude 실패 시 Ollama 로 자동 폴백합니다."})]})]})]})}const Sce={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"},wce=e=>e==="ONLINE"?c.jsx(AN,{size:13,className:"text-green-400"}):c.jsx(ON,{size:13,className:"text-red-400"});function jce(){const e=rn(),[t,n]=O.useState(""),[r,a]=O.useState(""),[i,o]=O.useState(""),[l,s]=O.useState(!1),[u,d]=O.useState({tenantCode:"",storeId:"",deviceId:"",productCode:"",locationCode:"",templateCode:"EM-PRICE-STD"}),{data:f=[],isLoading:h}=Vt({queryKey:["tag-binding",t,r,i],queryFn:()=>q.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=it({mutationFn:v=>q.post("/api/tag-binding",{...v,storeId:Number(v.storeId)}),onSuccess:()=>{e.invalidateQueries({queryKey:["tag-binding"]}),s(!1)}}),b=it({mutationFn:v=>q.put(`/api/tag-binding/${v}/unbind`),onSuccess:()=>e.invalidateQueries({queryKey:["tag-binding"]})});return h?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"태그 바인딩 관리"}),c.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:[c.jsx(wN,{size:14})," 바인딩 추가"]})]}),l&&c.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-4 space-y-3",children:[c.jsx("h2",{className:"text-sm font-medium text-white",children:"e-paper 태그 → 상품 바인딩"}),c.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:x,ph:m})=>c.jsxs("div",{children:[c.jsx("label",{className:"text-xs text-gray-400 mb-1 block",children:x}),c.jsx("input",{value:u[v],onChange:y=>d(g=>({...g,[v]:y.target.value})),placeholder:m,className:"w-full bg-edge border border-gray-600 rounded px-2 py-1.5 text-sm text-white"})]},v))}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>p.mutate(u),className:"px-3 py-1.5 bg-brand text-white rounded text-sm",children:"바인딩 저장"}),c.jsx("button",{onClick:()=>s(!1),className:"px-3 py-1.5 bg-edge text-gray-300 rounded text-sm",children:"취소"})]})]}),c.jsx("div",{className:"flex gap-3",children:[{val:t,set:n,ph:"테넌트 필터"},{val:i,set:o,ph:"태그ID / 상품코드 / 위치 검색"}].map(({val:v,set:x,ph:m},y)=>c.jsx("input",{value:v,onChange:g=>x(g.target.value),placeholder:m,className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-64"},y))}),c.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[f.map(v=>c.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:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("div",{className:"flex flex-col items-center gap-1 w-16",children:[wce(v.deviceStatus),v.batteryLevel!==null&&c.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[c.jsx(vN,{size:11}),c.jsxs("span",{className:v.batteryLevel<20?"text-red-400":"",children:[v.batteryLevel,"%"]})]})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-mono text-brand",children:v.deviceId}),c.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[c.jsx(S5,{size:11,className:"text-gray-500"}),c.jsx("span",{className:"text-xs text-gray-400",children:v.locationCode||"위치 미지정"}),c.jsx("span",{className:"text-xs text-gray-600",children:"|"}),c.jsx("span",{className:"text-xs text-gray-300",children:v.storeName})]})]}),c.jsxs("div",{className:"ml-4 pl-4 border-l border-edge",children:[c.jsx("div",{className:"text-sm text-white",children:v.productName||v.productCode}),c.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["현재가: ",c.jsx("span",{className:"text-brand font-mono",children:v.lastPrice?v.lastPrice.toLocaleString()+"원":"미전송"}),v.lastUpdatedAt&&c.jsxs("span",{className:"ml-2 text-gray-600",children:["갱신: ",new Date(v.lastUpdatedAt).toLocaleString()]})]}),c.jsxs("div",{className:"text-xs text-gray-500 mt-0.5",children:["템플릿: ",v.templateCode]})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:`text-xs px-2 py-0.5 rounded border ${Sce[v.bindStatus]||""}`,children:v.bindStatus}),c.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:c.jsx(y5,{size:14})})]})]},v.id)),f.length===0&&c.jsx("div",{className:"text-center text-gray-500 py-12",children:'바인딩된 태그가 없습니다. 우측 상단 "바인딩 추가"를 클릭하세요.'})]})]})}const Uy={PENDING:{icon:c.jsx(s5,{size:13}),color:"text-yellow-400 bg-yellow-500/10 border-yellow-500/30",label:"대기"},SENDING:{icon:c.jsx(ng,{size:13}),color:"text-blue-400 bg-blue-500/10 border-blue-500/30",label:"전송중"},SENT:{icon:c.jsx(ng,{size:13}),color:"text-cyan-400 bg-cyan-500/10 border-cyan-500/30",label:"전송됨"},CONFIRMED:{icon:c.jsx(nx,{size:13}),color:"text-green-400 bg-green-500/10 border-green-500/30",label:"확인됨"},FAILED:{icon:c.jsx(o5,{size:13}),color:"text-red-400 bg-red-500/10 border-red-500/30",label:"실패"},CANCELLED:{icon:c.jsx(a5,{size:13}),color:"text-gray-400 bg-gray-500/10 border-gray-500/30",label:"취소됨"}};function Oce(){const e=rn(),[t,n]=O.useState(""),[r,a]=O.useState(""),{data:i=[],isLoading:o,refetch:l}=Vt({queryKey:["update-queue",t,r],queryFn:()=>q.get("/api/update-queue",{params:{tenantCode:t||void 0,status:r||void 0}}).then(h=>h.data.data),refetchInterval:5e3}),s=it({mutationFn:h=>q.put(`/api/update-queue/${h}/cancel`),onSuccess:()=>e.invalidateQueries({queryKey:["update-queue"]})}),u=i.filter(h=>h.status==="PENDING").length,d=i.filter(h=>h.status==="FAILED").length,f=i.filter(h=>h.status==="CONFIRMED").length;return o?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"e-paper 가격 업데이트 큐"}),c.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:[c.jsx(vp,{size:13})," 새로고침"]})]}),c.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:d,color:"text-red-400",bg:"bg-red-500/5 border-red-500/20"},{label:"완료",count:f,color:"text-green-400",bg:"bg-green-500/5 border-green-500/20"}].map(({label:h,count:p,color:b,bg:v})=>c.jsxs("div",{className:`border rounded-lg p-3 ${v}`,children:[c.jsx("div",{className:`text-2xl font-bold font-mono ${b}`,children:p}),c.jsx("div",{className:"text-xs text-gray-400 mt-0.5",children:h})]},h))}),c.jsxs("div",{className:"flex gap-3",children:[c.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"}),c.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:[c.jsx("option",{value:"",children:"전체 상태"}),Object.entries(Uy).map(([h,p])=>c.jsx("option",{value:h,children:p.label},h))]})]}),c.jsxs("div",{className:"overflow-x-auto",children:[c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-edge text-xs text-gray-500",children:[c.jsx("th",{className:"text-left py-2 px-3",children:"#"}),c.jsx("th",{className:"text-left py-2 px-3",children:"태그 ID"}),c.jsx("th",{className:"text-left py-2 px-3",children:"위치"}),c.jsx("th",{className:"text-left py-2 px-3",children:"상품"}),c.jsx("th",{className:"text-right py-2 px-3",children:"가격"}),c.jsx("th",{className:"text-center py-2 px-3",children:"우선순위"}),c.jsx("th",{className:"text-center py-2 px-3",children:"상태"}),c.jsx("th",{className:"text-center py-2 px-3",children:"재시도"}),c.jsx("th",{className:"text-left py-2 px-3",children:"등록 시각"}),c.jsx("th",{className:"text-center py-2 px-3",children:"액션"})]})}),c.jsx("tbody",{children:i.map(h=>{var b;const p=Uy[h.status]||Uy.PENDING;return c.jsxs("tr",{className:"border-b border-edge/50 hover:bg-edge/30",children:[c.jsx("td",{className:"py-2 px-3 text-gray-500 font-mono text-xs",children:h.id}),c.jsx("td",{className:"py-2 px-3 text-brand font-mono text-xs",children:h.deviceId}),c.jsx("td",{className:"py-2 px-3 text-gray-300 text-xs",children:h.locationCode||"-"}),c.jsx("td",{className:"py-2 px-3 text-white text-xs",children:h.productName||h.productCode}),c.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&&c.jsxs("span",{className:"ml-1 text-red-400",children:["→ ",h.newSalePrice.toLocaleString(),"원"]})]}),c.jsx("td",{className:"py-2 px-3 text-center",children:c.jsxs("span",{className:`text-xs font-mono ${h.priority<=2?"text-red-400":"text-gray-400"}`,children:["P",h.priority]})}),c.jsx("td",{className:"py-2 px-3 text-center",children:c.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]})}),c.jsxs("td",{className:"py-2 px-3 text-center text-xs text-gray-400",children:[h.retryCount,"/",h.maxRetry]}),c.jsx("td",{className:"py-2 px-3 text-xs text-gray-500",children:new Date(h.createdAt).toLocaleString()}),c.jsx("td",{className:"py-2 px-3 text-center",children:["PENDING","FAILED"].includes(h.status)&&c.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&&c.jsx("div",{className:"text-center text-gray-500 py-12",children:"업데이트 큐가 비어있습니다."})]})]})}const Ace={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"},Ece=["","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 _ce(){const[e,t]=O.useState(""),[n,r]=O.useState(""),[a,i]=O.useState(""),[o,l]=O.useState(""),[s,u]=O.useState(""),[d,f]=O.useState({limit:200}),{data:h=[],isLoading:p,refetch:b,isFetching:v}=Vt({queryKey:["audit",d],queryFn:()=>Oz(d)}),x=()=>{const y={limit:200};e&&(y.action=e),n.trim()&&(y.username=n.trim()),a.trim()&&(y.tenantCode=a.trim()),o&&(y.from=o+":00"),s&&(y.to=s+":59"),f(y)},m=()=>{t(""),r(""),i(""),l(""),u(""),f({limit:200})};return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"감사 로그"}),c.jsx("button",{onClick:()=>b(),className:"text-xs px-3 py-1.5 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:v?"조회 중...":"새로고침"})]}),c.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:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"액션"}),c.jsx("select",{value:e,onChange:y=>t(y.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200",children:Ece.map(y=>c.jsx("option",{value:y,children:y||"전체"},y))})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"수행자"}),c.jsx("input",{value:n,onChange:y=>r(y.target.value),placeholder:"username",className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"테넌트"}),c.jsx("input",{value:a,onChange:y=>i(y.target.value),placeholder:"EMART",className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"시작 일시"}),c.jsx("input",{type:"datetime-local",value:o,onChange:y=>l(y.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"종료 일시"}),c.jsx("input",{type:"datetime-local",value:s,onChange:y=>u(y.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:x,className:"flex-1 px-3 py-1.5 rounded bg-brand/80 text-white text-sm hover:bg-brand",children:"조회"}),c.jsx("button",{onClick:m,className:"px-3 py-1.5 rounded bg-edge/60 text-gray-300 text-sm hover:bg-edge",children:"초기화"})]})]}),p?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["일시","수행자","테넌트","액션","리소스","대상","상세","IP","결과"].map(y=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:y},y))})}),c.jsxs("tbody",{children:[h.map(y=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs whitespace-nowrap",children:y.createdAt?new Date(y.createdAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-300",children:y.username||"-"}),c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:y.tenantCode||"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${Ace[y.action]||"bg-gray-500/20 text-gray-400"}`,children:y.action})}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:y.resource||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:y.resourceId||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs max-w-xs truncate",title:y.detail,children:y.detail||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:y.ipAddress||"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${y.success===!1?"bg-red-500/20 text-red-400":"bg-green-500/20 text-green-400"}`,children:y.success===!1?"실패":"성공"})})]},y.id)),h.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"감사 로그가 없습니다"})})]})]})})]})}const Tce={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 Nce(){const e=rn(),[t,n]=O.useState({}),{data:r=[],isLoading:a}=Vt({queryKey:["settings"],queryFn:()=>Az()}),i=it({mutationFn:({key:o,value:l})=>Ez(o,l),onSuccess:(o,l)=>{e.invalidateQueries({queryKey:["settings"]}),n(s=>{const u={...s};return delete u[l.key],u})}});return a?c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):c.jsxs("div",{className:"space-y-4",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"시스템 설정"}),c.jsx("p",{className:"text-xs text-gray-500",children:"운영 설정 변경은 감사 로그에 기록됩니다. (변경은 ADMIN 권한 필요)"}),c.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"bg-panel border-b border-edge",children:c.jsx("tr",{children:["분류","설정 키","값","설명","수정 일시",""].map(o=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:o},o))})}),c.jsxs("tbody",{children:[r.map(o=>{const l=o.settingKey in t;return c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${Tce[o.category]||"bg-gray-500/20 text-gray-400"}`,children:o.category})}),c.jsx("td",{className:"px-4 py-3 text-gray-200 font-mono text-xs",children:o.settingKey}),c.jsx("td",{className:"px-4 py-3",children:l?c.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"}):c.jsx("span",{className:"text-gray-300",children:o.settingValue})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs max-w-xs",children:o.description||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:o.updatedAt?new Date(o.updatedAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3 text-right",children:l?c.jsxs("div",{className:"flex gap-2 justify-end",children:[c.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:"저장"}),c.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:"취소"})]}):c.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&&c.jsx("tr",{children:c.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-gray-500",children:"설정이 없습니다"})})]})]})})]})}const Cce="https://itsm.zioinfo.co.kr";function Mce(){const[e,t]=O.useState(null),[n,r]=O.useState(!0),[a,i]=O.useState(""),[o,l]=O.useState(!1),s=()=>{r(!0),i(""),fetch(`${Cce}/api/app/public-latest`).then(d=>d.json()).then(d=>t(d)).catch(()=>i("버전 정보를 불러올 수 없습니다. (중앙 앱 저장소 연결 실패)")).finally(()=>r(!1))};O.useEffect(()=>{s()},[]);const u=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),l(!0),setTimeout(()=>l(!1),2e3)}catch{}};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(rg,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",children:"GUARDiA 통합 메신저 앱 설치"})]}),c.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[c.jsx(vp,{size:15})," 새로고침"]})]}),c.jsxs("p",{className:"text-sm text-slate-400 mb-6",children:["QR 코드를 스캔하면 ",c.jsx("span",{className:"text-brand font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 설치가 필요 없으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&c.jsx("div",{className:"text-slate-400 text-sm",children:"불러오는 중…"}),a&&c.jsx("div",{className:"bg-card border border-edge rounded-xl p-6 text-rose-400 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[c.jsx(rg,{size:36,className:"mx-auto mb-3 text-slate-600"}),"아직 등록된 앱 버전이 없습니다.",c.jsx("br",{}),c.jsx("span",{className:"text-xs",children:"GUARDiA Manager에서 APK를 업로드하면 여기에 QR이 표시됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[c.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:c.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Messenger"}),c.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),c.jsxs("div",{className:"text-xs text-slate-400 mb-4",children:[e.platform," · ",e.file_size_mb?`${e.file_size_mb}MB`:"",e.download_count!=null&&` · 다운로드 ${e.download_count}회`]}),e.release_notes&&c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"text-[11px] font-semibold text-slate-500 uppercase tracking-wider mb-1",children:"변경점"}),c.jsx("div",{className:"text-sm text-slate-300 whitespace-pre-line bg-ink border border-edge rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold",children:[c.jsx(f5,{size:15})," 설치 페이지 열기"]}),c.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[c.jsx(c5,{size:15})," APK 직접 다운로드"]}),c.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[o?c.jsx(r5,{size:15,className:"text-accent"}):c.jsx(u5,{size:15}),o?"복사됨":"다운로드 링크 복사"]})]}),c.jsx("div",{className:"mt-4 text-[12px] text-slate-500 leading-relaxed",children:'📱 Android: APK 다운로드 후 설정 → 보안 → "알 수 없는 소스" 허용 → 설치. 앱스토어 등록이 필요 없습니다.'})]})]})]})}const h1={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function Rr({title:e,subtitle:t,actions:n}){return c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[c.jsxs("div",{children:[c.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&c.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),c.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function _c({children:e,style:t}){return c.jsx("div",{style:{...h1,padding:18,...t},children:e})}function ee({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 c.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 pe({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return c.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 ye({label:e,children:t}){return c.jsxs("label",{style:{display:"block",marginBottom:12},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function mi({children:e}){return c.jsx(_c,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function jo({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return c.jsx("div",{style:{...h1,overflow:"hidden"},children:c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[c.jsx("thead",{children:c.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>c.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))})}),c.jsx("tbody",{children:t.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>c.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=>c.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 of({page:e,totalPages:t,onChange:n}){return t<=1?null:c.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[c.jsx(ee,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),c.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),c.jsx(ee,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function Oo({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return c.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 rr({title:e,onClose:t,children:n,footer:r}){return c.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:c.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...h1,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[c.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),c.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),c.jsx("div",{children:n}),r&&c.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function er({label:e="불러오는 중..."}){return c.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const OA={ONGOING:"진행중",DONE:"종료"};function Rce(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(0),[o,l]=O.useState([]),[s,u]=O.useState(""),[d,f]=O.useState(""),[h,p]=O.useState(!1),[b,v]=O.useState(!1),[x,m]=O.useState(null),y=async()=>{p(!0);try{const j=(await Hz({page:n,size:20,progressCd:s||void 0})).data.data;t(j.content??[]),i(j.totalPages??0);const A=await qz({});l(A.data.data??[])}finally{p(!1)}};O.useEffect(()=>{y()},[n,s]);const g=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:w=>OA[w.progressCd]??w.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],S=async w=>{const j=await Gz(w.worklogId);m(j.data.data)};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:c.jsx(ee,{onClick:()=>v(!0),children:"+ 업무일지 작성"})}),c.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:o.map(w=>c.jsxs("div",{onClick:()=>{u(s===w.progressCd?"":w.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${s===w.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:w.progressNm}),c.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:w.count})]},w.progressCd))}),c.jsxs(mi,{children:[c.jsx(pe,{value:d,onChange:f,placeholder:"제목 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:()=>{r(0),y()},children:"검색"}),s&&c.jsxs(ee,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",OA[s]??s]})]}),h?c.jsx(er,{}):c.jsxs(c.Fragment,{children:[c.jsx(jo,{columns:g,rows:e,rowKey:w=>w.worklogId,onRowClick:S,empty:"업무일지가 없습니다."}),c.jsx(of,{page:n,totalPages:a,onChange:r})]}),b&&c.jsx(Pce,{onClose:()=>v(!1),onSaved:()=>{v(!1),y()}}),x&&c.jsx($ce,{detail:x,onClose:()=>m(null),onChanged:()=>{m(null),y()}})]})}function Pce({onClose:e,onSaved:t}){const[n,r]=O.useState(""),[a,i]=O.useState(localStorage.getItem("esn_user")||"admin"),[o,l]=O.useState(new Date().toISOString().slice(0,10)),[s,u]=O.useState("NORMAL"),[d,f]=O.useState(""),h=async()=>{var p,b;f("");try{await Fz({title:n,writerId:a,workDate:o,workStatusCd:s,progressCd:"ONGOING",details:[]}),t()}catch(v){f(((b=(p=v==null?void 0:v.response)==null?void 0:p.data)==null?void 0:b.message)||"저장 실패")}};return c.jsxs(rr,{title:"업무일지 작성",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(ee,{onClick:h,children:"저장"})]}),children:[c.jsx(ye,{label:"제목",children:c.jsx(pe,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(ye,{label:"작성자 ID",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(ye,{label:"근무일자",children:c.jsx(pe,{type:"date",value:o,onChange:l,style:{width:"100%"}})}),c.jsx(ye,{label:"근무상태 코드",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:d})]})}function $ce({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=O.useState(""),[i,o]=O.useState(""),l=async()=>{await Kz(e.worklogId),n()},s=async()=>{var d,f;o("");try{await Yz(e.worklogId,r),a(""),n()}catch(h){o(((f=(d=h==null?void 0:h.response)==null?void 0:d.data)==null?void 0:f.message)||"댓글 등록 실패")}};return c.jsxs(rr,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"danger",onClick:l,children:"삭제"}),c.jsx(ee,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),c.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),c.jsxs("div",{style:{marginTop:14},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(d=>c.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[c.jsx("b",{children:d.writerNm})," · ",c.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:d.createdAt}),c.jsx("br",{}),d.cmtContent]},d.cmtId)),c.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[c.jsx(pe,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),c.jsx(ee,{onClick:s,children:"등록"})]}),i&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const Dce=["일","월","화","수","목","금","토"];function kce(){const[e,t]=O.useState(new Date),[n,r]=O.useState("PERSONAL"),[a,i]=O.useState([]),[o,l]=O.useState(!1),[s,u]=O.useState(null),[d,f]=O.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,p=async()=>{l(!0);try{const S=await zz({type:n,view:"month",baseDate:`${h}-01`});i(S.data.data??[])}finally{l(!1)}};O.useEffect(()=>{p()},[h,n]);const v=new Date(e.getFullYear(),e.getMonth(),1).getDay(),x=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),m=[...Array(v).fill(null),...Array.from({length:x},(S,w)=>w+1)],y=S=>{const w=`${h}-${String(S).padStart(2,"0")}`;return a.filter(j=>(j.startDt??"").slice(0,10)<=w&&w<=(j.endDt??"").slice(0,10))},g=S=>t(new Date(e.getFullYear(),e.getMonth()+S,1));return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:c.jsx(ee,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),c.jsxs(_c,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[c.jsx(ee,{variant:"ghost",onClick:()=>g(-1),children:"‹ 이전"}),c.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),c.jsx(ee,{variant:"ghost",onClick:()=>g(1),children:"다음 ›"}),c.jsx("div",{style:{flex:1}}),c.jsx(ee,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),c.jsx(ee,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),o?c.jsx(er,{}):c.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[Dce.map((S,w)=>c.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:w===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:S},S)),m.map((S,w)=>c.jsxs("div",{onClick:()=>S&&u(`${h}-${String(S).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:S?"pointer":"default"},children:[S&&c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:S}),S&&y(S).slice(0,3).map(j=>c.jsx("div",{onClick:A=>{A.stopPropagation(),Iz(j.scheduleId).then(E=>f(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:j.title},j.scheduleId))]},w))]})}),s&&c.jsx(Lce,{date:s,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),d&&c.jsx(zce,{detail:d,onClose:()=>f(null),onDeleted:()=>{f(null),p()}})]})}function Lce({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=O.useState(""),[o,l]=O.useState(`${e}T09:00:00`),[s,u]=O.useState(`${e}T18:00:00`),[d,f]=O.useState(""),[h,p]=O.useState(""),b=async()=>{var v,x;p("");try{await Bz({scheType:t,title:a,startDt:o,endDt:s,content:d,attachmentIds:[]}),r()}catch(m){p(((x=(v=m==null?void 0:m.response)==null?void 0:v.data)==null?void 0:x.message)||"저장 실패")}};return c.jsxs(rr,{title:"일정 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(ee,{onClick:b,children:"저장"})]}),children:[c.jsx(ye,{label:"제목",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(ye,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(ye,{label:"종료",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(ye,{label:"내용",children:c.jsx(pe,{value:d,onChange:f,style:{width:"100%"}})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function zce({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await Uz(e.scheduleId),n()};return c.jsxs(rr,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"danger",onClick:r,children:"삭제"}),c.jsx(ee,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),c.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function Bce(){const[e,t]=O.useState("received"),[n,r]=O.useState([]),[a,i]=O.useState(0),[o,l]=O.useState(0),[s,u]=O.useState(""),[d,f]=O.useState(!1),[h,p]=O.useState(!1),[b,v]=O.useState(null),x=async()=>{f(!0);try{const j=(await(e==="received"?kz:$z)({page:a,size:20,titleKeyword:s||void 0})).data.data;r(j.content??[]),l(j.totalPages??0)}finally{f(!1)}};O.useEffect(()=>{x()},[e,a]);const m=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:S=>c.jsx(Oo,{yn:S.readYn})}],y=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:S=>`${S.openCount}/${S.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],g=async S=>{const w=e==="received"?await Lz(S.messageId):await Dz(S.messageId);v({...w.data.data,_tab:e}),e==="received"&&x()};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:c.jsx(ee,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),c.jsxs(mi,{children:[c.jsx(ee,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),c.jsx(ee,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),c.jsx("div",{style:{flex:1}}),c.jsx(pe,{value:s,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),c.jsx(ee,{variant:"ghost",onClick:()=>{i(0),x()},children:"검색"})]}),d?c.jsx(er,{}):c.jsxs(c.Fragment,{children:[c.jsx(jo,{columns:e==="received"?m:y,rows:n,rowKey:S=>S.messageId,onRowClick:g,empty:"쪽지가 없습니다."}),c.jsx(of,{page:a,totalPages:o,onChange:i})]}),h&&c.jsx(Ice,{onClose:()=>p(!1),onSent:()=>{p(!1),x()}}),b&&c.jsx(Uce,{detail:b,onClose:()=>v(null)})]})}function Ice({onClose:e,onSent:t}){const[n,r]=O.useState(""),[a,i]=O.useState(""),[o,l]=O.useState(""),[s,u]=O.useState(""),d=async()=>{var f,h;u("");try{await Pz({title:a,content:o,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(p){u(((h=(f=p==null?void 0:p.response)==null?void 0:f.data)==null?void 0:h.message)||"전송 실패")}};return c.jsxs(rr,{title:"쪽지 보내기",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(ee,{onClick:d,children:"보내기"})]}),children:[c.jsx(ye,{label:"받는사람 ID",children:c.jsx(pe,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(ye,{label:"제목",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(ye,{label:"내용",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),s&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:s})]})}function Uce({detail:e,onClose:t}){return c.jsxs(rr,{title:e.title,onClose:t,footer:c.jsx(ee,{variant:"ghost",onClick:t,children:"닫기"}),children:[c.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),c.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&c.jsxs("div",{style:{marginTop:14},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[c.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),c.jsx(Oo,{yn:n.readYn})]},r))]})]})}function Hce(){const[e,t]=O.useState("personal"),[n,r]=O.useState(null),[a,i]=O.useState(!1),o=new Date().toISOString().slice(0,10),l=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[s,u]=O.useState(l),[d,f]=O.useState(o),h=async()=>{i(!0);try{const v=await(e==="personal"?Vz:Xz)({fromDate:s,toDate:d});r(v.data.data)}finally{i(!1)}};O.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),c.jsxs(mi,{children:[c.jsx(ee,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),c.jsx(ee,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),c.jsx("div",{style:{flex:1}}),c.jsx(pe,{type:"date",value:s,onChange:u}),c.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),c.jsx(pe,{type:"date",value:d,onChange:f}),c.jsx(ee,{variant:"ghost",onClick:h,children:"조회"})]}),a?c.jsx(er,{}):!n||n.rows.length===0?c.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):c.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[c.jsx("thead",{children:c.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(b=>c.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))})}),c.jsx("tbody",{children:n.rows.map((b,v)=>c.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(x=>c.jsx("td",{style:{padding:"10px 14px"},children:String(b[x.key]??"")},x.key))},v))})]})})]})}const p1=e=>e&&e.size>0?Math.ceil(e.total/e.size):0,qce=(e,t=0,n=20)=>q.get("/api/system/roles",{params:{keyword:e||void 0,page:t,size:n}}),Fce=e=>q.post("/api/system/roles",e),Gce=(e,t)=>q.put(`/api/system/roles/${encodeURIComponent(e)}`,t),Kce=e=>q.delete("/api/system/roles",{data:{ids:e}}),Yce=(e=0,t=100)=>q.get("/api/system/role-menus",{params:{page:e,size:t}}),Vce=e=>q.get(`/api/system/roles/${encodeURIComponent(e)}/menus`),Xce=(e,t)=>q.put(`/api/system/roles/${encodeURIComponent(e)}/menus`,{menus:t}),Qce=(e,t=0,n=20)=>q.get("/api/system/codes",{params:{keyword:e||void 0,page:t,size:n}}),$R=e=>q.get(`/api/system/codes/${encodeURIComponent(e)}`),Wce=e=>q.post("/api/system/codes",e),DR=(e,t)=>q.put(`/api/system/codes/${encodeURIComponent(e)}`,t),Zce=e=>q.delete(`/api/system/codes/${encodeURIComponent(e)}`),Jce=(e=0,t=100)=>q.get("/api/system/menus",{params:{page:e,size:t}}),efe=e=>q.post("/api/system/menus",e),tfe=(e,t)=>q.put(`/api/system/menus/${encodeURIComponent(e)}`,t),nfe=e=>q.delete("/api/system/menus",{data:{ids:e}}),rfe=(e,t=0,n=100)=>q.get("/api/system/depts",{params:{keyword:void 0,page:t,size:n}}),afe=e=>q.post("/api/system/depts",e),ife=(e,t)=>q.put(`/api/system/depts/${encodeURIComponent(e)}`,t),ofe=e=>q.delete(`/api/system/depts/${encodeURIComponent(e)}`),lfe=(e,t=0,n=20)=>q.get("/api/system/companies",{params:{keyword:e||void 0,page:t,size:n}}),sfe=e=>q.post("/api/system/companies",e),ufe=(e,t)=>q.put(`/api/system/companies/${encodeURIComponent(e)}`,t),cfe=e=>q.delete("/api/system/companies",{data:{ids:e}});function L0(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 권한ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다. 잠시 후 다시 시도하세요."}function ffe(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(0),[o,l]=O.useState(""),[s,u]=O.useState(!1),[d,f]=O.useState(""),[h,p]=O.useState(new Set),[b,v]=O.useState(null),[x,m]=O.useState(!1),y=async(A=o,E=n)=>{u(!0),f("");try{const N=(await qce(A||void 0,E)).data.data;t((N==null?void 0:N.content)??[]),i(p1(N)),p(new Set)}catch(_){f(L0(_))}finally{u(!1)}};O.useEffect(()=>{y(o,n)},[n]);const g=()=>{n===0?y(o,0):r(0)},S=A=>p(E=>{const _=new Set(E);return _.has(A)?_.delete(A):_.add(A),_}),w=async()=>{if(h.size!==0&&window.confirm(`선택한 권한 ${h.size}건을 삭제하시겠습니까?`))try{await Kce([...h]),await y()}catch(A){f(L0(A))}},j=[{key:"sel",header:"",width:44,align:"center",render:A=>c.jsx("input",{type:"checkbox",checked:h.has(A.roleId),onClick:E=>E.stopPropagation(),onChange:()=>S(A.roleId)})},{key:"roleId",header:"권한ID",width:180},{key:"roleNm",header:"권한명"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,align:"center",render:A=>c.jsx(Oo,{yn:A.useYn,yes:"사용",no:"미사용"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"권한 관리",subtitle:"시스템관리(권한) · 역할(Role) 등록/수정/삭제 — RBAC",actions:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"danger",onClick:w,disabled:h.size===0,children:"선택 삭제"}),c.jsx(ee,{onClick:()=>{v(null),m(!0)},children:"+ 권한 등록"})]})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:d}),c.jsxs(mi,{children:[c.jsx(pe,{value:o,onChange:l,placeholder:"권한ID/권한명 검색",style:{minWidth:240}}),c.jsx(ee,{variant:"ghost",onClick:g,children:"검색"})]}),s?c.jsx(er,{}):c.jsxs(c.Fragment,{children:[c.jsx(jo,{columns:j,rows:e,rowKey:A=>A.roleId,onRowClick:A=>{v(A),m(!0)},empty:"등록된 권한이 없습니다."}),c.jsx(of,{page:n,totalPages:a,onChange:r})]}),x&&c.jsx(dfe,{role:b,onClose:()=>m(!1),onSaved:()=>{m(!1),y()}})]})}function dfe({role:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.roleId)??""),[o,l]=O.useState((e==null?void 0:e.roleNm)??""),[s,u]=O.useState((e==null?void 0:e.roleDesc)??""),[d,f]=O.useState((e==null?void 0:e.useYn)??"Y"),[h,p]=O.useState(""),b=async()=>{if(p(""),!o.trim()){p("권한명은 필수입니다.");return}if(!r&&!a.trim()){p("권한ID는 필수입니다.");return}try{const v={roleId:a,roleNm:o,roleDesc:s,useYn:d};r?await Gce(a,v):await Fce(v),n()}catch(v){p(L0(v))}};return c.jsxs(rr,{title:r?"권한 수정":"권한 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(ee,{onClick:b,children:"저장"})]}),children:[c.jsx(ye,{label:"권한ID",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(ye,{label:"권한명",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(ye,{label:"설명",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(ye,{label:"사용 여부",children:c.jsxs("select",{value:d,onChange:v=>f(v.target.value),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[c.jsx("option",{value:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function Hy(e){var t,n,r;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"요청을 처리하지 못했습니다."}function hfe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState([]),[o,l]=O.useState(!1),[s,u]=O.useState(!1),[d,f]=O.useState(!1),[h,p]=O.useState(""),[b,v]=O.useState("");O.useEffect(()=>{l(!0),Yce().then(g=>{var w;const S=((w=g.data.data)==null?void 0:w.content)??[];t(S),S.length>0&&r(S[0].roleId)}).catch(g=>v(Hy(g))).finally(()=>l(!1))},[]),O.useEffect(()=>{n&&(u(!0),p(""),v(""),Vce(n).then(g=>i(g.data.data??[])).catch(g=>v(Hy(g))).finally(()=>u(!1)))},[n]);const x=(g,S)=>i(w=>w.map(j=>{if(j.menuId!==g)return j;const A=j[S]==="Y"?"N":"Y";return S==="writeYn"&&A==="Y"?{...j,writeYn:"Y",readYn:"Y"}:S==="readYn"&&A==="N"?{...j,readYn:"N",writeYn:"N"}:{...j,[S]:A}})),m=(g,S)=>i(w=>w.map(j=>S&&g==="writeYn"?{...j,writeYn:"Y",readYn:"Y"}:!S&&g==="readYn"?{...j,readYn:"N",writeYn:"N"}:{...j,[g]:S?"Y":"N"})),y=async()=>{f(!0),p(""),v("");try{await Xce(n,a),p("메뉴 권한 매핑이 저장되었습니다.")}catch(g){v(Hy(g))}finally{f(!1)}};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"역할-메뉴 권한",subtitle:"시스템관리(권한) · 역할별 메뉴 접근(읽기/쓰기) 매핑 — RBAC 핵심",actions:c.jsx(ee,{onClick:y,disabled:d||!n,children:d?"저장 중...":"매핑 저장"})}),b&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:b}),h&&c.jsx("div",{style:{color:"var(--uiws-success)",fontSize:13,marginBottom:12},children:h}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"260px 1fr",gap:16,alignItems:"start"},children:[c.jsxs(_c,{style:{padding:0},children:[c.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"역할 목록"}),o?c.jsx(er,{}):c.jsxs("div",{children:[e.length===0&&c.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"역할이 없습니다."}),e.map(g=>c.jsxs("div",{onClick:()=>r(g.roleId),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,borderLeft:`3px solid ${n===g.roleId?"var(--uiws-primary)":"transparent"}`,background:n===g.roleId?"var(--uiws-primary-soft)":"transparent",color:n===g.roleId?"var(--uiws-primary)":"var(--uiws-text)"},children:[c.jsx("div",{style:{fontWeight:600},children:g.roleNm}),c.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:g.roleId})]},g.roleId))]})]}),c.jsx(_c,{style:{padding:0,overflow:"hidden"},children:s?c.jsx(er,{}):c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[c.jsx("thead",{children:c.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[c.jsx("th",{style:{textAlign:"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:"메뉴"}),c.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["읽기",c.jsx("br",{}),c.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[c.jsx("input",{type:"checkbox",onChange:g=>m("readYn",g.target.checked)})," 전체"]})]}),c.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["쓰기",c.jsx("br",{}),c.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[c.jsx("input",{type:"checkbox",onChange:g=>m("writeYn",g.target.checked)})," 전체"]})]})]})}),c.jsx("tbody",{children:a.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:3,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"매핑 가능한 메뉴가 없습니다."})}):a.map(g=>c.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[c.jsxs("td",{style:{padding:"11px 14px"},children:[g.menuNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",g.menuId,")"]})]}),c.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:c.jsx("input",{type:"checkbox",checked:g.readYn==="Y",onChange:()=>x(g.menuId,"readYn")})}),c.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:c.jsx("input",{type:"checkbox",checked:g.writeYn==="Y",onChange:()=>x(g.menuId,"writeYn")})})]},g.menuId))})]})})]})]})}function Zo(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 코드그룹입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}const pfe={width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"};function mfe(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(0),[o,l]=O.useState(""),[s,u]=O.useState(null),[d,f]=O.useState(""),[h,p]=O.useState(!1),[b,v]=O.useState(!1),[x,m]=O.useState(""),[y,g]=O.useState({open:!1,edit:null}),[S,w]=O.useState({open:!1,edit:null}),j=async(D=d,C=n)=>{p(!0),m("");try{const L=(await Qce(D||void 0,C)).data.data,z=(L==null?void 0:L.content)??[];t(z),i(p1(L)),(!o||!z.some(F=>F.grpCd===o))&&z.length>0?l(z[0].grpCd):z.length===0&&(l(""),u(null))}catch($){m(Zo($))}finally{p(!1)}};O.useEffect(()=>{j(d,n)},[n]);const A=async(D=o)=>{if(!D){u(null);return}v(!0);try{const C=await $R(D);u(C.data.data)}catch(C){m(Zo(C))}finally{v(!1)}};O.useEffect(()=>{A()},[o]);const E=()=>{n===0?j(d,0):r(0)},_=async D=>{if(window.confirm(`코드그룹 '${D}' 와 하위 코드를 삭제하시겠습니까?`))try{await Zce(D),o===D&&(l(""),u(null)),await j()}catch(C){m(Zo(C))}},N=async D=>{if(!s)return;const C={grpCd:s.grpCd,grpNm:s.grpNm,useYn:s.useYn,values:D.map($=>({grpCd:s.grpCd,codeVal:$.codeVal,codeNm:$.codeNm,sortOrd:$.sortOrd??0,useYn:$.useYn}))};await DR(s.grpCd,C),await A(s.grpCd)},k=async D=>{if(s&&window.confirm(`코드 '${D.codeNm}' 를 삭제하시겠습니까?`))try{await N((s.values??[]).filter(C=>C.codeVal!==D.codeVal))}catch(C){m(Zo(C))}},P=async(D,C)=>{if(!s)return;const $=s.values??[];let L;if(C)L=$.map(z=>z.codeVal===C.codeVal?D:z);else{if($.some(z=>z.codeVal===D.codeVal))throw{response:{status:409}};L=[...$,D]}await N(L)},B=[{key:"codeVal",header:"코드값",width:150},{key:"codeNm",header:"코드명"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:D=>c.jsx(Oo,{yn:D.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:D=>c.jsx(ee,{variant:"ghost",onClick:()=>k(D),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"공통코드 관리",subtitle:"시스템관리(권한) · 코드그룹/코드값 CRUD",actions:c.jsx(ee,{onClick:()=>g({open:!0,edit:null}),children:"+ 코드그룹 등록"})}),x&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:x}),c.jsxs(mi,{children:[c.jsx(pe,{value:d,onChange:f,placeholder:"코드그룹 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:E,children:"검색"})]}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"300px 1fr",gap:16,alignItems:"start"},children:[c.jsxs("div",{children:[c.jsxs(_c,{style:{padding:0},children:[c.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"코드그룹"}),h?c.jsx(er,{}):c.jsxs("div",{children:[e.length===0&&c.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"코드그룹이 없습니다."}),e.map(D=>c.jsxs("div",{onClick:()=>l(D.grpCd),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",borderLeft:`3px solid ${o===D.grpCd?"var(--uiws-primary)":"transparent"}`,background:o===D.grpCd?"var(--uiws-primary-soft)":"transparent"},children:[c.jsxs("div",{children:[c.jsx("div",{style:{fontWeight:600,color:o===D.grpCd?"var(--uiws-primary)":"var(--uiws-text)"},children:D.grpNm}),c.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:D.grpCd})]}),c.jsxs("div",{style:{display:"flex",gap:6},onClick:C=>C.stopPropagation(),children:[c.jsx(ee,{variant:"ghost",onClick:()=>g({open:!0,edit:D}),children:"수정"}),c.jsx(ee,{variant:"ghost",onClick:()=>_(D.grpCd),children:"삭제"})]})]},D.grpCd))]})]}),c.jsx(of,{page:n,totalPages:a,onChange:r})]}),c.jsxs("div",{children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[c.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--uiws-text)"},children:["코드값 ",o&&c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontWeight:400},children:["(",o,")"]})]}),c.jsx(ee,{onClick:()=>w({open:!0,edit:null}),disabled:!s,children:"+ 코드값 등록"})]}),b?c.jsx(er,{}):c.jsx(jo,{columns:B,rows:(s==null?void 0:s.values)??[],rowKey:D=>`${D.grpCd}:${D.codeVal}`,onRowClick:D=>w({open:!0,edit:D}),empty:o?"코드값이 없습니다.":"코드그룹을 선택하세요."})]})]}),y.open&&c.jsx(yfe,{grp:y.edit,onClose:()=>g({open:!1,edit:null}),onSaved:()=>{g({open:!1,edit:null}),j(d)}}),S.open&&s&&c.jsx(vfe,{grpCd:s.grpCd,code:S.edit,onClose:()=>w({open:!1,edit:null}),onSave:P,onSaved:()=>w({open:!1,edit:null})})]})}function kR({value:e,onChange:t}){return c.jsxs("select",{value:e,onChange:n=>t(n.target.value),style:pfe,children:[c.jsx("option",{value:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}function yfe({grp:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.grpCd)??""),[o,l]=O.useState((e==null?void 0:e.grpNm)??""),[s,u]=O.useState((e==null?void 0:e.useYn)??"Y"),[d,f]=O.useState(""),h=async()=>{if(f(""),!r&&!a.trim()){f("그룹코드는 필수입니다.");return}if(!o.trim()){f("그룹명은 필수입니다.");return}try{if(r){const b=(await $R(a)).data.data;await DR(a,{grpCd:a,grpNm:o,useYn:s,values:b.values??[]})}else await Wce({grpCd:a,grpNm:o,useYn:s,values:[]});n()}catch(p){f(Zo(p))}};return c.jsxs(rr,{title:r?"코드그룹 수정":"코드그룹 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(ee,{onClick:h,children:"저장"})]}),children:[c.jsx(ye,{label:"그룹코드",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(ye,{label:"그룹명",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(ye,{label:"사용 여부",children:c.jsx(kR,{value:s,onChange:u})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:d})]})}function vfe({grpCd:e,code:t,onClose:n,onSave:r,onSaved:a}){const i=!!t,[o,l]=O.useState((t==null?void 0:t.codeVal)??""),[s,u]=O.useState((t==null?void 0:t.codeNm)??""),[d,f]=O.useState(String((t==null?void 0:t.sortOrd)??0)),[h,p]=O.useState((t==null?void 0:t.useYn)??"Y"),[b,v]=O.useState(""),x=async()=>{var m;if(v(""),!i&&!o.trim()){v("코드값은 필수입니다.");return}if(!s.trim()){v("코드명은 필수입니다.");return}try{await r({grpCd:e,codeVal:o,codeNm:s,sortOrd:Number(d)||0,useYn:h},t),a()}catch(y){((m=y==null?void 0:y.response)==null?void 0:m.status)===409?v("이미 존재하는 코드값입니다."):v(Zo(y))}};return c.jsxs(rr,{title:i?"코드값 수정":"코드값 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(ee,{onClick:x,children:"저장"})]}),children:[c.jsx(ye,{label:"그룹코드",children:c.jsx(pe,{value:e,onChange:()=>{},style:{width:"100%",opacity:.6}})}),c.jsx(ye,{label:"코드값",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%",opacity:i?.6:1}})}),c.jsx(ye,{label:"코드명",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(ye,{label:"정렬순서",children:c.jsx(pe,{type:"number",value:d,onChange:f,style:{width:"100%"}})}),c.jsx(ye,{label:"사용 여부",children:c.jsx(kR,{value:h,onChange:p})}),b&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:b})]})}function z0(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 메뉴ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function gfe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[o,l]=O.useState(""),[s,u]=O.useState({open:!1,edit:null}),d=async()=>{var b;i(!0),l("");try{const v=await Jce();t(((b=v.data.data)==null?void 0:b.content)??[])}catch(v){l(z0(v))}finally{i(!1)}};O.useEffect(()=>{d()},[]);const f=O.useMemo(()=>{const b=n.trim().toLowerCase(),v=e.filter(g=>!g.parentMenuId).sort((g,S)=>(g.sortOrd??0)-(S.sortOrd??0)),x=[];for(const g of v)x.push({menu:g,depth:0}),e.filter(S=>S.parentMenuId===g.menuId).sort((S,w)=>(S.sortOrd??0)-(w.sortOrd??0)).forEach(S=>x.push({menu:S,depth:1}));const m=new Set(x.map(g=>g.menu.menuId));e.filter(g=>!m.has(g.menuId)).forEach(g=>x.push({menu:g,depth:0}));let y=x.map(g=>({...g.menu,_depth:g.depth}));return b&&(y=y.filter(g=>(g.menuNm??"").toLowerCase().includes(b)||(g.menuId??"").toLowerCase().includes(b))),y},[e,n]),h=async b=>{if(window.confirm(`메뉴 '${b.menuNm}' 를 삭제하시겠습니까?`))try{await nfe([b.menuId]),await d()}catch(v){l(z0(v))}},p=[{key:"menuNm",header:"메뉴명",render:b=>c.jsxs("span",{style:{paddingLeft:b._depth*22},children:[b._depth>0&&c.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),b.menuNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",b.menuId,")"]})]})},{key:"menuUrl",header:"URL",width:220,render:b=>b.menuUrl??"-"},{key:"programId",header:"프로그램",width:140,render:b=>b.programId??"-"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:b=>c.jsx(Oo,{yn:b.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:b=>c.jsx(ee,{variant:"ghost",onClick:()=>h(b),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"메뉴 관리",subtitle:"시스템관리(권한) · 메뉴 트리(2-depth) 등록/수정/삭제",actions:c.jsx(ee,{onClick:()=>u({open:!0,edit:null}),children:"+ 메뉴 등록"})}),o&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:o}),c.jsxs(mi,{children:[c.jsx(pe,{value:n,onChange:r,placeholder:"메뉴명 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:()=>r(n),children:"검색"})]}),a?c.jsx(er,{}):c.jsx(jo,{columns:p,rows:f,rowKey:b=>b.menuId,onRowClick:b=>u({open:!0,edit:b}),empty:"등록된 메뉴가 없습니다."}),s.open&&c.jsx(bfe,{menu:s.edit,parents:e.filter(b=>!b.parentMenuId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),d()}})]})}function bfe({menu:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,o]=O.useState((e==null?void 0:e.menuId)??""),[l,s]=O.useState((e==null?void 0:e.menuNm)??""),[u,d]=O.useState((e==null?void 0:e.parentMenuId)??""),[f,h]=O.useState((e==null?void 0:e.programId)??""),[p,b]=O.useState((e==null?void 0:e.menuUrl)??""),[v,x]=O.useState(String((e==null?void 0:e.sortOrd)??0)),[m,y]=O.useState((e==null?void 0:e.useYn)??"Y"),[g,S]=O.useState(""),w=async()=>{if(S(""),!a&&!i.trim()){S("메뉴ID는 필수입니다.");return}if(!l.trim()){S("메뉴명은 필수입니다.");return}try{const A={menuId:i,menuNm:l,parentMenuId:u||null,programId:f||null,menuUrl:p||null,sortOrd:Number(v)||0,useYn:m};a?await tfe(i,A):await efe(A),r()}catch(A){S(z0(A))}},j={width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"};return c.jsxs(rr,{title:a?"메뉴 수정":"메뉴 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(ee,{onClick:w,children:"저장"})]}),children:[c.jsx(ye,{label:"메뉴ID",children:c.jsx(pe,{value:i,onChange:o,style:{width:"100%",opacity:a?.6:1}})}),c.jsx(ye,{label:"메뉴명",children:c.jsx(pe,{value:l,onChange:s,style:{width:"100%"}})}),c.jsx(ye,{label:"상위 메뉴",children:c.jsxs("select",{value:u,onChange:A=>d(A.target.value),style:j,children:[c.jsx("option",{value:"",children:"(최상위)"}),t.filter(A=>A.menuId!==i).map(A=>c.jsxs("option",{value:A.menuId,children:[A.menuNm," (",A.menuId,")"]},A.menuId))]})}),c.jsx(ye,{label:"프로그램ID",children:c.jsx(pe,{value:f,onChange:h,style:{width:"100%"}})}),c.jsx(ye,{label:"메뉴 URL",children:c.jsx(pe,{value:p,onChange:b,style:{width:"100%"}})}),c.jsx(ye,{label:"정렬순서",children:c.jsx(pe,{type:"number",value:v,onChange:x,style:{width:"100%"}})}),c.jsx(ye,{label:"사용 여부",children:c.jsxs("select",{value:m,onChange:A=>y(A.target.value),style:j,children:[c.jsx("option",{value:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}),g&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:g})]})}function B0(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 부서ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function xfe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[o,l]=O.useState(""),[s,u]=O.useState({open:!1,edit:null}),d=async()=>{var b;i(!0),l("");try{const v=await rfe();t(((b=v.data.data)==null?void 0:b.content)??[])}catch(v){l(B0(v))}finally{i(!1)}};O.useEffect(()=>{d()},[]);const f=O.useMemo(()=>{const b=n.trim().toLowerCase(),v=e.filter(y=>!y.parentDeptId).sort((y,g)=>(y.sortOrd??0)-(g.sortOrd??0)),x=[];for(const y of v)x.push({...y,_depth:0}),e.filter(g=>g.parentDeptId===y.deptId).sort((g,S)=>(g.sortOrd??0)-(S.sortOrd??0)).forEach(g=>x.push({...g,_depth:1}));const m=new Set(x.map(y=>y.deptId));return e.filter(y=>!m.has(y.deptId)).forEach(y=>x.push({...y,_depth:0})),b?x.filter(y=>(y.deptNm??"").toLowerCase().includes(b)||(y.deptId??"").toLowerCase().includes(b)):x},[e,n]),h=async b=>{if(window.confirm(`부서 '${b.deptNm}' 를 삭제하시겠습니까?`))try{await ofe(b.deptId),await d()}catch(v){l(B0(v))}},p=[{key:"deptNm",header:"부서명",render:b=>c.jsxs("span",{style:{paddingLeft:b._depth*22},children:[b._depth>0&&c.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),b.deptNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",b.deptId,")"]})]})},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:b=>c.jsx(Oo,{yn:b.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:b=>c.jsx(ee,{variant:"ghost",onClick:()=>h(b),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"부서 관리",subtitle:"시스템관리(권한) · 부서 트리(2-depth) 등록/수정/삭제",actions:c.jsx(ee,{onClick:()=>u({open:!0,edit:null}),children:"+ 부서 등록"})}),o&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:o}),c.jsxs(mi,{children:[c.jsx(pe,{value:n,onChange:r,placeholder:"부서명 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:()=>r(n),children:"검색"})]}),a?c.jsx(er,{}):c.jsx(jo,{columns:p,rows:f,rowKey:b=>b.deptId,onRowClick:b=>u({open:!0,edit:b}),empty:"등록된 부서가 없습니다."}),s.open&&c.jsx(Sfe,{dept:s.edit,parents:e.filter(b=>!b.parentDeptId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),d()}})]})}function Sfe({dept:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,o]=O.useState((e==null?void 0:e.deptId)??""),[l,s]=O.useState((e==null?void 0:e.deptNm)??""),[u,d]=O.useState((e==null?void 0:e.parentDeptId)??""),[f,h]=O.useState(String((e==null?void 0:e.sortOrd)??0)),[p,b]=O.useState((e==null?void 0:e.useYn)??"Y"),[v,x]=O.useState(""),m={width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},y=async()=>{if(x(""),!a&&!i.trim()){x("부서ID는 필수입니다.");return}if(!l.trim()){x("부서명은 필수입니다.");return}try{const g={deptId:i,deptNm:l,parentDeptId:u||null,sortOrd:Number(f)||0,useYn:p};a?await ife(i,g):await afe(g),r()}catch(g){x(B0(g))}};return c.jsxs(rr,{title:a?"부서 수정":"부서 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(ee,{onClick:y,children:"저장"})]}),children:[c.jsx(ye,{label:"부서ID",children:c.jsx(pe,{value:i,onChange:o,style:{width:"100%",opacity:a?.6:1}})}),c.jsx(ye,{label:"부서명",children:c.jsx(pe,{value:l,onChange:s,style:{width:"100%"}})}),c.jsx(ye,{label:"상위 부서",children:c.jsxs("select",{value:u,onChange:g=>d(g.target.value),style:m,children:[c.jsx("option",{value:"",children:"(최상위)"}),t.filter(g=>g.deptId!==i).map(g=>c.jsxs("option",{value:g.deptId,children:[g.deptNm," (",g.deptId,")"]},g.deptId))]})}),c.jsx(ye,{label:"정렬순서",children:c.jsx(pe,{type:"number",value:f,onChange:h,style:{width:"100%"}})}),c.jsx(ye,{label:"사용 여부",children:c.jsxs("select",{value:p,onChange:g=>b(g.target.value),style:m,children:[c.jsx("option",{value:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}),v&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:v})]})}function I0(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 거래처ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function wfe(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(0),[o,l]=O.useState(""),[s,u]=O.useState(!1),[d,f]=O.useState(""),[h,p]=O.useState({open:!1,edit:null}),b=async(y=o,g=n)=>{u(!0),f("");try{const w=(await lfe(y||void 0,g)).data.data;t((w==null?void 0:w.content)??[]),i(p1(w))}catch(S){f(I0(S))}finally{u(!1)}};O.useEffect(()=>{b(o,n)},[n]);const v=()=>{n===0?b(o,0):r(0)},x=async y=>{if(window.confirm(`거래처 '${y.companyNm}' 를 삭제하시겠습니까?`))try{await cfe([y.companyId]),await b()}catch(g){f(I0(g))}},m=[{key:"companyId",header:"거래처ID",width:180},{key:"companyNm",header:"거래처명"},{key:"bizNo",header:"사업자번호",width:180,render:y=>y.bizNo??"-"},{key:"useYn",header:"사용",width:80,align:"center",render:y=>c.jsx(Oo,{yn:y.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:y=>c.jsx(ee,{variant:"ghost",onClick:()=>x(y),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"거래처 관리",subtitle:"시스템관리(권한) · 거래처(근무처) 등록/수정/삭제",actions:c.jsx(ee,{onClick:()=>p({open:!0,edit:null}),children:"+ 거래처 등록"})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:d}),c.jsxs(mi,{children:[c.jsx(pe,{value:o,onChange:l,placeholder:"거래처명 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:v,children:"검색"})]}),s?c.jsx(er,{}):c.jsxs(c.Fragment,{children:[c.jsx(jo,{columns:m,rows:e,rowKey:y=>y.companyId,onRowClick:y=>p({open:!0,edit:y}),empty:"등록된 거래처가 없습니다."}),c.jsx(of,{page:n,totalPages:a,onChange:r})]}),h.open&&c.jsx(jfe,{company:h.edit,onClose:()=>p({open:!1,edit:null}),onSaved:()=>{p({open:!1,edit:null}),b()}})]})}function jfe({company:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.companyId)??""),[o,l]=O.useState((e==null?void 0:e.companyNm)??""),[s,u]=O.useState((e==null?void 0:e.bizNo)??""),[d,f]=O.useState((e==null?void 0:e.useYn)??"Y"),[h,p]=O.useState(""),b=async()=>{if(p(""),!r&&!a.trim()){p("거래처ID는 필수입니다.");return}if(!o.trim()){p("거래처명은 필수입니다.");return}try{const v={companyId:a,companyNm:o,bizNo:s||null,useYn:d};r?await ufe(a,v):await sfe(v),n()}catch(v){p(I0(v))}};return c.jsxs(rr,{title:r?"거래처 수정":"거래처 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(ee,{onClick:b,children:"저장"})]}),children:[c.jsx(ye,{label:"거래처ID",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(ye,{label:"거래처명",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(ye,{label:"사업자번호",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(ye,{label:"사용 여부",children:c.jsxs("select",{value:d,onChange:v=>f(v.target.value),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[c.jsx("option",{value:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}const Ofe=new zk;function Afe(){return c.jsx(Bk,{client:Ofe,children:c.jsx(ak,{children:c.jsxs($D,{children:[c.jsx(Ee,{path:"/login",element:c.jsx(Qz,{})}),c.jsxs(Ee,{element:c.jsx(Mz,{}),children:[c.jsx(Ee,{path:"/dashboard",element:c.jsx(Fue,{})}),c.jsx(Ee,{path:"/stores",element:c.jsx(Gue,{})}),c.jsx(Ee,{path:"/templates",element:c.jsx(Yue,{})}),c.jsx(Ee,{path:"/pos-cvt",element:c.jsx(Xue,{})}),c.jsx(Ee,{path:"/tag-binding",element:c.jsx(jce,{})}),c.jsx(Ee,{path:"/update-queue",element:c.jsx(Oce,{})}),c.jsx(Ee,{path:"/alarms",element:c.jsx(Wue,{})}),c.jsx(Ee,{path:"/hcore",element:c.jsx(ece,{})}),c.jsx(Ee,{path:"/works",element:c.jsx(nce,{})}),c.jsx(Ee,{path:"/firmware",element:c.jsx(rce,{})}),c.jsx(Ee,{path:"/products",element:c.jsx(lce,{})}),c.jsx(Ee,{path:"/users",element:c.jsx(ice,{})}),c.jsx(Ee,{path:"/tenants",element:c.jsx(uce,{})}),c.jsx(Ee,{path:"/audit",element:c.jsx(_ce,{})}),c.jsx(Ee,{path:"/settings",element:c.jsx(Nce,{})}),c.jsx(Ee,{path:"/ai",element:c.jsx(mce,{})}),c.jsx(Ee,{path:"/ai-techniques",element:c.jsx(vce,{})}),c.jsx(Ee,{path:"/ai-platform",element:c.jsx(xce,{})}),c.jsx(Ee,{path:"/worklogs",element:c.jsx(Rce,{})}),c.jsx(Ee,{path:"/schedules",element:c.jsx(kce,{})}),c.jsx(Ee,{path:"/messages",element:c.jsx(Bce,{})}),c.jsx(Ee,{path:"/work-stats",element:c.jsx(Hce,{})}),c.jsx(Ee,{path:"/system/roles",element:c.jsx(ffe,{})}),c.jsx(Ee,{path:"/system/role-menus",element:c.jsx(hfe,{})}),c.jsx(Ee,{path:"/system/codes",element:c.jsx(mfe,{})}),c.jsx(Ee,{path:"/system/menus",element:c.jsx(gfe,{})}),c.jsx(Ee,{path:"/system/depts",element:c.jsx(xfe,{})}),c.jsx(Ee,{path:"/system/companies",element:c.jsx(wfe,{})}),c.jsx(Ee,{path:"/mobile-app",element:c.jsx(Mce,{})})]}),c.jsx(Ee,{path:"*",element:c.jsx(JT,{to:"/dashboard",replace:!0})})]})})})}P$.createRoot(document.getElementById("root")).render(c.jsx(O.StrictMode,{children:c.jsx(Afe,{})}));
