(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 l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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 Du=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hO={exports:{}},gd={};/**
 * @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 QC=Symbol.for("react.transitional.element"),JC=Symbol.for("react.fragment");function pO(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:QC,type:e,key:r,ref:t!==void 0?t:null,props:n}}gd.Fragment=JC;gd.jsx=pO;gd.jsxs=pO;hO.exports=gd;var c=hO.exports,mO={exports:{}},le={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Kv=Symbol.for("react.transitional.element"),eM=Symbol.for("react.portal"),tM=Symbol.for("react.fragment"),nM=Symbol.for("react.strict_mode"),rM=Symbol.for("react.profiler"),aM=Symbol.for("react.consumer"),iM=Symbol.for("react.context"),lM=Symbol.for("react.forward_ref"),oM=Symbol.for("react.suspense"),sM=Symbol.for("react.memo"),yO=Symbol.for("react.lazy"),uM=Symbol.for("react.activity"),v0=Symbol.iterator;function cM(e){return e===null||typeof e!="object"?null:(e=v0&&e[v0]||e["@@iterator"],typeof e=="function"?e:null)}var vO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gO=Object.assign,bO={};function Kl(e,t,n){this.props=e,this.context=t,this.refs=bO,this.updater=n||vO}Kl.prototype.isReactComponent={};Kl.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")};Kl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xO(){}xO.prototype=Kl.prototype;function Xv(e,t,n){this.props=e,this.context=t,this.refs=bO,this.updater=n||vO}var Wv=Xv.prototype=new xO;Wv.constructor=Xv;gO(Wv,Kl.prototype);Wv.isPureReactComponent=!0;var g0=Array.isArray;function dm(){}var Fe={H:null,A:null,T:null,S:null},SO=Object.prototype.hasOwnProperty;function Zv(e,t,n){var r=n.ref;return{$$typeof:Kv,type:e,key:t,ref:r!==void 0?r:null,props:n}}function fM(e,t){return Zv(e.type,t,e.props)}function Qv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kv}function dM(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var b0=/\/+/g;function qh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?dM(""+e.key):t.toString(36)}function hM(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(dm,dm):(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 Ri(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Kv:case eM:l=!0;break;case yO:return l=e._init,Ri(l(e._payload),t,n,r,a)}}if(l)return a=a(e),l=r===""?"."+qh(e,0):r,g0(a)?(n="",l!=null&&(n=l.replace(b0,"$&/")+"/"),Ri(a,t,n,"",function(u){return u})):a!=null&&(Qv(a)&&(a=fM(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(b0,"$&/")+"/")+l)),t.push(a)),1;l=0;var o=r===""?".":r+":";if(g0(e))for(var s=0;s<e.length;s++)r=e[s],i=o+qh(r,s),l+=Ri(r,t,n,i,a);else if(s=cM(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,i=o+qh(r,s++),l+=Ri(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Ri(hM(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 l}function ku(e,t,n){if(e==null)return e;var r=[],a=0;return Ri(e,r,"","",function(i){return t.call(n,i,a++)}),r}function pM(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 x0=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)},mM={map:ku,forEach:function(e,t,n){ku(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ku(e,function(){t++}),t},toArray:function(e){return ku(e,function(t){return t})||[]},only:function(e){if(!Qv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Activity=uM;le.Children=mM;le.Component=Kl;le.Fragment=tM;le.Profiler=rM;le.PureComponent=Xv;le.StrictMode=nM;le.Suspense=oM;le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Fe;le.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Fe.H.useMemoCache(e)}};le.cache=function(e){return function(){return e.apply(null,arguments)}};le.cacheSignal=function(){return null};le.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=gO({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!SO.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 l=Array(i),o=0;o<i;o++)l[o]=arguments[o+2];r.children=l}return Zv(e.type,a,r)};le.createContext=function(e){return e={$$typeof:iM,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:aM,_context:e},e};le.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)SO.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var o=Array(l),s=0;s<l;s++)o[s]=arguments[s+2];a.children=o}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)a[r]===void 0&&(a[r]=l[r]);return Zv(e,i,a)};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:lM,render:e}};le.isValidElement=Qv;le.lazy=function(e){return{$$typeof:yO,_payload:{_status:-1,_result:e},_init:pM}};le.memo=function(e,t){return{$$typeof:sM,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=Fe.T,n={};Fe.T=n;try{var r=e(),a=Fe.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(dm,x0)}catch(i){x0(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),Fe.T=t}};le.unstable_useCacheRefresh=function(){return Fe.H.useCacheRefresh()};le.use=function(e){return Fe.H.use(e)};le.useActionState=function(e,t,n){return Fe.H.useActionState(e,t,n)};le.useCallback=function(e,t){return Fe.H.useCallback(e,t)};le.useContext=function(e){return Fe.H.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e,t){return Fe.H.useDeferredValue(e,t)};le.useEffect=function(e,t){return Fe.H.useEffect(e,t)};le.useEffectEvent=function(e){return Fe.H.useEffectEvent(e)};le.useId=function(){return Fe.H.useId()};le.useImperativeHandle=function(e,t,n){return Fe.H.useImperativeHandle(e,t,n)};le.useInsertionEffect=function(e,t){return Fe.H.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return Fe.H.useLayoutEffect(e,t)};le.useMemo=function(e,t){return Fe.H.useMemo(e,t)};le.useOptimistic=function(e,t){return Fe.H.useOptimistic(e,t)};le.useReducer=function(e,t,n){return Fe.H.useReducer(e,t,n)};le.useRef=function(e){return Fe.H.useRef(e)};le.useState=function(e){return Fe.H.useState(e)};le.useSyncExternalStore=function(e,t,n){return Fe.H.useSyncExternalStore(e,t,n)};le.useTransition=function(){return Fe.H.useTransition()};le.version="19.2.7";mO.exports=le;var O=mO.exports;const M=Te(O);var wO={exports:{}},bd={},jO={exports:{}},OO={};/**
 * @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($,P){var B=$.length;$.push(P);e:for(;0<B;){var H=B-1>>>1,G=$[H];if(0<a(G,P))$[H]=P,$[B]=G,B=H;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var P=$[0],B=$.pop();if(B!==P){$[0]=B;e:for(var H=0,G=$.length,q=G>>>1;H<q;){var Y=2*(H+1)-1,W=$[Y],oe=Y+1,Ce=$[oe];if(0>a(W,B))oe<G&&0>a(Ce,W)?($[H]=Ce,$[oe]=B,H=oe):($[H]=W,$[Y]=B,H=Y);else if(oe<G&&0>a(Ce,B))$[H]=Ce,$[oe]=B,H=oe;else break e}}return P}function a($,P){var B=$.sortIndex-P.sortIndex;return B!==0?B:$.id-P.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 l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var s=[],u=[],d=1,f=null,h=3,p=!1,S=!1,g=!1,v=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function w($){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=$)r(u),P.sortIndex=P.expirationTime,t(s,P);else break;P=n(u)}}function x($){if(g=!1,w($),!S)if(n(s)!==null)S=!0,j||(j=!0,N());else{var P=n(u);P!==null&&D(x,P.startTime-$)}}var j=!1,A=-1,_=5,E=-1;function T(){return v?!0:!(e.unstable_now()-E<_)}function R(){if(v=!1,j){var $=e.unstable_now();E=$;var P=!0;try{e:{S=!1,g&&(g=!1,y(A),A=-1),p=!0;var B=h;try{t:{for(w($),f=n(s);f!==null&&!(f.expirationTime>$&&T());){var H=f.callback;if(typeof H=="function"){f.callback=null,h=f.priorityLevel;var G=H(f.expirationTime<=$);if($=e.unstable_now(),typeof G=="function"){f.callback=G,w($),P=!0;break t}f===n(s)&&r(s),w($)}else r(s);f=n(s)}if(f!==null)P=!0;else{var q=n(u);q!==null&&D(x,q.startTime-$),P=!1}}break e}finally{f=null,h=B,p=!1}P=void 0}}finally{P?N():j=!1}}}var N;if(typeof b=="function")N=function(){b(R)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,k=L.port2;L.port1.onmessage=R,N=function(){k.postMessage(null)}}else N=function(){m(R,0)};function D($,P){A=m(function(){$(e.unstable_now())},P)}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"):_=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var B=h;h=P;try{return $()}finally{h=B}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function($,P){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var B=h;h=$;try{return P()}finally{h=B}},e.unstable_scheduleCallback=function($,P,B){var H=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?H+B:H):B=H,$){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=B+G,$={id:d++,callback:P,priorityLevel:$,startTime:B,expirationTime:G,sortIndex:-1},B>H?($.sortIndex=B,t(u,$),n(s)===null&&$===n(u)&&(g?(y(A),A=-1):g=!0,D(x,B-H))):($.sortIndex=G,t(s,$),S||p||(S=!0,j||(j=!0,N()))),$},e.unstable_shouldYield=T,e.unstable_wrapCallback=function($){var P=h;return function(){var B=h;h=P;try{return $.apply(this,arguments)}finally{h=B}}}})(OO);jO.exports=OO;var yM=jO.exports,AO={exports:{}},qt={};/**
 * @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 vM=O;function _O(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 Fr(){}var zt={d:{f:Fr,r:function(){throw Error(_O(522))},D:Fr,C:Fr,L:Fr,m:Fr,X:Fr,S:Fr,M:Fr},p:0,findDOMNode:null},gM=Symbol.for("react.portal");function bM(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gM,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Yo=vM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function xd(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=zt;qt.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(_O(299));return bM(e,t,null,n)};qt.flushSync=function(e){var t=Yo.T,n=zt.p;try{if(Yo.T=null,zt.p=2,e)return e()}finally{Yo.T=t,zt.p=n,zt.d.f()}};qt.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))};qt.prefetchDNS=function(e){typeof e=="string"&&zt.d.D(e)};qt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=xd(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})}};qt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=xd(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)};qt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=xd(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})}};qt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=xd(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)};qt.requestFormReset=function(e){zt.d.r(e)};qt.unstable_batchedUpdates=function(e,t){return e(t)};qt.useFormState=function(e,t,n){return Yo.H.useFormState(e,t,n)};qt.useFormStatus=function(){return Yo.H.useHostTransitionStatus()};qt.version="19.2.7";function EO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(EO)}catch(e){console.error(e)}}EO(),AO.exports=qt;var xM=AO.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 mt=yM,TO=O,SM=xM;function I(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function NO(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function cu(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 CO(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 MO(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 S0(e){if(cu(e)!==e)throw Error(I(188))}function wM(e){var t=e.alternate;if(!t){if(t=cu(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return S0(a),e;if(i===r)return S0(a),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,o=a.child;o;){if(o===n){l=!0,n=a,r=i;break}if(o===r){l=!0,r=a,n=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===n){l=!0,n=i,r=a;break}if(o===r){l=!0,r=i,n=a;break}o=o.sibling}if(!l)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function $O(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=$O(e),t!==null)return t;e=e.sibling}return null}var Ve=Object.assign,jM=Symbol.for("react.element"),Lu=Symbol.for("react.transitional.element"),zo=Symbol.for("react.portal"),Li=Symbol.for("react.fragment"),RO=Symbol.for("react.strict_mode"),hm=Symbol.for("react.profiler"),PO=Symbol.for("react.consumer"),xr=Symbol.for("react.context"),Jv=Symbol.for("react.forward_ref"),pm=Symbol.for("react.suspense"),mm=Symbol.for("react.suspense_list"),eg=Symbol.for("react.memo"),Kr=Symbol.for("react.lazy"),ym=Symbol.for("react.activity"),OM=Symbol.for("react.memo_cache_sentinel"),w0=Symbol.iterator;function xo(e){return e===null||typeof e!="object"?null:(e=w0&&e[w0]||e["@@iterator"],typeof e=="function"?e:null)}var AM=Symbol.for("react.client.reference");function vm(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===AM?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Li:return"Fragment";case hm:return"Profiler";case RO:return"StrictMode";case pm:return"Suspense";case mm:return"SuspenseList";case ym:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case zo:return"Portal";case xr:return e.displayName||"Context";case PO:return(e._context.displayName||"Context")+".Consumer";case Jv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case eg:return t=e.displayName||null,t!==null?t:vm(e.type)||"Memo";case Kr:t=e._payload,e=e._init;try{return vm(e(t))}catch{}}return null}var Io=Array.isArray,te=TO.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,we=SM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xa={pending:!1,data:null,method:null,action:null},gm=[],Bi=-1;function ar(e){return{current:e}}function wt(e){0>Bi||(e.current=gm[Bi],gm[Bi]=null,Bi--)}function ze(e,t){Bi++,gm[Bi]=e.current,e.current=t}var er=ar(null),fs=ar(null),sa=ar(null),Lc=ar(null);function Bc(e,t){switch(ze(sa,t),ze(fs,e),ze(er,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Tx(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tx(t),e=eE(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}wt(er),ze(er,e)}function fl(){wt(er),wt(fs),wt(sa)}function bm(e){e.memoizedState!==null&&ze(Lc,e);var t=er.current,n=eE(t,e.type);t!==n&&(ze(fs,e),ze(er,n))}function zc(e){fs.current===e&&(wt(er),wt(fs)),Lc.current===e&&(wt(Lc),ws._currentValue=Xa)}var Gh,j0;function ka(e){if(Gh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gh=t&&t[1]||"",j0=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Gh+e+j0}var Yh=!1;function Fh(e,t){if(!e||Yh)return"";Yh=!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(),l=i[0],o=i[1];if(l&&o){var s=l.split(`
`),u=o.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{Yh=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ka(n):""}function _M(e,t){switch(e.tag){case 26:case 27:case 5:return ka(e.type);case 16:return ka("Lazy");case 13:return e.child!==t&&t!==null?ka("Suspense Fallback"):ka("Suspense");case 19:return ka("SuspenseList");case 0:case 15:return Fh(e.type,!1);case 11:return Fh(e.type.render,!1);case 1:return Fh(e.type,!0);case 31:return ka("Activity");default:return""}}function O0(e){try{var t="",n=null;do t+=_M(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var xm=Object.prototype.hasOwnProperty,tg=mt.unstable_scheduleCallback,Vh=mt.unstable_cancelCallback,EM=mt.unstable_shouldYield,TM=mt.unstable_requestPaint,cn=mt.unstable_now,NM=mt.unstable_getCurrentPriorityLevel,DO=mt.unstable_ImmediatePriority,kO=mt.unstable_UserBlockingPriority,Ic=mt.unstable_NormalPriority,CM=mt.unstable_LowPriority,LO=mt.unstable_IdlePriority,MM=mt.log,$M=mt.unstable_setDisableYieldValue,fu=null,fn=null;function na(e){if(typeof MM=="function"&&$M(e),fn&&typeof fn.setStrictMode=="function")try{fn.setStrictMode(fu,e)}catch{}}var dn=Math.clz32?Math.clz32:DM,RM=Math.log,PM=Math.LN2;function DM(e){return e>>>=0,e===0?32:31-(RM(e)/PM|0)|0}var Bu=256,zu=262144,Iu=4194304;function La(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 Sd(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~i,r!==0?a=La(r):(l&=o,l!==0?a=La(l):n||(n=o&~e,n!==0&&(a=La(n))))):(o=r&~i,o!==0?a=La(o):l!==0?a=La(l):n||(n=r&~e,n!==0&&(a=La(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 du(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kM(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 BO(){var e=Iu;return Iu<<=1,!(Iu&62914560)&&(Iu=4194304),e}function Kh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function LM(e,t,n,r,a,i){var l=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 o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var d=31-dn(n),f=1<<d;o[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&&zO(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(l&~t))}function zO(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-dn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function IO(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-dn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function UO(e,t){var n=t&-t;return n=n&42?1:ng(n),n&(e.suspendedLanes|t)?0:n}function ng(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 rg(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function HO(){var e=we.p;return e!==0?e:(e=window.event,e===void 0?32:fE(e.type))}function A0(e,t){var n=we.p;try{return we.p=e,t()}finally{we.p=n}}var ja=Math.random().toString(36).slice(2),Tt="__reactFiber$"+ja,Qt="__reactProps$"+ja,Xl="__reactContainer$"+ja,Sm="__reactEvents$"+ja,BM="__reactListeners$"+ja,zM="__reactHandles$"+ja,_0="__reactResources$"+ja,pu="__reactMarker$"+ja;function ag(e){delete e[Tt],delete e[Qt],delete e[Sm],delete e[BM],delete e[zM]}function zi(e){var t=e[Tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xl]||n[Tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Rx(e);e!==null;){if(n=e[Tt])return n;e=Rx(e)}return t}e=n,n=e.parentNode}return null}function Wl(e){if(e=e[Tt]||e[Xl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Uo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(I(33))}function tl(e){var t=e[_0];return t||(t=e[_0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[pu]=!0}var qO=new Set,GO={};function yi(e,t){dl(e,t),dl(e+"Capture",t)}function dl(e,t){for(GO[e]=t,e=0;e<t.length;e++)qO.add(t[e])}var IM=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]*$"),E0={},T0={};function UM(e){return xm.call(T0,e)?!0:xm.call(E0,e)?!1:IM.test(e)?T0[e]=!0:(E0[e]=!0,!1)}function yc(e,t,n){if(UM(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 Uu(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 fr(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 wn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function YO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HM(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(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wm(e){if(!e._valueTracker){var t=YO(e)?"checked":"value";e._valueTracker=HM(e,t,""+e[t])}}function FO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=YO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Uc(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 qM=/[\n"\\]/g;function An(e){return e.replace(qM,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function jm(e,t,n,r,a,i,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wn(t)):e.value!==""+wn(t)&&(e.value=""+wn(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?Om(e,l,wn(t)):n!=null?Om(e,l,wn(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+wn(o):e.removeAttribute("name")}function VO(e,t,n,r,a,i,l,o){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)){wm(e);return}n=n!=null?""+wn(n):"",t=t!=null?""+wn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),wm(e)}function Om(e,t,n){t==="number"&&Uc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function nl(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=""+wn(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 KO(e,t,n){if(t!=null&&(t=""+wn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+wn(n):""}function XO(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(I(92));if(Io(r)){if(1<r.length)throw Error(I(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=wn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),wm(e)}function hl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var GM=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 N0(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||GM.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function WO(e,t,n){if(t!=null&&typeof t!="object")throw Error(I(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&N0(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&N0(e,i,t[i])}function ig(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 YM=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"]]),FM=/^[\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 vc(e){return FM.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sr(){}var Am=null;function lg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ii=null,rl=null;function C0(e){var t=Wl(e);if(t&&(e=t.stateNode)){var n=e[Qt]||null;e:switch(e=t.stateNode,t.type){case"input":if(jm(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="'+An(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Qt]||null;if(!a)throw Error(I(90));jm(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&&FO(r)}break e;case"textarea":KO(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&nl(e,!!n.multiple,t,!1)}}}var Xh=!1;function ZO(e,t,n){if(Xh)return e(t,n);Xh=!0;try{var r=e(t);return r}finally{if(Xh=!1,(Ii!==null||rl!==null)&&(Rd(),Ii&&(t=Ii,e=rl,rl=Ii=null,C0(t),e)))for(t=0;t<e.length;t++)C0(e[t])}}function ds(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Qt]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var Mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_m=!1;if(Mr)try{var So={};Object.defineProperty(So,"passive",{get:function(){_m=!0}}),window.addEventListener("test",So,So),window.removeEventListener("test",So,So)}catch{_m=!1}var ra=null,og=null,gc=null;function QO(){if(gc)return gc;var e,t=og,n=t.length,r,a="value"in ra?ra.value:ra.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===a[i-r];r++);return gc=a.slice(e,1<r?1-r:void 0)}function bc(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 Hu(){return!0}function M0(){return!1}function Jt(e){function t(n,r,a,i,l){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Hu:M0,this.isPropagationStopped=M0,this}return Ve(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=Hu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hu)},persist:function(){},isPersistent:Hu}),t}var vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wd=Jt(vi),mu=Ve({},vi,{view:0,detail:0}),VM=Jt(mu),Wh,Zh,wo,jd=Ve({},mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sg,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!==wo&&(wo&&e.type==="mousemove"?(Wh=e.screenX-wo.screenX,Zh=e.screenY-wo.screenY):Zh=Wh=0,wo=e),Wh)},movementY:function(e){return"movementY"in e?e.movementY:Zh}}),$0=Jt(jd),KM=Ve({},jd,{dataTransfer:0}),XM=Jt(KM),WM=Ve({},mu,{relatedTarget:0}),Qh=Jt(WM),ZM=Ve({},vi,{animationName:0,elapsedTime:0,pseudoElement:0}),QM=Jt(ZM),JM=Ve({},vi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e$=Jt(JM),t$=Ve({},vi,{data:0}),R0=Jt(t$),n$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r$={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"},a$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=a$[e])?!!t[e]:!1}function sg(){return i$}var l$=Ve({},mu,{key:function(e){if(e.key){var t=n$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sg,charCode:function(e){return e.type==="keypress"?bc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),o$=Jt(l$),s$=Ve({},jd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),P0=Jt(s$),u$=Ve({},mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sg}),c$=Jt(u$),f$=Ve({},vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),d$=Jt(f$),h$=Ve({},jd,{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}),p$=Jt(h$),m$=Ve({},vi,{newState:0,oldState:0}),y$=Jt(m$),v$=[9,13,27,32],ug=Mr&&"CompositionEvent"in window,Fo=null;Mr&&"documentMode"in document&&(Fo=document.documentMode);var g$=Mr&&"TextEvent"in window&&!Fo,JO=Mr&&(!ug||Fo&&8<Fo&&11>=Fo),D0=" ",k0=!1;function eA(e,t){switch(e){case"keyup":return v$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ui=!1;function b$(e,t){switch(e){case"compositionend":return tA(t);case"keypress":return t.which!==32?null:(k0=!0,D0);case"textInput":return e=t.data,e===D0&&k0?null:e;default:return null}}function x$(e,t){if(Ui)return e==="compositionend"||!ug&&eA(e,t)?(e=QO(),gc=og=ra=null,Ui=!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 JO&&t.locale!=="ko"?null:t.data;default:return null}}var S$={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 L0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!S$[e.type]:t==="textarea"}function nA(e,t,n,r){Ii?rl?rl.push(r):rl=[r]:Ii=r,t=lf(t,"onChange"),0<t.length&&(n=new wd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vo=null,hs=null;function w$(e){Z_(e,0)}function Od(e){var t=Uo(e);if(FO(t))return e}function B0(e,t){if(e==="change")return t}var rA=!1;if(Mr){var Jh;if(Mr){var ep="oninput"in document;if(!ep){var z0=document.createElement("div");z0.setAttribute("oninput","return;"),ep=typeof z0.oninput=="function"}Jh=ep}else Jh=!1;rA=Jh&&(!document.documentMode||9<document.documentMode)}function I0(){Vo&&(Vo.detachEvent("onpropertychange",aA),hs=Vo=null)}function aA(e){if(e.propertyName==="value"&&Od(hs)){var t=[];nA(t,hs,e,lg(e)),ZO(w$,t)}}function j$(e,t,n){e==="focusin"?(I0(),Vo=t,hs=n,Vo.attachEvent("onpropertychange",aA)):e==="focusout"&&I0()}function O$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Od(hs)}function A$(e,t){if(e==="click")return Od(t)}function _$(e,t){if(e==="input"||e==="change")return Od(t)}function E$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mn=typeof Object.is=="function"?Object.is:E$;function ps(e,t){if(mn(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(!xm.call(t,a)||!mn(e[a],t[a]))return!1}return!0}function U0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function H0(e,t){var n=U0(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=U0(n)}}function iA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lA(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Uc(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=Uc(e.document)}return t}function cg(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 T$=Mr&&"documentMode"in document&&11>=document.documentMode,Hi=null,Em=null,Ko=null,Tm=!1;function q0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tm||Hi==null||Hi!==Uc(r)||(r=Hi,"selectionStart"in r&&cg(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}),Ko&&ps(Ko,r)||(Ko=r,r=lf(Em,"onSelect"),0<r.length&&(t=new wd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hi)))}function $a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qi={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},tp={},oA={};Mr&&(oA=document.createElement("div").style,"AnimationEvent"in window||(delete qi.animationend.animation,delete qi.animationiteration.animation,delete qi.animationstart.animation),"TransitionEvent"in window||delete qi.transitionend.transition);function gi(e){if(tp[e])return tp[e];if(!qi[e])return e;var t=qi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in oA)return tp[e]=t[n];return e}var sA=gi("animationend"),uA=gi("animationiteration"),cA=gi("animationstart"),N$=gi("transitionrun"),C$=gi("transitionstart"),M$=gi("transitioncancel"),fA=gi("transitionend"),dA=new Map,Nm="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(" ");Nm.push("scrollEnd");function Vn(e,t){dA.set(e,t),yi(t,[e])}var Hc=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)},Sn=[],Gi=0,fg=0;function Ad(){for(var e=Gi,t=fg=Gi=0;t<e;){var n=Sn[t];Sn[t++]=null;var r=Sn[t];Sn[t++]=null;var a=Sn[t];Sn[t++]=null;var i=Sn[t];if(Sn[t++]=null,r!==null&&a!==null){var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}i!==0&&hA(n,a,i)}}function _d(e,t,n,r){Sn[Gi++]=e,Sn[Gi++]=t,Sn[Gi++]=n,Sn[Gi++]=r,fg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function dg(e,t,n,r){return _d(e,t,n,r),qc(e)}function bi(e,t){return _d(e,null,null,t),qc(e)}function hA(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-dn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function qc(e){if(50<rs)throw rs=0,Wm=null,Error(I(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yi={};function $$(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 on(e,t,n,r){return new $$(e,t,n,r)}function hg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ar(e,t){var n=e.alternate;return n===null?(n=on(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 pA(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 xc(e,t,n,r,a,i){var l=0;if(r=e,typeof e=="function")hg(e)&&(l=1);else if(typeof e=="string")l=LR(e,n,er.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ym:return e=on(31,n,t,a),e.elementType=ym,e.lanes=i,e;case Li:return Wa(n.children,a,i,t);case RO:l=8,a|=24;break;case hm:return e=on(12,n,t,a|2),e.elementType=hm,e.lanes=i,e;case pm:return e=on(13,n,t,a),e.elementType=pm,e.lanes=i,e;case mm:return e=on(19,n,t,a),e.elementType=mm,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xr:l=10;break e;case PO:l=9;break e;case Jv:l=11;break e;case eg:l=14;break e;case Kr:l=16,r=null;break e}l=29,n=Error(I(130,e===null?"null":typeof e,"")),r=null}return t=on(l,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Wa(e,t,n,r){return e=on(7,e,r,t),e.lanes=n,e}function np(e,t,n){return e=on(6,e,null,t),e.lanes=n,e}function mA(e){var t=on(18,null,null,0);return t.stateNode=e,t}function rp(e,t,n){return t=on(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var G0=new WeakMap;function _n(e,t){if(typeof e=="object"&&e!==null){var n=G0.get(e);return n!==void 0?n:(t={value:e,source:t,stack:O0(t)},G0.set(e,t),t)}return{value:e,source:t,stack:O0(t)}}var Fi=[],Vi=0,Gc=null,ms=0,jn=[],On=0,ba=null,Wn=1,Zn="";function gr(e,t){Fi[Vi++]=ms,Fi[Vi++]=Gc,Gc=e,ms=t}function yA(e,t,n){jn[On++]=Wn,jn[On++]=Zn,jn[On++]=ba,ba=e;var r=Wn;e=Zn;var a=32-dn(r)-1;r&=~(1<<a),n+=1;var i=32-dn(t)+a;if(30<i){var l=a-a%5;i=(r&(1<<l)-1).toString(32),r>>=l,a-=l,Wn=1<<32-dn(t)+a|n<<a|r,Zn=i+e}else Wn=1<<i|n<<a|r,Zn=e}function pg(e){e.return!==null&&(gr(e,1),yA(e,1,0))}function mg(e){for(;e===Gc;)Gc=Fi[--Vi],Fi[Vi]=null,ms=Fi[--Vi],Fi[Vi]=null;for(;e===ba;)ba=jn[--On],jn[On]=null,Zn=jn[--On],jn[On]=null,Wn=jn[--On],jn[On]=null}function vA(e,t){jn[On++]=Wn,jn[On++]=Zn,jn[On++]=ba,Wn=t.id,Zn=t.overflow,ba=e}var Nt=null,Ye=null,be=!1,ua=null,En=!1,Cm=Error(I(519));function xa(e){var t=Error(I(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ys(_n(t,e)),Cm}function Y0(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Tt]=e,t[Qt]=r,n){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(n=0;n<xs.length;n++)ye(xs[n],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),VO(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),XO(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||J_(t.textContent,n)?(r.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),r.onScroll!=null&&ye("scroll",t),r.onScrollEnd!=null&&ye("scrollend",t),r.onClick!=null&&(t.onclick=Sr),t=!0):t=!1,t||xa(e,!0)}function F0(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Nt=Nt.return}}function Ti(e){if(e!==Nt)return!1;if(!be)return F0(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ty(e.type,e.memoizedProps)),n=!n),n&&Ye&&xa(e),F0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));Ye=$x(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));Ye=$x(e)}else t===27?(t=Ye,Oa(e.type)?(e=iy,iy=null,Ye=e):Ye=t):Ye=Nt?Mn(e.stateNode.nextSibling):null;return!0}function ai(){Ye=Nt=null,be=!1}function ap(){var e=ua;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),ua=null),e}function ys(e){ua===null?ua=[e]:ua.push(e)}var Mm=ar(null),xi=null,wr=null;function Qr(e,t,n){ze(Mm,t._currentValue),t._currentValue=n}function _r(e){e._currentValue=Mm.current,wt(Mm)}function $m(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 Rm(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var l=a.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=a;for(var s=0;s<t.length;s++)if(o.context===t[s]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),$m(i.return,n,e),r||(l=null);break e}i=o.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(I(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),$m(l,n,e),l=null}else l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function Zl(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 l=a.alternate;if(l===null)throw Error(I(387));if(l=l.memoizedProps,l!==null){var o=a.type;mn(a.pendingProps.value,l.value)||(e!==null?e.push(o):e=[o])}}else if(a===Lc.current){if(l=a.alternate,l===null)throw Error(I(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}a=a.return}e!==null&&Rm(t,e,n,r),t.flags|=262144}function Yc(e){for(e=e.firstContext;e!==null;){if(!mn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ii(e){xi=e,wr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Mt(e){return gA(xi,e)}function qu(e,t){return xi===null&&ii(e),gA(e,t)}function gA(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},wr===null){if(e===null)throw Error(I(308));wr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wr=wr.next=t;return n}var R$=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()})}},P$=mt.unstable_scheduleCallback,D$=mt.unstable_NormalPriority,ot={$$typeof:xr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yg(){return{controller:new R$,data:new Map,refCount:0}}function yu(e){e.refCount--,e.refCount===0&&P$(D$,function(){e.controller.abort()})}var Xo=null,Pm=0,pl=0,al=null;function k$(e,t){if(Xo===null){var n=Xo=[];Pm=0,pl=Ug(),al={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Pm++,t.then(V0,V0),t}function V0(){if(--Pm===0&&Xo!==null){al!==null&&(al.status="fulfilled");var e=Xo;Xo=null,pl=0,al=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function L$(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 K0=te.S;te.S=function(e,t){$_=cn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&k$(e,t),K0!==null&&K0(e,t)};var Za=ar(null);function vg(){var e=Za.current;return e!==null?e:ke.pooledCache}function Sc(e,t){t===null?ze(Za,Za.current):ze(Za,t.pool)}function bA(){var e=vg();return e===null?null:{parent:ot._currentValue,pool:e}}var Ql=Error(I(460)),gg=Error(I(474)),Ed=Error(I(542)),Fc={then:function(){}};function X0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xA(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Sr,Sr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Z0(e),e;default:if(typeof t.status=="string")t.then(Sr,Sr);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(I(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Z0(e),e}throw Qa=t,Ql}}function Ba(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Qa=n,Ql):n}}var Qa=null;function W0(){if(Qa===null)throw Error(I(459));var e=Qa;return Qa=null,e}function Z0(e){if(e===Ql||e===Ed)throw Error(I(483))}var il=null,vs=0;function Gu(e){var t=vs;return vs+=1,il===null&&(il=[]),xA(il,e,t)}function jo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yu(e,t){throw t.$$typeof===jM?Error(I(525)):(e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function SA(e){function t(m,y){if(e){var b=m.deletions;b===null?(m.deletions=[y],m.flags|=16):b.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=Ar(m,y),m.index=0,m.sibling=null,m}function i(m,y,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<y?(m.flags|=67108866,y):b):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function l(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,y,b,w){return y===null||y.tag!==6?(y=np(b,m.mode,w),y.return=m,y):(y=a(y,b),y.return=m,y)}function s(m,y,b,w){var x=b.type;return x===Li?d(m,y,b.props.children,w,b.key):y!==null&&(y.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Kr&&Ba(x)===y.type)?(y=a(y,b.props),jo(y,b),y.return=m,y):(y=xc(b.type,b.key,b.props,null,m.mode,w),jo(y,b),y.return=m,y)}function u(m,y,b,w){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=rp(b,m.mode,w),y.return=m,y):(y=a(y,b.children||[]),y.return=m,y)}function d(m,y,b,w,x){return y===null||y.tag!==7?(y=Wa(b,m.mode,w,x),y.return=m,y):(y=a(y,b),y.return=m,y)}function f(m,y,b){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=np(""+y,m.mode,b),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Lu:return b=xc(y.type,y.key,y.props,null,m.mode,b),jo(b,y),b.return=m,b;case zo:return y=rp(y,m.mode,b),y.return=m,y;case Kr:return y=Ba(y),f(m,y,b)}if(Io(y)||xo(y))return y=Wa(y,m.mode,b,null),y.return=m,y;if(typeof y.then=="function")return f(m,Gu(y),b);if(y.$$typeof===xr)return f(m,qu(m,y),b);Yu(m,y)}return null}function h(m,y,b,w){var x=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return x!==null?null:o(m,y,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Lu:return b.key===x?s(m,y,b,w):null;case zo:return b.key===x?u(m,y,b,w):null;case Kr:return b=Ba(b),h(m,y,b,w)}if(Io(b)||xo(b))return x!==null?null:d(m,y,b,w,null);if(typeof b.then=="function")return h(m,y,Gu(b),w);if(b.$$typeof===xr)return h(m,y,qu(m,b),w);Yu(m,b)}return null}function p(m,y,b,w,x){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return m=m.get(b)||null,o(y,m,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Lu:return m=m.get(w.key===null?b:w.key)||null,s(y,m,w,x);case zo:return m=m.get(w.key===null?b:w.key)||null,u(y,m,w,x);case Kr:return w=Ba(w),p(m,y,b,w,x)}if(Io(w)||xo(w))return m=m.get(b)||null,d(y,m,w,x,null);if(typeof w.then=="function")return p(m,y,b,Gu(w),x);if(w.$$typeof===xr)return p(m,y,b,qu(y,w),x);Yu(y,w)}return null}function S(m,y,b,w){for(var x=null,j=null,A=y,_=y=0,E=null;A!==null&&_<b.length;_++){A.index>_?(E=A,A=null):E=A.sibling;var T=h(m,A,b[_],w);if(T===null){A===null&&(A=E);break}e&&A&&T.alternate===null&&t(m,A),y=i(T,y,_),j===null?x=T:j.sibling=T,j=T,A=E}if(_===b.length)return n(m,A),be&&gr(m,_),x;if(A===null){for(;_<b.length;_++)A=f(m,b[_],w),A!==null&&(y=i(A,y,_),j===null?x=A:j.sibling=A,j=A);return be&&gr(m,_),x}for(A=r(A);_<b.length;_++)E=p(A,m,_,b[_],w),E!==null&&(e&&E.alternate!==null&&A.delete(E.key===null?_:E.key),y=i(E,y,_),j===null?x=E:j.sibling=E,j=E);return e&&A.forEach(function(R){return t(m,R)}),be&&gr(m,_),x}function g(m,y,b,w){if(b==null)throw Error(I(151));for(var x=null,j=null,A=y,_=y=0,E=null,T=b.next();A!==null&&!T.done;_++,T=b.next()){A.index>_?(E=A,A=null):E=A.sibling;var R=h(m,A,T.value,w);if(R===null){A===null&&(A=E);break}e&&A&&R.alternate===null&&t(m,A),y=i(R,y,_),j===null?x=R:j.sibling=R,j=R,A=E}if(T.done)return n(m,A),be&&gr(m,_),x;if(A===null){for(;!T.done;_++,T=b.next())T=f(m,T.value,w),T!==null&&(y=i(T,y,_),j===null?x=T:j.sibling=T,j=T);return be&&gr(m,_),x}for(A=r(A);!T.done;_++,T=b.next())T=p(A,m,_,T.value,w),T!==null&&(e&&T.alternate!==null&&A.delete(T.key===null?_:T.key),y=i(T,y,_),j===null?x=T:j.sibling=T,j=T);return e&&A.forEach(function(N){return t(m,N)}),be&&gr(m,_),x}function v(m,y,b,w){if(typeof b=="object"&&b!==null&&b.type===Li&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Lu:e:{for(var x=b.key;y!==null;){if(y.key===x){if(x=b.type,x===Li){if(y.tag===7){n(m,y.sibling),w=a(y,b.props.children),w.return=m,m=w;break e}}else if(y.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Kr&&Ba(x)===y.type){n(m,y.sibling),w=a(y,b.props),jo(w,b),w.return=m,m=w;break e}n(m,y);break}else t(m,y);y=y.sibling}b.type===Li?(w=Wa(b.props.children,m.mode,w,b.key),w.return=m,m=w):(w=xc(b.type,b.key,b.props,null,m.mode,w),jo(w,b),w.return=m,m=w)}return l(m);case zo:e:{for(x=b.key;y!==null;){if(y.key===x)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(m,y.sibling),w=a(y,b.children||[]),w.return=m,m=w;break e}else{n(m,y);break}else t(m,y);y=y.sibling}w=rp(b,m.mode,w),w.return=m,m=w}return l(m);case Kr:return b=Ba(b),v(m,y,b,w)}if(Io(b))return S(m,y,b,w);if(xo(b)){if(x=xo(b),typeof x!="function")throw Error(I(150));return b=x.call(b),g(m,y,b,w)}if(typeof b.then=="function")return v(m,y,Gu(b),w);if(b.$$typeof===xr)return v(m,y,qu(m,b),w);Yu(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,y!==null&&y.tag===6?(n(m,y.sibling),w=a(y,b),w.return=m,m=w):(n(m,y),w=np(b,m.mode,w),w.return=m,m=w),l(m)):n(m,y)}return function(m,y,b,w){try{vs=0;var x=v(m,y,b,w);return il=null,x}catch(A){if(A===Ql||A===Ed)throw A;var j=on(29,A,null,m.mode);return j.lanes=w,j.return=m,j}finally{}}}var li=SA(!0),wA=SA(!1),Xr=!1;function bg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dm(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 ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Se&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=qc(e),hA(e,null,n),t}return _d(e,r,t,n),qc(e)}function Wo(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,IO(e,n)}}function ip(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 l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=l:i=i.next=l,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 km=!1;function Zo(){if(km){var e=al;if(e!==null)throw e}}function Qo(e,t,n,r){km=!1;var a=e.updateQueue;Xr=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var s=o,u=s.next;s.next=null,l===null?i=u:l.next=u,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==l&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=s))}if(i!==null){var f=a.baseState;l=0,d=u=s=null,o=i;do{var h=o.lane&-536870913,p=h!==o.lane;if(p?(ge&h)===h:(r&h)===h){h!==0&&h===pl&&(km=!0),d!==null&&(d=d.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var S=e,g=o;h=t;var v=n;switch(g.tag){case 1:if(S=g.payload,typeof S=="function"){f=S.call(v,f,h);break e}f=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=g.payload,h=typeof S=="function"?S.call(v,f,h):S,h==null)break e;f=Ve({},f,h);break e;case 2:Xr=!0}}h=o.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:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=p,s=f):d=d.next=p,l|=h;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;p=o,o=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),wa|=l,e.lanes=l,e.memoizedState=f}}function jA(e,t){if(typeof e!="function")throw Error(I(191,e));e.call(t)}function OA(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jA(n[e],t)}var ml=ar(null),Vc=ar(0);function Q0(e,t){e=Dr,ze(Vc,e),ze(ml,t),Dr=e|t.baseLanes}function Lm(){ze(Vc,Dr),ze(ml,ml.current)}function xg(){Dr=Vc.current,wt(ml),wt(Vc)}var yn=ar(null),Cn=null;function Jr(e){var t=e.alternate;ze(nt,nt.current&1),ze(yn,e),Cn===null&&(t===null||ml.current!==null||t.memoizedState!==null)&&(Cn=e)}function Bm(e){ze(nt,nt.current),ze(yn,e),Cn===null&&(Cn=e)}function AA(e){e.tag===22?(ze(nt,nt.current),ze(yn,e),Cn===null&&(Cn=e)):ea()}function ea(){ze(nt,nt.current),ze(yn,yn.current)}function ln(e){wt(yn),Cn===e&&(Cn=null),wt(nt)}var nt=ar(0);function Kc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ry(n)||ay(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 $r=0,ce=null,Pe=null,it=null,Xc=!1,ll=!1,oi=!1,Wc=0,gs=0,ol=null,B$=0;function Ze(){throw Error(I(321))}function Sg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mn(e[n],t[n]))return!1;return!0}function wg(e,t,n,r,a,i){return $r=i,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,te.H=e===null||e.memoizedState===null?n_:Rg,oi=!1,i=n(r,a),oi=!1,ll&&(i=EA(t,n,r,a)),_A(e),i}function _A(e){te.H=bs;var t=Pe!==null&&Pe.next!==null;if($r=0,it=Pe=ce=null,Xc=!1,gs=0,ol=null,t)throw Error(I(300));e===null||st||(e=e.dependencies,e!==null&&Yc(e)&&(st=!0))}function EA(e,t,n,r){ce=e;var a=0;do{if(ll&&(ol=null),gs=0,ll=!1,25<=a)throw Error(I(301));if(a+=1,it=Pe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}te.H=r_,i=t(n,r)}while(ll);return i}function z$(){var e=te.H,t=e.useState()[0];return t=typeof t.then=="function"?vu(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(ce.flags|=1024),t}function jg(){var e=Wc!==0;return Wc=0,e}function Og(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ag(e){if(Xc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xc=!1}$r=0,it=Pe=ce=null,ll=!1,gs=Wc=0,ol=null}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?ce.memoizedState=it=e:it=it.next=e,it}function rt(){if(Pe===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=it===null?ce.memoizedState:it.next;if(t!==null)it=t,Pe=e;else{if(e===null)throw ce.alternate===null?Error(I(467)):Error(I(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},it===null?ce.memoizedState=it=e:it=it.next=e}return it}function Td(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vu(e){var t=gs;return gs+=1,ol===null&&(ol=[]),e=xA(ol,e,t),t=ce,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,te.H=t===null||t.memoizedState===null?n_:Rg),e}function Nd(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vu(e);if(e.$$typeof===xr)return Mt(e)}throw Error(I(438,String(e)))}function _g(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ce.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Td(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=OM;return t.index++,n}function Rr(e,t){return typeof t=="function"?t(e):t}function wc(e){var t=rt();return Eg(t,Pe,e)}function Eg(e,t,n){var r=e.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var l=a.next;a.next=i.next,i.next=l}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var o=l=null,s=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(ge&f)===f:($r&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===pl&&(d=!0);else if(($r&h)===h){u=u.next,h===pl&&(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?(o=s=f,l=i):s=s.next=f,ce.lanes|=h,wa|=h;f=u.action,oi&&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?(o=s=h,l=i):s=s.next=h,ce.lanes|=f,wa|=f;u=u.next}while(u!==null&&u!==t);if(s===null?l=i:s.next=o,!mn(i,e.memoizedState)&&(st=!0,d&&(n=al,n!==null)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=s,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function lp(e){var t=rt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do i=e(i,l.action),l=l.next;while(l!==a);mn(i,t.memoizedState)||(st=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function TA(e,t,n){var r=ce,a=rt(),i=be;if(i){if(n===void 0)throw Error(I(407));n=n()}else n=t();var l=!mn((Pe||a).memoizedState,n);if(l&&(a.memoizedState=n,st=!0),a=a.queue,Tg(MA.bind(null,r,a,e),[e]),a.getSnapshot!==t||l||it!==null&&it.memoizedState.tag&1){if(r.flags|=2048,yl(9,{destroy:void 0},CA.bind(null,r,a,n,t),null),ke===null)throw Error(I(349));i||$r&127||NA(r,t,n)}return n}function NA(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=Td(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function CA(e,t,n,r){t.value=n,t.getSnapshot=r,$A(t)&&RA(e)}function MA(e,t,n){return n(function(){$A(t)&&RA(e)})}function $A(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mn(e,n)}catch{return!0}}function RA(e){var t=bi(e,2);t!==null&&Wt(t,e,2)}function zm(e){var t=Bt();if(typeof e=="function"){var n=e;if(e=n(),oi){na(!0);try{n()}finally{na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:e},t}function PA(e,t,n,r){return e.baseState=n,Eg(e,Pe,typeof r=="function"?r:Rr)}function I$(e,t,n,r,a){if(Md(e))throw Error(I(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){i.listeners.push(l)}};te.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,DA(t,i)):(i.next=n.next,t.pending=n.next=i)}}function DA(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=te.T,l={};te.T=l;try{var o=n(a,r),s=te.S;s!==null&&s(l,o),J0(e,t,o)}catch(u){Im(e,t,u)}finally{i!==null&&l.types!==null&&(i.types=l.types),te.T=i}}else try{i=n(a,r),J0(e,t,i)}catch(u){Im(e,t,u)}}function J0(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){ex(e,t,r)},function(r){return Im(e,t,r)}):ex(e,t,n)}function ex(e,t,n){t.status="fulfilled",t.value=n,kA(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,DA(e,n)))}function Im(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,kA(t),t=t.next;while(t!==r)}e.action=null}function kA(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function LA(e,t){return t}function tx(e,t){if(be){var n=ke.formState;if(n!==null){e:{var r=ce;if(be){if(Ye){t:{for(var a=Ye,i=En;a.nodeType!==8;){if(!i){a=null;break t}if(a=Mn(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ye=Mn(a.nextSibling),r=a.data==="F!";break e}}xa(r)}r=!1}r&&(t=n[0])}}return n=Bt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:LA,lastRenderedState:t},n.queue=r,n=JA.bind(null,ce,r),r.dispatch=n,r=zm(!1),i=$g.bind(null,ce,!1,r.queue),r=Bt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=I$.bind(null,ce,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function nx(e){var t=rt();return BA(t,Pe,e)}function BA(e,t,n){if(t=Eg(e,t,LA)[0],e=wc(Rr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=vu(t)}catch(l){throw l===Ql?Ed:l}else r=t;t=rt();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,yl(9,{destroy:void 0},U$.bind(null,a,n),null)),[r,i,e]}function U$(e,t){e.action=t}function rx(e){var t=rt(),n=Pe;if(n!==null)return BA(t,n,e);rt(),t=t.memoizedState,n=rt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function yl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Td(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zA(){return rt().memoizedState}function jc(e,t,n,r){var a=Bt();ce.flags|=e,a.memoizedState=yl(1|t,{destroy:void 0},n,r===void 0?null:r)}function Cd(e,t,n,r){var a=rt();r=r===void 0?null:r;var i=a.memoizedState.inst;Pe!==null&&r!==null&&Sg(r,Pe.memoizedState.deps)?a.memoizedState=yl(t,i,n,r):(ce.flags|=e,a.memoizedState=yl(1|t,i,n,r))}function ax(e,t){jc(8390656,8,e,t)}function Tg(e,t){Cd(2048,8,e,t)}function H$(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Td(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function IA(e){var t=rt().memoizedState;return H$({ref:t,nextImpl:e}),function(){if(Se&2)throw Error(I(440));return t.impl.apply(void 0,arguments)}}function UA(e,t){return Cd(4,2,e,t)}function HA(e,t){return Cd(4,4,e,t)}function qA(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 GA(e,t,n){n=n!=null?n.concat([e]):null,Cd(4,4,qA.bind(null,t,e),n)}function Ng(){}function YA(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Sg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function FA(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Sg(t,r[1]))return r[0];if(r=e(),oi){na(!0);try{e()}finally{na(!1)}}return n.memoizedState=[r,t],r}function Cg(e,t,n){return n===void 0||$r&1073741824&&!(ge&261930)?e.memoizedState=t:(e.memoizedState=n,e=P_(),ce.lanes|=e,wa|=e,n)}function VA(e,t,n,r){return mn(n,t)?n:ml.current!==null?(e=Cg(e,n,r),mn(e,t)||(st=!0),e):!($r&42)||$r&1073741824&&!(ge&261930)?(st=!0,e.memoizedState=n):(e=P_(),ce.lanes|=e,wa|=e,t)}function KA(e,t,n,r,a){var i=we.p;we.p=i!==0&&8>i?i:8;var l=te.T,o={};te.T=o,$g(e,!1,t,n);try{var s=a(),u=te.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=L$(s,r);Jo(e,t,d,hn(e))}else Jo(e,t,r,hn(e))}catch(f){Jo(e,t,{then:function(){},status:"rejected",reason:f},hn())}finally{we.p=i,l!==null&&o.types!==null&&(l.types=o.types),te.T=l}}function q$(){}function Um(e,t,n,r){if(e.tag!==5)throw Error(I(476));var a=XA(e).queue;KA(e,a,t,Xa,n===null?q$:function(){return WA(e),n(r)})}function XA(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Xa,baseState:Xa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:Xa},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function WA(e){var t=XA(e);t.next===null&&(t=e.alternate.memoizedState),Jo(e,t.next.queue,{},hn())}function Mg(){return Mt(ws)}function ZA(){return rt().memoizedState}function QA(){return rt().memoizedState}function G$(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hn();e=ca(n);var r=fa(t,e,n);r!==null&&(Wt(r,t,n),Wo(r,t,n)),t={cache:yg()},e.payload=t;return}t=t.return}}function Y$(e,t,n){var r=hn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Md(e)?e_(t,n):(n=dg(e,t,n,r),n!==null&&(Wt(n,e,r),t_(n,t,r)))}function JA(e,t,n){var r=hn();Jo(e,t,n,r)}function Jo(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Md(e))e_(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(a.hasEagerState=!0,a.eagerState=o,mn(o,l))return _d(e,t,a,0),ke===null&&Ad(),!1}catch{}finally{}if(n=dg(e,t,a,r),n!==null)return Wt(n,e,r),t_(n,t,r),!0}return!1}function $g(e,t,n,r){if(r={lane:2,revertLane:Ug(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Md(e)){if(t)throw Error(I(479))}else t=dg(e,n,r,2),t!==null&&Wt(t,e,2)}function Md(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function e_(e,t){ll=Xc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,IO(e,n)}}var bs={readContext:Mt,use:Nd,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};bs.useEffectEvent=Ze;var n_={readContext:Mt,use:Nd,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:ax,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,jc(4194308,4,qA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jc(4194308,4,e,t)},useInsertionEffect:function(e,t){jc(4,2,e,t)},useMemo:function(e,t){var n=Bt();t=t===void 0?null:t;var r=e();if(oi){na(!0);try{e()}finally{na(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Bt();if(n!==void 0){var a=n(t);if(oi){na(!0);try{n(t)}finally{na(!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=Y$.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:function(e){e=zm(e);var t=e.queue,n=JA.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ng,useDeferredValue:function(e,t){var n=Bt();return Cg(n,e,t)},useTransition:function(){var e=zm(!1);return e=KA.bind(null,ce,e.queue,!0,!1),Bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ce,a=Bt();if(be){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),ke===null)throw Error(I(349));ge&127||NA(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,ax(MA.bind(null,r,i,e),[e]),r.flags|=2048,yl(9,{destroy:void 0},CA.bind(null,r,i,n,t),null),n},useId:function(){var e=Bt(),t=ke.identifierPrefix;if(be){var n=Zn,r=Wn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Wc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=B$++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Mg,useFormState:tx,useActionState:tx,useOptimistic:function(e){var t=Bt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=$g.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:_g,useCacheRefresh:function(){return Bt().memoizedState=G$.bind(null,ce)},useEffectEvent:function(e){var t=Bt(),n={impl:e};return t.memoizedState=n,function(){if(Se&2)throw Error(I(440));return n.impl.apply(void 0,arguments)}}},Rg={readContext:Mt,use:Nd,useCallback:YA,useContext:Mt,useEffect:Tg,useImperativeHandle:GA,useInsertionEffect:UA,useLayoutEffect:HA,useMemo:FA,useReducer:wc,useRef:zA,useState:function(){return wc(Rr)},useDebugValue:Ng,useDeferredValue:function(e,t){var n=rt();return VA(n,Pe.memoizedState,e,t)},useTransition:function(){var e=wc(Rr)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:vu(e),t]},useSyncExternalStore:TA,useId:ZA,useHostTransitionStatus:Mg,useFormState:nx,useActionState:nx,useOptimistic:function(e,t){var n=rt();return PA(n,Pe,e,t)},useMemoCache:_g,useCacheRefresh:QA};Rg.useEffectEvent=IA;var r_={readContext:Mt,use:Nd,useCallback:YA,useContext:Mt,useEffect:Tg,useImperativeHandle:GA,useInsertionEffect:UA,useLayoutEffect:HA,useMemo:FA,useReducer:lp,useRef:zA,useState:function(){return lp(Rr)},useDebugValue:Ng,useDeferredValue:function(e,t){var n=rt();return Pe===null?Cg(n,e,t):VA(n,Pe.memoizedState,e,t)},useTransition:function(){var e=lp(Rr)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:vu(e),t]},useSyncExternalStore:TA,useId:ZA,useHostTransitionStatus:Mg,useFormState:rx,useActionState:rx,useOptimistic:function(e,t){var n=rt();return Pe!==null?PA(n,Pe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_g,useCacheRefresh:QA};r_.useEffectEvent=IA;function op(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hm={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hn(),a=ca(r);a.payload=t,n!=null&&(a.callback=n),t=fa(e,a,r),t!==null&&(Wt(t,e,r),Wo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hn(),a=ca(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=fa(e,a,r),t!==null&&(Wt(t,e,r),Wo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hn(),r=ca(n);r.tag=2,t!=null&&(r.callback=t),t=fa(e,r,n),t!==null&&(Wt(t,e,n),Wo(t,e,n))}};function ix(e,t,n,r,a,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!ps(n,r)||!ps(a,i):!0}function lx(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&&Hm.enqueueReplaceState(t,t.state,null)}function si(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=Ve({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function a_(e){Hc(e)}function i_(e){console.error(e)}function l_(e){Hc(e)}function Zc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function ox(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 qm(e,t,n){return n=ca(n),n.tag=3,n.payload={element:null},n.callback=function(){Zc(e,t)},n}function o_(e){return e=ca(e),e.tag=3,e}function s_(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(){ox(t,n,r)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){ox(t,n,r),typeof a!="function"&&(da===null?da=new Set([this]):da.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function F$(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Zl(t,n,a,!0),n=yn.current,n!==null){switch(n.tag){case 31:case 13:return Cn===null?nf():n.alternate===null&&et===0&&(et=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Fc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),gp(e,r,a)),!1;case 22:return n.flags|=65536,r===Fc?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)),gp(e,r,a)),!1}throw Error(I(435,n.tag))}return gp(e,r,a),nf(),!1}if(be)return t=yn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Cm&&(e=Error(I(422),{cause:r}),ys(_n(e,n)))):(r!==Cm&&(t=Error(I(423),{cause:r}),ys(_n(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_n(r,n),a=qm(e.stateNode,r,a),ip(e,a),et!==4&&(et=2)),!1;var i=Error(I(520),{cause:r});if(i=_n(i,n),ns===null?ns=[i]:ns.push(i),et!==4&&(et=2),t===null)return!0;r=_n(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=qm(n.stateNode,r,e),ip(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"&&(da===null||!da.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=o_(a),s_(a,e,n,r),ip(n,a),!1}n=n.return}while(n!==null);return!1}var Pg=Error(I(461)),st=!1;function Et(e,t,n,r){t.child=e===null?wA(t,null,n,r):li(t,e.child,n,r)}function sx(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var l={};for(var o in r)o!=="ref"&&(l[o]=r[o])}else l=r;return ii(t),r=wg(e,t,n,l,i,a),o=jg(),e!==null&&!st?(Og(e,t,a),Pr(e,t,a)):(be&&o&&pg(t),t.flags|=1,Et(e,t,r,a),t.child)}function ux(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!hg(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,u_(e,t,i,r,a)):(e=xc(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Dg(e,a)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:ps,n(l,r)&&e.ref===t.ref)return Pr(e,t,a)}return t.flags|=1,e=Ar(i,r),e.ref=t.ref,e.return=t,t.child=e}function u_(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(ps(i,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=i,Dg(e,a))e.flags&131072&&(st=!0);else return t.lanes=e.lanes,Pr(e,t,a)}return Gm(e,t,n,r,a)}function c_(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 cx(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sc(t,i!==null?i.cachePool:null),i!==null?Q0(t,i):Lm(),AA(t);else return r=t.lanes=536870912,cx(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Sc(t,i.cachePool),Q0(t,i),ea(),t.memoizedState=null):(e!==null&&Sc(t,null),Lm(),ea());return Et(e,t,a,n),t.child}function Ho(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cx(e,t,n,r,a){var i=vg();return i=i===null?null:{parent:ot._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Sc(t,null),Lm(),AA(t),e!==null&&Zl(e,t,r,!0),t.childLanes=a,null}function Oc(e,t){return t=Qc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fx(e,t,n){return li(t,e.child,null,n),e=Oc(t,t.pendingProps),e.flags|=2,ln(t),t.memoizedState=null,e}function V$(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(r.mode==="hidden")return e=Oc(t,r),t.lanes=536870912,Ho(null,e);if(Bm(t),(e=Ye)?(e=nE(e,En),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Wn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},n=mA(e),n.return=t,t.child=n,Nt=t,Ye=null)):e=null,e===null)throw xa(t);return t.lanes=536870912,null}return Oc(t,r)}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(Bm(t),a)if(t.flags&256)t.flags&=-257,t=fx(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(I(558));else if(st||Zl(e,t,n,!1),a=(n&e.childLanes)!==0,st||a){if(r=ke,r!==null&&(l=UO(r,n),l!==0&&l!==i.retryLane))throw i.retryLane=l,bi(e,l),Wt(r,e,l),Pg;nf(),t=fx(e,t,n)}else e=i.treeContext,Ye=Mn(l.nextSibling),Nt=t,be=!0,ua=null,En=!1,e!==null&&vA(t,e),t=Oc(t,r),t.flags|=4096;return t}return e=Ar(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ac(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(I(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Gm(e,t,n,r,a){return ii(t),n=wg(e,t,n,r,void 0,a),r=jg(),e!==null&&!st?(Og(e,t,a),Pr(e,t,a)):(be&&r&&pg(t),t.flags|=1,Et(e,t,n,a),t.child)}function dx(e,t,n,r,a,i){return ii(t),t.updateQueue=null,n=EA(t,r,n,a),_A(e),r=jg(),e!==null&&!st?(Og(e,t,i),Pr(e,t,i)):(be&&r&&pg(t),t.flags|=1,Et(e,t,n,i),t.child)}function hx(e,t,n,r,a){if(ii(t),t.stateNode===null){var i=Yi,l=n.contextType;typeof l=="object"&&l!==null&&(i=Mt(l)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Hm,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},bg(t),l=n.contextType,i.context=typeof l=="object"&&l!==null?Mt(l):Yi,i.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(op(t,n,l,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(l=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),l!==i.state&&Hm.enqueueReplaceState(i,i.state,null),Qo(t,r,i,a),Zo(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,s=si(n,o);i.props=s;var u=i.context,d=n.contextType;l=Yi,typeof d=="object"&&d!==null&&(l=Mt(d));var f=n.getDerivedStateFromProps;d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||u!==l)&&lx(t,i,r,l),Xr=!1;var h=t.memoizedState;i.state=h,Qo(t,r,i,a),Zo(),u=t.memoizedState,o||h!==u||Xr?(typeof f=="function"&&(op(t,n,f,r),u=t.memoizedState),(s=Xr||ix(t,n,s,r,h,u,l))?(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=l,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Dm(e,t),l=t.memoizedProps,d=si(n,l),i.props=d,f=t.pendingProps,h=i.context,u=n.contextType,s=Yi,typeof u=="object"&&u!==null&&(s=Mt(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==f||h!==s)&&lx(t,i,r,s),Xr=!1,h=t.memoizedState,i.state=h,Qo(t,r,i,a),Zo();var p=t.memoizedState;l!==f||h!==p||Xr||e!==null&&e.dependencies!==null&&Yc(e.dependencies)?(typeof o=="function"&&(op(t,n,o,r),p=t.memoizedState),(d=Xr||ix(t,n,d,r,h,p,s)||e!==null&&e.dependencies!==null&&Yc(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"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===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"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Ac(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=li(t,e.child,null,a),t.child=li(t,null,n,a)):Et(e,t,n,a),t.memoizedState=i.state,e=t.child):e=Pr(e,t,a),e}function px(e,t,n,r){return ai(),t.flags|=256,Et(e,t,n,r),t.child}var sp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function up(e){return{baseLanes:e,cachePool:bA()}}function cp(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=un),e}function f_(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(a?Jr(t):ea(),(e=Ye)?(e=nE(e,En),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Wn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},n=mA(e),n.return=t,t.child=n,Nt=t,Ye=null)):e=null,e===null)throw xa(t);return ay(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(ea(),a=t.mode,o=Qc({mode:"hidden",children:o},a),r=Wa(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=up(n),r.childLanes=cp(e,l,n),t.memoizedState=sp,Ho(null,r)):(Jr(t),Ym(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(i)t.flags&256?(Jr(t),t.flags&=-257,t=fp(e,t,n)):t.memoizedState!==null?(ea(),t.child=e.child,t.flags|=128,t=null):(ea(),o=r.fallback,a=t.mode,r=Qc({mode:"visible",children:r.children},a),o=Wa(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,li(t,e.child,null,n),r=t.child,r.memoizedState=up(n),r.childLanes=cp(e,l,n),t.memoizedState=sp,t=Ho(null,r));else if(Jr(t),ay(o)){if(l=o.nextSibling&&o.nextSibling.dataset,l)var u=l.dgst;l=u,r=Error(I(419)),r.stack="",r.digest=l,ys({value:r,source:null,stack:null}),t=fp(e,t,n)}else if(st||Zl(e,t,n,!1),l=(n&e.childLanes)!==0,st||l){if(l=ke,l!==null&&(r=UO(l,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,bi(e,r),Wt(l,e,r),Pg;ry(o)||nf(),t=fp(e,t,n)}else ry(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Ye=Mn(o.nextSibling),Nt=t,be=!0,ua=null,En=!1,e!==null&&vA(t,e),t=Ym(t,r.children),t.flags|=4096);return t}return a?(ea(),o=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=Ar(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=Ar(u,o):(o=Wa(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,Ho(null,r),r=t.child,o=e.child.memoizedState,o===null?o=up(n):(a=o.cachePool,a!==null?(s=ot._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=bA(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=cp(e,l,n),t.memoizedState=sp,Ho(e.child,r)):(Jr(t),n=e.child,e=n.sibling,n=Ar(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function Ym(e,t){return t=Qc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qc(e,t){return e=on(22,e,null,t),e.lanes=0,e}function fp(e,t,n){return li(t,e.child,null,n),e=Ym(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$m(e.return,t,n)}function dp(e,t,n,r,a,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=a,l.treeForkCount=i)}function d_(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var l=nt.current,o=(l&2)!==0;if(o?(l=l&1|2,t.flags|=128):l&=1,ze(nt,l),Et(e,t,r,n),r=be?ms:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mx(e,n,t);else if(e.tag===19)mx(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&&Kc(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),dp(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&&Kc(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}dp(t,!0,n,null,i,r);break;case"together":dp(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Pr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wa|=t.lanes,!(n&t.childLanes))if(e!==null){if(Zl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=Ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dg(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Yc(e)))}function K$(e,t,n){switch(t.tag){case 3:Bc(t,t.stateNode.containerInfo),Qr(t,ot,e.memoizedState.cache),ai();break;case 27:case 5:bm(t);break;case 4:Bc(t,t.stateNode.containerInfo);break;case 10:Qr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bm(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Jr(t),t.flags|=128,null):n&t.child.childLanes?f_(e,t,n):(Jr(t),e=Pr(e,t,n),e!==null?e.sibling:null);Jr(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Zl(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),ze(nt,nt.current),r)break;return null;case 22:return t.lanes=0,c_(e,t,n,t.pendingProps);case 24:Qr(t,ot,e.memoizedState.cache)}return Pr(e,t,n)}function h_(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Dg(e,n)&&!(t.flags&128))return st=!1,K$(e,t,n);st=!!(e.flags&131072)}else st=!1,be&&t.flags&1048576&&yA(t,ms,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Ba(t.elementType),t.type=e,typeof e=="function")hg(e)?(r=si(e,r),t.tag=1,t=hx(null,t,e,r,n)):(t.tag=0,t=Gm(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===Jv){t.tag=11,t=sx(null,t,e,r,n);break e}else if(a===eg){t.tag=14,t=ux(null,t,e,r,n);break e}}throw t=vm(e)||e,Error(I(306,t,""))}}return t;case 0:return Gm(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=si(r,t.pendingProps),hx(e,t,r,a,n);case 3:e:{if(Bc(t,t.stateNode.containerInfo),e===null)throw Error(I(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,Dm(e,t),Qo(t,r,null,n);var l=t.memoizedState;if(r=l.cache,Qr(t,ot,r),r!==i.cache&&Rm(t,[ot],n,!0),Zo(),r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=px(e,t,r,n);break e}else if(r!==a){a=_n(Error(I(424)),t),ys(a),t=px(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(Ye=Mn(e.firstChild),Nt=t,be=!0,ua=null,En=!0,n=wA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ai(),r===a){t=Pr(e,t,n);break e}Et(e,t,r,n)}t=t.child}return t;case 26:return Ac(e,t),e===null?(n=Dx(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,r=of(sa.current).createElement(n),r[Tt]=t,r[Qt]=e,$t(r,n,e),xt(r),t.stateNode=r):t.memoizedState=Dx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return bm(t),e===null&&be&&(r=t.stateNode=rE(t.type,t.pendingProps,sa.current),Nt=t,En=!0,a=Ye,Oa(t.type)?(iy=a,Ye=Mn(r.firstChild)):Ye=a),Et(e,t,t.pendingProps.children,n),Ac(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((a=r=Ye)&&(r=OR(r,t.type,t.pendingProps,En),r!==null?(t.stateNode=r,Nt=t,Ye=Mn(r.firstChild),En=!1,a=!0):a=!1),a||xa(t)),bm(t),a=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,r=i.children,ty(a,i)?r=null:l!==null&&ty(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=wg(e,t,z$,null,null,n),ws._currentValue=a),Ac(e,t),Et(e,t,r,n),t.child;case 6:return e===null&&be&&((e=n=Ye)&&(n=AR(n,t.pendingProps,En),n!==null?(t.stateNode=n,Nt=t,Ye=null,e=!0):e=!1),e||xa(t)),null;case 13:return f_(e,t,n);case 4:return Bc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=li(t,null,r,n):Et(e,t,r,n),t.child;case 11:return sx(e,t,t.type,t.pendingProps,n);case 7:return Et(e,t,t.pendingProps,n),t.child;case 8:return Et(e,t,t.pendingProps.children,n),t.child;case 12:return Et(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Qr(t,t.type,r.value),Et(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ii(t),a=Mt(a),r=r(a),t.flags|=1,Et(e,t,r,n),t.child;case 14:return ux(e,t,t.type,t.pendingProps,n);case 15:return u_(e,t,t.type,t.pendingProps,n);case 19:return d_(e,t,n);case 31:return V$(e,t,n);case 22:return c_(e,t,n,t.pendingProps);case 24:return ii(t),r=Mt(ot),e===null?(a=vg(),a===null&&(a=ke,i=yg(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},bg(t),Qr(t,ot,a)):(e.lanes&n&&(Dm(e,t),Qo(t,null,null,n),Zo()),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),Qr(t,ot,r)):(r=i.cache,Qr(t,ot,r),r!==a.cache&&Rm(t,[ot],n,!0))),Et(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(I(156,t.tag))}function dr(e){e.flags|=4}function hp(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(L_())e.flags|=8192;else throw Qa=Fc,gg}else e.flags&=-16777217}function yx(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!lE(t))if(L_())e.flags|=8192;else throw Qa=Fc,gg}function Fu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?BO():536870912,e.lanes|=t,vl|=t)}function Oo(e,t){if(!be)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 He(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 X$(e,t,n){var r=t.pendingProps;switch(mg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_r(ot),fl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ti(t)?dr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ap())),He(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(dr(t),i!==null?(He(t),yx(t,i)):(He(t),hp(t,a,null,r,n))):i?i!==e.memoizedState?(dr(t),He(t),yx(t,i)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&dr(t),He(t),hp(t,a,e,r,n)),null;case 27:if(zc(t),n=sa.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dr(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return He(t),null}e=er.current,Ti(t)?Y0(t):(e=rE(a,r,n),t.stateNode=e,dr(t))}return He(t),null;case 5:if(zc(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dr(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return He(t),null}if(i=er.current,Ti(t))Y0(t);else{var l=of(sa.current);switch(i){case 1:i=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=l.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?l.createElement(a,{is:r.is}):l.createElement(a)}}i[Tt]=t,i[Qt]=r;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch($t(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 He(t),hp(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(I(166));if(e=sa.current,Ti(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Nt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||J_(e.nodeValue,n)),e||xa(t,!0)}else e=of(e).createTextNode(r),e[Tt]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ti(t),n!==null){if(e===null){if(!r)throw Error(I(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(557));e[Tt]=t}else ai(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=ap(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ln(t),t):(ln(t),null);if(t.flags&128)throw Error(I(558))}return He(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ti(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(I(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(I(317));a[Tt]=t}else ai(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),a=!1}else a=ap(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ln(t),t):(ln(t),null)}return ln(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),Fu(t,t.updateQueue),He(t),null);case 4:return fl(),e===null&&Hg(t.stateNode.containerInfo),He(t),null;case 10:return _r(t.type),He(t),null;case 19:if(wt(nt),r=t.memoizedState,r===null)return He(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Oo(r,!1);else{if(et!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Kc(e),i!==null){for(t.flags|=128,Oo(r,!1),e=i.updateQueue,t.updateQueue=e,Fu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)pA(n,e),n=n.sibling;return ze(nt,nt.current&1|2),be&&gr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&cn()>ef&&(t.flags|=128,a=!0,Oo(r,!1),t.lanes=4194304)}else{if(!a)if(e=Kc(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Fu(t,e),Oo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!be)return He(t),null}else 2*cn()-r.renderingStartTime>ef&&n!==536870912&&(t.flags|=128,a=!0,Oo(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=cn(),e.sibling=null,n=nt.current,ze(nt,a?n&1|2:n&1),be&&gr(t,r.treeForkCount),e):(He(t),null);case 22:case 23:return ln(t),xg(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&Fu(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&&wt(Za),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_r(ot),He(t),null;case 25:return null;case 30:return null}throw Error(I(156,t.tag))}function W$(e,t){switch(mg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _r(ot),fl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zc(t),null;case 31:if(t.memoizedState!==null){if(ln(t),t.alternate===null)throw Error(I(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ln(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wt(nt),null;case 4:return fl(),null;case 10:return _r(t.type),null;case 22:case 23:return ln(t),xg(),e!==null&&wt(Za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _r(ot),null;case 25:return null;default:return null}}function p_(e,t){switch(mg(t),t.tag){case 3:_r(ot),fl();break;case 26:case 27:case 5:zc(t);break;case 4:fl();break;case 31:t.memoizedState!==null&&ln(t);break;case 13:ln(t);break;case 19:wt(nt);break;case 10:_r(t.type);break;case 22:case 23:ln(t),xg(),e!==null&&wt(Za);break;case 24:_r(ot)}}function gu(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,l=n.inst;r=i(),l.destroy=r}n=n.next}while(n!==a)}}catch(o){_e(t,t.return,o)}}function Sa(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 l=r.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,a=t;var s=n,u=o;try{u()}catch(d){_e(a,s,d)}}}r=r.next}while(r!==i)}}catch(d){_e(t,t.return,d)}}function m_(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{OA(t,n)}catch(r){_e(e,e.return,r)}}}function y_(e,t,n){n.props=si(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){_e(e,t,r)}}function es(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 Qn(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 v_(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 pp(e,t,n){try{var r=e.stateNode;gR(r,e.type,n,t),r[Qt]=t}catch(a){_e(e,e.return,a)}}function g_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Oa(e.type)||e.tag===4}function mp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g_(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&&Oa(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 Fm(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=Sr));else if(r!==4&&(r===27&&Oa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Fm(e,t,n),e=e.sibling;e!==null;)Fm(e,t,n),e=e.sibling}function Jc(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&&Oa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function b_(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);$t(t,r,n),t[Tt]=e,t[Qt]=n}catch(i){_e(e,e.return,i)}}var br=!1,lt=!1,yp=!1,vx=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Z$(e,t){if(e=e.containerInfo,Jm=ff,e=lA(e),cg(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 l=0,o=-1,s=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||a!==0&&f.nodeType!==3||(o=l+a),f!==i||r!==0&&f.nodeType!==3||(s=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===a&&(o=l),h===i&&++d===r&&(s=l),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ey={focusedElem:e,selectionRange:n},ff=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,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 S=si(n.type,a);e=r.getSnapshotBeforeUpdate(S,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(g){_e(n,n.return,g)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ny(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ny(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(I(163))}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}}function x_(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:pr(e,n),r&4&&gu(5,n);break;case 1:if(pr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){_e(n,n.return,l)}else{var a=si(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){_e(n,n.return,l)}}r&64&&m_(n),r&512&&es(n,n.return);break;case 3:if(pr(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{OA(e,t)}catch(l){_e(n,n.return,l)}}break;case 27:t===null&&r&4&&b_(n);case 26:case 5:pr(e,n),t===null&&r&4&&v_(n),r&512&&es(n,n.return);break;case 12:pr(e,n);break;case 31:pr(e,n),r&4&&j_(e,n);break;case 13:pr(e,n),r&4&&O_(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=lR.bind(null,n),_R(e,n))));break;case 22:if(r=n.memoizedState!==null||br,!r){t=t!==null&&t.memoizedState!==null||lt,a=br;var i=lt;br=r,(lt=t)&&!i?yr(e,n,(n.subtreeFlags&8772)!==0):pr(e,n),br=a,lt=i}break;case 30:break;default:pr(e,n)}}function S_(e){var t=e.alternate;t!==null&&(e.alternate=null,S_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ag(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 Ke=null,Vt=!1;function hr(e,t,n){for(n=n.child;n!==null;)w_(e,t,n),n=n.sibling}function w_(e,t,n){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(fu,n)}catch{}switch(n.tag){case 26:lt||Qn(n,t),hr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lt||Qn(n,t);var r=Ke,a=Vt;Oa(n.type)&&(Ke=n.stateNode,Vt=!1),hr(e,t,n),as(n.stateNode),Ke=r,Vt=a;break;case 5:lt||Qn(n,t);case 6:if(r=Ke,a=Vt,Ke=null,hr(e,t,n),Ke=r,Vt=a,Ke!==null)if(Vt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(n.stateNode)}catch(i){_e(n,t,i)}else try{Ke.removeChild(n.stateNode)}catch(i){_e(n,t,i)}break;case 18:Ke!==null&&(Vt?(e=Ke,Cx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Sl(e)):Cx(Ke,n.stateNode));break;case 4:r=Ke,a=Vt,Ke=n.stateNode.containerInfo,Vt=!0,hr(e,t,n),Ke=r,Vt=a;break;case 0:case 11:case 14:case 15:Sa(2,n,t),lt||Sa(4,n,t),hr(e,t,n);break;case 1:lt||(Qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&y_(n,t,r)),hr(e,t,n);break;case 21:hr(e,t,n);break;case 22:lt=(r=lt)||n.memoizedState!==null,hr(e,t,n),lt=r;break;default:hr(e,t,n)}}function j_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Sl(e)}catch(n){_e(t,t.return,n)}}}function O_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Sl(e)}catch(n){_e(t,t.return,n)}}function Q$(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vx),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vx),t;default:throw Error(I(435,e.tag))}}function Vu(e,t){var n=Q$(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=oR.bind(null,e,r);r.then(a,a)}})}function Yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 27:if(Oa(o.type)){Ke=o.stateNode,Vt=!1;break e}break;case 5:Ke=o.stateNode,Vt=!1;break e;case 3:case 4:Ke=o.stateNode.containerInfo,Vt=!0;break e}o=o.return}if(Ke===null)throw Error(I(160));w_(i,l,a),Ke=null,Vt=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)A_(t,e),t=t.sibling}var Un=null;function A_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Ft(e),r&4&&(Sa(3,e,e.return),gu(3,e),Sa(5,e,e.return));break;case 1:Yt(t,e),Ft(e),r&512&&(lt||n===null||Qn(n,n.return)),r&64&&br&&(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=Un;if(Yt(t,e),Ft(e),r&512&&(lt||n===null||Qn(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[pu]||i[Tt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),$t(i,r,n),i[Tt]=e,xt(i),r=i;break e;case"link":var l=Lx("link","href",a).get(r+(n.href||""));if(l){for(var o=0;o<l.length;o++)if(i=l[o],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)){l.splice(o,1);break t}}i=a.createElement(r),$t(i,r,n),a.head.appendChild(i);break;case"meta":if(l=Lx("meta","content",a).get(r+(n.content||""))){for(o=0;o<l.length;o++)if(i=l[o],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)){l.splice(o,1);break t}}i=a.createElement(r),$t(i,r,n),a.head.appendChild(i);break;default:throw Error(I(468,r))}i[Tt]=e,xt(i),r=i}e.stateNode=r}else Bx(a,e.type,e.stateNode);else e.stateNode=kx(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?Bx(a,e.type,e.stateNode):kx(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&pp(e,e.memoizedProps,n.memoizedProps)}break;case 27:Yt(t,e),Ft(e),r&512&&(lt||n===null||Qn(n,n.return)),n!==null&&r&4&&pp(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Yt(t,e),Ft(e),r&512&&(lt||n===null||Qn(n,n.return)),e.flags&32){a=e.stateNode;try{hl(a,"")}catch(S){_e(e,e.return,S)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,pp(e,a,n!==null?n.memoizedProps:a)),r&1024&&(yp=!0);break;case 6:if(Yt(t,e),Ft(e),r&4){if(e.stateNode===null)throw Error(I(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(S){_e(e,e.return,S)}}break;case 3:if(Tc=null,a=Un,Un=sf(t.containerInfo),Yt(t,e),Un=a,Ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Sl(t.containerInfo)}catch(S){_e(e,e.return,S)}yp&&(yp=!1,__(e));break;case 4:r=Un,Un=sf(e.stateNode.containerInfo),Yt(t,e),Ft(e),Un=r;break;case 12:Yt(t,e),Ft(e);break;case 31:Yt(t,e),Ft(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vu(e,r)));break;case 13:Yt(t,e),Ft(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($d=cn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vu(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=br,d=lt;if(br=u||a,lt=d||s,Yt(t,e),lt=d,br=u,Ft(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||br||lt||za(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(i=s.stateNode,a)l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{o=s.stateNode;var f=s.memoizedProps.style,h=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(S){_e(s,s.return,S)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(S){_e(s,s.return,S)}}}else if(t.tag===18){if(n===null){s=t;try{var p=s.stateNode;a?Mx(p,!0):Mx(s.stateNode,!1)}catch(S){_e(s,s.return,S)}}}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,Vu(e,n))));break;case 19:Yt(t,e),Ft(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vu(e,r)));break;case 30:break;case 21:break;default:Yt(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(g_(r)){n=r;break}r=r.return}if(n==null)throw Error(I(160));switch(n.tag){case 27:var a=n.stateNode,i=mp(e);Jc(e,i,a);break;case 5:var l=n.stateNode;n.flags&32&&(hl(l,""),n.flags&=-33);var o=mp(e);Jc(e,o,l);break;case 3:case 4:var s=n.stateNode.containerInfo,u=mp(e);Fm(e,u,s);break;default:throw Error(I(161))}}catch(d){_e(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function __(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;__(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)x_(e,t.alternate,t),t=t.sibling}function za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Sa(4,t,t.return),za(t);break;case 1:Qn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&y_(t,t.return,n),za(t);break;case 27:as(t.stateNode);case 26:case 5:Qn(t,t.return),za(t);break;case 22:t.memoizedState===null&&za(t);break;case 30:za(t);break;default:za(t)}e=e.sibling}}function yr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,l=i.flags;switch(i.tag){case 0:case 11:case 15:yr(a,i,n),gu(4,i);break;case 1:if(yr(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 o=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)jA(s[a],o)}catch(u){_e(r,r.return,u)}}n&&l&64&&m_(i),es(i,i.return);break;case 27:b_(i);case 26:case 5:yr(a,i,n),n&&r===null&&l&4&&v_(i),es(i,i.return);break;case 12:yr(a,i,n);break;case 31:yr(a,i,n),n&&l&4&&j_(a,i);break;case 13:yr(a,i,n),n&&l&4&&O_(a,i);break;case 22:i.memoizedState===null&&yr(a,i,n),es(i,i.return);break;case 30:break;default:yr(a,i,n)}t=t.sibling}}function kg(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&&yu(n))}function Lg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yu(e))}function zn(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)E_(e,t,n,r),t=t.sibling}function E_(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:zn(e,t,n,r),a&2048&&gu(9,t);break;case 1:zn(e,t,n,r);break;case 3:zn(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&&yu(e)));break;case 12:if(a&2048){zn(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,l=i.id,o=i.onPostCommit;typeof o=="function"&&o(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){_e(t,t.return,s)}}else zn(e,t,n,r);break;case 31:zn(e,t,n,r);break;case 13:zn(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,t.memoizedState!==null?i._visibility&2?zn(e,t,n,r):ts(e,t):i._visibility&2?zn(e,t,n,r):(i._visibility|=2,Pi(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&kg(l,t);break;case 24:zn(e,t,n,r),a&2048&&Lg(t.alternate,t);break;default:zn(e,t,n,r)}}function Pi(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,l=t,o=n,s=r,u=l.flags;switch(l.tag){case 0:case 11:case 15:Pi(i,l,o,s,a),gu(8,l);break;case 23:break;case 22:var d=l.stateNode;l.memoizedState!==null?d._visibility&2?Pi(i,l,o,s,a):ts(i,l):(d._visibility|=2,Pi(i,l,o,s,a)),a&&u&2048&&kg(l.alternate,l);break;case 24:Pi(i,l,o,s,a),a&&u&2048&&Lg(l.alternate,l);break;default:Pi(i,l,o,s,a)}t=t.sibling}}function ts(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:ts(n,r),a&2048&&kg(r.alternate,r);break;case 24:ts(n,r),a&2048&&Lg(r.alternate,r);break;default:ts(n,r)}t=t.sibling}}var qo=8192;function Ni(e,t,n){if(e.subtreeFlags&qo)for(e=e.child;e!==null;)T_(e,t,n),e=e.sibling}function T_(e,t,n){switch(e.tag){case 26:Ni(e,t,n),e.flags&qo&&e.memoizedState!==null&&BR(n,Un,e.memoizedState,e.memoizedProps);break;case 5:Ni(e,t,n);break;case 3:case 4:var r=Un;Un=sf(e.stateNode.containerInfo),Ni(e,t,n),Un=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=qo,qo=16777216,Ni(e,t,n),qo=r):Ni(e,t,n));break;default:Ni(e,t,n)}}function N_(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 Ao(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];bt=r,M_(r,e)}N_(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)C_(e),e=e.sibling}function C_(e){switch(e.tag){case 0:case 11:case 15:Ao(e),e.flags&2048&&Sa(9,e,e.return);break;case 3:Ao(e);break;case 12:Ao(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_c(e)):Ao(e);break;default:Ao(e)}}function _c(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];bt=r,M_(r,e)}N_(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sa(8,t,t.return),_c(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,_c(t));break;default:_c(t)}e=e.sibling}}function M_(e,t){for(;bt!==null;){var n=bt;switch(n.tag){case 0:case 11:case 15:Sa(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:yu(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,bt=r;else e:for(n=e;bt!==null;){r=bt;var a=r.sibling,i=r.return;if(S_(r),r===n){bt=null;break e}if(a!==null){a.return=i,bt=a;break e}bt=i}}}var J$={getCacheForType:function(e){var t=Mt(ot),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Mt(ot).controller.signal}},eR=typeof WeakMap=="function"?WeakMap:Map,Se=0,ke=null,ve=null,ge=0,Ae=0,rn=null,aa=!1,Jl=!1,Bg=!1,Dr=0,et=0,wa=0,Ja=0,zg=0,un=0,vl=0,ns=null,Kt=null,Vm=!1,$d=0,$_=0,ef=1/0,tf=null,da=null,ht=0,ha=null,gl=null,Er=0,Km=0,Xm=null,R_=null,rs=0,Wm=null;function hn(){return Se&2&&ge!==0?ge&-ge:te.T!==null?Ug():HO()}function P_(){if(un===0)if(!(ge&536870912)||be){var e=zu;zu<<=1,!(zu&3932160)&&(zu=262144),un=e}else un=536870912;return e=yn.current,e!==null&&(e.flags|=32),un}function Wt(e,t,n){(e===ke&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(bl(e,0),ia(e,ge,un,!1)),hu(e,n),(!(Se&2)||e!==ke)&&(e===ke&&(!(Se&2)&&(Ja|=n),et===4&&ia(e,ge,un,!1)),ir(e))}function D_(e,t,n){if(Se&6)throw Error(I(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||du(e,t),a=r?rR(e,t):vp(e,t,!0),i=r;do{if(a===0){Jl&&!r&&ia(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!tR(n)){a=vp(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var o=e;a=ns;var s=o.current.memoizedState.isDehydrated;if(s&&(bl(o,l).flags|=256),l=vp(o,l,!1),l!==2){if(Bg&&!s){o.errorRecoveryDisabledLanes|=i,Ja|=i,a=4;break e}i=Kt,Kt=a,i!==null&&(Kt===null?Kt=i:Kt.push.apply(Kt,i))}a=l}if(i=!1,a!==2)continue}}if(a===1){bl(e,0),ia(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(I(345));case 4:if((t&4194048)!==t)break;case 6:ia(r,t,un,!aa);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(I(329))}if((t&62914560)===t&&(a=$d+300-cn(),10<a)){if(ia(r,t,un,!aa),Sd(r,0,!0)!==0)break e;Er=t,r.timeoutHandle=tE(gx.bind(null,r,n,Kt,tf,Vm,t,un,Ja,vl,aa,i,"Throttled",-0,0),a);break e}gx(r,n,Kt,tf,Vm,t,un,Ja,vl,aa,i,null,-0,0)}}break}while(!0);ir(e)}function gx(e,t,n,r,a,i,l,o,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:Sr},T_(t,i,f);var S=(i&62914560)===i?$d-cn():(i&4194048)===i?$_-cn():0;if(S=zR(f,S),S!==null){Er=i,e.cancelPendingCommit=S(xx.bind(null,e,t,i,n,r,a,l,o,s,d,f,null,h,p)),ia(e,i,l,!u);return}}xx(e,t,i,n,r,a,l,o,s)}function tR(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(!mn(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 ia(e,t,n,r){t&=~zg,t&=~Ja,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-dn(a),l=1<<i;r[i]=-1,a&=~l}n!==0&&zO(e,n,t)}function Rd(){return Se&6?!0:(bu(0),!1)}function Ig(){if(ve!==null){if(Ae===0)var e=ve.return;else e=ve,wr=xi=null,Ag(e),il=null,vs=0,e=ve;for(;e!==null;)p_(e.alternate,e),e=e.return;ve=null}}function bl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,SR(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Er=0,Ig(),ke=e,ve=n=Ar(e.current,null),ge=t,Ae=0,rn=null,aa=!1,Jl=du(e,t),Bg=!1,vl=un=zg=Ja=wa=et=0,Kt=ns=null,Vm=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-dn(r),i=1<<a;t|=e[a],r&=~i}return Dr=t,Ad(),n}function k_(e,t){ce=null,te.H=bs,t===Ql||t===Ed?(t=W0(),Ae=3):t===gg?(t=W0(),Ae=4):Ae=t===Pg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,ve===null&&(et=1,Zc(e,_n(t,e.current)))}function L_(){var e=yn.current;return e===null?!0:(ge&4194048)===ge?Cn===null:(ge&62914560)===ge||ge&536870912?e===Cn:!1}function B_(){var e=te.H;return te.H=bs,e===null?bs:e}function z_(){var e=te.A;return te.A=J$,e}function nf(){et=4,aa||(ge&4194048)!==ge&&yn.current!==null||(Jl=!0),!(wa&134217727)&&!(Ja&134217727)||ke===null||ia(ke,ge,un,!1)}function vp(e,t,n){var r=Se;Se|=2;var a=B_(),i=z_();(ke!==e||ge!==t)&&(tf=null,bl(e,t)),t=!1;var l=et;e:do try{if(Ae!==0&&ve!==null){var o=ve,s=rn;switch(Ae){case 8:Ig(),l=6;break e;case 3:case 2:case 9:case 6:yn.current===null&&(t=!0);var u=Ae;if(Ae=0,rn=null,Ki(e,o,s,u),n&&Jl){l=0;break e}break;default:u=Ae,Ae=0,rn=null,Ki(e,o,s,u)}}nR(),l=et;break}catch(d){k_(e,d)}while(!0);return t&&e.shellSuspendCounter++,wr=xi=null,Se=r,te.H=a,te.A=i,ve===null&&(ke=null,ge=0,Ad()),l}function nR(){for(;ve!==null;)I_(ve)}function rR(e,t){var n=Se;Se|=2;var r=B_(),a=z_();ke!==e||ge!==t?(tf=null,ef=cn()+500,bl(e,t)):Jl=du(e,t);e:do try{if(Ae!==0&&ve!==null){t=ve;var i=rn;t:switch(Ae){case 1:Ae=0,rn=null,Ki(e,t,i,1);break;case 2:case 9:if(X0(i)){Ae=0,rn=null,bx(t);break}t=function(){Ae!==2&&Ae!==9||ke!==e||(Ae=7),ir(e)},i.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:X0(i)?(Ae=0,rn=null,bx(t)):(Ae=0,rn=null,Ki(e,t,i,7));break;case 5:var l=null;switch(ve.tag){case 26:l=ve.memoizedState;case 5:case 27:var o=ve;if(l?lE(l):o.stateNode.complete){Ae=0,rn=null;var s=o.sibling;if(s!==null)ve=s;else{var u=o.return;u!==null?(ve=u,Pd(u)):ve=null}break t}}Ae=0,rn=null,Ki(e,t,i,5);break;case 6:Ae=0,rn=null,Ki(e,t,i,6);break;case 8:Ig(),et=6;break e;default:throw Error(I(462))}}aR();break}catch(d){k_(e,d)}while(!0);return wr=xi=null,te.H=r,te.A=a,Se=n,ve!==null?0:(ke=null,ge=0,Ad(),et)}function aR(){for(;ve!==null&&!EM();)I_(ve)}function I_(e){var t=h_(e.alternate,e,Dr);e.memoizedProps=e.pendingProps,t===null?Pd(e):ve=t}function bx(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=dx(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=dx(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Ag(t);default:p_(n,t),t=ve=pA(t,Dr),t=h_(n,t,Dr)}e.memoizedProps=e.pendingProps,t===null?Pd(e):ve=t}function Ki(e,t,n,r){wr=xi=null,Ag(t),il=null,vs=0;var a=t.return;try{if(F$(e,a,t,n,ge)){et=1,Zc(e,_n(n,e.current)),ve=null;return}}catch(i){if(a!==null)throw ve=a,i;et=1,Zc(e,_n(n,e.current)),ve=null;return}t.flags&32768?(be||r===1?e=!0:Jl||ge&536870912?e=!1:(aa=e=!0,(r===2||r===9||r===3||r===6)&&(r=yn.current,r!==null&&r.tag===13&&(r.flags|=16384))),U_(t,e)):Pd(t)}function Pd(e){var t=e;do{if(t.flags&32768){U_(t,aa);return}e=t.return;var n=X$(t.alternate,t,Dr);if(n!==null){ve=n;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);et===0&&(et=5)}function U_(e,t){do{var n=W$(e.alternate,e);if(n!==null){n.flags&=32767,ve=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=n}while(e!==null);et=6,ve=null}function xx(e,t,n,r,a,i,l,o,s){e.cancelPendingCommit=null;do Dd();while(ht!==0);if(Se&6)throw Error(I(327));if(t!==null){if(t===e.current)throw Error(I(177));if(i=t.lanes|t.childLanes,i|=fg,LM(e,n,i,l,o,s),e===ke&&(ve=ke=null,ge=0),gl=t,ha=e,Er=n,Km=i,Xm=a,R_=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,sR(Ic,function(){return F_(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=te.T,te.T=null,a=we.p,we.p=2,l=Se,Se|=4;try{Z$(e,t,n)}finally{Se=l,we.p=a,te.T=r}}ht=1,H_(),q_(),G_()}}function H_(){if(ht===1){ht=0;var e=ha,t=gl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=te.T,te.T=null;var r=we.p;we.p=2;var a=Se;Se|=4;try{A_(t,e);var i=ey,l=lA(e.containerInfo),o=i.focusedElem,s=i.selectionRange;if(l!==o&&o&&o.ownerDocument&&iA(o.ownerDocument.documentElement,o)){if(s!==null&&cg(o)){var u=s.start,d=s.end;if(d===void 0&&(d=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(d,o.value.length);else{var f=o.ownerDocument||document,h=f&&f.defaultView||window;if(h.getSelection){var p=h.getSelection(),S=o.textContent.length,g=Math.min(s.start,S),v=s.end===void 0?g:Math.min(s.end,S);!p.extend&&g>v&&(l=v,v=g,g=l);var m=H0(o,g),y=H0(o,v);if(m&&y&&(p.rangeCount!==1||p.anchorNode!==m.node||p.anchorOffset!==m.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=f.createRange();b.setStart(m.node,m.offset),p.removeAllRanges(),g>v?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(f=[],p=o;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var w=f[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}ff=!!Jm,ey=Jm=null}finally{Se=a,we.p=r,te.T=n}}e.current=t,ht=2}}function q_(){if(ht===2){ht=0;var e=ha,t=gl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=te.T,te.T=null;var r=we.p;we.p=2;var a=Se;Se|=4;try{x_(e,t.alternate,t)}finally{Se=a,we.p=r,te.T=n}}ht=3}}function G_(){if(ht===4||ht===3){ht=0,TM();var e=ha,t=gl,n=Er,r=R_;t.subtreeFlags&10256||t.flags&10256?ht=5:(ht=0,gl=ha=null,Y_(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(da=null),rg(n),t=t.stateNode,fn&&typeof fn.onCommitFiberRoot=="function")try{fn.onCommitFiberRoot(fu,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=te.T,a=we.p,we.p=2,te.T=null;try{for(var i=e.onRecoverableError,l=0;l<r.length;l++){var o=r[l];i(o.value,{componentStack:o.stack})}}finally{te.T=t,we.p=a}}Er&3&&Dd(),ir(e),a=e.pendingLanes,n&261930&&a&42?e===Wm?rs++:(rs=0,Wm=e):rs=0,bu(0)}}function Y_(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yu(t)))}function Dd(){return H_(),q_(),G_(),F_()}function F_(){if(ht!==5)return!1;var e=ha,t=Km;Km=0;var n=rg(Er),r=te.T,a=we.p;try{we.p=32>n?32:n,te.T=null,n=Xm,Xm=null;var i=ha,l=Er;if(ht=0,gl=ha=null,Er=0,Se&6)throw Error(I(331));var o=Se;if(Se|=4,C_(i.current),E_(i,i.current,l,n),Se=o,bu(0,!1),fn&&typeof fn.onPostCommitFiberRoot=="function")try{fn.onPostCommitFiberRoot(fu,i)}catch{}return!0}finally{we.p=a,te.T=r,Y_(e,t)}}function Sx(e,t,n){t=_n(n,t),t=qm(e.stateNode,t,2),e=fa(e,t,2),e!==null&&(hu(e,2),ir(e))}function _e(e,t,n){if(e.tag===3)Sx(e,e,n);else for(;t!==null;){if(t.tag===3){Sx(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(da===null||!da.has(r))){e=_n(n,e),n=o_(2),r=fa(t,n,2),r!==null&&(s_(n,r,t,e),hu(r,2),ir(r));break}}t=t.return}}function gp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eR;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)||(Bg=!0,a.add(n),e=iR.bind(null,e,t,n),t.then(e,e))}function iR(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ke===e&&(ge&n)===n&&(et===4||et===3&&(ge&62914560)===ge&&300>cn()-$d?!(Se&2)&&bl(e,0):zg|=n,vl===ge&&(vl=0)),ir(e)}function V_(e,t){t===0&&(t=BO()),e=bi(e,t),e!==null&&(hu(e,t),ir(e))}function lR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),V_(e,n)}function oR(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(I(314))}r!==null&&r.delete(t),V_(e,n)}function sR(e,t){return tg(e,t)}var rf=null,Di=null,Zm=!1,af=!1,bp=!1,la=0;function ir(e){e!==Di&&e.next===null&&(Di===null?rf=Di=e:Di=Di.next=e),af=!0,Zm||(Zm=!0,cR())}function bu(e,t){if(!bp&&af){bp=!0;do for(var n=!1,r=rf;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var l=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-dn(42|e)+1)-1,i&=a&~(l&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,wx(r,i))}else i=ge,i=Sd(r,r===ke?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||du(r,i)||(n=!0,wx(r,i));r=r.next}while(n);bp=!1}}function uR(){K_()}function K_(){af=Zm=!1;var e=0;la!==0&&xR()&&(e=la);for(var t=cn(),n=null,r=rf;r!==null;){var a=r.next,i=X_(r,t);i===0?(r.next=null,n===null?rf=a:n.next=a,a===null&&(Di=n)):(n=r,(e!==0||i&3)&&(af=!0)),r=a}ht!==0&&ht!==5||bu(e),la!==0&&(la=0)}function X_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var l=31-dn(i),o=1<<l,s=a[l];s===-1?(!(o&n)||o&r)&&(a[l]=kM(o,t)):s<=t&&(e.expiredLanes|=o),i&=~o}if(t=ke,n=ge,n=Sd(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Vh(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||du(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Vh(r),rg(n)){case 2:case 8:n=kO;break;case 32:n=Ic;break;case 268435456:n=LO;break;default:n=Ic}return r=W_.bind(null,e),n=tg(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Vh(r),e.callbackPriority=2,e.callbackNode=null,2}function W_(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Dd()&&e.callbackNode!==n)return null;var r=ge;return r=Sd(e,e===ke?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(D_(e,r,t),X_(e,cn()),e.callbackNode!=null&&e.callbackNode===n?W_.bind(null,e):null)}function wx(e,t){if(Dd())return null;D_(e,t,!0)}function cR(){wR(function(){Se&6?tg(DO,uR):K_()})}function Ug(){if(la===0){var e=pl;e===0&&(e=Bu,Bu<<=1,!(Bu&261888)&&(Bu=256)),la=e}return la}function jx(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vc(""+e)}function Ox(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 fR(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=jx((a[Qt]||null).action),l=r.submitter;l&&(t=(t=l[Qt]||null)?jx(t.formAction):l.getAttribute("formAction"),t!==null&&(i=t,l=null));var o=new wd("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(la!==0){var s=l?Ox(a,l):new FormData(a);Um(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(o.preventDefault(),s=l?Ox(a,l):new FormData(a),Um(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var xp=0;xp<Nm.length;xp++){var Sp=Nm[xp],dR=Sp.toLowerCase(),hR=Sp[0].toUpperCase()+Sp.slice(1);Vn(dR,"on"+hR)}Vn(sA,"onAnimationEnd");Vn(uA,"onAnimationIteration");Vn(cA,"onAnimationStart");Vn("dblclick","onDoubleClick");Vn("focusin","onFocus");Vn("focusout","onBlur");Vn(N$,"onTransitionRun");Vn(C$,"onTransitionStart");Vn(M$,"onTransitionCancel");Vn(fA,"onTransitionEnd");dl("onMouseEnter",["mouseout","mouseover"]);dl("onMouseLeave",["mouseout","mouseover"]);dl("onPointerEnter",["pointerout","pointerover"]);dl("onPointerLeave",["pointerout","pointerover"]);yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yi("onBeforeInput",["compositionend","keypress","textInput","paste"]);yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xs="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(" "),pR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xs));function Z_(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 l=r.length-1;0<=l;l--){var o=r[l],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=u;try{i(a)}catch(d){Hc(d)}a.currentTarget=null,i=s}else for(l=0;l<r.length;l++){if(o=r[l],s=o.instance,u=o.currentTarget,o=o.listener,s!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=u;try{i(a)}catch(d){Hc(d)}a.currentTarget=null,i=s}}}}function ye(e,t){var n=t[Sm];n===void 0&&(n=t[Sm]=new Set);var r=e+"__bubble";n.has(r)||(Q_(t,e,2,!1),n.add(r))}function wp(e,t,n){var r=0;t&&(r|=4),Q_(n,e,r,t)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function Hg(e){if(!e[Ku]){e[Ku]=!0,qO.forEach(function(n){n!=="selectionchange"&&(pR.has(n)||wp(n,!1,e),wp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ku]||(t[Ku]=!0,wp("selectionchange",!1,t))}}function Q_(e,t,n,r){switch(fE(t)){case 2:var a=HR;break;case 8:a=qR;break;default:a=Fg}n=a.bind(null,t,n,e),a=void 0,!_m||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 jp(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===a)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;o!==null;){if(l=zi(o),l===null)return;if(s=l.tag,s===5||s===6||s===26||s===27){r=i=l;continue e}o=o.parentNode}}r=r.return}ZO(function(){var u=i,d=lg(n),f=[];e:{var h=dA.get(e);if(h!==void 0){var p=wd,S=e;switch(e){case"keypress":if(bc(n)===0)break e;case"keydown":case"keyup":p=o$;break;case"focusin":S="focus",p=Qh;break;case"focusout":S="blur",p=Qh;break;case"beforeblur":case"afterblur":p=Qh;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=$0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=XM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=c$;break;case sA:case uA:case cA:p=QM;break;case fA:p=d$;break;case"scroll":case"scrollend":p=VM;break;case"wheel":p=p$;break;case"copy":case"cut":case"paste":p=e$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=P0;break;case"toggle":case"beforetoggle":p=y$}var g=(t&4)!==0,v=!g&&(e==="scroll"||e==="scrollend"),m=g?h!==null?h+"Capture":null:h;g=[];for(var y=u,b;y!==null;){var w=y;if(b=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||b===null||m===null||(w=ds(y,m),w!=null&&g.push(Ss(y,w,b))),v)break;y=y.return}0<g.length&&(h=new p(h,S,null,n,d),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Am&&(S=n.relatedTarget||n.fromElement)&&(zi(S)||S[Xl]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(S=n.relatedTarget||n.toElement,p=u,S=S?zi(S):null,S!==null&&(v=cu(S),g=S.tag,S!==v||g!==5&&g!==27&&g!==6)&&(S=null)):(p=null,S=u),p!==S)){if(g=$0,w="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=P0,w="onPointerLeave",m="onPointerEnter",y="pointer"),v=p==null?h:Uo(p),b=S==null?h:Uo(S),h=new g(w,y+"leave",p,n,d),h.target=v,h.relatedTarget=b,w=null,zi(d)===u&&(g=new g(m,y+"enter",S,n,d),g.target=b,g.relatedTarget=v,w=g),v=w,p&&S)t:{for(g=mR,m=p,y=S,b=0,w=m;w;w=g(w))b++;w=0;for(var x=y;x;x=g(x))w++;for(;0<b-w;)m=g(m),b--;for(;0<w-b;)y=g(y),w--;for(;b--;){if(m===y||y!==null&&m===y.alternate){g=m;break t}m=g(m),y=g(y)}g=null}else g=null;p!==null&&Ax(f,h,p,g,!1),S!==null&&v!==null&&Ax(f,v,S,g,!0)}}e:{if(h=u?Uo(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var j=B0;else if(L0(h))if(rA)j=_$;else{j=O$;var A=j$}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&ig(u.elementType)&&(j=B0):j=A$;if(j&&(j=j(e,u))){nA(f,j,n,d);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&Om(h,"number",h.value)}switch(A=u?Uo(u):window,e){case"focusin":(L0(A)||A.contentEditable==="true")&&(Hi=A,Em=u,Ko=null);break;case"focusout":Ko=Em=Hi=null;break;case"mousedown":Tm=!0;break;case"contextmenu":case"mouseup":case"dragend":Tm=!1,q0(f,n,d);break;case"selectionchange":if(T$)break;case"keydown":case"keyup":q0(f,n,d)}var _;if(ug)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Ui?eA(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(JO&&n.locale!=="ko"&&(Ui||E!=="onCompositionStart"?E==="onCompositionEnd"&&Ui&&(_=QO()):(ra=d,og="value"in ra?ra.value:ra.textContent,Ui=!0)),A=lf(u,E),0<A.length&&(E=new R0(E,e,null,n,d),f.push({event:E,listeners:A}),_?E.data=_:(_=tA(n),_!==null&&(E.data=_)))),(_=g$?b$(e,n):x$(e,n))&&(E=lf(u,"onBeforeInput"),0<E.length&&(A=new R0("onBeforeInput","beforeinput",null,n,d),f.push({event:A,listeners:E}),A.data=_)),fR(f,e,u,n,d)}Z_(f,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lf(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=ds(e,n),a!=null&&r.unshift(Ss(e,a,i)),a=ds(e,t),a!=null&&r.push(Ss(e,a,i))),e.tag===3)return r;e=e.return}return[]}function mR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ax(e,t,n,r,a){for(var i=t._reactName,l=[];n!==null&&n!==r;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===r)break;o!==5&&o!==26&&o!==27||u===null||(s=u,a?(u=ds(n,i),u!=null&&l.unshift(Ss(n,u,s))):a||(u=ds(n,i),u!=null&&l.push(Ss(n,u,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var yR=/\r\n?/g,vR=/\u0000|\uFFFD/g;function _x(e){return(typeof e=="string"?e:""+e).replace(yR,`
`).replace(vR,"")}function J_(e,t){return t=_x(t),_x(e)===t}function $e(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||hl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&hl(e,""+r);break;case"className":Uu(e,"class",r);break;case"tabIndex":Uu(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Uu(e,n,r);break;case"style":WO(e,r,i);break;case"data":if(t!=="object"){Uu(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=vc(""+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"&&$e(e,t,"name",a.name,a,null),$e(e,t,"formEncType",a.formEncType,a,null),$e(e,t,"formMethod",a.formMethod,a,null),$e(e,t,"formTarget",a.formTarget,a,null)):($e(e,t,"encType",a.encType,a,null),$e(e,t,"method",a.method,a,null),$e(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=vc(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Sr);break;case"onScroll":r!=null&&ye("scroll",e);break;case"onScrollEnd":r!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=vc(""+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":ye("beforetoggle",e),ye("toggle",e),yc(e,"popover",r);break;case"xlinkActuate":fr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":fr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":fr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":fr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":fr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":fr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":fr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":fr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":fr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":yc(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=YM.get(n)||n,yc(e,n,r))}}function Qm(e,t,n,r,a,i){switch(n){case"style":WO(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"children":typeof r=="string"?hl(e,r):(typeof r=="number"||typeof r=="bigint")&&hl(e,""+r);break;case"onScroll":r!=null&&ye("scroll",e);break;case"onScrollEnd":r!=null&&ye("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Sr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!GO.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[Qt]||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,""):yc(e,n,r)}}}function $t(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var l=n[i];if(l!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:$e(e,t,i,l,n,null)}}a&&$e(e,t,"srcSet",n.srcSet,n,null),r&&$e(e,t,"src",n.src,n,null);return;case"input":ye("invalid",e);var o=i=l=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":l=d;break;case"checked":s=d;break;case"defaultChecked":u=d;break;case"value":i=d;break;case"defaultValue":o=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(I(137,t));break;default:$e(e,t,r,d,n,null)}}VO(e,i,o,s,u,l,a,!1);return;case"select":ye("invalid",e),r=l=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":l=o;break;case"multiple":r=o;default:$e(e,t,a,o,n,null)}t=i,n=l,e.multiple=!!r,t!=null?nl(e,!!r,t,!1):n!=null&&nl(e,!!r,n,!0);return;case"textarea":ye("invalid",e),i=a=r=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":r=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(I(91));break;default:$e(e,t,l,o,n,null)}XO(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:$e(e,t,s,r,n,null)}return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(r=0;r<xs.length;r++)ye(xs[r],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:$e(e,t,u,r,n,null)}return;default:if(ig(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Qm(e,t,d,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&$e(e,t,o,r,n,null))}function gR(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,l=null,o=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)||$e(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":l=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(I(137,t));break;default:p!==f&&$e(e,t,h,p,r,f)}}jm(e,l,o,s,u,d,i,a);return;case"select":p=l=o=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)||$e(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":o=i;break;case"multiple":l=i;default:i!==s&&$e(e,t,a,i,r,s)}t=o,n=l,r=p,h!=null?nl(e,!!n,h,!1):!!r!=!!n&&(t!=null?nl(e,!!n,t,!0):nl(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:$e(e,t,o,null,r,a)}for(l in r)if(a=r[l],i=n[l],r.hasOwnProperty(l)&&(a!=null||i!=null))switch(l){case"value":h=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(I(91));break;default:a!==i&&$e(e,t,l,a,r,i)}KO(e,h,p);return;case"option":for(var S in n)if(h=n[S],n.hasOwnProperty(S)&&h!=null&&!r.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:$e(e,t,S,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:$e(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 g in n)h=n[g],n.hasOwnProperty(g)&&h!=null&&!r.hasOwnProperty(g)&&$e(e,t,g,null,r,h);for(u in r)if(h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(h!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(I(137,t));break;default:$e(e,t,u,h,r,p)}return;default:if(ig(t)){for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!==void 0&&!r.hasOwnProperty(v)&&Qm(e,t,v,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||Qm(e,t,d,h,r,p);return}}for(var m in n)h=n[m],n.hasOwnProperty(m)&&h!=null&&!r.hasOwnProperty(m)&&$e(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||$e(e,t,f,h,r,p)}function Ex(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bR(){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,l=a.initiatorType,o=a.duration;if(i&&o&&Ex(l)){for(l=0,o=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>o)break;var d=s.transferSize,f=s.initiatorType;d&&Ex(f)&&(s=s.responseEnd,l+=d*(s<o?1:(o-u)/(s-u)))}if(--r,t+=8*(i+l)/(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 Jm=null,ey=null;function of(e){return e.nodeType===9?e:e.ownerDocument}function Tx(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 eE(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 ty(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 Op=null;function xR(){var e=window.event;return e&&e.type==="popstate"?e===Op?!1:(Op=e,!0):(Op=null,!1)}var tE=typeof setTimeout=="function"?setTimeout:void 0,SR=typeof clearTimeout=="function"?clearTimeout:void 0,Nx=typeof Promise=="function"?Promise:void 0,wR=typeof queueMicrotask=="function"?queueMicrotask:typeof Nx<"u"?function(e){return Nx.resolve(null).then(e).catch(jR)}:tE;function jR(e){setTimeout(function(){throw e})}function Oa(e){return e==="head"}function Cx(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),Sl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")as(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,as(n);for(var i=n.firstChild;i;){var l=i.nextSibling,o=i.nodeName;i[pu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=l}}else n==="body"&&as(e.ownerDocument.body);n=a}while(n);Sl(t)}function Mx(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 ny(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":ny(n),ag(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function OR(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[pu])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=Mn(e.nextSibling),e===null)break}return null}function AR(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mn(e.nextSibling),e===null))return null;return e}function nE(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Mn(e.nextSibling),e===null))return null;return e}function ry(e){return e.data==="$?"||e.data==="$~"}function ay(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _R(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 Mn(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 iy=null;function $x(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Mn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Rx(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 rE(e,t,n){switch(t=of(n),e){case"html":if(e=t.documentElement,!e)throw Error(I(452));return e;case"head":if(e=t.head,!e)throw Error(I(453));return e;case"body":if(e=t.body,!e)throw Error(I(454));return e;default:throw Error(I(451))}}function as(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ag(e)}var Rn=new Map,Px=new Set;function sf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ur=we.d;we.d={f:ER,r:TR,D:NR,C:CR,L:MR,m:$R,X:PR,S:RR,M:DR};function ER(){var e=Ur.f(),t=Rd();return e||t}function TR(e){var t=Wl(e);t!==null&&t.tag===5&&t.type==="form"?WA(t):Ur.r(e)}var eo=typeof document>"u"?null:document;function aE(e,t,n){var r=eo;if(r&&typeof t=="string"&&t){var a=An(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Px.has(a)||(Px.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),$t(t,"link",e),xt(t),r.head.appendChild(t)))}}function NR(e){Ur.D(e),aE("dns-prefetch",e,null)}function CR(e,t){Ur.C(e,t),aE("preconnect",e,t)}function MR(e,t,n){Ur.L(e,t,n);var r=eo;if(r&&e&&t){var a='link[rel="preload"][as="'+An(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+An(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+An(n.imageSizes)+'"]')):a+='[href="'+An(e)+'"]';var i=a;switch(t){case"style":i=xl(e);break;case"script":i=to(e)}Rn.has(i)||(e=Ve({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Rn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(xu(i))||t==="script"&&r.querySelector(Su(i))||(t=r.createElement("link"),$t(t,"link",e),xt(t),r.head.appendChild(t)))}}function $R(e,t){Ur.m(e,t);var n=eo;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+An(r)+'"][href="'+An(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=to(e)}if(!Rn.has(i)&&(e=Ve({rel:"modulepreload",href:e},t),Rn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Su(i)))return}r=n.createElement("link"),$t(r,"link",e),xt(r),n.head.appendChild(r)}}}function RR(e,t,n){Ur.S(e,t,n);var r=eo;if(r&&e){var a=tl(r).hoistableStyles,i=xl(e);t=t||"default";var l=a.get(i);if(!l){var o={loading:0,preload:null};if(l=r.querySelector(xu(i)))o.loading=5;else{e=Ve({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Rn.get(i))&&qg(e,n);var s=l=r.createElement("link");xt(s),$t(s,"link",e),s._p=new Promise(function(u,d){s.onload=u,s.onerror=d}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ec(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:o},a.set(i,l)}}}function PR(e,t){Ur.X(e,t);var n=eo;if(n&&e){var r=tl(n).hoistableScripts,a=to(e),i=r.get(a);i||(i=n.querySelector(Su(a)),i||(e=Ve({src:e,async:!0},t),(t=Rn.get(a))&&Gg(e,t),i=n.createElement("script"),xt(i),$t(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function DR(e,t){Ur.M(e,t);var n=eo;if(n&&e){var r=tl(n).hoistableScripts,a=to(e),i=r.get(a);i||(i=n.querySelector(Su(a)),i||(e=Ve({src:e,async:!0,type:"module"},t),(t=Rn.get(a))&&Gg(e,t),i=n.createElement("script"),xt(i),$t(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Dx(e,t,n,r){var a=(a=sa.current)?sf(a):null;if(!a)throw Error(I(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=xl(n.href),n=tl(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=xl(n.href);var i=tl(a).hoistableStyles,l=i.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=a.querySelector(xu(e)))&&!i._p&&(l.instance=i,l.state.loading=5),Rn.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},Rn.set(e,n),i||kR(a,e,n,l.state))),t&&r===null)throw Error(I(528,""));return l}if(t&&r!==null)throw Error(I(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=to(n),n=tl(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,e))}}function xl(e){return'href="'+An(e)+'"'}function xu(e){return'link[rel="stylesheet"]['+e+"]"}function iE(e){return Ve({},e,{"data-precedence":e.precedence,precedence:null})}function kR(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}),$t(t,"link",n),xt(t),e.head.appendChild(t))}function to(e){return'[src="'+An(e)+'"]'}function Su(e){return"script[async]"+e}function kx(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+An(n.href)+'"]');if(r)return t.instance=r,xt(r),r;var a=Ve({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),xt(r),$t(r,"style",a),Ec(r,n.precedence,e),t.instance=r;case"stylesheet":a=xl(n.href);var i=e.querySelector(xu(a));if(i)return t.state.loading|=4,t.instance=i,xt(i),i;r=iE(n),(a=Rn.get(a))&&qg(r,a),i=(e.ownerDocument||e).createElement("link"),xt(i);var l=i;return l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),$t(i,"link",r),t.state.loading|=4,Ec(i,n.precedence,e),t.instance=i;case"script":return i=to(n.src),(a=e.querySelector(Su(i)))?(t.instance=a,xt(a),a):(r=n,(a=Rn.get(i))&&(r=Ve({},n),Gg(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),xt(a),$t(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(I(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Ec(r,n.precedence,e));return t.instance}function Ec(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,l=0;l<r.length;l++){var o=r[l];if(o.dataset.precedence===t)i=o;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 qg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Gg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Tc=null;function Lx(e,t,n){if(Tc===null){var r=new Map,a=Tc=new Map;a.set(n,r)}else a=Tc,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[pu]||i[Tt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var l=i.getAttribute(t)||"";l=e+l;var o=r.get(l);o?o.push(i):r.set(l,[i])}}return r}function Bx(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function LR(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 lE(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function BR(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=xl(r.href),i=t.querySelector(xu(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=uf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,xt(i);return}i=t.ownerDocument||t,r=iE(r),(a=Rn.get(a))&&qg(r,a),i=i.createElement("link"),xt(i);var l=i;l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),$t(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=uf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ap=0;function zR(e,t){return e.stylesheets&&e.count===0&&Nc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Nc(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Ap===0&&(Ap=62500*bR());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Nc(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Ap?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cf=null;function Nc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cf=new Map,t.forEach(IR,e),cf=null,uf.call(e))}function IR(e,t){if(!(t.state.loading&4)){var n=cf.get(e);if(n)var r=n.get(null);else{n=new Map,cf.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var l=a[i];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),r=l)}r&&n.set(null,r)}a=t.instance,l=a.getAttribute("data-precedence"),i=n.get(l)||r,i===r&&n.set(null,a),n.set(l,a),this.count++,r=uf.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 ws={$$typeof:xr,Provider:null,Consumer:null,_currentValue:Xa,_currentValue2:Xa,_threadCount:0};function UR(e,t,n,r,a,i,l,o,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=Kh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kh(0),this.hiddenUpdates=Kh(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function oE(e,t,n,r,a,i,l,o,s,u,d,f){return e=new UR(e,t,n,l,s,u,d,f,o),t=1,i===!0&&(t|=24),i=on(3,null,null,t),e.current=i,i.stateNode=e,t=yg(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},bg(i),e}function sE(e){return e?(e=Yi,e):Yi}function uE(e,t,n,r,a,i){a=sE(a),r.context===null?r.context=a:r.pendingContext=a,r=ca(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=fa(e,r,t),n!==null&&(Wt(n,e,t),Wo(n,e,t))}function zx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yg(e,t){zx(e,t),(e=e.alternate)&&zx(e,t)}function cE(e){if(e.tag===13||e.tag===31){var t=bi(e,67108864);t!==null&&Wt(t,e,67108864),Yg(e,67108864)}}function Ix(e){if(e.tag===13||e.tag===31){var t=hn();t=ng(t);var n=bi(e,t);n!==null&&Wt(n,e,t),Yg(e,t)}}var ff=!0;function HR(e,t,n,r){var a=te.T;te.T=null;var i=we.p;try{we.p=2,Fg(e,t,n,r)}finally{we.p=i,te.T=a}}function qR(e,t,n,r){var a=te.T;te.T=null;var i=we.p;try{we.p=8,Fg(e,t,n,r)}finally{we.p=i,te.T=a}}function Fg(e,t,n,r){if(ff){var a=ly(r);if(a===null)jp(e,t,r,df,n),Ux(e,r);else if(YR(a,e,t,n,r))r.stopPropagation();else if(Ux(e,r),t&4&&-1<GR.indexOf(e)){for(;a!==null;){var i=Wl(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var l=La(i.pendingLanes);if(l!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;l;){var s=1<<31-dn(l);o.entanglements[1]|=s,l&=~s}ir(i),!(Se&6)&&(ef=cn()+500,bu(0))}}break;case 31:case 13:o=bi(i,2),o!==null&&Wt(o,i,2),Rd(),Yg(i,2)}if(i=ly(r),i===null&&jp(e,t,r,df,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else jp(e,t,r,null,n)}}function ly(e){return e=lg(e),Vg(e)}var df=null;function Vg(e){if(df=null,e=zi(e),e!==null){var t=cu(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=CO(t),e!==null)return e;e=null}else if(n===31){if(e=MO(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 df=e,null}function fE(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(NM()){case DO:return 2;case kO:return 8;case Ic:case CM:return 32;case LO:return 268435456;default:return 32}default:return 32}}var oy=!1,pa=null,ma=null,ya=null,js=new Map,Os=new Map,ta=[],GR="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 Ux(e,t){switch(e){case"focusin":case"focusout":pa=null;break;case"dragenter":case"dragleave":ma=null;break;case"mouseover":case"mouseout":ya=null;break;case"pointerover":case"pointerout":js.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function _o(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=Wl(t),t!==null&&cE(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function YR(e,t,n,r,a){switch(t){case"focusin":return pa=_o(pa,e,t,n,r,a),!0;case"dragenter":return ma=_o(ma,e,t,n,r,a),!0;case"mouseover":return ya=_o(ya,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return js.set(i,_o(js.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Os.set(i,_o(Os.get(i)||null,e,t,n,r,a)),!0}return!1}function dE(e){var t=zi(e.target);if(t!==null){var n=cu(t);if(n!==null){if(t=n.tag,t===13){if(t=CO(n),t!==null){e.blockedOn=t,A0(e.priority,function(){Ix(n)});return}}else if(t===31){if(t=MO(n),t!==null){e.blockedOn=t,A0(e.priority,function(){Ix(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 Cc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ly(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Am=r,n.target.dispatchEvent(r),Am=null}else return t=Wl(n),t!==null&&cE(t),e.blockedOn=n,!1;t.shift()}return!0}function Hx(e,t,n){Cc(e)&&n.delete(t)}function FR(){oy=!1,pa!==null&&Cc(pa)&&(pa=null),ma!==null&&Cc(ma)&&(ma=null),ya!==null&&Cc(ya)&&(ya=null),js.forEach(Hx),Os.forEach(Hx)}function Xu(e,t){e.blockedOn===t&&(e.blockedOn=null,oy||(oy=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,FR)))}var Wu=null;function qx(e){Wu!==e&&(Wu=e,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,function(){Wu===e&&(Wu=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(Vg(r||n)===null)continue;break}var i=Wl(n);i!==null&&(e.splice(t,3),t-=3,Um(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Sl(e){function t(s){return Xu(s,e)}pa!==null&&Xu(pa,e),ma!==null&&Xu(ma,e),ya!==null&&Xu(ya,e),js.forEach(t),Os.forEach(t);for(var n=0;n<ta.length;n++){var r=ta[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ta.length&&(n=ta[0],n.blockedOn===null);)dE(n),n.blockedOn===null&&ta.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],l=a[Qt]||null;if(typeof i=="function")l||qx(n);else if(l){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,l=i[Qt]||null)o=l.formAction;else if(Vg(a)!==null)continue}else o=l.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),qx(n)}}}function hE(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(l){return a=l})},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 Kg(e){this._internalRoot=e}kd.prototype.render=Kg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));var n=t.current,r=hn();uE(n,r,e,t,null,null)};kd.prototype.unmount=Kg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;uE(e.current,2,null,e,null,null),Rd(),t[Xl]=null}};function kd(e){this._internalRoot=e}kd.prototype.unstable_scheduleHydration=function(e){if(e){var t=HO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ta.length&&t!==0&&t<ta[n].priority;n++);ta.splice(n,0,e),n===0&&dE(e)}};var Gx=TO.version;if(Gx!=="19.2.7")throw Error(I(527,Gx,"19.2.7"));we.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=wM(t),e=e!==null?$O(e):null,e=e===null?null:e.stateNode,e};var VR={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:te,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{fu=Zu.inject(VR),fn=Zu}catch{}}bd.createRoot=function(e,t){if(!NO(e))throw Error(I(299));var n=!1,r="",a=a_,i=i_,l=l_;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&&(l=t.onRecoverableError)),t=oE(e,1,!1,null,null,n,r,null,a,i,l,hE),e[Xl]=t.current,Hg(e),new Kg(t)};bd.hydrateRoot=function(e,t,n){if(!NO(e))throw Error(I(299));var r=!1,a="",i=a_,l=i_,o=l_,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&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=oE(e,1,!0,t,n??null,r,a,s,i,l,o,hE),t.context=sE(null),n=t.current,r=hn(),r=ng(r),a=ca(r),a.callback=null,fa(n,a,r),n=r,t.current.lanes=n,hu(t,n),ir(t),e[Xl]=t.current,Hg(e),new kd(t)};bd.version="19.2.7";function pE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pE)}catch(e){console.error(e)}}pE(),wO.exports=bd;var KR=wO.exports;const XR=Te(KR);/**
 * react-router v7.18.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 Xg=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,mE=/^[\\/]{2}/;function WR(e,t){return t+e.replace(/\\/g,"/")}var Yx="popstate";function Fx(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function ZR(e={}){function t(r,a){var u;let i=(u=a.state)==null?void 0:u.masked,{pathname:l,search:o,hash:s}=i||r.location;return sy("",{pathname:l,search:o,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:As(a)}return JR(t,n,null,e)}function We(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Fn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QR(){return Math.random().toString(36).substring(2,10)}function Vx(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 sy(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?no(t):t,state:n,key:t&&t.key||r||QR(),mask:a}}function As({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 no(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 JR(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,l=a.history,o="POP",s=null,u=d();u==null&&(u=0,l.replaceState({...l.state,idx:u},""));function d(){return(l.state||{idx:null}).idx}function f(){o="POP";let v=d(),m=v==null?null:v-u;u=v,s&&s({action:o,location:g.location,delta:m})}function h(v,m){o="PUSH";let y=Fx(v)?v:sy(g.location,v,m);u=d()+1;let b=Vx(y,u),w=g.createHref(y.mask||y);try{l.pushState(b,"",w)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;a.location.assign(w)}i&&s&&s({action:o,location:g.location,delta:1})}function p(v,m){o="REPLACE";let y=Fx(v)?v:sy(g.location,v,m);u=d();let b=Vx(y,u),w=g.createHref(y.mask||y);l.replaceState(b,"",w),i&&s&&s({action:o,location:g.location,delta:0})}function S(v){return eP(a,v)}let g={get action(){return o},get location(){return e(a,l)},listen(v){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(Yx,f),s=v,()=>{a.removeEventListener(Yx,f),s=null}},createHref(v){return t(a,v)},createURL:S,encodeLocation(v){let m=S(v);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(v){return l.go(v)}};return g}function eP(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),We(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:As(t);return a=a.replace(/ $/,"%20"),!n&&mE.test(a)&&(a=r+a),new URL(a,r)}function yE(e,t,n="/"){return tP(e,t,n,!1)}function tP(e,t,n,r,a){let i=typeof t=="string"?no(t):t,l=kr(i.pathname||"/",n);if(l==null)return null;let o=nP(e),s=null,u=hP(l);for(let d=0;s==null&&d<o.length;++d)s=dP(o[d],u,r);return s}function nP(e){let t=vE(e);return rP(t),t}function vE(e,t=[],n=[],r="",a=!1){let i=(l,o,s=a,u)=>{let d={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&s)return;We(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=Yn([r,d.relativePath]),h=n.concat(d);l.children&&l.children.length>0&&(We(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),vE(l.children,t,h,f,s)),!(l.path==null&&!l.index)&&t.push({path:f,score:cP(f,l.index),routesMeta:h.map((p,S)=>{let[g,v]=xE(p.relativePath,p.caseSensitive,S===h.length-1);return{...p,matcher:g,compiledParams:v}})})};return e.forEach((l,o)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))i(l,o);else for(let u of gE(l.path))i(l,o,!0,u)}),t}function gE(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 l=gE(r.join("/")),o=[];return o.push(...l.map(s=>s===""?i:[i,s].join("/"))),a&&o.push(...l),o.map(s=>e.startsWith("/")&&s===""?"/":s)}function rP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var aP=/^:[\w-]+$/,iP=3,lP=2,oP=1,sP=10,uP=-2,Kx=e=>e==="*";function cP(e,t){let n=e.split("/"),r=n.length;return n.some(Kx)&&(r+=uP),t&&(r+=lP),n.filter(a=>!Kx(a)).reduce((a,i)=>a+(aP.test(i)?iP:i===""?oP:sP),r)}function fP(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 dP(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",l=[];for(let o=0;o<r.length;++o){let s=r[o],u=o===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f={path:s.relativePath,caseSensitive:s.caseSensitive,end:u},h=s.matcher&&s.compiledParams?bE(f,d,s.matcher,s.compiledParams):hf(f,d),p=s.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=hf({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!h)return null;Object.assign(a,h.params),l.push({params:a,pathname:Yn([i,h.pathname]),pathnameBase:yP(Yn([i,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(i=Yn([i,h.pathnameBase]))}return l}function hf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xE(e.path,e.caseSensitive,e.end);return bE(e,t,n,r)}function bE(e,t,n,r){let a=t.match(n);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:f},h)=>{if(d==="*"){let S=o[h]||"";l=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const p=o[h];return f&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function xE(e,t=!1,n=!0){Fn(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,(l,o,s,u,d)=>{if(r.push({paramName:o,isOptional:s!=null}),s){let f=d.charAt(u+l.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 hP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fn(!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 kr(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)||"/"}function pP(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?no(e):e,i;return n?(n=SE(n),n.startsWith("/")?i=Xx(n.substring(1),"/"):i=Xx(n,t)):i=t,{pathname:i,search:vP(r),hash:gP(a)}}function Xx(e,t){let n=pf(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function _p(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 mP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Wg(e){let t=mP(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ld(e,t,n,r=!1){let a;typeof e=="string"?a=no(e):(a={...e},We(!a.pathname||!a.pathname.includes("?"),_p("?","pathname","search",a)),We(!a.pathname||!a.pathname.includes("#"),_p("#","pathname","hash",a)),We(!a.search||!a.search.includes("#"),_p("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,o;if(l==null)o=n;else{let f=t.length-1;if(!r&&l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}o=f>=0?t[f]:"/"}let s=pP(a,o),u=l&&l!=="/"&&l.endsWith("/"),d=(i||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}var SE=e=>e.replace(/[\\/]{2,}/g,"/"),Yn=e=>SE(e.join("/")),pf=e=>e.replace(/\/+$/,""),yP=e=>pf(e).replace(/^\/*/,"/"),vP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,bP=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 xP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function SP(e){let t=e.map(n=>n.route.path).filter(Boolean);return Yn(t)||"/"}var wE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jE(e,t){let n=e;if(typeof n!="string"||!Xg.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(wE)try{let i=new URL(window.location.href),l=mE.test(n)?new URL(WR(n,i.protocol)):new URL(n),o=kr(l.pathname,t);l.origin===i.origin&&o!=null?n=o+l.search+l.hash:a=!0}catch{Fn(!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 OE=["POST","PUT","PATCH","DELETE"];new Set(OE);var wP=["GET",...OE];new Set(wP);var jP=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function OP(e){try{return jP.includes(new URL(e).protocol)}catch{return!1}}var ro=O.createContext(null);ro.displayName="DataRouter";var Bd=O.createContext(null);Bd.displayName="DataRouterState";var AE=O.createContext(!1);function AP(){return O.useContext(AE)}var _E=O.createContext({isTransitioning:!1});_E.displayName="ViewTransition";var _P=O.createContext(new Map);_P.displayName="Fetchers";var EP=O.createContext(null);EP.displayName="Await";var vn=O.createContext(null);vn.displayName="Navigation";var wu=O.createContext(null);wu.displayName="Location";var lr=O.createContext({outlet:null,matches:[],isDataRoute:!1});lr.displayName="Route";var Zg=O.createContext(null);Zg.displayName="RouteError";var EE="REACT_ROUTER_ERROR",TP="REDIRECT",NP="ROUTE_ERROR_RESPONSE";function CP(e){if(e.startsWith(`${EE}:${TP}:{`))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 MP(e){if(e.startsWith(`${EE}:${NP}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new bP(t.status,t.statusText,t.data)}catch{}}function $P(e,{relative:t}={}){We(ao(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=O.useContext(vn),{hash:a,pathname:i,search:l}=ju(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:Yn([n,i])),r.createHref({pathname:o,search:l,hash:a})}function ao(){return O.useContext(wu)!=null}function or(){return We(ao(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(wu).location}var TE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function NE(e){O.useContext(vn).static||O.useLayoutEffect(e)}function Qg(){let{isDataRoute:e}=O.useContext(lr);return e?YP():RP()}function RP(){We(ao(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(ro),{basename:t,navigator:n}=O.useContext(vn),{matches:r}=O.useContext(lr),{pathname:a}=or(),i=JSON.stringify(Wg(r)),l=O.useRef(!1);return NE(()=>{l.current=!0}),O.useCallback((s,u={})=>{if(Fn(l.current,TE),!l.current)return;if(typeof s=="number"){n.go(s);return}let d=Ld(s,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Yn([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,a,e])}O.createContext(null);function ju(e,{relative:t}={}){let{matches:n}=O.useContext(lr),{pathname:r}=or(),a=JSON.stringify(Wg(n));return O.useMemo(()=>Ld(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function PP(e,t){return CE(e,t)}function CE(e,t,n){var v;We(ao(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=O.useContext(vn),{matches:a}=O.useContext(lr),i=a[a.length-1],l=i?i.params:{},o=i?i.pathname:"/",s=i?i.pathnameBase:"/",u=i&&i.route;{let m=u&&u.path||"";$E(o,!u||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (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=or(),f;if(t){let m=typeof t=="string"?no(t):t;We(s==="/"||((v=m.pathname)==null?void 0:v.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 S=n&&n.state.matches.length?n.state.matches.map(m=>Object.assign(m,{route:n.manifest[m.route.id]||m.route})):yE(e,{pathname:p});Fn(u||S!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Fn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.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 g=zP(S&&S.map(m=>Object.assign({},m,{params:Object.assign({},l,m.params),pathname:Yn([s,r.encodeLocation?r.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:Yn([s,r.encodeLocation?r.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,n);return t&&g?O.createElement(wu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},g):g}function DP(){let e=GP(),t=xP(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},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=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,l)}var kP=O.createElement(DP,null),ME=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=MP(e.digest);n&&(e=n)}let t=e!==void 0?O.createElement(lr.Provider,{value:this.props.routeContext},O.createElement(Zg.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?O.createElement(LP,{error:e},t):t}};ME.contextType=AE;var Ep=new WeakMap;function LP({children:e,error:t}){let{basename:n}=O.useContext(vn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=CP(t.digest);if(r){let a=Ep.get(t);if(a)throw a;let i=jE(r.location,n),l=i.absoluteURL||i.to;if(OP(l))throw new Error("Invalid redirect location");if(wE&&!Ep.get(t))if(i.isExternal||r.reloadDocument)window.location.href=l;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Ep.set(t,o),o}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function BP({routeContext:e,match:t,children:n}){let r=O.useContext(ro);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(lr.Provider,{value:e},n)}function zP(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);We(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 l=!1,o=-1;if(n&&r){l=r.renderFallback;for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(o=d),f.route.id){let{loaderData:h,errors:p}=r,S=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||S){n.isStatic&&(l=!0),o>=0?a=a.slice(0,o+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:SP(r.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,h)=>{let p,S=!1,g=null,v=null;r&&(p=i&&f.route.id?i[f.route.id]:void 0,g=f.route.errorElement||kP,l&&(o<0&&h===0?($E("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,v=null):o===h&&(S=!0,v=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,h+1)),y=()=>{let b;return p?b=g:S?b=v:f.route.Component?b=O.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,O.createElement(BP,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?O.createElement(ME,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):y()},null)}function Jg(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function IP(e){let t=O.useContext(ro);return We(t,Jg(e)),t}function UP(e){let t=O.useContext(Bd);return We(t,Jg(e)),t}function HP(e){let t=O.useContext(lr);return We(t,Jg(e)),t}function eb(e){let t=HP(e),n=t.matches[t.matches.length-1];return We(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function qP(){return eb("useRouteId")}function GP(){var r;let e=O.useContext(Zg),t=UP("useRouteError"),n=eb("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function YP(){let{router:e}=IP("useNavigate"),t=eb("useNavigate"),n=O.useRef(!1);return NE(()=>{n.current=!0}),O.useCallback(async(a,i={})=>{Fn(n.current,TE),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var Wx={};function $E(e,t,n){!t&&!Wx[e]&&(Wx[e]=!0,Fn(!1,n))}O.memo(FP);function FP({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return CE(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function _s({to:e,replace:t,state:n,relative:r}){We(ao(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=O.useContext(vn);Fn(!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(lr),{pathname:l}=or(),o=Qg(),s=Ld(e,Wg(i),l,r==="path"),u=JSON.stringify(s);return O.useEffect(()=>{o(JSON.parse(u),{replace:t,state:n,relative:r})},[o,u,r,t,n]),null}function Qe(e){We(!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 VP({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:l}){We(!ao(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),s=O.useMemo(()=>({basename:o,navigator:a,static:i,useTransitions:l,future:{}}),[o,a,i,l]);typeof n=="string"&&(n=no(n));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default",mask:S}=n,g=O.useMemo(()=>{let v=kr(u,o);return v==null?null:{location:{pathname:v,search:d,hash:f,state:h,key:p,mask:S},navigationType:r}},[o,u,d,f,h,p,r,S]);return Fn(g!=null,`<Router basename="${o}"> 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.`),g==null?null:O.createElement(vn.Provider,{value:s},O.createElement(wu.Provider,{children:t,value:g}))}function KP({children:e,location:t}){return PP(uy(e),t)}function uy(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,uy(r.props.children,i));return}We(r.type===Qe,`[${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>`),We(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={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&&(l.children=uy(r.props.children,i)),n.push(l)}),n}var Mc="get",$c="application/x-www-form-urlencoded";function zd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function XP(e){return zd(e)&&e.tagName.toLowerCase()==="button"}function WP(e){return zd(e)&&e.tagName.toLowerCase()==="form"}function ZP(e){return zd(e)&&e.tagName.toLowerCase()==="input"}function QP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JP(e,t){return e.button===0&&(!t||t==="_self")&&!QP(e)}var Qu=null;function eD(){if(Qu===null)try{new FormData(document.createElement("form"),0),Qu=!1}catch{Qu=!0}return Qu}var tD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tp(e){return e!=null&&!tD.has(e)?(Fn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$c}"`),null):e}function nD(e,t){let n,r,a,i,l;if(WP(e)){let o=e.getAttribute("action");r=o?kr(o,t):null,n=e.getAttribute("method")||Mc,a=Tp(e.getAttribute("enctype"))||$c,i=new FormData(e)}else if(XP(e)||ZP(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||o.getAttribute("action");if(r=s?kr(s,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Mc,a=Tp(e.getAttribute("formenctype"))||Tp(o.getAttribute("enctype"))||$c,i=new FormData(o,e),!eD()){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(zd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Mc,r=null,a=$c,l=e}return i&&a==="text/plain"&&(l=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function RE(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&&kr(a.pathname,t)==="/"?a.pathname=`${pf(t)}/_root.${r}`:a.pathname=`${pf(a.pathname)}.${r}`,a}async function rD(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 aD(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 iD(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let l=await rD(i,n);return l.links?l.links():[]}return[]}));return uD(r.flat(1).filter(aD).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Zx(e,t,n,r,a,i){let l=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,o=(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)=>l(s,u)||o(s,u)):i==="data"?t.filter((s,u)=>{var f;let d=r.routes[s.route.id];if(!d||!d.hasLoader)return!1;if(l(s,u)||o(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 lD(e,t,{includeHydrateFallback:n}={}){return oD(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 oD(e){return[...new Set(e)]}function sD(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function uD(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(sD(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function nb(){let e=O.useContext(ro);return tb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function cD(){let e=O.useContext(Bd);return tb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rb=O.createContext(void 0);rb.displayName="FrameworkContext";function Id(){let e=O.useContext(rb);return tb(e,"You must render this element inside a <HydratedRouter> element"),e}function fD(e,t){let n=O.useContext(rb),[r,a]=O.useState(!1),[i,l]=O.useState(!1),{onFocus:o,onBlur:s,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,h=O.useRef(null);O.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let g=m=>{m.forEach(y=>{l(y.isIntersecting)})},v=new IntersectionObserver(g,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),O.useEffect(()=>{if(r){let g=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(g)}}},[r]);let p=()=>{a(!0)},S=()=>{a(!1),l(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Eo(o,p),onBlur:Eo(s,S),onMouseEnter:Eo(u,p),onMouseLeave:Eo(d,S),onTouchStart:Eo(f,p)}]:[!1,h,{}]}function Eo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function dD({page:e,...t}){let n=AP(),{nonce:r}=Id(),{router:a}=nb(),i=O.useMemo(()=>yE(a.routes,e,a.basename),[a.routes,e,a.basename]);return i?(t.nonce==null&&r&&(t={...t,nonce:r}),n?O.createElement(pD,{page:e,matches:i,...t}):O.createElement(mD,{page:e,matches:i,...t})):null}function hD(e){let{manifest:t,routeModules:n}=Id(),[r,a]=O.useState([]);return O.useEffect(()=>{let i=!1;return iD(e,t,n).then(l=>{i||a(l)}),()=>{i=!0}},[e,t,n]),r}function pD({page:e,matches:t,...n}){let r=or(),{future:a}=Id(),{basename:i}=nb(),l=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let o=RE(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&&o.searchParams.set("_routes",u.join(",")),[o.pathname+o.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return O.createElement(O.Fragment,null,l.map(o=>O.createElement("link",{key:o,rel:"prefetch",as:"fetch",href:o,...n})))}function mD({page:e,matches:t,...n}){let r=or(),{future:a,manifest:i,routeModules:l}=Id(),{basename:o}=nb(),{loaderData:s,matches:u}=cD(),d=O.useMemo(()=>Zx(e,t,u,i,r,"data"),[e,t,u,i,r]),f=O.useMemo(()=>Zx(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,v=!1;if(t.forEach(y=>{var w;let b=i.routes[y.route.id];!b||!b.hasLoader||(!d.some(x=>x.route.id===y.route.id)&&y.route.id in s&&((w=l[y.route.id])!=null&&w.shouldRevalidate)||b.hasClientLoader?v=!0:g.add(y.route.id))}),g.size===0)return[];let m=RE(e,o,a.v8_trailingSlashAwareDataRequests,"data");return v&&g.size>0&&m.searchParams.set("_routes",t.filter(y=>g.has(y.route.id)).map(y=>y.route.id).join(",")),[m.pathname+m.search]},[o,a.v8_trailingSlashAwareDataRequests,s,r,i,d,t,e,l]),p=O.useMemo(()=>lD(f,i),[f,i]),S=hD(f);return O.createElement(O.Fragment,null,h.map(g=>O.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>O.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),S.map(({key:g,link:v})=>O.createElement("link",{key:g,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function yD(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var vD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vD&&(window.__reactRouterVersion="7.18.0")}catch{}function gD({basename:e,children:t,useTransitions:n,window:r}){let a=O.useRef();a.current==null&&(a.current=ZR({window:r,v5Compat:!0}));let i=a.current,[l,o]=O.useState({action:i.action,location:i.location}),s=O.useCallback(u=>{n===!1?o(u):O.startTransition(()=>o(u))},[n]);return O.useLayoutEffect(()=>i.listen(s),[i,s]),O.createElement(VP,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,useTransitions:n})}var PE=O.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:l,mask:o,state:s,target:u,to:d,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:p,...S},g){let{basename:v,navigator:m,useTransitions:y}=O.useContext(vn),b=typeof d=="string"&&Xg.test(d),w=jE(d,v);d=w.to;let x=$P(d,{relative:a}),j=or(),A=null;if(o){let D=Ld(o,[],j.mask?j.mask.pathname:"/",!0);v!=="/"&&(D.pathname=D.pathname==="/"?v:Yn([v,D.pathname])),A=m.createHref(D)}let[_,E,T]=fD(r,S),R=SD(d,{replace:l,mask:o,state:s,target:u,preventScrollReset:f,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:y});function N(D){t&&t(D),D.defaultPrevented||R(D)}let L=!(w.isExternal||i),k=O.createElement("a",{...S,...T,href:(L?A:void 0)||w.absoluteURL||x,onClick:L?N:t,ref:yD(g,E),target:u,"data-discover":!b&&n==="render"?"true":void 0});return _&&!b?O.createElement(O.Fragment,null,k,O.createElement(dD,{page:x})):k});PE.displayName="Link";var cy=O.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:l,viewTransition:o,children:s,...u},d){let f=ju(l,{relative:u.relative}),h=or(),p=O.useContext(Bd),{navigator:S,basename:g}=O.useContext(vn),v=p!=null&&_D(f)&&o===!0,m=S.encodeLocation?S.encodeLocation(f).pathname:f.pathname,y=h.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(y=y.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&g&&(b=kr(b,g)||b);const w=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let x=y===m||!a&&y.startsWith(m)&&y.charAt(w)==="/",j=b!=null&&(b===m||!a&&b.startsWith(m)&&b.charAt(m.length)==="/"),A={isActive:x,isPending:j,isTransitioning:v},_=x?t:void 0,E;typeof r=="function"?E=r(A):E=[r,x?"active":null,j?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let T=typeof i=="function"?i(A):i;return O.createElement(PE,{...u,"aria-current":_,className:E,ref:d,style:T,to:l,viewTransition:o},typeof s=="function"?s(A):s)});cy.displayName="NavLink";var bD=O.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:l=Mc,action:o,onSubmit:s,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h,...p},S)=>{let{useTransitions:g}=O.useContext(vn),v=OD(),m=AD(o,{relative:u}),y=l.toLowerCase()==="get"?"get":"post",b=typeof o=="string"&&Xg.test(o),w=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let j=x.nativeEvent.submitter,A=(j==null?void 0:j.getAttribute("formmethod"))||l,_=()=>v(j||x.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h});g&&n!==!1?O.startTransition(()=>_()):_()};return O.createElement("form",{ref:S,method:y,action:m,onSubmit:r?s:w,...p,"data-discover":!b&&e==="render"?"true":void 0})});bD.displayName="Form";function xD(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function DE(e){let t=O.useContext(ro);return We(t,xD(e)),t}function SD(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:l,viewTransition:o,defaultShouldRevalidate:s,useTransitions:u}={}){let d=Qg(),f=or(),h=ju(e,{relative:l});return O.useCallback(p=>{if(JP(p,t)){p.preventDefault();let S=n!==void 0?n:As(f)===As(h),g=()=>d(e,{replace:S,mask:r,state:a,preventScrollReset:i,relative:l,viewTransition:o,defaultShouldRevalidate:s});u?O.startTransition(()=>g()):g()}},[f,d,h,n,r,a,t,e,i,l,o,s,u])}var wD=0,jD=()=>`__${String(++wD)}__`;function OD(){let{router:e}=DE("useSubmit"),{basename:t}=O.useContext(vn),n=qP(),r=e.fetch,a=e.navigate;return O.useCallback(async(i,l={})=>{let{action:o,method:s,encType:u,formData:d,body:f}=nD(i,t);if(l.navigate===!1){let h=l.fetcherKey||jD();await r(h,n,l.action||o,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||s,formEncType:l.encType||u,flushSync:l.flushSync})}else await a(l.action||o,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||s,formEncType:l.encType||u,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function AD(e,{relative:t}={}){let{basename:n}=O.useContext(vn),r=O.useContext(lr);We(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...ju(e||".",{relative:t})},l=or();if(e==null){i.search=l.search;let o=new URLSearchParams(i.search),s=o.getAll("index");if(s.some(d=>d==="")){o.delete("index"),s.filter(f=>f).forEach(f=>o.append("index",f));let d=o.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:Yn([n,i.pathname])),As(i)}function _D(e,{relative:t}={}){let n=O.useContext(_E);We(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=DE("useViewTransitionState"),a=ju(e,{relative:t});if(!n.isTransitioning)return!1;let i=kr(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=kr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return hf(a.pathname,l)!=null||hf(a.pathname,i)!=null}function kE(e,t){return function(){return e.apply(t,arguments)}}const{toString:ED}=Object.prototype,{getPrototypeOf:wl}=Object,{iterator:Ou,toStringTag:LE}=Symbol,mf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Es=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),mf(n,t))return!0;n=wl(n)}return!1},TD=(e,t)=>e!=null&&Es(e,t)?e[t]:void 0,ab=(e=>t=>{const n=ED.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kn=e=>(e=e.toLowerCase(),t=>ab(t)===e),Ud=e=>t=>typeof t===e,{isArray:ui}=Array,jl=Ud("undefined");function io(e){return e!==null&&!jl(e)&&e.constructor!==null&&!jl(e.constructor)&&Zt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const BE=Kn("ArrayBuffer");function ND(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BE(e.buffer),t}const CD=Ud("string"),Zt=Ud("function"),zE=Ud("number"),lo=e=>e!==null&&typeof e=="object",MD=e=>e===!0||e===!1,Rc=e=>{if(!lo(e))return!1;const t=wl(e);return(t===null||t===Object.prototype||wl(t)===null)&&!Es(e,LE)&&!Es(e,Ou)},$D=e=>{if(!lo(e)||io(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},RD=Kn("Date"),PD=Kn("File"),DD=e=>!!(e&&typeof e.uri<"u"),kD=e=>e&&typeof e.getParts<"u",LD=Kn("Blob"),BD=Kn("FileList"),zD=e=>lo(e)&&Zt(e.pipe);function ID(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Qx=ID(),Jx=typeof Qx.FormData<"u"?Qx.FormData:void 0,UD=e=>{if(!e)return!1;if(Jx&&e instanceof Jx)return!0;const t=wl(e);if(!t||t===Object.prototype||!Zt(e.append))return!1;const n=ab(e);return n==="formdata"||n==="object"&&Zt(e.toString)&&e.toString()==="[object FormData]"},HD=Kn("URLSearchParams"),[qD,GD,YD,FD]=["ReadableStream","Request","Response","Headers"].map(Kn),VD=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Au(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ui(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(io(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let o;for(r=0;r<l;r++)o=i[r],t.call(null,e[o],o,e)}}function IE(e,t){if(io(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 Ga=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,UE=e=>!jl(e)&&e!==Ga;function fy(...e){const{caseless:t,skipUndefined:n}=UE(this)&&this||{},r={},a=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const o=t&&typeof l=="string"&&IE(r,l)||l,s=mf(r,o)?r[o]:void 0;Rc(s)&&Rc(i)?r[o]=fy(s,i):Rc(i)?r[o]=fy({},i):ui(i)?r[o]=i.slice():(!n||!jl(i))&&(r[o]=i)};for(let i=0,l=e.length;i<l;i++){const o=e[i];if(!o||io(o)||(Au(o,a),typeof o!="object"||ui(o)))continue;const s=Object.getOwnPropertySymbols(o);for(let u=0;u<s.length;u++){const d=s[u];i3.call(o,d)&&a(o[d],d)}}return r}const KD=(e,t,n,{allOwnKeys:r}={})=>(Au(t,(a,i)=>{n&&Zt(a)?Object.defineProperty(e,i,{__proto__:null,value:kE(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),XD=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),WD=(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)},ZD=(e,t,n,r)=>{let a,i,l;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],(!r||r(l,e,t))&&!o[l]&&(t[l]=e[l],o[l]=!0);e=n!==!1&&wl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},QD=(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},JD=e=>{if(!e)return null;if(ui(e))return e;let t=e.length;if(!zE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},e3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wl(Uint8Array)),t3=(e,t)=>{const r=(e&&e[Ou]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},n3=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},r3=Kn("HTMLFormElement"),a3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:i3}=Object.prototype,l3=Kn("RegExp"),HE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Au(n,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(r[i]=l||a)}),Object.defineProperties(e,r)},o3=e=>{HE(e,(t,n)=>{if(Zt(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Zt(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+"'")})}})},s3=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ui(e)?r(e):r(String(e).split(t)),n},u3=()=>{},c3=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function f3(e){return!!(e&&Zt(e.append)&&e[LE]==="FormData"&&e[Ou])}const d3=e=>{const t=new WeakSet,n=r=>{if(lo(r)){if(t.has(r))return;if(io(r))return r;if(!("toJSON"in r)){t.add(r);const a=ui(r)?[]:{};return Au(r,(i,l)=>{const o=n(i);!jl(o)&&(a[l]=o)}),t.delete(r),a}}return r};return n(e)},h3=Kn("AsyncFunction"),p3=e=>e&&(lo(e)||Zt(e))&&Zt(e.then)&&Zt(e.catch),qE=((e,t)=>e?setImmediate:t?((n,r)=>(Ga.addEventListener("message",({source:a,data:i})=>{a===Ga&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ga.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Zt(Ga.postMessage)),m3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ga):typeof process<"u"&&process.nextTick||qE,GE=e=>e!=null&&Zt(e[Ou]),y3=e=>e!=null&&Es(e,Ou)&&GE(e),C={isArray:ui,isArrayBuffer:BE,isBuffer:io,isFormData:UD,isArrayBufferView:ND,isString:CD,isNumber:zE,isBoolean:MD,isObject:lo,isPlainObject:Rc,isEmptyObject:$D,isReadableStream:qD,isRequest:GD,isResponse:YD,isHeaders:FD,isUndefined:jl,isDate:RD,isFile:PD,isReactNativeBlob:DD,isReactNative:kD,isBlob:LD,isRegExp:l3,isFunction:Zt,isStream:zD,isURLSearchParams:HD,isTypedArray:e3,isFileList:BD,forEach:Au,merge:fy,extend:KD,trim:VD,stripBOM:XD,inherits:WD,toFlatObject:ZD,kindOf:ab,kindOfTest:Kn,endsWith:QD,toArray:JD,forEachEntry:t3,matchAll:n3,isHTMLForm:r3,hasOwnProperty:mf,hasOwnProp:mf,hasOwnInPrototypeChain:Es,getSafeProp:TD,reduceDescriptors:HE,freezeMethods:o3,toObjectSet:s3,toCamelCase:a3,noop:u3,toFiniteNumber:c3,findKey:IE,global:Ga,isContextDefined:UE,isSpecCompliantForm:f3,toJSONObject:d3,isAsyncFn:h3,isThenable:p3,setImmediate:qE,asap:m3,isIterable:GE,isSafeIterable:y3},v3=C.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"]),g3=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&v3[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function b3(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 x3=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),S3=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ib(e,t){return C.isArray(e)?e.map(n=>ib(n,t)):b3(String(e).replace(t,""))}const w3=e=>ib(e,x3),j3=e=>ib(e,S3);function YE(e){const t=Object.create(null);return C.forEach(e.toJSON(),(n,r)=>{t[r]=j3(n)}),t}const e1=Symbol("internals");function To(e){return e&&String(e).trim().toLowerCase()}function Pc(e){return e===!1||e==null?e:C.isArray(e)?e.map(Pc):w3(String(e))}function O3(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 A3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Np(e,t,n,r,a){if(C.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!C.isString(t)){if(C.isString(r))return t.indexOf(r)!==-1;if(C.isRegExp(r))return r.test(t)}}function _3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function E3(e,t){const n=C.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,l){return this[r].call(this,t,a,i,l)},configurable:!0})})}let Lt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,s,u){const d=To(s);if(!d)return;const f=C.findKey(a,d);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=Pc(o))}const l=(o,s)=>C.forEach(o,(u,d)=>i(u,d,s));if(C.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(C.isString(t)&&(t=t.trim())&&!A3(t))l(g3(t),n);else if(C.isObject(t)&&C.isSafeIterable(t)){let o=Object.create(null),s,u;for(const d of t){if(!C.isArray(d))throw new TypeError("Object iterator must return a key-value pair");u=d[0],C.hasOwnProp(o,u)?(s=o[u],o[u]=C.isArray(s)?[...s,d[1]]:[s,d[1]]):o[u]=d[1]}l(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=To(t),t){const r=C.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return O3(a);if(C.isFunction(n))return n.call(this,a,r);if(C.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=To(t),t){const r=C.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Np(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(l){if(l=To(l),l){const o=C.findKey(r,l);o&&(!n||Np(r,r[o],o,n))&&(delete r[o],a=!0)}}return C.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||Np(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return C.forEach(this,(a,i)=>{const l=C.findKey(r,i);if(l){n[l]=Pc(a),delete n[i];return}const o=t?_3(i):String(i).trim();o!==i&&delete n[i],n[o]=Pc(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return C.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&C.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[e1]=this[e1]={accessors:{}}).accessors,a=this.prototype;function i(l){const o=To(l);r[o]||(E3(a,l),r[o]=!0)}return C.isArray(t)?t.forEach(i):i(t),this}};Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(Lt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});C.freezeMethods(Lt);const T3="[REDACTED ****]";function N3(e){if(C.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(C.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function C3(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||C.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Lt&&(i=i.toJSON()),r.push(i);let l;if(C.isArray(i))l=[],i.forEach((o,s)=>{const u=a(o);C.isUndefined(u)||(l[s]=u)});else{if(!C.isPlainObject(i)&&N3(i))return r.pop(),i;l=Object.create(null);for(const[o,s]of Object.entries(i)){const u=n.has(o.toLowerCase())?T3:a(s);C.isUndefined(u)||(l[o]=u)}}return r.pop(),l};return a(e)}let K=class FE extends Error{static from(t,n,r,a,i,l){const o=new FE(t.message,n||t.code,r,a,i);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),l&&Object.assign(o,l),o}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&&C.hasOwnProp(t,"redact")?t.redact:void 0,r=C.isArray(n)&&n.length>0?C3(t,n):C.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}}};K.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";K.ERR_BAD_OPTION="ERR_BAD_OPTION";K.ECONNABORTED="ECONNABORTED";K.ETIMEDOUT="ETIMEDOUT";K.ECONNREFUSED="ECONNREFUSED";K.ERR_NETWORK="ERR_NETWORK";K.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";K.ERR_DEPRECATED="ERR_DEPRECATED";K.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";K.ERR_BAD_REQUEST="ERR_BAD_REQUEST";K.ERR_CANCELED="ERR_CANCELED";K.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";K.ERR_INVALID_URL="ERR_INVALID_URL";K.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const M3=null,VE=100;function dy(e){return C.isPlainObject(e)||C.isArray(e)}function KE(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function Cp(e,t,n){return e?e.concat(t).map(function(a,i){return a=KE(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function $3(e){return C.isArray(e)&&!e.some(dy)}const R3=C.toFlatObject(C,{},null,function(t){return/^is[A-Z]/.test(t)});function Hd(e,t,n){if(!C.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!C.isUndefined(b[y])});const r=n.metaTokens,a=n.visitor||S,i=n.dots,l=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,s=n.maxDepth===void 0?VE:n.maxDepth,u=o&&C.isSpecCompliantForm(t),d=[];if(!C.isFunction(a))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new K("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function h(m){if(m>s)throw new K("Object is too deeply nested ("+m+" levels). Max depth: "+s,K.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(m,y){if(s===1/0)return JSON.stringify(m);const b=[];return JSON.stringify(m,function(x,j){if(!C.isObject(j))return j;for(;b.length&&b[b.length-1]!==this;)b.pop();return b.push(j),h(y+b.length-1),j})}function S(m,y,b){let w=m;if(C.isReactNative(t)&&C.isReactNativeBlob(m))return t.append(Cp(b,y,i),f(m)),!1;if(m&&!b&&typeof m=="object"){if(C.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=p(m,1);else if(C.isArray(m)&&$3(m)||(C.isFileList(m)||C.endsWith(y,"[]"))&&(w=C.toArray(m)))return y=KE(y),w.forEach(function(j,A){!(C.isUndefined(j)||j===null)&&t.append(l===!0?Cp([y],A,i):l===null?y:y+"[]",f(j))}),!1}return dy(m)?!0:(t.append(Cp(b,y,i),f(m)),!1)}const g=Object.assign(R3,{defaultVisitor:S,convertValue:f,isVisitable:dy});function v(m,y,b=0){if(!C.isUndefined(m)){if(h(b),d.indexOf(m)!==-1)throw new Error("Circular reference detected in "+y.join("."));d.push(m),C.forEach(m,function(x,j){(!(C.isUndefined(x)||x===null)&&a.call(t,x,C.isString(j)?j.trim():j,y,g))===!0&&v(x,y?y.concat(j):[j],b+1)}),d.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return v(e),t}function t1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function lb(e,t){this._pairs=[],e&&Hd(e,this,t)}const XE=lb.prototype;XE.append=function(t,n){this._pairs.push([t,n])};XE.toString=function(t){const n=t?function(r){return t.call(this,r,t1)}:t1;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function P3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function WE(e,t,n){if(!t)return e;const r=C.isFunction(n)?{serialize:n}:n,a=C.getSafeProp(r,"encode")||P3,i=C.getSafeProp(r,"serialize");let l;if(i?l=i(t,r):l=C.isURLSearchParams(t)?t.toString():new lb(t,r).toString(a),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class n1{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){C.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ob={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},D3=typeof URLSearchParams<"u"?URLSearchParams:lb,k3=typeof FormData<"u"?FormData:null,L3=typeof Blob<"u"?Blob:null,B3={isBrowser:!0,classes:{URLSearchParams:D3,FormData:k3,Blob:L3},protocols:["http","https","file","blob","url","data"]},sb=typeof window<"u"&&typeof document<"u",hy=typeof navigator=="object"&&navigator||void 0,z3=sb&&(!hy||["ReactNative","NativeScript","NS"].indexOf(hy.product)<0),I3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",U3=sb&&window.location.href||"http://localhost",H3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sb,hasStandardBrowserEnv:z3,hasStandardBrowserWebWorkerEnv:I3,navigator:hy,origin:U3},Symbol.toStringTag,{value:"Module"})),Ct={...H3,...B3};function q3(e,t){return Hd(e,new Ct.classes.URLSearchParams,{visitor:function(n,r,a,i){return Ct.isNode&&C.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const r1=VE;function ZE(e){if(e>r1)throw new K("FormData field is too deeply nested ("+e+" levels). Max depth: "+r1,K.ERR_FORM_DATA_DEPTH_EXCEEDED)}function G3(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)ZE(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Y3(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 QE(e){function t(n,r,a,i){ZE(i);let l=n[i++];if(l==="__proto__")return!0;const o=Number.isFinite(+l),s=i>=n.length;return l=!l&&C.isArray(a)?a.length:l,s?(C.hasOwnProp(a,l)?a[l]=C.isArray(a[l])?a[l].concat(r):[a[l],r]:a[l]=r,!o):((!C.hasOwnProp(a,l)||!C.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],i)&&C.isArray(a[l])&&(a[l]=Y3(a[l])),!o)}if(C.isFormData(e)&&C.isFunction(e.entries)){const n={};return C.forEachEntry(e,(r,a)=>{t(G3(r),a,n,0)}),n}return null}const Ci=(e,t)=>e!=null&&C.hasOwnProp(e,t)?e[t]:void 0;function F3(e,t,n){if(C.isString(e))try{return(t||JSON.parse)(e),C.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _u={transitional:ob,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=C.isObject(t);if(i&&C.isHTMLForm(t)&&(t=new FormData(t)),C.isFormData(t))return a?JSON.stringify(QE(t)):t;if(C.isArrayBuffer(t)||C.isBuffer(t)||C.isStream(t)||C.isFile(t)||C.isBlob(t)||C.isReadableStream(t))return t;if(C.isArrayBufferView(t))return t.buffer;if(C.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const s=Ci(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return q3(t,s).toString();if((o=C.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=Ci(this,"env"),d=u&&u.FormData;return Hd(o?{"files[]":t}:t,d&&new d,s)}}return i||a?(n.setContentType("application/json",!1),F3(t)):t}],transformResponse:[function(t){const n=Ci(this,"transitional")||_u.transitional,r=n&&n.forcedJSONParsing,a=Ci(this,"responseType"),i=a==="json";if(C.isResponse(t)||C.isReadableStream(t))return t;if(t&&C.isString(t)&&(r&&!a||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Ci(this,"parseReviver"))}catch(s){if(o)throw s.name==="SyntaxError"?K.from(s,K.ERR_BAD_RESPONSE,this,null,Ci(this,"response")):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ct.classes.FormData,Blob:Ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],e=>{_u.headers[e]={}});function Mp(e,t){const n=this||_u,r=t||n,a=Lt.from(r.headers);let i=r.data;return C.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function JE(e){return!!(e&&e.__CANCEL__)}let Eu=class extends K{constructor(t,n,r){super(t??"canceled",K.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function e2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,n.status>=400&&n.status<500?K.ERR_BAD_REQUEST:K.ERR_BAD_RESPONSE,n.config,n.request,n))}function V3(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function K3(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),d=r[i];l||(l=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-l<t)return;const p=d&&u-d;return p?Math.round(h*1e3/p):void 0}}function X3(e,t){let n=0,r=1e3/t,a,i;const l=(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?l(u,d):(a=u,i||(i=setTimeout(()=>{i=null,l(a)},r-f)))},()=>a&&l(a)]}const yf=(e,t,n=3)=>{let r=0;const a=K3(50,250);return X3(i=>{if(!i||typeof i.loaded!="number")return;const l=i.loaded,o=i.lengthComputable?i.total:void 0,s=o!=null?Math.min(l,o):l,u=Math.max(0,s-r),d=a(u);r=Math.max(r,s);const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:u,rate:d||void 0,estimated:d&&o?(o-s)/d:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},a1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},i1=e=>(...t)=>C.asap(()=>e(...t)),W3=Ct.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ct.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ct.origin),Ct.navigator&&/(msie|trident)/i.test(Ct.navigator.userAgent)):()=>!0,Z3=Ct.hasStandardBrowserEnv?{write(e,t,n,r,a,i,l){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];C.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),C.isString(r)&&o.push(`path=${r}`),C.isString(a)&&o.push(`domain=${a}`),i===!0&&o.push("secure"),C.isString(l)&&o.push(`SameSite=${l}`),document.cookie=o.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 Q3(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function J3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const ek=/^https?:(?!\/\/)/i,tk=/[\t\n\r]/g;function nk(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function rk(e){return nk(e).replace(tk,"")}function l1(e,t){if(typeof e=="string"&&ek.test(rk(e)))throw new K('Invalid URL: missing "//" after protocol',K.ERR_INVALID_URL,t)}function t2(e,t,n,r){l1(t,r);let a=!Q3(t);return e&&(a||n===!1)?(l1(e,r),J3(e,t)):t}const o1=e=>e instanceof Lt?{...e}:e;function ci(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 C.isPlainObject(d)&&C.isPlainObject(f)?C.merge.call({caseless:p},d,f):C.isPlainObject(f)?C.merge({},f):C.isArray(f)?f.slice():f}function a(d,f,h,p){if(C.isUndefined(f)){if(!C.isUndefined(d))return r(void 0,d,h,p)}else return r(d,f,h,p)}function i(d,f){if(!C.isUndefined(f))return r(void 0,f)}function l(d,f){if(C.isUndefined(f)){if(!C.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function o(d){const f=C.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!C.isUndefined(f))if(C.isPlainObject(f)){if(C.hasOwnProp(f,d))return f[d]}else return;const h=C.hasOwnProp(e,"transitional")?e.transitional:void 0;if(C.isPlainObject(h)&&C.hasOwnProp(h,d))return h[d]}function s(d,f,h){if(C.hasOwnProp(t,h))return r(d,f);if(C.hasOwnProp(e,h))return r(void 0,d)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:s,headers:(d,f,h)=>a(o1(d),o1(f),h,!0)};return C.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const h=C.hasOwnProp(u,f)?u[f]:a,p=C.hasOwnProp(e,f)?e[f]:void 0,S=C.hasOwnProp(t,f)?t[f]:void 0,g=h(p,S,f);C.isUndefined(g)&&h!==s||(n[f]=g)}),C.hasOwnProp(t,"validateStatus")&&C.isUndefined(t.validateStatus)&&o("validateStatusUndefinedResolves")===!1&&(C.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const ak=["content-type","content-length"];function ik(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{ak.includes(r.toLowerCase())&&e.set(r,a)})}const lk=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function n2(e){const t=ci({},e),n=h=>C.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),l=n("xsrfCookieName");let o=n("headers");const s=n("auth"),u=n("baseURL"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=o=Lt.from(o),t.url=WE(t2(u,f,d,t),n("params"),n("paramsSerializer")),s){const h=C.getSafeProp(s,"username")||"",p=C.getSafeProp(s,"password")||"";o.set("Authorization","Basic "+btoa(h+":"+(p?lk(p):"")))}if(C.isFormData(r)&&(Ct.hasStandardBrowserEnv||Ct.hasStandardBrowserWebWorkerEnv||C.isReactNative(r)?o.setContentType(void 0):C.isFunction(r.getHeaders)&&ik(o,r.getHeaders(),n("formDataHeaderPolicy"))),Ct.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(t)),a===!0||a==null&&W3(t.url))){const p=i&&l&&Z3.read(l);p&&o.set(i,p)}return t}const ok=typeof XMLHttpRequest<"u",sk=ok&&function(e){return new Promise(function(n,r){const a=n2(e);let i=a.data;const l=Lt.from(a.headers).normalize();let{responseType:o,onUploadProgress:s,onDownloadProgress:u}=a,d,f,h,p,S;function g(){p&&p(),S&&S(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function m(){if(!v)return;const b=Lt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};e2(function(A){n(A),g()},function(A){r(A),g()},x),v=null}"onloadend"in v?v.onloadend=m:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(m)},v.onabort=function(){v&&(r(new K("Request aborted",K.ECONNABORTED,e,v)),g(),v=null)},v.onerror=function(w){const x=w&&w.message?w.message:"Network Error",j=new K(x,K.ERR_NETWORK,e,v);j.event=w||null,r(j),g(),v=null},v.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const x=a.transitional||ob;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new K(w,x.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,v)),g(),v=null},i===void 0&&l.setContentType(null),"setRequestHeader"in v&&C.forEach(YE(l),function(w,x){v.setRequestHeader(x,w)}),C.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),o&&o!=="json"&&(v.responseType=a.responseType),u&&([h,S]=yf(u,!0),v.addEventListener("progress",h)),s&&v.upload&&([f,p]=yf(s),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=b=>{v&&(r(!b||b.type?new Eu(null,e,v):b),v.abort(),g(),v=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const y=V3(a.url);if(y&&!Ct.protocols.includes(y)){r(new K("Unsupported protocol "+y+":",K.ERR_BAD_REQUEST,e));return}v.send(i||null)})},uk=(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,l();const u=s instanceof Error?s:this.reason;n.abort(u instanceof K?u:new Eu(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new K(`timeout of ${t}ms exceeded`,K.ETIMEDOUT))},t);const l=()=>{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:o}=n;return o.unsubscribe=()=>C.asap(l),o},ck=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},fk=async function*(e,t){for await(const n of dk(e))yield*ck(n,t)},dk=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()}},s1=(e,t,n,r)=>{const a=fk(e,t);let i=0,l,o=s=>{l||(l=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:u,value:d}=await a.next();if(u){o(),s.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}s.enqueue(new Uint8Array(d))}catch(u){throw o(u),u}},cancel(s){return o(s),a.return()}},{highWaterMark:2})},vf=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,hk=(e,t,n)=>t+2<n&&vf(e.charCodeAt(t+1))&&vf(e.charCodeAt(t+2));function pk(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 l=r.length;const o=r.length;for(let p=0;p<o;p++)if(r.charCodeAt(p)===37&&p+2<o){const S=r.charCodeAt(p+1),g=r.charCodeAt(p+2);vf(S)&&vf(g)&&(l-=2,p+=2)}let s=0,u=o-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(l/4)*3-(s||0);return h>0?h:0}let i=0;for(let l=0,o=r.length;l<o;l++){const s=r.charCodeAt(l);if(s===37&&hk(r,l,o))i+=1,l+=2;else if(s<128)i+=1;else if(s<2048)i+=2;else if(s>=55296&&s<=56319&&l+1<o){const u=r.charCodeAt(l+1);u>=56320&&u<=57343?(i+=4,l++):i+=3}else i+=3}return i}const ub="1.18.0",u1=64*1024,{isFunction:Ju}=C,mk=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),c1=e=>{if(!C.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},f1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yk=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},vk=e=>{const t=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=C.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:l}=e,o=a?Ju(a):typeof fetch=="function",s=Ju(i),u=Ju(l);if(!o)return!1;const d=o&&Ju(n),f=o&&(typeof r=="function"?(m=>y=>m.encode(y))(new r):async m=>new Uint8Array(await new i(m).arrayBuffer())),h=s&&d&&f1(()=>{let m=!1;const y=new i(Ct.origin,{body:new n,method:"POST",get duplex(){return m=!0,"half"}}),b=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),m&&!b}),p=u&&d&&f1(()=>C.isReadableStream(new l("").body)),S={stream:p&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!S[m]&&(S[m]=(y,b)=>{let w=y&&y[m];if(w)return w.call(y);throw new K(`Response type '${m}' is not supported`,K.ERR_NOT_SUPPORT,b)})});const g=async m=>{if(m==null)return 0;if(C.isBlob(m))return m.size;if(C.isSpecCompliantForm(m))return(await new i(Ct.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(C.isArrayBufferView(m)||C.isArrayBuffer(m))return m.byteLength;if(C.isURLSearchParams(m)&&(m=m+""),C.isString(m))return(await f(m)).byteLength},v=async(m,y)=>{const b=C.toFiniteNumber(m.getContentLength());return b??g(y)};return async m=>{let{url:y,method:b,data:w,signal:x,cancelToken:j,timeout:A,onDownloadProgress:_,onUploadProgress:E,responseType:T,headers:R,withCredentials:N="same-origin",fetchOptions:L,maxContentLength:k,maxBodyLength:D}=n2(m);const $=C.isNumber(k)&&k>-1,P=C.isNumber(D)&&D>-1,B=se=>C.hasOwnProp(m,se)?m[se]:void 0;let H=a||fetch;T=T?(T+"").toLowerCase():"text";let G=uk([x,j&&j.toAbortSignal()],A),q=null;const Y=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let W,oe=null;const Ce=()=>new K("Request body larger than maxBodyLength limit",K.ERR_BAD_REQUEST,m,q);try{let se;const Ot=B("auth");if(Ot){const Z=C.getSafeProp(Ot,"username")||"",Me=C.getSafeProp(Ot,"password")||"";se={username:Z,password:Me}}if(yk(y)){const Z=new URL(y,Ct.origin);if(!se&&(Z.username||Z.password)){const Me=c1(Z.username),At=c1(Z.password);se={username:Me,password:At}}(Z.username||Z.password)&&(Z.username="",Z.password="",y=Z.href)}if(se&&(R.delete("authorization"),R.set("Authorization","Basic "+btoa(mk((se.username||"")+":"+(se.password||""))))),$&&typeof y=="string"&&y.startsWith("data:")&&pk(y)>k)throw new K("maxContentLength size of "+k+" exceeded",K.ERR_BAD_RESPONSE,m,q);if(P&&b!=="get"&&b!=="head"){const Z=await g(w);if(typeof Z=="number"&&isFinite(Z)&&(W=Z,Z>D))throw Ce()}const ct=P&&(C.isReadableStream(w)||C.isStream(w)),V=(Z,Me,At)=>s1(Z,u1,Gt=>{if(P&&Gt>D)throw oe=Ce();Me&&Me(Gt)},At);if(h&&b!=="get"&&b!=="head"&&(E||ct)){if(W=W??await v(R,w),W!==0||ct){let Z=new i(y,{method:"POST",body:w,duplex:"half"}),Me;if(C.isFormData(w)&&(Me=Z.headers.get("content-type"))&&R.setContentType(Me),Z.body){const[At,Gt]=E&&a1(W,yf(i1(E)))||[];w=V(Z.body,At,Gt)}}}else if(ct&&!s&&d&&b!=="get"&&b!=="head")w=V(w);else if(ct&&s&&!h&&b!=="get"&&b!=="head")throw new K("Stream request bodies are not supported by the current fetch implementation",K.ERR_NOT_SUPPORT,m,q);C.isString(N)||(N=N?"include":"omit");const ae=s&&"credentials"in i.prototype;if(C.isFormData(w)){const Z=R.getContentType();Z&&/^multipart\/form-data/i.test(Z)&&!/boundary=/i.test(Z)&&R.delete("content-type")}R.set("User-Agent","axios/"+ub,!1);const ue={...L,signal:G,method:b.toUpperCase(),headers:YE(R.normalize()),body:w,duplex:"half",credentials:ae?N:void 0};q=s&&new i(y,ue);let U=await(s?H(q,L):H(y,ue));const Ue=Lt.from(U.headers);if($){const Z=C.toFiniteNumber(Ue.getContentLength());if(Z!=null&&Z>k)throw new K("maxContentLength size of "+k+" exceeded",K.ERR_BAD_RESPONSE,m,q)}const me=p&&(T==="stream"||T==="response");if(p&&U.body&&(_||$||me&&Y)){const Z={};["status","statusText","headers"].forEach(tn=>{Z[tn]=U[tn]});const Me=C.toFiniteNumber(Ue.getContentLength()),[At,Gt]=_&&a1(Me,yf(i1(_),!0))||[];let Ma=0;const cr=tn=>{if($&&(Ma=tn,Ma>k))throw new K("maxContentLength size of "+k+" exceeded",K.ERR_BAD_RESPONSE,m,q);At&&At(tn)};U=new l(s1(U.body,u1,cr,()=>{Gt&&Gt(),Y&&Y()}),Z)}T=T||"text";let Oe=await S[C.findKey(S,T)||"text"](U,m);if($&&!p&&!me){let Z;if(Oe!=null&&(typeof Oe.byteLength=="number"?Z=Oe.byteLength:typeof Oe.size=="number"?Z=Oe.size:typeof Oe=="string"&&(Z=typeof r=="function"?new r().encode(Oe).byteLength:Oe.length)),typeof Z=="number"&&Z>k)throw new K("maxContentLength size of "+k+" exceeded",K.ERR_BAD_RESPONSE,m,q)}return!me&&Y&&Y(),await new Promise((Z,Me)=>{e2(Z,Me,{data:Oe,headers:Lt.from(U.headers),status:U.status,statusText:U.statusText,config:m,request:q})})}catch(se){if(Y&&Y(),G&&G.aborted&&G.reason instanceof K){const Ot=G.reason;throw Ot.config=m,q&&(Ot.request=q),se!==Ot&&(Ot.cause=se),Ot}throw oe?(q&&!oe.request&&(oe.request=q),oe):se instanceof K?(q&&!se.request&&(se.request=q),se):se&&se.name==="TypeError"&&/Load failed|fetch/i.test(se.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,m,q,se&&se.response),{cause:se.cause||se}):K.from(se,se&&se.code,m,q,se&&se.response)}}},gk=new Map,r2=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let l=i.length,o=l,s,u,d=gk;for(;o--;)s=i[o],u=d.get(s),u===void 0&&d.set(s,u=o?new Map:vk(t)),d=u;return u};r2();const cb={http:M3,xhr:sk,fetch:{get:r2}};C.forEach(cb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const d1=e=>`- ${e}`,bk=e=>C.isFunction(e)||e===null||e===!1;function xk(e,t){e=C.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let l=0;l<n;l++){r=e[l];let o;if(a=r,!bk(r)&&(a=cb[(o=String(r)).toLowerCase()],a===void 0))throw new K(`Unknown adapter '${o}'`);if(a&&(C.isFunction(a)||(a=a.get(t))))break;i[o||"#"+l]=a}if(!a){const l=Object.entries(i).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=n?l.length>1?`since :
`+l.map(d1).join(`
`):" "+d1(l[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}const a2={getAdapter:xk,adapters:cb};function $p(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Eu(null,e)}function h1(e){return $p(e),e.headers=Lt.from(e.headers),e.data=Mp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),a2.getAdapter(e.adapter||_u.adapter,e)(e).then(function(r){$p(e),e.response=r;try{r.data=Mp.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Lt.from(r.headers),r},function(r){if(!JE(r)&&($p(e),r&&r.response)){e.response=r.response;try{r.response.data=Mp.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Lt.from(r.response.headers)}return Promise.reject(r)})}const qd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const p1={};qd.transitional=function(t,n,r){function a(i,l){return"[Axios v"+ub+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,o)=>{if(t===!1)throw new K(a(l," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!p1[l]&&(p1[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,o):!0}};qd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Sk(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],l=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(l){const o=e[i],s=o===void 0||l(o,i,e);if(s!==!0)throw new K("option "+i+" must be "+s,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const Dc={assertOptions:Sk,validators:qd},Rt=Dc.validators;let ei=class{constructor(t){this.defaults=t||{},this.interceptors={request:new n1,response:new n1}}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 l=a.stack.indexOf(`
`);return l===-1?"":a.stack.slice(l+1)})();try{if(!r.stack)r.stack=i;else if(i){const l=i.indexOf(`
`),o=l===-1?-1:i.indexOf(`
`,l+1),s=o===-1?"":i.slice(o+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=ci(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Dc.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean),legacyInterceptorReqResOrdering:Rt.transitional(Rt.boolean),advertiseZstdAcceptEncoding:Rt.transitional(Rt.boolean),validateStatusUndefinedResolves:Rt.transitional(Rt.boolean)},!1),a!=null&&(C.isFunction(a)?n.paramsSerializer={serialize:a}:Dc.assertOptions(a,{encode:Rt.function,serialize:Rt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Dc.assertOptions(n,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&C.merge(i.common,i[n.method]);i&&C.forEach(["delete","get","head","post","put","patch","query","common"],S=>{delete i[S]}),n.headers=Lt.concat(l,i);const o=[];let s=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;s=s&&g.synchronous;const v=n.transitional||ob;v&&v.legacyInterceptorReqResOrdering?o.unshift(g.fulfilled,g.rejected):o.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let d,f=0,h;if(!s){const S=[h1.bind(this),void 0];for(S.unshift(...o),S.push(...u),h=S.length,d=Promise.resolve(n);f<h;)d=d.then(S[f++],S[f++]);return d}h=o.length;let p=n;for(;f<h;){const S=o[f++],g=o[f++];try{p=S(p)}catch(v){g.call(this,v);break}}try{d=h1.call(this,p)}catch(S){return Promise.reject(S)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=ci(this.defaults,t);const n=t2(t.baseURL,t.url,t.allowAbsoluteUrls,t);return WE(n,t.params,t.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(t){ei.prototype[t]=function(n,r){return this.request(ci(r||{},{method:t,url:n,data:r&&C.hasOwnProp(r,"data")?r.data:void 0}))}});C.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,l,o){return this.request(ci(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}ei.prototype[t]=n(),t!=="query"&&(ei.prototype[t+"Form"]=n(!0))});let wk=class i2{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 l=new Promise(o=>{r.subscribe(o),i=o}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,o){r.reason||(r.reason=new Eu(i,l,o),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 i2(function(a){t=a}),cancel:t}}};function jk(e){return function(n){return e.apply(null,n)}}function Ok(e){return C.isObject(e)&&e.isAxiosError===!0}const py={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(py).forEach(([e,t])=>{py[t]=e});function l2(e){const t=new ei(e),n=kE(ei.prototype.request,t);return C.extend(n,ei.prototype,t,{allOwnKeys:!0}),C.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return l2(ci(e,a))},n}const tt=l2(_u);tt.Axios=ei;tt.CanceledError=Eu;tt.CancelToken=wk;tt.isCancel=JE;tt.VERSION=ub;tt.toFormData=Hd;tt.AxiosError=K;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=jk;tt.isAxiosError=Ok;tt.mergeConfig=ci;tt.AxiosHeaders=Lt;tt.formToJSON=e=>QE(C.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=a2.getAdapter;tt.HttpStatusCode=py;tt.default=tt;const{Axios:_le,AxiosError:Ele,CanceledError:Tle,isCancel:Nle,CancelToken:Cle,VERSION:Mle,all:$le,Cancel:Rle,isAxiosError:Ple,spread:Dle,toFormData:kle,AxiosHeaders:Lle,HttpStatusCode:Ble,formToJSON:zle,getAdapter:Ile,mergeConfig:Ule,create:Hle}=tt,J=tt.create({baseURL:"/api/hrm"});J.interceptors.request.use(e=>{const t=localStorage.getItem("hrm_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});J.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("hrm_token"),window.location.href="/login"),Promise.reject(e)});const Ak=()=>J.get("/auth/me"),_k=()=>J.post("/auth/otp/setup"),Ek=e=>J.post("/auth/otp/confirm",{code:e}),Tk=()=>J.post("/auth/otp/disable"),Nk=(e,t)=>J.post("/auth/change-password",{currentPassword:e,newPassword:t}),Ck=e=>J.post(`/admin/users/${e}/otp-reset`),ne=tt.create({baseURL:""});ne.interceptors.request.use(e=>{const t=localStorage.getItem("hrm_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});ne.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("hrm_token"),location.pathname!=="/login"&&(location.href="/login")),Promise.reject(e)});const Mk=(e,t)=>ne.post("/api/hrm/auth/verify",{verifyToken:e,code:t}),$k=(e,t)=>ne.post("/api/hrm/auth/verify-otp",{verifyToken:e,code:t}),Rk=e=>ne.post("/api/auth/signup",e),Pk=e=>ne.post("/api/auth/find-id",e),Dk=e=>ne.post("/api/auth/reset-password",e),kk=e=>ne.post("/api/messages",e),Lk=e=>ne.get("/api/messages/sent",{params:e}),Bk=e=>ne.get(`/api/messages/sent/${e}`),zk=e=>ne.get("/api/messages/received",{params:e}),Ik=e=>ne.get(`/api/messages/received/${e}`),Uk=e=>ne.get("/api/schedules",{params:e}),Hk=e=>ne.post("/api/schedules",e),qk=e=>ne.get(`/api/schedules/${e}`),Gk=e=>ne.delete(`/api/schedules/${e}`),Yk=e=>ne.get("/api/worklogs",{params:e}),Fk=e=>ne.get("/api/worklogs/dashboard/progress",{params:e}),Vk=e=>ne.post("/api/worklogs",e),Kk=e=>ne.get(`/api/worklogs/${e}`),Xk=e=>ne.delete(`/api/worklogs/${e}`),Wk=(e,t)=>ne.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),Zk=e=>ne.get("/api/stats/personal-work",{params:e}),Qk=e=>ne.get("/api/stats/company-work",{params:e}),Jk=(e,t=0,n=100)=>ne.get("/api/system/roles",{params:{keyword:e,page:t,size:n}}),e4=e=>ne.post("/api/system/roles",e),t4=(e,t)=>ne.put(`/api/system/roles/${e}`,t),n4=e=>ne.delete("/api/system/roles",{data:{ids:e}}),r4=(e,t=0,n=100)=>ne.get("/api/system/codes",{params:{keyword:e,page:t,size:n}}),a4=e=>ne.get(`/api/system/codes/${e}`),i4=e=>ne.post("/api/system/codes",e),my=(e,t)=>ne.put(`/api/system/codes/${e}`,t),l4=e=>ne.delete(`/api/system/codes/${e}`),o4=(e=0,t=200)=>ne.get("/api/system/menus",{params:{page:e,size:t}}),s4=e=>ne.post("/api/system/menus",e),u4=(e,t)=>ne.put(`/api/system/menus/${e}`,t),c4=e=>ne.delete("/api/system/menus",{data:{ids:[e]}}),f4=(e,t=0,n=200)=>ne.get("/api/system/depts",{params:{keyword:e,page:t,size:n}}),d4=e=>ne.post("/api/system/depts",e),h4=(e,t)=>ne.put(`/api/system/depts/${e}`,t),p4=e=>ne.delete(`/api/system/depts/${e}`),m4=(e,t=0,n=200)=>ne.get("/api/system/companies",{params:{keyword:e,page:t,size:n}}),y4=e=>ne.post("/api/system/companies",e),v4=(e,t)=>ne.put(`/api/system/companies/${e}`,t),g4=e=>ne.delete("/api/system/companies",{data:{ids:[e]}}),b4=(e=0,t=200)=>ne.get("/api/system/role-menus",{params:{page:e,size:t}}),x4=e=>ne.get(`/api/system/roles/${e}/menus`),S4=(e,t)=>ne.put(`/api/system/roles/${e}/menus`,{menus:t});function w4(){const e=Qg(),[t,n]=O.useState({username:"",password:""}),[r,a]=O.useState(""),[i,l]=O.useState(!1),[o,s]=O.useState(null),[u,d]=O.useState(""),f=(o==null?void 0:o.verifyMethod)==="OTP"||(o==null?void 0:o.verifyMethod)==="OTP_SETUP",h=(o==null?void 0:o.verifyMethod)==="OTP_SETUP",[p,S]=O.useState(null),g=async()=>{const y=await J.get("/auth/me");localStorage.setItem("hrm_user",JSON.stringify(y.data.data)),e("/dashboard")},v=async y=>{var b,w;y.preventDefault(),l(!0),a("");try{const{data:x}=await J.post("/auth/login",t),j=x.data||{};if(j.twofa==="true"){s({verifyToken:j.verifyToken,verifyMethod:j.verifyMethod||"EMAIL",maskedEmail:j.maskedEmail||"",qrImage:j.qrImage||"",secret:j.secret||""}),d("");return}localStorage.setItem("hrm_token",j.token),await g()}catch(x){const j=((w=(b=x==null?void 0:x.response)==null?void 0:b.data)==null?void 0:w.message)||"";a(j.includes("잠겼")||j.includes("승인")?j:"아이디 또는 비밀번호가 올바르지 않습니다.")}finally{l(!1)}},m=async y=>{if(y.preventDefault(),!!o){l(!0),a("");try{const{data:b}=f?await $k(o.verifyToken,u):await Mk(o.verifyToken,u);localStorage.setItem("hrm_token",b.data.token),await g()}catch{a("인증 코드가 올바르지 않거나 만료되었습니다.")}finally{l(!1)}}};return c.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 to-blue-900 flex items-center justify-center p-4",children:[c.jsxs("div",{className:"w-full max-w-md",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("h1",{className:"text-3xl font-bold text-white",children:"GUARDiA HRM"}),c.jsx("p",{className:"text-blue-300 mt-2",children:"AI 기반 통합 인사관리 플랫폼"})]}),o?c.jsxs("form",{onSubmit:m,className:"bg-white rounded-2xl shadow-2xl p-8 space-y-5",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-sm font-semibold text-slate-700",children:"2차 인증"}),h?c.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"최초 로그인입니다. 아래 QR을 Authenticator 앱(Google·Microsoft)으로 스캔해 등록한 뒤 6자리 코드를 입력하세요."}):f?c.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Authenticator 앱에 표시된 6자리 코드를 입력하세요."}):c.jsx("p",{className:"text-xs text-slate-500 mt-1",children:o.maskedEmail?`${o.maskedEmail} 으로 발송된 인증 코드를 입력하세요.`:"이메일로 발송된 인증 코드를 입력하세요."})]}),h&&o.qrImage&&c.jsx("div",{className:"flex justify-center",children:c.jsx("img",{src:o.qrImage,alt:"OTP QR",width:180,height:180,style:{background:"#fff",padding:8,borderRadius:8,border:"1px solid #e2e8f0"}})}),h&&o.secret&&c.jsxs("div",{children:[c.jsx("p",{className:"text-[11px] text-slate-400 mb-1",children:"QR 스캔이 안 되면 수동 입력 키"}),c.jsx("code",{className:"block text-xs text-blue-700 bg-slate-50 border border-slate-200 rounded-md px-2 py-1.5 break-all select-all",children:o.secret})]}),c.jsx("input",{type:"text",inputMode:"numeric",value:u,autoFocus:!0,autoComplete:"one-time-code",onChange:y=>d(y.target.value.replace(/\D/g,"").slice(0,6)),className:"w-full border border-slate-200 rounded-lg px-4 py-2.5 text-center tracking-widest text-lg focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"6자리 코드",maxLength:6,required:!0}),r&&c.jsx("p",{className:"text-red-500 text-sm text-center",children:r}),c.jsx("button",{type:"submit",disabled:i||u.length!==6,className:"w-full py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 disabled:opacity-50 transition-colors",children:i?"확인 중...":h?"등록하고 로그인":"인증 확인"}),c.jsx("button",{type:"button",onClick:()=>{s(null),d(""),a("")},className:"w-full text-xs text-slate-400 hover:text-slate-600",children:"← 다시 로그인"})]}):c.jsxs("form",{onSubmit:v,className:"bg-white rounded-2xl shadow-2xl p-8 space-y-5",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1",children:"아이디"}),c.jsx("input",{type:"text",value:t.username,onChange:y=>n({...t,username:y.target.value}),className:"w-full border border-slate-200 rounded-lg px-4 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"admin",required:!0})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-slate-700 mb-1",children:"비밀번호"}),c.jsx("input",{type:"password",value:t.password,onChange:y=>n({...t,password:y.target.value}),className:"w-full border border-slate-200 rounded-lg px-4 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"••••••••",required:!0})]}),r&&c.jsx("p",{className:"text-red-500 text-sm text-center",children:r}),c.jsx("button",{type:"submit",disabled:i,className:"w-full py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 disabled:opacity-50 transition-colors",children:i?"로그인 중...":"로그인"}),c.jsxs("div",{className:"flex items-center justify-center gap-3 text-xs text-slate-500",children:[c.jsx("button",{type:"button",className:"hover:text-blue-600",onClick:()=>{S("signup"),a("")},children:"회원가입"}),c.jsx("span",{className:"text-slate-300",children:"|"}),c.jsx("button",{type:"button",className:"hover:text-blue-600",onClick:()=>{S("findId"),a("")},children:"아이디 찾기"}),c.jsx("span",{className:"text-slate-300",children:"|"}),c.jsx("button",{type:"button",className:"hover:text-blue-600",onClick:()=>{S("resetPw"),a("")},children:"비밀번호 초기화"})]}),c.jsx("p",{className:"text-center text-xs text-slate-400",children:"GUARDiA HRM v1.0 | 온프레미스 AI 인사관리"})]})]}),p&&c.jsx(j4,{kind:p,onClose:()=>S(null)})]})}function j4({kind:e,onClose:t}){const[n,r]=O.useState({username:"",password:"",displayName:"",email:""}),[a,i]=O.useState(""),[l,o]=O.useState(!1),s=(h,p)=>r({...n,[h]:p}),u={signup:"회원가입",findId:"아이디 찾기",resetPw:"비밀번호 초기화"},d=async h=>{var p,S,g;h.preventDefault(),o(!0),i("");try{if(e==="signup"){const{data:v}=await Rk({username:n.username,password:n.password,displayName:n.displayName,email:n.email});i(((p=v.data)==null?void 0:p.message)||"처리되었습니다.")}else if(e==="findId"){const{data:v}=await Pk({displayName:n.displayName,email:n.email});i((S=v.data)!=null&&S.found?`회원님의 아이디: ${v.data.maskedUsername}`:"일치하는 계정을 찾을 수 없습니다.")}else{const{data:v}=await Dk({username:n.username,email:n.email});i(((g=v.data)==null?void 0:g.message)||"처리되었습니다.")}}catch{i("요청 처리 중 오류가 발생했습니다.")}finally{o(!1)}},f=(h,p,S="text")=>c.jsx("input",{type:S,value:n[h],onChange:g=>s(h,g.target.value),className:"w-full border border-slate-200 rounded-lg px-4 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:p,required:!0});return c.jsx("div",{className:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:t,children:c.jsxs("form",{onClick:h=>h.stopPropagation(),onSubmit:d,className:"bg-white rounded-2xl shadow-2xl p-7 w-full max-w-sm space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-lg font-bold text-slate-800",children:u[e]}),c.jsx("button",{type:"button",onClick:t,className:"text-slate-400 hover:text-slate-600",children:"✕"})]}),e==="signup"&&c.jsxs(c.Fragment,{children:[f("username","아이디"),f("password","비밀번호(4자 이상)","password"),f("displayName","이름"),f("email","이메일","email")]}),e==="findId"&&c.jsxs(c.Fragment,{children:[f("displayName","이름"),f("email","이메일","email")]}),e==="resetPw"&&c.jsxs(c.Fragment,{children:[f("username","아이디"),f("email","이메일","email")]}),a&&c.jsx("p",{className:"text-sm text-blue-700 bg-blue-50 rounded-lg px-3 py-2",children:a}),c.jsx("button",{type:"submit",disabled:l,className:"w-full py-2.5 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 disabled:opacity-50 transition-colors",children:l?"처리 중...":"확인"})]})})}function o2(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=o2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function he(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=o2(e))&&(r&&(r+=" "),r+=t);return r}var O4=Array.isArray,en=O4,A4=typeof Du=="object"&&Du&&Du.Object===Object&&Du,s2=A4,_4=s2,E4=typeof self=="object"&&self&&self.Object===Object&&self,T4=_4||E4||Function("return this")(),sr=T4,N4=sr,C4=N4.Symbol,Tu=C4,m1=Tu,u2=Object.prototype,M4=u2.hasOwnProperty,$4=u2.toString,No=m1?m1.toStringTag:void 0;function R4(e){var t=M4.call(e,No),n=e[No];try{e[No]=void 0;var r=!0}catch{}var a=$4.call(e);return r&&(t?e[No]=n:delete e[No]),a}var P4=R4,D4=Object.prototype,k4=D4.toString;function L4(e){return k4.call(e)}var B4=L4,y1=Tu,z4=P4,I4=B4,U4="[object Null]",H4="[object Undefined]",v1=y1?y1.toStringTag:void 0;function q4(e){return e==null?e===void 0?H4:U4:v1&&v1 in Object(e)?z4(e):I4(e)}var Hr=q4;function G4(e){return e!=null&&typeof e=="object"}var qr=G4,Y4=Hr,F4=qr,V4="[object Symbol]";function K4(e){return typeof e=="symbol"||F4(e)&&Y4(e)==V4}var oo=K4,X4=en,W4=oo,Z4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q4=/^\w*$/;function J4(e,t){if(X4(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||W4(e)?!0:Q4.test(e)||!Z4.test(e)||t!=null&&e in Object(t)}var fb=J4;function e6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Aa=e6;const so=Te(Aa);var t6=Hr,n6=Aa,r6="[object AsyncFunction]",a6="[object Function]",i6="[object GeneratorFunction]",l6="[object Proxy]";function o6(e){if(!n6(e))return!1;var t=t6(e);return t==a6||t==i6||t==r6||t==l6}var db=o6;const ie=Te(db);var s6=sr,u6=s6["__core-js_shared__"],c6=u6,Rp=c6,g1=function(){var e=/[^.]+$/.exec(Rp&&Rp.keys&&Rp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function f6(e){return!!g1&&g1 in e}var d6=f6,h6=Function.prototype,p6=h6.toString;function m6(e){if(e!=null){try{return p6.call(e)}catch{}try{return e+""}catch{}}return""}var c2=m6,y6=db,v6=d6,g6=Aa,b6=c2,x6=/[\\^$.*+?()[\]{}|]/g,S6=/^\[object .+?Constructor\]$/,w6=Function.prototype,j6=Object.prototype,O6=w6.toString,A6=j6.hasOwnProperty,_6=RegExp("^"+O6.call(A6).replace(x6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E6(e){if(!g6(e)||v6(e))return!1;var t=y6(e)?_6:S6;return t.test(b6(e))}var T6=E6;function N6(e,t){return e==null?void 0:e[t]}var C6=N6,M6=T6,$6=C6;function R6(e,t){var n=$6(e,t);return M6(n)?n:void 0}var Si=R6,P6=Si,D6=P6(Object,"create"),Gd=D6,b1=Gd;function k6(){this.__data__=b1?b1(null):{},this.size=0}var L6=k6;function B6(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var z6=B6,I6=Gd,U6="__lodash_hash_undefined__",H6=Object.prototype,q6=H6.hasOwnProperty;function G6(e){var t=this.__data__;if(I6){var n=t[e];return n===U6?void 0:n}return q6.call(t,e)?t[e]:void 0}var Y6=G6,F6=Gd,V6=Object.prototype,K6=V6.hasOwnProperty;function X6(e){var t=this.__data__;return F6?t[e]!==void 0:K6.call(t,e)}var W6=X6,Z6=Gd,Q6="__lodash_hash_undefined__";function J6(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Z6&&t===void 0?Q6:t,this}var eL=J6,tL=L6,nL=z6,rL=Y6,aL=W6,iL=eL;function uo(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])}}uo.prototype.clear=tL;uo.prototype.delete=nL;uo.prototype.get=rL;uo.prototype.has=aL;uo.prototype.set=iL;var lL=uo;function oL(){this.__data__=[],this.size=0}var sL=oL;function uL(e,t){return e===t||e!==e&&t!==t}var hb=uL,cL=hb;function fL(e,t){for(var n=e.length;n--;)if(cL(e[n][0],t))return n;return-1}var Yd=fL,dL=Yd,hL=Array.prototype,pL=hL.splice;function mL(e){var t=this.__data__,n=dL(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pL.call(t,n,1),--this.size,!0}var yL=mL,vL=Yd;function gL(e){var t=this.__data__,n=vL(t,e);return n<0?void 0:t[n][1]}var bL=gL,xL=Yd;function SL(e){return xL(this.__data__,e)>-1}var wL=SL,jL=Yd;function OL(e,t){var n=this.__data__,r=jL(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var AL=OL,_L=sL,EL=yL,TL=bL,NL=wL,CL=AL;function co(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])}}co.prototype.clear=_L;co.prototype.delete=EL;co.prototype.get=TL;co.prototype.has=NL;co.prototype.set=CL;var Fd=co,ML=Si,$L=sr,RL=ML($L,"Map"),pb=RL,x1=lL,PL=Fd,DL=pb;function kL(){this.size=0,this.__data__={hash:new x1,map:new(DL||PL),string:new x1}}var LL=kL;function BL(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var zL=BL,IL=zL;function UL(e,t){var n=e.__data__;return IL(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Vd=UL,HL=Vd;function qL(e){var t=HL(this,e).delete(e);return this.size-=t?1:0,t}var GL=qL,YL=Vd;function FL(e){return YL(this,e).get(e)}var VL=FL,KL=Vd;function XL(e){return KL(this,e).has(e)}var WL=XL,ZL=Vd;function QL(e,t){var n=ZL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var JL=QL,e5=LL,t5=GL,n5=VL,r5=WL,a5=JL;function fo(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])}}fo.prototype.clear=e5;fo.prototype.delete=t5;fo.prototype.get=n5;fo.prototype.has=r5;fo.prototype.set=a5;var mb=fo,f2=mb,i5="Expected a function";function yb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(i5);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 l=e.apply(this,r);return n.cache=i.set(a,l)||i,l};return n.cache=new(yb.Cache||f2),n}yb.Cache=f2;var d2=yb;const l5=Te(d2);var o5=d2,s5=500;function u5(e){var t=o5(e,function(r){return n.size===s5&&n.clear(),r}),n=t.cache;return t}var c5=u5,f5=c5,d5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h5=/\\(\\)?/g,p5=f5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(d5,function(n,r,a,i){t.push(a?i.replace(h5,"$1"):r||n)}),t}),m5=p5;function y5(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 vb=y5,S1=Tu,v5=vb,g5=en,b5=oo,w1=S1?S1.prototype:void 0,j1=w1?w1.toString:void 0;function h2(e){if(typeof e=="string")return e;if(g5(e))return v5(e,h2)+"";if(b5(e))return j1?j1.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var x5=h2,S5=x5;function w5(e){return e==null?"":S5(e)}var p2=w5,j5=en,O5=fb,A5=m5,_5=p2;function E5(e,t){return j5(e)?e:O5(e,t)?[e]:A5(_5(e))}var m2=E5,T5=oo;function N5(e){if(typeof e=="string"||T5(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Kd=N5,C5=m2,M5=Kd;function $5(e,t){t=C5(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[M5(t[n++])];return n&&n==r?e:void 0}var gb=$5,R5=gb;function P5(e,t,n){var r=e==null?void 0:R5(e,t);return r===void 0?n:r}var y2=P5;const pn=Te(y2);function D5(e){return e==null}var k5=D5;const pe=Te(k5);var L5=Hr,B5=en,z5=qr,I5="[object String]";function U5(e){return typeof e=="string"||!B5(e)&&z5(e)&&L5(e)==I5}var H5=U5;const fi=Te(H5);var v2={exports:{}},Ne={};/**
 * @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 bb=Symbol.for("react.element"),xb=Symbol.for("react.portal"),Xd=Symbol.for("react.fragment"),Wd=Symbol.for("react.strict_mode"),Zd=Symbol.for("react.profiler"),Qd=Symbol.for("react.provider"),Jd=Symbol.for("react.context"),q5=Symbol.for("react.server_context"),eh=Symbol.for("react.forward_ref"),th=Symbol.for("react.suspense"),nh=Symbol.for("react.suspense_list"),rh=Symbol.for("react.memo"),ah=Symbol.for("react.lazy"),G5=Symbol.for("react.offscreen"),g2;g2=Symbol.for("react.module.reference");function kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case bb:switch(e=e.type,e){case Xd:case Zd:case Wd:case th:case nh:return e;default:switch(e=e&&e.$$typeof,e){case q5:case Jd:case eh:case ah:case rh:case Qd:return e;default:return t}}case xb:return t}}}Ne.ContextConsumer=Jd;Ne.ContextProvider=Qd;Ne.Element=bb;Ne.ForwardRef=eh;Ne.Fragment=Xd;Ne.Lazy=ah;Ne.Memo=rh;Ne.Portal=xb;Ne.Profiler=Zd;Ne.StrictMode=Wd;Ne.Suspense=th;Ne.SuspenseList=nh;Ne.isAsyncMode=function(){return!1};Ne.isConcurrentMode=function(){return!1};Ne.isContextConsumer=function(e){return kn(e)===Jd};Ne.isContextProvider=function(e){return kn(e)===Qd};Ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===bb};Ne.isForwardRef=function(e){return kn(e)===eh};Ne.isFragment=function(e){return kn(e)===Xd};Ne.isLazy=function(e){return kn(e)===ah};Ne.isMemo=function(e){return kn(e)===rh};Ne.isPortal=function(e){return kn(e)===xb};Ne.isProfiler=function(e){return kn(e)===Zd};Ne.isStrictMode=function(e){return kn(e)===Wd};Ne.isSuspense=function(e){return kn(e)===th};Ne.isSuspenseList=function(e){return kn(e)===nh};Ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xd||e===Zd||e===Wd||e===th||e===nh||e===G5||typeof e=="object"&&e!==null&&(e.$$typeof===ah||e.$$typeof===rh||e.$$typeof===Qd||e.$$typeof===Jd||e.$$typeof===eh||e.$$typeof===g2||e.getModuleId!==void 0)};Ne.typeOf=kn;v2.exports=Ne;var Y5=v2.exports,F5=Hr,V5=qr,K5="[object Number]";function X5(e){return typeof e=="number"||V5(e)&&F5(e)==K5}var b2=X5;const W5=Te(b2);var Z5=b2;function Q5(e){return Z5(e)&&e!=+e}var J5=Q5;const Nu=Te(J5);var It=function(t){return t===0?0:t>0?1:-1},Ya=function(t){return fi(t)&&t.indexOf("%")===t.length-1},F=function(t){return W5(t)&&!Nu(t)},eB=function(t){return pe(t)},pt=function(t){return F(t)||fi(t)},tB=0,Cu=function(t){var n=++tB;return"".concat(t||"").concat(n)},Ut=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(!F(t)&&!fi(t))return r;var i;if(Ya(t)){var l=t.indexOf("%");i=n*parseFloat(t.slice(0,l))/100}else i=+t;return Nu(i)&&(i=r),a&&i>n&&(i=n),i},ki=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},nB=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},Wr=function(t,n){return F(t)&&F(n)?function(r){return t+r*(n-t)}:function(){return n}};function yy(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):pn(r,t))===n})}var rB=function(t,n){return F(t)&&F(n)?t-n:fi(t)&&fi(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function sl(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 vy(e){"@babel/helpers - typeof";return vy=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},vy(e)}var aB=["viewBox","children"],iB=["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"],O1=["points","pathLength"],Pp={svg:aB,polygon:O1,polyline:O1},Sb=["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"],gf=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(O.isValidElement(t)&&(r=t.props),!so(r))return null;var a={};return Object.keys(r).forEach(function(i){Sb.includes(i)&&(a[i]=n||function(l){return r[i](r,l)})}),a},lB=function(t,n,r){return function(a){return t(n,r,a),null}},di=function(t,n,r){if(!so(t)||vy(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var l=t[i];Sb.includes(i)&&typeof l=="function"&&(a||(a={}),a[i]=lB(l,n,r))}),a},oB=["children"],sB=["children"];function A1(e,t){if(e==null)return{};var n=uB(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 uB(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 _1={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"},Tr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},E1=null,Dp=null,wb=function e(t){if(t===E1&&Array.isArray(Dp))return Dp;var n=[];return O.Children.forEach(t,function(r){pe(r)||(Y5.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Dp=n,E1=t,n};function $n(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Tr(a)}):r=[Tr(t)],wb(e).forEach(function(a){var i=pn(a,"type.displayName")||pn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function an(e,t){var n=$n(e,t);return n&&n[0]}var T1=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!F(r)||r<=0||!F(a)||a<=0)},cB=["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"],fB=function(t){return t&&t.type&&fi(t.type)&&cB.indexOf(t.type)>=0},dB=function(t,n,r,a){var i,l=(i=Pp==null?void 0:Pp[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!ie(t)&&(a&&l.includes(n)||iB.includes(n))||r&&Sb.includes(n)},re=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(O.isValidElement(t)&&(a=t.props),!so(a))return null;var i={};return Object.keys(a).forEach(function(l){var o;dB((o=a)===null||o===void 0?void 0:o[l],l,n,r)&&(i[l]=a[l])}),i},gy=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 N1(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],l=n[a];if(Array.isArray(i)||Array.isArray(l)){if(!e(i,l))return!1}else if(!N1(i,l))return!1}return!0},N1=function(t,n){if(pe(t)&&pe(n))return!0;if(!pe(t)&&!pe(n)){var r=t.props||{},a=r.children,i=A1(r,oB),l=n.props||{},o=l.children,s=A1(l,sB);return a&&o?sl(i,s)&&gy(a,o):!a&&!o?sl(i,s):!1}return!1},C1=function(t,n){var r=[],a={};return wb(t).forEach(function(i,l){if(fB(i))r.push(i);else if(i){var o=Tr(i.type),s=n[o]||{},u=s.handler,d=s.once;if(u&&(!d||!a[o])){var f=u(i,o,l);r.push(f),a[o]=!0}}}),r},hB=function(t){var n=t&&t.type;return n&&_1[n]?_1[n]:null},pB=function(t,n){return wb(n).indexOf(t)},mB=["children","width","height","viewBox","className","style","title","desc"];function by(){return by=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},by.apply(this,arguments)}function yB(e,t){if(e==null)return{};var n=vB(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 vB(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){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,l=e.style,o=e.title,s=e.desc,u=yB(e,mB),d=a||{width:n,height:r,x:0,y:0},f=he("recharts-surface",i);return M.createElement("svg",by({},re(u,!0,"svg"),{className:f,width:n,height:r,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),M.createElement("title",null,o),M.createElement("desc",null,s),t)}var gB=["children","className"];function Sy(){return Sy=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},Sy.apply(this,arguments)}function bB(e,t){if(e==null)return{};var n=xB(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 xB(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 Ee=M.forwardRef(function(e,t){var n=e.children,r=e.className,a=bB(e,gB),i=he("recharts-layer",r);return M.createElement("g",Sy({className:i},re(a,!0),{ref:t}),n)}),Nr=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 SB(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 wB=SB,jB=wB;function OB(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:jB(e,t,n)}var AB=OB,_B="\\ud800-\\udfff",EB="\\u0300-\\u036f",TB="\\ufe20-\\ufe2f",NB="\\u20d0-\\u20ff",CB=EB+TB+NB,MB="\\ufe0e\\ufe0f",$B="\\u200d",RB=RegExp("["+$B+_B+CB+MB+"]");function PB(e){return RB.test(e)}var x2=PB;function DB(e){return e.split("")}var kB=DB,S2="\\ud800-\\udfff",LB="\\u0300-\\u036f",BB="\\ufe20-\\ufe2f",zB="\\u20d0-\\u20ff",IB=LB+BB+zB,UB="\\ufe0e\\ufe0f",HB="["+S2+"]",wy="["+IB+"]",jy="\\ud83c[\\udffb-\\udfff]",qB="(?:"+wy+"|"+jy+")",w2="[^"+S2+"]",j2="(?:\\ud83c[\\udde6-\\uddff]){2}",O2="[\\ud800-\\udbff][\\udc00-\\udfff]",GB="\\u200d",A2=qB+"?",_2="["+UB+"]?",YB="(?:"+GB+"(?:"+[w2,j2,O2].join("|")+")"+_2+A2+")*",FB=_2+A2+YB,VB="(?:"+[w2+wy+"?",wy,j2,O2,HB].join("|")+")",KB=RegExp(jy+"(?="+jy+")|"+VB+FB,"g");function XB(e){return e.match(KB)||[]}var WB=XB,ZB=kB,QB=x2,JB=WB;function ez(e){return QB(e)?JB(e):ZB(e)}var tz=ez,nz=AB,rz=x2,az=tz,iz=p2;function lz(e){return function(t){t=iz(t);var n=rz(t)?az(t):void 0,r=n?n[0]:t.charAt(0),a=n?nz(n,1).join(""):t.slice(1);return r[e]()+a}}var oz=lz,sz=oz,uz=sz("toUpperCase"),cz=uz;const ih=Te(cz);function Be(e){return function(){return e}}const E2=Math.cos,bf=Math.sin,Xn=Math.sqrt,xf=Math.PI,lh=2*xf,Oy=Math.PI,Ay=2*Oy,Ia=1e-6,fz=Ay-Ia;function T2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function dz(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return T2;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 hz{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?T2:dz(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,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+l}`}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 l=this._x1,o=this._y1,s=r-t,u=a-n,d=l-t,f=o-n,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ia)if(!(Math.abs(f*s-u*d)>Ia)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-l,S=a-o,g=s*s+u*u,v=p*p+S*S,m=Math.sqrt(g),y=Math.sqrt(h),b=i*Math.tan((Oy-Math.acos((g+h-v)/(2*m*y)))/2),w=b/y,x=b/m;Math.abs(w-1)>Ia&&this._append`L${t+w*d},${n+w*f}`,this._append`A${i},${i},0,0,${+(f*p>d*S)},${this._x1=t+x*s},${this._y1=n+x*u}`}}arc(t,n,r,a,i,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(a),s=r*Math.sin(a),u=t+o,d=n+s,f=1^l,h=l?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Ia||Math.abs(this._y1-d)>Ia)&&this._append`L${u},${d}`,r&&(h<0&&(h=h%Ay+Ay),h>fz?this._append`A${r},${r},0,1,${f},${t-o},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=d}`:h>Ia&&this._append`A${r},${r},0,${+(h>=Oy)},${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 jb(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 hz(t)}function Ob(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function N2(e){this._context=e}N2.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 oh(e){return new N2(e)}function C2(e){return e[0]}function M2(e){return e[1]}function $2(e,t){var n=Be(!0),r=null,a=oh,i=null,l=jb(o);e=typeof e=="function"?e:e===void 0?C2:Be(e),t=typeof t=="function"?t:t===void 0?M2:Be(t);function o(s){var u,d=(s=Ob(s)).length,f,h=!1,p;for(r==null&&(i=a(p=l())),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 o.x=function(s){return arguments.length?(e=typeof s=="function"?s:Be(+s),o):e},o.y=function(s){return arguments.length?(t=typeof s=="function"?s:Be(+s),o):t},o.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Be(!!s),o):n},o.curve=function(s){return arguments.length?(a=s,r!=null&&(i=a(r)),o):a},o.context=function(s){return arguments.length?(s==null?r=i=null:i=a(r=s),o):r},o}function ec(e,t,n){var r=null,a=Be(!0),i=null,l=oh,o=null,s=jb(u);e=typeof e=="function"?e:e===void 0?C2:Be(+e),t=typeof t=="function"?t:Be(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?M2:Be(+n);function u(f){var h,p,S,g=(f=Ob(f)).length,v,m=!1,y,b=new Array(g),w=new Array(g);for(i==null&&(o=l(y=s())),h=0;h<=g;++h){if(!(h<g&&a(v=f[h],h,f))===m)if(m=!m)p=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),S=h-1;S>=p;--S)o.point(b[S],w[S]);o.lineEnd(),o.areaEnd()}m&&(b[h]=+e(v,h,f),w[h]=+t(v,h,f),o.point(r?+r(v,h,f):b[h],n?+n(v,h,f):w[h]))}if(y)return o=null,y+""||null}function d(){return $2().defined(a).curve(l).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Be(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Be(+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:Be(!!f),u):a},u.curve=function(f){return arguments.length?(l=f,i!=null&&(o=l(i)),u):l},u.context=function(f){return arguments.length?(f==null?i=o=null:o=l(i=f),u):i},u}class R2{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 pz(e){return new R2(e,!0)}function mz(e){return new R2(e,!1)}const Ab={draw(e,t){const n=Xn(t/xf);e.moveTo(n,0),e.arc(0,0,n,0,lh)}},yz={draw(e,t){const n=Xn(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()}},P2=Xn(1/3),vz=P2*2,gz={draw(e,t){const n=Xn(t/vz),r=n*P2;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},bz={draw(e,t){const n=Xn(t),r=-n/2;e.rect(r,r,n,n)}},xz=.8908130915292852,D2=bf(xf/10)/bf(7*xf/10),Sz=bf(lh/10)*D2,wz=-E2(lh/10)*D2,jz={draw(e,t){const n=Xn(t*xz),r=Sz*n,a=wz*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const l=lh*i/5,o=E2(l),s=bf(l);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*a,s*r+o*a)}e.closePath()}},kp=Xn(3),Oz={draw(e,t){const n=-Xn(t/(kp*3));e.moveTo(0,n*2),e.lineTo(-kp*n,-n),e.lineTo(kp*n,-n),e.closePath()}},gn=-.5,bn=Xn(3)/2,_y=1/Xn(12),Az=(_y/2+1)*3,_z={draw(e,t){const n=Xn(t/Az),r=n/2,a=n*_y,i=r,l=n*_y+n,o=-i,s=l;e.moveTo(r,a),e.lineTo(i,l),e.lineTo(o,s),e.lineTo(gn*r-bn*a,bn*r+gn*a),e.lineTo(gn*i-bn*l,bn*i+gn*l),e.lineTo(gn*o-bn*s,bn*o+gn*s),e.lineTo(gn*r+bn*a,gn*a-bn*r),e.lineTo(gn*i+bn*l,gn*l-bn*i),e.lineTo(gn*o+bn*s,gn*s-bn*o),e.closePath()}};function Ez(e,t){let n=null,r=jb(a);e=typeof e=="function"?e:Be(e||Ab),t=typeof t=="function"?t:Be(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:Be(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Be(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Sf(){}function wf(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 k2(e){this._context=e}k2.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:wf(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:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Tz(e){return new k2(e)}function L2(e){this._context=e}L2.prototype={areaStart:Sf,areaEnd:Sf,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:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nz(e){return new L2(e)}function B2(e){this._context=e}B2.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:wf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cz(e){return new B2(e)}function z2(e){this._context=e}z2.prototype={areaStart:Sf,areaEnd:Sf,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 Mz(e){return new z2(e)}function M1(e){return e<0?-1:1}function $1(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),o=(i*a+l*r)/(r+a);return(M1(i)+M1(l))*Math.min(Math.abs(i),Math.abs(l),.5*Math.abs(o))||0}function R1(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Lp(e,t,n){var r=e._x0,a=e._y0,i=e._x1,l=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,l-o*n,i,l)}function jf(e){this._context=e}jf.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:Lp(this,this._t0,R1(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,Lp(this,R1(this,n=$1(this,e,t)),n);break;default:Lp(this,this._t0,n=$1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function I2(e){this._context=new U2(e)}(I2.prototype=Object.create(jf.prototype)).point=function(e,t){jf.prototype.point.call(this,t,e)};function U2(e){this._context=e}U2.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 $z(e){return new jf(e)}function Rz(e){return new I2(e)}function H2(e){this._context=e}H2.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=P1(e),a=P1(t),i=0,l=1;l<n;++i,++l)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[l],t[l]);(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 P1(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),l=new Array(n);for(a[0]=0,i[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(l[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 Pz(e){return new H2(e)}function sh(e,t){this._context=e,this._t=t}sh.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 Dz(e){return new sh(e,.5)}function kz(e){return new sh(e,0)}function Lz(e){return new sh(e,1)}function Ol(e,t){if((l=e.length)>1)for(var n=1,r,a,i=e[t[0]],l,o=i.length;n<l;++n)for(a=i,i=e[t[n]],r=0;r<o;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function Ey(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Bz(e,t){return e[t]}function zz(e){const t=[];return t.key=e,t}function Iz(){var e=Be([]),t=Ey,n=Ol,r=Bz;function a(i){var l=Array.from(e.apply(this,arguments),zz),o,s=l.length,u=-1,d;for(const f of i)for(o=0,++u;o<s;++o)(l[o][u]=[0,+r(f,l[o].key,u,i)]).data=f;for(o=0,d=Ob(t(l));o<s;++o)l[d[o]].index=o;return n(l,d),l}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Be(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Be(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?Ey:typeof i=="function"?i:Be(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Ol,a):n},a}function Uz(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,l;a<i;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}Ol(e,t)}}function Hz(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var l=0,o=0;l<a;++l)o+=e[l][n][1]||0;r[n][1]+=r[n][0]=-o/2}Ol(e,t)}}function qz(e,t){if(!(!((l=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,l;r<i;++r){for(var o=0,s=0,u=0;o<l;++o){for(var d=e[t[o]],f=d[r][1]||0,h=d[r-1][1]||0,p=(f-h)/2,S=0;S<o;++S){var g=e[t[S]],v=g[r][1]||0,m=g[r-1][1]||0;p+=v-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,Ol(e,t)}}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)}var Gz=["type","size","sizeType"];function Ty(){return Ty=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},Ty.apply(this,arguments)}function D1(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 k1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(n),!0).forEach(function(r){Yz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yz(e,t,n){return t=Fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fz(e){var t=Vz(e,"string");return Ts(t)=="symbol"?t:t+""}function Vz(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(t==="string"?String:Number)(e)}function Kz(e,t){if(e==null)return{};var n=Xz(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 Xz(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 q2={symbolCircle:Ab,symbolCross:yz,symbolDiamond:gz,symbolSquare:bz,symbolStar:jz,symbolTriangle:Oz,symbolWye:_z},Wz=Math.PI/180,Zz=function(t){var n="symbol".concat(ih(t));return q2[n]||Ab},Qz=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*Wz;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}},Jz=function(t,n){q2["symbol".concat(ih(t))]=n},_b=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,l=t.sizeType,o=l===void 0?"area":l,s=Kz(t,Gz),u=k1(k1({},s),{},{type:r,size:i,sizeType:o}),d=function(){var v=Zz(r),m=Ez().type(v).size(Qz(i,o,r));return m()},f=u.className,h=u.cx,p=u.cy,S=re(u,!0);return h===+h&&p===+p&&i===+i?M.createElement("path",Ty({},S,{className:he("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:d()})):null};_b.registerSymbol=Jz;function Al(e){"@babel/helpers - typeof";return Al=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},Al(e)}function Ny(){return Ny=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},Ny.apply(this,arguments)}function L1(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 e8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L1(Object(n),!0).forEach(function(r){Ns(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n8(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,Y2(r.key),r)}}function r8(e,t,n){return t&&n8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a8(e,t,n){return t=Of(t),i8(e,G2()?Reflect.construct(t,n||[],Of(e).constructor):t.apply(e,n))}function i8(e,t){if(t&&(Al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l8(e)}function l8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G2=function(){return!!e})()}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function o8(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&&Cy(e,t)}function Cy(e,t){return Cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Cy(e,t)}function Ns(e,t,n){return t=Y2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y2(e){var t=s8(e,"string");return Al(t)=="symbol"?t:t+""}function s8(e,t){if(Al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xn=32,Eb=function(e){function t(){return t8(this,t),a8(this,t,arguments)}return o8(t,e),r8(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=xn/2,l=xn/6,o=xn/3,s=r.inactive?a:r.color;if(r.type==="plainline")return M.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:xn,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return M.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(o,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(2*o,",").concat(i,`
            H`).concat(xn,"M").concat(2*o,",").concat(i,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return M.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(xn/8,"h").concat(xn,"v").concat(xn*3/4,"h").concat(-xn,"z"),className:"recharts-legend-icon"});if(M.isValidElement(r.legendIcon)){var u=e8({},r);return delete u.legendIcon,M.cloneElement(r.legendIcon,u)}return M.createElement(_b,{fill:s,cx:i,cy:i,size:xn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,l=a.iconSize,o=a.layout,s=a.formatter,u=a.inactiveColor,d={x:0,y:0,width:xn,height:xn},f={display:o==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,S){var g=p.formatter||s,v=he(Ns(Ns({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",p.inactive));if(p.type==="none")return null;var m=ie(p.value)?null:p.value;Nr(!ie(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 M.createElement("li",Ny({className:v,style:f,key:"legend-item-".concat(S)},di(r.props,p,S)),M.createElement(xy,{width:l,height:l,viewBox:d,style:h},r.renderIcon(p)),M.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},g?g(m,p,S):m))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,l=r.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?l:"left"};return M.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(O.PureComponent);Ns(Eb,"displayName","Legend");Ns(Eb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var u8=Fd;function c8(){this.__data__=new u8,this.size=0}var f8=c8;function d8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var h8=d8;function p8(e){return this.__data__.get(e)}var m8=p8;function y8(e){return this.__data__.has(e)}var v8=y8,g8=Fd,b8=pb,x8=mb,S8=200;function w8(e,t){var n=this.__data__;if(n instanceof g8){var r=n.__data__;if(!b8||r.length<S8-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new x8(r)}return n.set(e,t),this.size=n.size,this}var j8=w8,O8=Fd,A8=f8,_8=h8,E8=m8,T8=v8,N8=j8;function ho(e){var t=this.__data__=new O8(e);this.size=t.size}ho.prototype.clear=A8;ho.prototype.delete=_8;ho.prototype.get=E8;ho.prototype.has=T8;ho.prototype.set=N8;var F2=ho,C8="__lodash_hash_undefined__";function M8(e){return this.__data__.set(e,C8),this}var $8=M8;function R8(e){return this.__data__.has(e)}var P8=R8,D8=mb,k8=$8,L8=P8;function Af(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new D8;++t<n;)this.add(e[t])}Af.prototype.add=Af.prototype.push=k8;Af.prototype.has=L8;var V2=Af;function B8(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 K2=B8;function z8(e,t){return e.has(t)}var X2=z8,I8=V2,U8=K2,H8=X2,q8=1,G8=2;function Y8(e,t,n,r,a,i){var l=n&q8,o=e.length,s=t.length;if(o!=s&&!(l&&s>o))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&G8?new I8:void 0;for(i.set(e,t),i.set(t,e);++f<o;){var S=e[f],g=t[f];if(r)var v=l?r(g,S,f,t,e,i):r(S,g,f,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!U8(t,function(m,y){if(!H8(p,y)&&(S===m||a(S,m,n,r,i)))return p.push(y)})){h=!1;break}}else if(!(S===g||a(S,g,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var W2=Y8,F8=sr,V8=F8.Uint8Array,K8=V8;function X8(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var W8=X8;function Z8(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Tb=Z8,B1=Tu,z1=K8,Q8=hb,J8=W2,eI=W8,tI=Tb,nI=1,rI=2,aI="[object Boolean]",iI="[object Date]",lI="[object Error]",oI="[object Map]",sI="[object Number]",uI="[object RegExp]",cI="[object Set]",fI="[object String]",dI="[object Symbol]",hI="[object ArrayBuffer]",pI="[object DataView]",I1=B1?B1.prototype:void 0,Bp=I1?I1.valueOf:void 0;function mI(e,t,n,r,a,i,l){switch(n){case pI:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hI:return!(e.byteLength!=t.byteLength||!i(new z1(e),new z1(t)));case aI:case iI:case sI:return Q8(+e,+t);case lI:return e.name==t.name&&e.message==t.message;case uI:case fI:return e==t+"";case oI:var o=eI;case cI:var s=r&nI;if(o||(o=tI),e.size!=t.size&&!s)return!1;var u=l.get(e);if(u)return u==t;r|=rI,l.set(e,t);var d=J8(o(e),o(t),r,a,i,l);return l.delete(e),d;case dI:if(Bp)return Bp.call(e)==Bp.call(t)}return!1}var yI=mI;function vI(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Z2=vI,gI=Z2,bI=en;function xI(e,t,n){var r=t(e);return bI(e)?r:gI(r,n(e))}var SI=xI;function wI(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var l=e[n];t(l,n,e)&&(i[a++]=l)}return i}var jI=wI;function OI(){return[]}var AI=OI,_I=jI,EI=AI,TI=Object.prototype,NI=TI.propertyIsEnumerable,U1=Object.getOwnPropertySymbols,CI=U1?function(e){return e==null?[]:(e=Object(e),_I(U1(e),function(t){return NI.call(e,t)}))}:EI,MI=CI;function $I(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var RI=$I,PI=Hr,DI=qr,kI="[object Arguments]";function LI(e){return DI(e)&&PI(e)==kI}var BI=LI,H1=BI,zI=qr,Q2=Object.prototype,II=Q2.hasOwnProperty,UI=Q2.propertyIsEnumerable,HI=H1(function(){return arguments}())?H1:function(e){return zI(e)&&II.call(e,"callee")&&!UI.call(e,"callee")},Nb=HI,_f={exports:{}};function qI(){return!1}var GI=qI;_f.exports;(function(e,t){var n=sr,r=GI,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===a,o=l?n.Buffer:void 0,s=o?o.isBuffer:void 0,u=s||r;e.exports=u})(_f,_f.exports);var J2=_f.exports,YI=9007199254740991,FI=/^(?:0|[1-9]\d*)$/;function VI(e,t){var n=typeof e;return t=t??YI,!!t&&(n=="number"||n!="symbol"&&FI.test(e))&&e>-1&&e%1==0&&e<t}var Cb=VI,KI=9007199254740991;function XI(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=KI}var Mb=XI,WI=Hr,ZI=Mb,QI=qr,JI="[object Arguments]",eU="[object Array]",tU="[object Boolean]",nU="[object Date]",rU="[object Error]",aU="[object Function]",iU="[object Map]",lU="[object Number]",oU="[object Object]",sU="[object RegExp]",uU="[object Set]",cU="[object String]",fU="[object WeakMap]",dU="[object ArrayBuffer]",hU="[object DataView]",pU="[object Float32Array]",mU="[object Float64Array]",yU="[object Int8Array]",vU="[object Int16Array]",gU="[object Int32Array]",bU="[object Uint8Array]",xU="[object Uint8ClampedArray]",SU="[object Uint16Array]",wU="[object Uint32Array]",qe={};qe[pU]=qe[mU]=qe[yU]=qe[vU]=qe[gU]=qe[bU]=qe[xU]=qe[SU]=qe[wU]=!0;qe[JI]=qe[eU]=qe[dU]=qe[tU]=qe[hU]=qe[nU]=qe[rU]=qe[aU]=qe[iU]=qe[lU]=qe[oU]=qe[sU]=qe[uU]=qe[cU]=qe[fU]=!1;function jU(e){return QI(e)&&ZI(e.length)&&!!qe[WI(e)]}var OU=jU;function AU(e){return function(t){return e(t)}}var eT=AU,Ef={exports:{}};Ef.exports;(function(e,t){var n=s2,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,l=i&&n.process,o=function(){try{var s=a&&a.require&&a.require("util").types;return s||l&&l.binding&&l.binding("util")}catch{}}();e.exports=o})(Ef,Ef.exports);var _U=Ef.exports,EU=OU,TU=eT,q1=_U,G1=q1&&q1.isTypedArray,NU=G1?TU(G1):EU,tT=NU,CU=RI,MU=Nb,$U=en,RU=J2,PU=Cb,DU=tT,kU=Object.prototype,LU=kU.hasOwnProperty;function BU(e,t){var n=$U(e),r=!n&&MU(e),a=!n&&!r&&RU(e),i=!n&&!r&&!a&&DU(e),l=n||r||a||i,o=l?CU(e.length,String):[],s=o.length;for(var u in e)(t||LU.call(e,u))&&!(l&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||PU(u,s)))&&o.push(u);return o}var zU=BU,IU=Object.prototype;function UU(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||IU;return e===n}var HU=UU;function qU(e,t){return function(n){return e(t(n))}}var nT=qU,GU=nT,YU=GU(Object.keys,Object),FU=YU,VU=HU,KU=FU,XU=Object.prototype,WU=XU.hasOwnProperty;function ZU(e){if(!VU(e))return KU(e);var t=[];for(var n in Object(e))WU.call(e,n)&&n!="constructor"&&t.push(n);return t}var QU=ZU,JU=db,e7=Mb;function t7(e){return e!=null&&e7(e.length)&&!JU(e)}var uh=t7,n7=zU,r7=QU,a7=uh;function i7(e){return a7(e)?n7(e):r7(e)}var $b=i7,l7=SI,o7=MI,s7=$b;function u7(e){return l7(e,s7,o7)}var c7=u7,Y1=c7,f7=1,d7=Object.prototype,h7=d7.hasOwnProperty;function p7(e,t,n,r,a,i){var l=n&f7,o=Y1(e),s=o.length,u=Y1(t),d=u.length;if(s!=d&&!l)return!1;for(var f=s;f--;){var h=o[f];if(!(l?h in t:h7.call(t,h)))return!1}var p=i.get(e),S=i.get(t);if(p&&S)return p==t&&S==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=l;++f<s;){h=o[f];var m=e[h],y=t[h];if(r)var b=l?r(y,m,h,t,e,i):r(m,y,h,e,t,i);if(!(b===void 0?m===y||a(m,y,n,r,i):b)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(g=!1)}return i.delete(e),i.delete(t),g}var m7=p7,y7=Si,v7=sr,g7=y7(v7,"DataView"),b7=g7,x7=Si,S7=sr,w7=x7(S7,"Promise"),j7=w7,O7=Si,A7=sr,_7=O7(A7,"Set"),rT=_7,E7=Si,T7=sr,N7=E7(T7,"WeakMap"),C7=N7,My=b7,$y=pb,Ry=j7,Py=rT,Dy=C7,aT=Hr,po=c2,F1="[object Map]",M7="[object Object]",V1="[object Promise]",K1="[object Set]",X1="[object WeakMap]",W1="[object DataView]",$7=po(My),R7=po($y),P7=po(Ry),D7=po(Py),k7=po(Dy),Ua=aT;(My&&Ua(new My(new ArrayBuffer(1)))!=W1||$y&&Ua(new $y)!=F1||Ry&&Ua(Ry.resolve())!=V1||Py&&Ua(new Py)!=K1||Dy&&Ua(new Dy)!=X1)&&(Ua=function(e){var t=aT(e),n=t==M7?e.constructor:void 0,r=n?po(n):"";if(r)switch(r){case $7:return W1;case R7:return F1;case P7:return V1;case D7:return K1;case k7:return X1}return t});var L7=Ua,zp=F2,B7=W2,z7=yI,I7=m7,Z1=L7,Q1=en,J1=J2,U7=tT,H7=1,eS="[object Arguments]",tS="[object Array]",tc="[object Object]",q7=Object.prototype,nS=q7.hasOwnProperty;function G7(e,t,n,r,a,i){var l=Q1(e),o=Q1(t),s=l?tS:Z1(e),u=o?tS:Z1(t);s=s==eS?tc:s,u=u==eS?tc:u;var d=s==tc,f=u==tc,h=s==u;if(h&&J1(e)){if(!J1(t))return!1;l=!0,d=!1}if(h&&!d)return i||(i=new zp),l||U7(e)?B7(e,t,n,r,a,i):z7(e,t,s,n,r,a,i);if(!(n&H7)){var p=d&&nS.call(e,"__wrapped__"),S=f&&nS.call(t,"__wrapped__");if(p||S){var g=p?e.value():e,v=S?t.value():t;return i||(i=new zp),a(g,v,n,r,i)}}return h?(i||(i=new zp),I7(e,t,n,r,a,i)):!1}var Y7=G7,F7=Y7,rS=qr;function iT(e,t,n,r,a){return e===t?!0:e==null||t==null||!rS(e)&&!rS(t)?e!==e&&t!==t:F7(e,t,n,r,iT,a)}var Rb=iT,V7=F2,K7=Rb,X7=1,W7=2;function Z7(e,t,n,r){var a=n.length,i=a,l=!r;if(e==null)return!i;for(e=Object(e);a--;){var o=n[a];if(l&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=n[a];var s=o[0],u=e[s],d=o[1];if(l&&o[2]){if(u===void 0&&!(s in e))return!1}else{var f=new V7;if(r)var h=r(u,d,s,e,t,f);if(!(h===void 0?K7(d,u,X7|W7,r,f):h))return!1}}return!0}var Q7=Z7,J7=Aa;function eH(e){return e===e&&!J7(e)}var lT=eH,tH=lT,nH=$b;function rH(e){for(var t=nH(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,tH(a)]}return t}var aH=rH;function iH(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var oT=iH,lH=Q7,oH=aH,sH=oT;function uH(e){var t=oH(e);return t.length==1&&t[0][2]?sH(t[0][0],t[0][1]):function(n){return n===e||lH(n,e,t)}}var cH=uH;function fH(e,t){return e!=null&&t in Object(e)}var dH=fH,hH=m2,pH=Nb,mH=en,yH=Cb,vH=Mb,gH=Kd;function bH(e,t,n){t=hH(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var l=gH(t[r]);if(!(i=e!=null&&n(e,l)))break;e=e[l]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&vH(a)&&yH(l,a)&&(mH(e)||pH(e)))}var xH=bH,SH=dH,wH=xH;function jH(e,t){return e!=null&&wH(e,t,SH)}var OH=jH,AH=Rb,_H=y2,EH=OH,TH=fb,NH=lT,CH=oT,MH=Kd,$H=1,RH=2;function PH(e,t){return TH(e)&&NH(t)?CH(MH(e),t):function(n){var r=_H(n,e);return r===void 0&&r===t?EH(n,e):AH(t,r,$H|RH)}}var DH=PH;function kH(e){return e}var mo=kH;function LH(e){return function(t){return t==null?void 0:t[e]}}var BH=LH,zH=gb;function IH(e){return function(t){return zH(t,e)}}var UH=IH,HH=BH,qH=UH,GH=fb,YH=Kd;function FH(e){return GH(e)?HH(YH(e)):qH(e)}var VH=FH,KH=cH,XH=DH,WH=mo,ZH=en,QH=VH;function JH(e){return typeof e=="function"?e:e==null?WH:typeof e=="object"?ZH(e)?XH(e[0],e[1]):KH(e):QH(e)}var _a=JH;function e9(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 t9=e9;function n9(e){return e!==e}var r9=n9;function a9(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var i9=a9,l9=t9,o9=r9,s9=i9;function u9(e,t,n){return t===t?s9(e,t,n):l9(e,o9,n)}var c9=u9,f9=c9;function d9(e,t){var n=e==null?0:e.length;return!!n&&f9(e,t,0)>-1}var h9=d9;function p9(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 m9=p9;function y9(){}var v9=y9,Ip=rT,g9=v9,b9=Tb,x9=1/0,S9=Ip&&1/b9(new Ip([,-0]))[1]==x9?function(e){return new Ip(e)}:g9,w9=S9,j9=V2,O9=h9,A9=m9,_9=X2,E9=w9,T9=Tb,N9=200;function C9(e,t,n){var r=-1,a=O9,i=e.length,l=!0,o=[],s=o;if(n)l=!1,a=A9;else if(i>=N9){var u=t?null:E9(e);if(u)return T9(u);l=!1,a=_9,s=new j9}else s=t?[]:o;e:for(;++r<i;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,l&&f===f){for(var h=s.length;h--;)if(s[h]===f)continue e;t&&s.push(f),o.push(d)}else a(s,f,n)||(s!==o&&s.push(f),o.push(d))}return o}var M9=C9,$9=_a,R9=M9;function P9(e,t){return e&&e.length?R9(e,$9(t)):[]}var D9=P9;const aS=Te(D9);function sT(e,t,n){return t===!0?aS(e,n):ie(t)?aS(e,t):e}function _l(e){"@babel/helpers - typeof";return _l=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},_l(e)}var k9=["ref"];function iS(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 mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(n),!0).forEach(function(r){ch(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lS(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,cT(r.key),r)}}function B9(e,t,n){return t&&lS(e.prototype,t),n&&lS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function z9(e,t,n){return t=Tf(t),I9(e,uT()?Reflect.construct(t,n||[],Tf(e).constructor):t.apply(e,n))}function I9(e,t){if(t&&(_l(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U9(e)}function U9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uT=function(){return!!e})()}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function H9(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&&ky(e,t)}function ky(e,t){return ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ky(e,t)}function ch(e,t,n){return t=cT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cT(e){var t=q9(e,"string");return _l(t)=="symbol"?t:t+""}function q9(e,t){if(_l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function G9(e,t){if(e==null)return{};var n=Y9(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 Y9(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 F9(e){return e.value}function V9(e,t){if(M.isValidElement(e))return M.cloneElement(e,t);if(typeof e=="function")return M.createElement(e,t);t.ref;var n=G9(t,k9);return M.createElement(Eb,n)}var oS=1,ti=function(e){function t(){var n;L9(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=z9(this,t,[].concat(a)),ch(n,"lastBoundingBox",{width:-1,height:-1}),n}return H9(t,e),B9(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)>oS||Math.abs(a.height-this.lastBoundingBox.height)>oS)&&(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?mr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,l=a.align,o=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(l==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=l==="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(o==="middle"){var S=this.getBBoxSnapshot();h={top:((d||0)-S.height)/2}}else h=o==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return mr(mr({},f),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,l=a.width,o=a.height,s=a.wrapperStyle,u=a.payloadUniqBy,d=a.payload,f=mr(mr({position:"absolute",width:l||"auto",height:o||"auto"},this.getDefaultPosition(s)),s);return M.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},V9(i,mr(mr({},this.props),{},{payload:sT(d,u,F9)})))}}],[{key:"getWithHeight",value:function(r,a){var i=mr(mr({},this.defaultProps),r.props),l=i.layout;return l==="vertical"&&F(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])}(O.PureComponent);ch(ti,"displayName","Legend");ch(ti,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var sS=Tu,K9=Nb,X9=en,uS=sS?sS.isConcatSpreadable:void 0;function W9(e){return X9(e)||K9(e)||!!(uS&&e&&e[uS])}var Z9=W9,Q9=Z2,J9=Z9;function fT(e,t,n,r,a){var i=-1,l=e.length;for(n||(n=J9),a||(a=[]);++i<l;){var o=e[i];t>0&&n(o)?t>1?fT(o,t-1,n,r,a):Q9(a,o):r||(a[a.length]=o)}return a}var dT=fT;function eq(e){return function(t,n,r){for(var a=-1,i=Object(t),l=r(t),o=l.length;o--;){var s=l[e?o:++a];if(n(i[s],s,i)===!1)break}return t}}var tq=eq,nq=tq,rq=nq(),aq=rq,iq=aq,lq=$b;function oq(e,t){return e&&iq(e,t,lq)}var hT=oq,sq=uh;function uq(e,t){return function(n,r){if(n==null)return n;if(!sq(n))return e(n,r);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i<a)&&r(l[i],i,l)!==!1;);return n}}var cq=uq,fq=hT,dq=cq,hq=dq(fq),Pb=hq,pq=Pb,mq=uh;function yq(e,t){var n=-1,r=mq(e)?Array(e.length):[];return pq(e,function(a,i,l){r[++n]=t(a,i,l)}),r}var pT=yq;function vq(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var gq=vq,cS=oo;function bq(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=cS(e),l=t!==void 0,o=t===null,s=t===t,u=cS(t);if(!o&&!u&&!i&&e>t||i&&l&&s&&!o&&!u||r&&l&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||o&&n&&a||!l&&a||!s)return-1}return 0}var xq=bq,Sq=xq;function wq(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,l=a.length,o=n.length;++r<l;){var s=Sq(a[r],i[r]);if(s){if(r>=o)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var jq=wq,Up=vb,Oq=gb,Aq=_a,_q=pT,Eq=gq,Tq=eT,Nq=jq,Cq=mo,Mq=en;function $q(e,t,n){t.length?t=Up(t,function(i){return Mq(i)?function(l){return Oq(l,i.length===1?i[0]:i)}:i}):t=[Cq];var r=-1;t=Up(t,Tq(Aq));var a=_q(e,function(i,l,o){var s=Up(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return Eq(a,function(i,l){return Nq(i,l,n)})}var Rq=$q;function Pq(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 Dq=Pq,kq=Dq,fS=Math.max;function Lq(e,t,n){return t=fS(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=fS(r.length-t,0),l=Array(i);++a<i;)l[a]=r[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=r[a];return o[t]=n(l),kq(e,this,o)}}var Bq=Lq;function zq(e){return function(){return e}}var Iq=zq,Uq=Si,Hq=function(){try{var e=Uq(Object,"defineProperty");return e({},"",{}),e}catch{}}(),mT=Hq,qq=Iq,dS=mT,Gq=mo,Yq=dS?function(e,t){return dS(e,"toString",{configurable:!0,enumerable:!1,value:qq(t),writable:!0})}:Gq,Fq=Yq,Vq=800,Kq=16,Xq=Date.now;function Wq(e){var t=0,n=0;return function(){var r=Xq(),a=Kq-(r-n);if(n=r,a>0){if(++t>=Vq)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Zq=Wq,Qq=Fq,Jq=Zq,eG=Jq(Qq),tG=eG,nG=mo,rG=Bq,aG=tG;function iG(e,t){return aG(rG(e,t,nG),e+"")}var lG=iG,oG=hb,sG=uh,uG=Cb,cG=Aa;function fG(e,t,n){if(!cG(n))return!1;var r=typeof t;return(r=="number"?sG(n)&&uG(t,n.length):r=="string"&&t in n)?oG(n[t],e):!1}var fh=fG,dG=dT,hG=Rq,pG=lG,hS=fh,mG=pG(function(e,t){if(e==null)return[];var n=t.length;return n>1&&hS(e,t[0],t[1])?t=[]:n>2&&hS(t[0],t[1],t[2])&&(t=[t[0]]),hG(e,dG(t,1),[])}),yG=mG;const Db=Te(yG);function Cs(e){"@babel/helpers - typeof";return Cs=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},Cs(e)}function Ly(){return Ly=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},Ly.apply(this,arguments)}function vG(e,t){return SG(e)||xG(e,t)||bG(e,t)||gG()}function gG(){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 bG(e,t){if(e){if(typeof e=="string")return pS(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 pS(e,t)}}function pS(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 xG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function SG(e){if(Array.isArray(e))return e}function mS(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 Hp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mS(Object(n),!0).forEach(function(r){wG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wG(e,t,n){return t=jG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jG(e){var t=OG(e,"string");return Cs(t)=="symbol"?t:t+""}function OG(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AG(e){return Array.isArray(e)&&pt(e[0])&&pt(e[1])?e.join(" ~ "):e}var _G=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,l=t.itemStyle,o=l===void 0?{}:l,s=t.labelStyle,u=s===void 0?{}:s,d=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,S=t.labelClassName,g=t.label,v=t.labelFormatter,m=t.accessibilityLayer,y=m===void 0?!1:m,b=function(){if(d&&d.length){var N={padding:0,margin:0},L=(h?Db(d,h):d).map(function(k,D){if(k.type==="none")return null;var $=Hp({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},o),P=k.formatter||f||AG,B=k.value,H=k.name,G=B,q=H;if(P&&G!=null&&q!=null){var Y=P(B,H,k,D,d);if(Array.isArray(Y)){var W=vG(Y,2);G=W[0],q=W[1]}else G=Y}return M.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:$},pt(q)?M.createElement("span",{className:"recharts-tooltip-item-name"},q):null,pt(q)?M.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,M.createElement("span",{className:"recharts-tooltip-item-value"},G),M.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return M.createElement("ul",{className:"recharts-tooltip-item-list",style:N},L)}return null},w=Hp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),x=Hp({margin:0},u),j=!pe(g),A=j?g:"",_=he("recharts-default-tooltip",p),E=he("recharts-tooltip-label",S);j&&v&&d!==void 0&&d!==null&&(A=v(g,d));var T=y?{role:"status","aria-live":"assertive"}:{};return M.createElement("div",Ly({className:_,style:w},T),M.createElement("p",{className:E,style:x},M.isValidElement(A)?A:"".concat(A)),b())};function Ms(e){"@babel/helpers - typeof";return Ms=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},Ms(e)}function nc(e,t,n){return t=EG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EG(e){var t=TG(e,"string");return Ms(t)=="symbol"?t:t+""}function TG(e,t){if(Ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Co="recharts-tooltip-wrapper",NG={visibility:"hidden"};function CG(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return he(Co,nc(nc(nc(nc({},"".concat(Co,"-right"),F(n)&&t&&F(t.x)&&n>=t.x),"".concat(Co,"-left"),F(n)&&t&&F(t.x)&&n<t.x),"".concat(Co,"-bottom"),F(r)&&t&&F(t.y)&&r>=t.y),"".concat(Co,"-top"),F(r)&&t&&F(t.y)&&r<t.y))}function yS(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,l=e.reverseDirection,o=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(i&&F(i[r]))return i[r];var d=n[r]-o-a,f=n[r]+a;if(t[r])return l[r]?d:f;if(l[r]){var h=d,p=s[r];return h<p?Math.max(f,s[r]):Math.max(d,s[r])}var S=f+o,g=s[r]+u;return S>g?Math.max(d,s[r]):Math.max(f,s[r])}function MG(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 $G(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipBox,o=e.useTranslate3d,s=e.viewBox,u,d,f;return l.height>0&&l.width>0&&n?(d=yS({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.width,viewBox:s,viewBoxDimension:s.width}),f=yS({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.height,viewBox:s,viewBoxDimension:s.height}),u=MG({translateX:d,translateY:f,useTranslate3d:o})):u=NG,{cssProperties:u,cssClasses:CG({translateX:d,translateY:f,coordinate:n})}}function El(e){"@babel/helpers - typeof";return El=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},El(e)}function vS(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 gS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vS(Object(n),!0).forEach(function(r){zy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PG(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,vT(r.key),r)}}function DG(e,t,n){return t&&PG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kG(e,t,n){return t=Nf(t),LG(e,yT()?Reflect.construct(t,n||[],Nf(e).constructor):t.apply(e,n))}function LG(e,t){if(t&&(El(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BG(e)}function BG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yT=function(){return!!e})()}function Nf(e){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nf(e)}function zG(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&&By(e,t)}function By(e,t){return By=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},By(e,t)}function zy(e,t,n){return t=vT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vT(e){var t=IG(e,"string");return El(t)=="symbol"?t:t+""}function IG(e,t){if(El(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(El(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bS=1,UG=function(e){function t(){var n;RG(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=kG(this,t,[].concat(a)),zy(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),zy(n,"handleKeyDown",function(l){if(l.key==="Escape"){var o,s,u,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(s=n.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&o!==void 0?o:0,y:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return zG(t,e),DG(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>bS||Math.abs(r.height-this.state.lastBoundingBox.height)>bS)&&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,l=a.allowEscapeViewBox,o=a.animationDuration,s=a.animationEasing,u=a.children,d=a.coordinate,f=a.hasPayload,h=a.isAnimationActive,p=a.offset,S=a.position,g=a.reverseDirection,v=a.useTranslate3d,m=a.viewBox,y=a.wrapperStyle,b=$G({allowEscapeViewBox:l,coordinate:d,offsetTopLeft:p,position:S,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:m}),w=b.cssClasses,x=b.cssProperties,j=gS(gS({transition:h&&i?"transform ".concat(o,"ms ").concat(s):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},y);return M.createElement("div",{tabIndex:-1,className:w,style:j,ref:function(_){r.wrapperNode=_}},u)}}])}(O.PureComponent),HG=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},yo={isSsr:HG()};function Tl(e){"@babel/helpers - typeof";return Tl=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},Tl(e)}function xS(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 SS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xS(Object(n),!0).forEach(function(r){kb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GG(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,bT(r.key),r)}}function YG(e,t,n){return t&&GG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FG(e,t,n){return t=Cf(t),VG(e,gT()?Reflect.construct(t,n||[],Cf(e).constructor):t.apply(e,n))}function VG(e,t){if(t&&(Tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KG(e)}function KG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gT=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function XG(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&&Iy(e,t)}function Iy(e,t){return Iy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Iy(e,t)}function kb(e,t,n){return t=bT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bT(e){var t=WG(e,"string");return Tl(t)=="symbol"?t:t+""}function WG(e,t){if(Tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ZG(e){return e.dataKey}function QG(e,t){return M.isValidElement(e)?M.cloneElement(e,t):typeof e=="function"?M.createElement(e,t):M.createElement(_G,t)}var Hn=function(e){function t(){return qG(this,t),FG(this,t,arguments)}return XG(t,e),YG(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,l=a.allowEscapeViewBox,o=a.animationDuration,s=a.animationEasing,u=a.content,d=a.coordinate,f=a.filterNull,h=a.isAnimationActive,p=a.offset,S=a.payload,g=a.payloadUniqBy,v=a.position,m=a.reverseDirection,y=a.useTranslate3d,b=a.viewBox,w=a.wrapperStyle,x=S??[];f&&x.length&&(x=sT(S.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),g,ZG));var j=x.length>0;return M.createElement(UG,{allowEscapeViewBox:l,animationDuration:o,animationEasing:s,isAnimationActive:h,active:i,coordinate:d,hasPayload:j,offset:p,position:v,reverseDirection:m,useTranslate3d:y,viewBox:b,wrapperStyle:w},QG(u,SS(SS({},this.props),{},{payload:x})))}}])}(O.PureComponent);kb(Hn,"displayName","Tooltip");kb(Hn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!yo.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 JG=sr,eY=function(){return JG.Date.now()},tY=eY,nY=/\s/;function rY(e){for(var t=e.length;t--&&nY.test(e.charAt(t)););return t}var aY=rY,iY=aY,lY=/^\s+/;function oY(e){return e&&e.slice(0,iY(e)+1).replace(lY,"")}var sY=oY,uY=sY,wS=Aa,cY=oo,jS=NaN,fY=/^[-+]0x[0-9a-f]+$/i,dY=/^0b[01]+$/i,hY=/^0o[0-7]+$/i,pY=parseInt;function mY(e){if(typeof e=="number")return e;if(cY(e))return jS;if(wS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uY(e);var n=dY.test(e);return n||hY.test(e)?pY(e.slice(2),n?2:8):fY.test(e)?jS:+e}var xT=mY,yY=Aa,qp=tY,OS=xT,vY="Expected a function",gY=Math.max,bY=Math.min;function xY(e,t,n){var r,a,i,l,o,s,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(vY);t=OS(t)||0,yY(n)&&(d=!!n.leading,f="maxWait"in n,i=f?gY(OS(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(j){var A=r,_=a;return r=a=void 0,u=j,l=e.apply(_,A),l}function S(j){return u=j,o=setTimeout(m,t),d?p(j):l}function g(j){var A=j-s,_=j-u,E=t-A;return f?bY(E,i-_):E}function v(j){var A=j-s,_=j-u;return s===void 0||A>=t||A<0||f&&_>=i}function m(){var j=qp();if(v(j))return y(j);o=setTimeout(m,g(j))}function y(j){return o=void 0,h&&r?p(j):(r=a=void 0,l)}function b(){o!==void 0&&clearTimeout(o),u=0,r=s=a=o=void 0}function w(){return o===void 0?l:y(qp())}function x(){var j=qp(),A=v(j);if(r=arguments,a=this,s=j,A){if(o===void 0)return S(s);if(f)return clearTimeout(o),o=setTimeout(m,t),p(s)}return o===void 0&&(o=setTimeout(m,t)),l}return x.cancel=b,x.flush=w,x}var SY=xY,wY=SY,jY=Aa,OY="Expected a function";function AY(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(OY);return jY(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),wY(e,t,{leading:r,maxWait:t,trailing:a})}var _Y=AY;const ST=Te(_Y);function $s(e){"@babel/helpers - typeof";return $s=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},$s(e)}function AS(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 rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AS(Object(n),!0).forEach(function(r){EY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EY(e,t,n){return t=TY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TY(e){var t=NY(e,"string");return $s(t)=="symbol"?t:t+""}function NY(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CY(e,t){return PY(e)||RY(e,t)||$Y(e,t)||MY()}function MY(){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 $Y(e,t){if(e){if(typeof e=="string")return _S(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 _S(e,t)}}function _S(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 RY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function PY(e){if(Array.isArray(e))return e}var ES=O.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,l=i===void 0?"100%":i,o=e.height,s=o===void 0?"100%":o,u=e.minWidth,d=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,S=e.debounce,g=S===void 0?0:S,v=e.id,m=e.className,y=e.onResize,b=e.style,w=b===void 0?{}:b,x=O.useRef(null),j=O.useRef();j.current=y,O.useImperativeHandle(t,function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})});var A=O.useState({containerWidth:a.width,containerHeight:a.height}),_=CY(A,2),E=_[0],T=_[1],R=O.useCallback(function(L,k){T(function(D){var $=Math.round(L),P=Math.round(k);return D.containerWidth===$&&D.containerHeight===P?D:{containerWidth:$,containerHeight:P}})},[]);O.useEffect(function(){var L=function(H){var G,q=H[0].contentRect,Y=q.width,W=q.height;R(Y,W),(G=j.current)===null||G===void 0||G.call(j,Y,W)};g>0&&(L=ST(L,g,{trailing:!0,leading:!1}));var k=new ResizeObserver(L),D=x.current.getBoundingClientRect(),$=D.width,P=D.height;return R($,P),k.observe(x.current),function(){k.disconnect()}},[R,g]);var N=O.useMemo(function(){var L=E.containerWidth,k=E.containerHeight;if(L<0||k<0)return null;Nr(Ya(l)||Ya(s),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,l,s),Nr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var D=Ya(l)?L:l,$=Ya(s)?k:s;n&&n>0&&(D?$=D/n:$&&(D=$*n),h&&$>h&&($=h)),Nr(D>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.`,D,$,l,s,d,f,n);var P=!Array.isArray(p)&&Tr(p.type).endsWith("Chart");return M.Children.map(p,function(B){return M.isValidElement(B)?O.cloneElement(B,rc({width:D,height:$},P?{style:rc({height:"100%",width:"100%",maxHeight:$,maxWidth:D},B.props.style)}:{})):B})},[n,p,s,h,f,d,E,l]);return M.createElement("div",{id:v?"".concat(v):void 0,className:he("recharts-responsive-container",m),style:rc(rc({},w),{},{width:l,height:s,minWidth:d,minHeight:f,maxHeight:h}),ref:x},N)}),dh=function(t){return null};dh.displayName="Cell";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 TS(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 Uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TS(Object(n),!0).forEach(function(r){DY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DY(e,t,n){return t=kY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kY(e){var t=LY(e,"string");return Rs(t)=="symbol"?t:t+""}function LY(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(t==="string"?String:Number)(e)}var Mi={widthCache:{},cacheCount:0},BY=2e3,zY={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},NS="recharts_measurement_span";function IY(e){var t=Uy({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var is=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||yo.isSsr)return{width:0,height:0};var r=IY(n),a=JSON.stringify({text:t,copyStyle:r});if(Mi.widthCache[a])return Mi.widthCache[a];try{var i=document.getElementById(NS);i||(i=document.createElement("span"),i.setAttribute("id",NS),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var l=Uy(Uy({},zY),r);Object.assign(i.style,l),i.textContent="".concat(t);var o=i.getBoundingClientRect(),s={width:o.width,height:o.height};return Mi.widthCache[a]=s,++Mi.cacheCount>BY&&(Mi.cacheCount=0,Mi.widthCache={}),s}catch{return{width:0,height:0}}},UY=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ps(e){"@babel/helpers - typeof";return Ps=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},Ps(e)}function Mf(e,t){return YY(e)||GY(e,t)||qY(e,t)||HY()}function HY(){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 qY(e,t){if(e){if(typeof e=="string")return CS(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 CS(e,t)}}function CS(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 GY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],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)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function YY(e){if(Array.isArray(e))return e}function FY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MS(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,KY(r.key),r)}}function VY(e,t,n){return t&&MS(e.prototype,t),n&&MS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function KY(e){var t=XY(e,"string");return Ps(t)=="symbol"?t:t+""}function XY(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $S=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,RS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,WY=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ZY=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,wT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},QY=Object.keys(wT),Xi="NaN";function JY(e,t){return e*wT[t]}var ac=function(){function e(t,n){FY(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!WY.test(n)&&(this.num=NaN,this.unit=""),QY.includes(n)&&(this.num=JY(t,n),this.unit="px")}return VY(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=ZY.exec(n))!==null&&r!==void 0?r:[],i=Mf(a,3),l=i[1],o=i[2];return new e(parseFloat(l),o??"")}}])}();function jT(e){if(e.includes(Xi))return Xi;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=$S.exec(t))!==null&&n!==void 0?n:[],a=Mf(r,4),i=a[1],l=a[2],o=a[3],s=ac.parse(i??""),u=ac.parse(o??""),d=l==="*"?s.multiply(u):s.divide(u);if(d.isNaN())return Xi;t=t.replace($S,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=RS.exec(t))!==null&&f!==void 0?f:[],p=Mf(h,4),S=p[1],g=p[2],v=p[3],m=ac.parse(S??""),y=ac.parse(v??""),b=g==="+"?m.add(y):m.subtract(y);if(b.isNaN())return Xi;t=t.replace(RS,b.toString())}return t}var PS=/\(([^()]*)\)/;function eF(e){for(var t=e;t.includes("(");){var n=PS.exec(t),r=Mf(n,2),a=r[1];t=t.replace(PS,jT(a))}return t}function tF(e){var t=e.replace(/\s+/g,"");return t=eF(t),t=jT(t),t}function nF(e){try{return tF(e)}catch{return Xi}}function Gp(e){var t=nF(e.slice(5,-1));return t===Xi?"":t}var rF=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],aF=["dx","dy","angle","className","breakAll"];function Hy(){return Hy=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},Hy.apply(this,arguments)}function DS(e,t){if(e==null)return{};var n=iF(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 iF(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 kS(e,t){return uF(e)||sF(e,t)||oF(e,t)||lF()}function lF(){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 oF(e,t){if(e){if(typeof e=="string")return LS(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 LS(e,t)}}function LS(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 sF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],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)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function uF(e){if(Array.isArray(e))return e}var OT=/[ \f\n\r\t\v\u2028\u2029]+/,AT=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];pe(n)||(r?i=n.toString().split(""):i=n.toString().split(OT));var l=i.map(function(s){return{word:s,width:is(s,a).width}}),o=r?0:is(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:o}}catch{return null}},cF=function(t,n,r,a,i){var l=t.maxLines,o=t.children,s=t.style,u=t.breakAll,d=F(l),f=o,h=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function($,P){var B=P.word,H=P.width,G=$[$.length-1];if(G&&(a==null||i||G.width+H+r<Number(a)))G.words.push(B),G.width+=H+r;else{var q={words:[B],width:H};$.push(q)}return $},[])},p=h(n),S=function(D){return D.reduce(function($,P){return $.width>P.width?$:P})};if(!d)return p;for(var g="…",v=function(D){var $=f.slice(0,D),P=AT({breakAll:u,style:s,children:$+g}).wordsWithComputedWidth,B=h(P),H=B.length>l||S(B).width>Number(a);return[H,B]},m=0,y=f.length-1,b=0,w;m<=y&&b<=f.length-1;){var x=Math.floor((m+y)/2),j=x-1,A=v(j),_=kS(A,2),E=_[0],T=_[1],R=v(x),N=kS(R,1),L=N[0];if(!E&&!L&&(m=x+1),E&&L&&(y=x-1),!E&&L){w=T;break}b++}return w||p},BS=function(t){var n=pe(t)?[]:t.toString().split(OT);return[{words:n}]},fF=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,l=t.breakAll,o=t.maxLines;if((n||r)&&!yo.isSsr){var s,u,d=AT({breakAll:l,children:a,style:i});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;s=f,u=h}else return BS(a);return cF({breakAll:l,children:a,maxLines:o,style:i},s,u,n,r)}return BS(a)},zS="#808080",hi=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,l=t.lineHeight,o=l===void 0?"1em":l,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,S=t.verticalAnchor,g=S===void 0?"end":S,v=t.fill,m=v===void 0?zS:v,y=DS(t,rF),b=O.useMemo(function(){return fF({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]),w=y.dx,x=y.dy,j=y.angle,A=y.className,_=y.breakAll,E=DS(y,aF);if(!pt(r)||!pt(i))return null;var T=r+(F(w)?w:0),R=i+(F(x)?x:0),N;switch(g){case"start":N=Gp("calc(".concat(u,")"));break;case"middle":N=Gp("calc(".concat((b.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:N=Gp("calc(".concat(b.length-1," * -").concat(o,")"));break}var L=[];if(f){var k=b[0].width,D=y.width;L.push("scale(".concat((F(D)?D/k:1)/k,")"))}return j&&L.push("rotate(".concat(j,", ").concat(T,", ").concat(R,")")),L.length&&(E.transform=L.join(" ")),M.createElement("text",Hy({},re(E,!0),{x:T,y:R,className:he("recharts-text",A),textAnchor:p,fill:m.includes("url")?zS:m}),b.map(function($,P){var B=$.words.join(_?"":" ");return M.createElement("tspan",{x:T,dy:P===0?N:o,key:"".concat(B,"-").concat(P)},B)}))};function va(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function dF(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Lb(e){let t,n,r;e.length!==2?(t=va,n=(o,s)=>va(e(o),s),r=(o,s)=>e(o)-s):(t=e===va||e===dF?e:hF,n=e,r=e);function a(o,s,u=0,d=o.length){if(u<d){if(t(s,s)!==0)return d;do{const f=u+d>>>1;n(o[f],s)<0?u=f+1:d=f}while(u<d)}return u}function i(o,s,u=0,d=o.length){if(u<d){if(t(s,s)!==0)return d;do{const f=u+d>>>1;n(o[f],s)<=0?u=f+1:d=f}while(u<d)}return u}function l(o,s,u=0,d=o.length){const f=a(o,s,u,d-1);return f>u&&r(o[f-1],s)>-r(o[f],s)?f-1:f}return{left:a,center:l,right:i}}function hF(){return 0}function _T(e){return e===null?NaN:+e}function*pF(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const mF=Lb(va),Mu=mF.right;Lb(_T).center;class IS extends Map{constructor(t,n=gF){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(US(this,t))}has(t){return super.has(US(this,t))}set(t,n){return super.set(yF(this,t),n)}delete(t){return super.delete(vF(this,t))}}function US({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yF({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function vF({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function gF(e){return e!==null&&typeof e=="object"?e.valueOf():e}function bF(e=va){if(e===va)return ET;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 ET(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const xF=Math.sqrt(50),SF=Math.sqrt(10),wF=Math.sqrt(2);function $f(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),l=i>=xF?10:i>=SF?5:i>=wF?2:1;let o,s,u;return a<0?(u=Math.pow(10,-a)/l,o=Math.round(e*u),s=Math.round(t*u),o/u<e&&++o,s/u>t&&--s,u=-u):(u=Math.pow(10,a)*l,o=Math.round(e/u),s=Math.round(t/u),o*u<e&&++o,s*u>t&&--s),s<o&&.5<=n&&n<2?$f(e,t,n*2):[o,s,u]}function qy(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,l]=r?$f(t,e,n):$f(e,t,n);if(!(i>=a))return[];const o=i-a+1,s=new Array(o);if(r)if(l<0)for(let u=0;u<o;++u)s[u]=(i-u)/-l;else for(let u=0;u<o;++u)s[u]=(i-u)*l;else if(l<0)for(let u=0;u<o;++u)s[u]=(a+u)/-l;else for(let u=0;u<o;++u)s[u]=(a+u)*l;return s}function Gy(e,t,n){return t=+t,e=+e,n=+n,$f(e,t,n)[2]}function Yy(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Gy(t,e,n):Gy(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function HS(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function qS(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function TT(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?ET:bF(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)),S=Math.min(r,Math.floor(t+(s-u)*f/s+h));TT(e,t,p,S,a)}const i=e[t];let l=n,o=r;for(Mo(e,n,t),a(e[r],i)>0&&Mo(e,n,r);l<o;){for(Mo(e,l,o),++l,--o;a(e[l],i)<0;)++l;for(;a(e[o],i)>0;)--o}a(e[n],i)===0?Mo(e,n,o):(++o,Mo(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function Mo(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function jF(e,t,n){if(e=Float64Array.from(pF(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return qS(e);if(t>=1)return HS(e);var r,a=(r-1)*t,i=Math.floor(a),l=HS(TT(e,i).subarray(0,i+1)),o=qS(e.subarray(i+1));return l+(o-l)*(a-i)}}function OF(e,t,n=_T){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),l=+n(e[i],i,e),o=+n(e[i+1],i+1,e);return l+(o-l)*(a-i)}}function AF(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 Ln(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Gr(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 Fy=Symbol("implicit");function Bb(){var e=new IS,t=[],n=[],r=Fy;function a(i){let l=e.get(i);if(l===void 0){if(r!==Fy)return r;e.set(i,l=t.push(i)-1)}return n[l%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new IS;for(const l of i)e.has(l)||e.set(l,t.push(l)-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 Bb(t,n).unknown(r)},Ln.apply(a,arguments),a}function Ds(){var e=Bb().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,l,o=!1,s=0,u=0,d=.5;delete e.unknown;function f(){var h=t().length,p=a<r,S=p?a:r,g=p?r:a;i=(g-S)/Math.max(1,h-s+u*2),o&&(i=Math.floor(i)),S+=(g-S-i*(h-s))*d,l=i*(1-s),o&&(S=Math.round(S),l=Math.round(l));var v=AF(h).map(function(m){return S+i*m});return n(p?v.reverse():v)}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,o=!0,f()},e.bandwidth=function(){return l},e.step=function(){return i},e.round=function(h){return arguments.length?(o=!!h,f()):o},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 Ds(t(),[r,a]).round(o).paddingInner(s).paddingOuter(u).align(d)},Ln.apply(f(),arguments)}function NT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return NT(t())},e}function ls(){return NT(Ds.apply(null,arguments).paddingInner(1))}function zb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function CT(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $u(){}var ks=.7,Rf=1/ks,ul="\\s*([+-]?\\d+)\\s*",Ls="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_F=/^#([0-9a-f]{3,8})$/,EF=new RegExp(`^rgb\\(${ul},${ul},${ul}\\)$`),TF=new RegExp(`^rgb\\(${tr},${tr},${tr}\\)$`),NF=new RegExp(`^rgba\\(${ul},${ul},${ul},${Ls}\\)$`),CF=new RegExp(`^rgba\\(${tr},${tr},${tr},${Ls}\\)$`),MF=new RegExp(`^hsl\\(${Ls},${tr},${tr}\\)$`),$F=new RegExp(`^hsla\\(${Ls},${tr},${tr},${Ls}\\)$`),GS={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};zb($u,Bs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:YS,formatHex:YS,formatHex8:RF,formatHsl:PF,formatRgb:FS,toString:FS});function YS(){return this.rgb().formatHex()}function RF(){return this.rgb().formatHex8()}function PF(){return MT(this).formatHsl()}function FS(){return this.rgb().formatRgb()}function Bs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_F.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?VS(t):n===3?new Xt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ic(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ic(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=EF.exec(e))?new Xt(t[1],t[2],t[3],1):(t=TF.exec(e))?new Xt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=NF.exec(e))?ic(t[1],t[2],t[3],t[4]):(t=CF.exec(e))?ic(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=MF.exec(e))?WS(t[1],t[2]/100,t[3]/100,1):(t=$F.exec(e))?WS(t[1],t[2]/100,t[3]/100,t[4]):GS.hasOwnProperty(e)?VS(GS[e]):e==="transparent"?new Xt(NaN,NaN,NaN,0):null}function VS(e){return new Xt(e>>16&255,e>>8&255,e&255,1)}function ic(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xt(e,t,n,r)}function DF(e){return e instanceof $u||(e=Bs(e)),e?(e=e.rgb(),new Xt(e.r,e.g,e.b,e.opacity)):new Xt}function Vy(e,t,n,r){return arguments.length===1?DF(e):new Xt(e,t,n,r??1)}function Xt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}zb(Xt,Vy,CT($u,{brighter(e){return e=e==null?Rf:Math.pow(Rf,e),new Xt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new Xt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xt(ni(this.r),ni(this.g),ni(this.b),Pf(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:KS,formatHex:KS,formatHex8:kF,formatRgb:XS,toString:XS}));function KS(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}`}function kF(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}${Fa((isNaN(this.opacity)?1:this.opacity)*255)}`}function XS(){const e=Pf(this.opacity);return`${e===1?"rgb(":"rgba("}${ni(this.r)}, ${ni(this.g)}, ${ni(this.b)}${e===1?")":`, ${e})`}`}function Pf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ni(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fa(e){return e=ni(e),(e<16?"0":"")+e.toString(16)}function WS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Gn(e,t,n,r)}function MT(e){if(e instanceof Gn)return new Gn(e.h,e.s,e.l,e.opacity);if(e instanceof $u||(e=Bs(e)),!e)return new Gn;if(e instanceof Gn)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),l=NaN,o=i-a,s=(i+a)/2;return o?(t===i?l=(n-r)/o+(n<r)*6:n===i?l=(r-t)/o+2:l=(t-n)/o+4,o/=s<.5?i+a:2-i-a,l*=60):o=s>0&&s<1?0:l,new Gn(l,o,s,e.opacity)}function LF(e,t,n,r){return arguments.length===1?MT(e):new Gn(e,t,n,r??1)}function Gn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}zb(Gn,LF,CT($u,{brighter(e){return e=e==null?Rf:Math.pow(Rf,e),new Gn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new Gn(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 Xt(Yp(e>=240?e-240:e+120,a,r),Yp(e,a,r),Yp(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Gn(ZS(this.h),lc(this.s),lc(this.l),Pf(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=Pf(this.opacity);return`${e===1?"hsl(":"hsla("}${ZS(this.h)}, ${lc(this.s)*100}%, ${lc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ZS(e){return e=(e||0)%360,e<0?e+360:e}function lc(e){return Math.max(0,Math.min(1,e||0))}function Yp(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 Ib=e=>()=>e;function BF(e,t){return function(n){return e+n*t}}function zF(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 IF(e){return(e=+e)==1?$T:function(t,n){return n-t?zF(t,n,e):Ib(isNaN(t)?n:t)}}function $T(e,t){var n=t-e;return n?BF(e,n):Ib(isNaN(e)?t:e)}const QS=function e(t){var n=IF(t);function r(a,i){var l=n((a=Vy(a)).r,(i=Vy(i)).r),o=n(a.g,i.g),s=n(a.b,i.b),u=$T(a.opacity,i.opacity);return function(d){return a.r=l(d),a.g=o(d),a.b=s(d),a.opacity=u(d),a+""}}return r.gamma=e,r}(1);function UF(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 HF(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qF(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),l;for(l=0;l<r;++l)a[l]=vo(e[l],t[l]);for(;l<n;++l)i[l]=t[l];return function(o){for(l=0;l<r;++l)i[l]=a[l](o);return i}}function GF(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Df(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function YF(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]=vo(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Ky=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fp=new RegExp(Ky.source,"g");function FF(e){return function(){return e}}function VF(e){return function(t){return e(t)+""}}function KF(e,t){var n=Ky.lastIndex=Fp.lastIndex=0,r,a,i,l=-1,o=[],s=[];for(e=e+"",t=t+"";(r=Ky.exec(e))&&(a=Fp.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),o[l]?o[l]+=i:o[++l]=i),(r=r[0])===(a=a[0])?o[l]?o[l]+=a:o[++l]=a:(o[++l]=null,s.push({i:l,x:Df(r,a)})),n=Fp.lastIndex;return n<t.length&&(i=t.slice(n),o[l]?o[l]+=i:o[++l]=i),o.length<2?s[0]?VF(s[0].x):FF(t):(t=s.length,function(u){for(var d=0,f;d<t;++d)o[(f=s[d]).i]=f.x(u);return o.join("")})}function vo(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ib(t):(n==="number"?Df:n==="string"?(r=Bs(t))?(t=r,QS):KF:t instanceof Bs?QS:t instanceof Date?GF:HF(t)?UF:Array.isArray(t)?qF:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?YF:Df)(e,t)}function Ub(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function XF(e,t){t===void 0&&(t=e,e=vo);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(l){var o=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return i[o](l-o)}}function WF(e){return function(){return e}}function kf(e){return+e}var JS=[0,1];function Ht(e){return e}function Xy(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:WF(isNaN(t)?NaN:.5)}function ZF(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function QF(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a<r?(r=Xy(a,r),i=n(l,i)):(r=Xy(r,a),i=n(i,l)),function(o){return i(r(o))}}function JF(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=Xy(e[l],e[l+1]),i[l]=n(t[l],t[l+1]);return function(o){var s=Mu(e,o,1,r)-1;return i[s](a[s](o))}}function Ru(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function hh(){var e=JS,t=JS,n=vo,r,a,i,l=Ht,o,s,u;function d(){var h=Math.min(e.length,t.length);return l!==Ht&&(l=ZF(e[0],e[h-1])),o=h>2?JF:QF,s=u=null,f}function f(h){return h==null||isNaN(h=+h)?i:(s||(s=o(e.map(r),t,n)))(r(l(h)))}return f.invert=function(h){return l(a((u||(u=o(t,e.map(r),Df)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,kf),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=Ub,d()},f.clamp=function(h){return arguments.length?(l=h?!0:Ht,d()):l!==Ht},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 Hb(){return hh()(Ht,Ht)}function eV(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Lf(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 Nl(e){return e=Lf(Math.abs(e)),e?e[1]:NaN}function tV(e,t){return function(n,r){for(var a=n.length,i=[],l=0,o=e[0],s=0;a>0&&o>0&&(s+o+1>r&&(o=Math.max(1,r-s)),i.push(n.substring(a-=o,a+o)),!((s+=o+1)>r));)o=e[l=(l+1)%e.length];return i.reverse().join(t)}}function nV(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var rV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zs(e){if(!(t=rV.exec(e)))throw new Error("invalid format: "+e);var t;return new qb({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]})}zs.prototype=qb.prototype;function qb(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+""}qb.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 aV(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 Bf;function iV(e,t){var n=Lf(e,t);if(!n)return Bf=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Bf=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Lf(e,Math.max(0,t+i-1))[0]}function ew(e,t){var n=Lf(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 tw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:eV,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)=>ew(e*100,t),r:ew,s:iV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function nw(e){return e}var rw=Array.prototype.map,aw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function lV(e){var t=e.grouping===void 0||e.thousands===void 0?nw:tV(rw.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?nw:nV(rw.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f,h){f=zs(f);var p=f.fill,S=f.align,g=f.sign,v=f.symbol,m=f.zero,y=f.width,b=f.comma,w=f.precision,x=f.trim,j=f.type;j==="n"?(b=!0,j="g"):tw[j]||(w===void 0&&(w=12),x=!0,j="g"),(m||p==="0"&&S==="=")&&(m=!0,p="0",S="=");var A=(h&&h.prefix!==void 0?h.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),_=(v==="$"?r:/[%p]/.test(j)?l:"")+(h&&h.suffix!==void 0?h.suffix:""),E=tw[j],T=/[defgprs%]/.test(j);w=w===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function R(N){var L=A,k=_,D,$,P;if(j==="c")k=E(N)+k,N="";else{N=+N;var B=N<0||1/N<0;if(N=isNaN(N)?s:E(Math.abs(N),w),x&&(N=aV(N)),B&&+N==0&&g!=="+"&&(B=!1),L=(B?g==="("?g:o:g==="-"||g==="("?"":g)+L,k=(j==="s"&&!isNaN(N)&&Bf!==void 0?aw[8+Bf/3]:"")+k+(B&&g==="("?")":""),T){for(D=-1,$=N.length;++D<$;)if(P=N.charCodeAt(D),48>P||P>57){k=(P===46?a+N.slice(D+1):N.slice(D))+k,N=N.slice(0,D);break}}}b&&!m&&(N=t(N,1/0));var H=L.length+N.length+k.length,G=H<y?new Array(y-H+1).join(p):"";switch(b&&m&&(N=t(G+N,G.length?y-k.length:1/0),G=""),S){case"<":N=L+N+k+G;break;case"=":N=L+G+N+k;break;case"^":N=G.slice(0,H=G.length>>1)+L+N+k+G.slice(H);break;default:N=G+L+N+k;break}return i(N)}return R.toString=function(){return f+""},R}function d(f,h){var p=Math.max(-8,Math.min(8,Math.floor(Nl(h)/3)))*3,S=Math.pow(10,-p),g=u((f=zs(f),f.type="f",f),{suffix:aw[8+p/3]});return function(v){return g(S*v)}}return{format:u,formatPrefix:d}}var oc,Gb,RT;oV({thousands:",",grouping:[3],currency:["$",""]});function oV(e){return oc=lV(e),Gb=oc.format,RT=oc.formatPrefix,oc}function sV(e){return Math.max(0,-Nl(Math.abs(e)))}function uV(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Nl(t)/3)))*3-Nl(Math.abs(e)))}function cV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nl(t)-Nl(e))+1}function PT(e,t,n,r){var a=Yy(e,t,n),i;switch(r=zs(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=uV(a,l))&&(r.precision=i),RT(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=cV(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=sV(a))&&(r.precision=i-(r.type==="%")*2);break}}return Gb(r)}function Ea(e){var t=e.domain;return e.ticks=function(n){var r=t();return qy(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return PT(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,l=r[a],o=r[i],s,u,d=10;for(o<l&&(u=l,l=o,o=u,u=a,a=i,i=u);d-- >0;){if(u=Gy(l,o,n),u===s)return r[a]=l,r[i]=o,t(r);if(u>0)l=Math.floor(l/u)*u,o=Math.ceil(o/u)*u;else if(u<0)l=Math.ceil(l*u)/u,o=Math.floor(o*u)/u;else break;s=u}return e},e}function zf(){var e=Hb();return e.copy=function(){return Ru(e,zf())},Ln.apply(e,arguments),Ea(e)}function DT(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,kf),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return DT(e).unknown(t)},e=arguments.length?Array.from(e,kf):[0,1],Ea(n)}function kT(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],l;return i<a&&(l=n,n=r,r=l,l=a,a=i,i=l),e[n]=t.floor(a),e[r]=t.ceil(i),e}function iw(e){return Math.log(e)}function lw(e){return Math.exp(e)}function fV(e){return-Math.log(-e)}function dV(e){return-Math.exp(-e)}function hV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function pV(e){return e===10?hV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function mV(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 ow(e){return(t,n)=>-e(-t,n)}function Yb(e){const t=e(iw,lw),n=t.domain;let r=10,a,i;function l(){return a=mV(r),i=pV(r),n()[0]<0?(a=ow(a),i=ow(i),e(fV,dV)):e(iw,lw),t}return t.base=function(o){return arguments.length?(r=+o,l()):r},t.domain=function(o){return arguments.length?(n(o),l()):n()},t.ticks=o=>{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),S,g;const v=o==null?10:+o;let m=[];if(!(r%1)&&p-h<v){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(S=1;S<r;++S)if(g=h<0?S/i(-h):S*i(h),!(g<u)){if(g>d)break;m.push(g)}}else for(;h<=p;++h)for(S=r-1;S>=1;--S)if(g=h>0?S/i(-h):S*i(h),!(g<u)){if(g>d)break;m.push(g)}m.length*2<v&&(m=qy(u,d,v))}else m=qy(h,p,Math.min(p-h,v)).map(i);return f?m.reverse():m},t.tickFormat=(o,s)=>{if(o==null&&(o=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=zs(s)).precision==null&&(s.trim=!0),s=Gb(s)),o===1/0)return s;const u=Math.max(1,r*o/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(kT(n(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function LT(){const e=Yb(hh()).domain([1,10]);return e.copy=()=>Ru(e,LT()).base(e.base()),Ln.apply(e,arguments),e}function sw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function uw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Fb(e){var t=1,n=e(sw(t),uw(t));return n.constant=function(r){return arguments.length?e(sw(t=+r),uw(t)):t},Ea(n)}function BT(){var e=Fb(hh());return e.copy=function(){return Ru(e,BT()).constant(e.constant())},Ln.apply(e,arguments)}function cw(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function yV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vV(e){return e<0?-e*e:e*e}function Vb(e){var t=e(Ht,Ht),n=1;function r(){return n===1?e(Ht,Ht):n===.5?e(yV,vV):e(cw(n),cw(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Ea(t)}function Kb(){var e=Vb(hh());return e.copy=function(){return Ru(e,Kb()).exponent(e.exponent())},Ln.apply(e,arguments),e}function gV(){return Kb.apply(null,arguments).exponent(.5)}function fw(e){return Math.sign(e)*e*e}function bV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function zT(){var e=Hb(),t=[0,1],n=!1,r;function a(i){var l=bV(e(i));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(i){return e.invert(fw(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,kf)).map(fw)),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 zT(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ln.apply(a,arguments),Ea(a)}function IT(){var e=[],t=[],n=[],r;function a(){var l=0,o=Math.max(1,t.length);for(n=new Array(o-1);++l<o;)n[l-1]=OF(e,l/o);return i}function i(l){return l==null||isNaN(l=+l)?r:t[Mu(n,l)]}return i.invertExtent=function(l){var o=t.indexOf(l);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let o of l)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(va),a()},i.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},i.unknown=function(l){return arguments.length?(r=l,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return IT().domain(e).range(t).unknown(r)},Ln.apply(i,arguments)}function UT(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function l(s){return s!=null&&s<=s?a[Mu(r,s,0,n)]:i}function o(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return l}return l.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,o()):[e,t]},l.range=function(s){return arguments.length?(n=(a=Array.from(s)).length-1,o()):a.slice()},l.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]]},l.unknown=function(s){return arguments.length&&(i=s),l},l.thresholds=function(){return r.slice()},l.copy=function(){return UT().domain([e,t]).range(a).unknown(i)},Ln.apply(Ea(l),arguments)}function HT(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Mu(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 l=t.indexOf(i);return[e[l-1],e[l]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return HT().domain(e).range(t).unknown(n)},Ln.apply(a,arguments)}const Vp=new Date,Kp=new Date;function yt(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 l=a(i),o=a.ceil(i);return i-l<o-i?l:o},a.offset=(i,l)=>(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,o)=>{const s=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i<l)||!(o>0))return s;let u;do s.push(u=new Date(+i)),t(i,o),e(i);while(u<i&&i<l);return s},a.filter=i=>yt(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,o)=>{if(l>=l)if(o<0)for(;++o<=0;)for(;t(l,-1),!i(l););else for(;--o>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(Vp.setTime(+i),Kp.setTime(+l),e(Vp),e(Kp),Math.floor(n(Vp,Kp))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?l=>r(l)%i===0:l=>a.count(0,l)%i===0):a)),a}const If=yt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);If.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):If);If.range;const jr=1e3,Nn=jr*60,Or=Nn*60,Lr=Or*24,Xb=Lr*7,dw=Lr*30,Xp=Lr*365,Va=yt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*jr)},(e,t)=>(t-e)/jr,e=>e.getUTCSeconds());Va.range;const Wb=yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jr)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getMinutes());Wb.range;const Zb=yt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getUTCMinutes());Zb.range;const Qb=yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jr-e.getMinutes()*Nn)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getHours());Qb.range;const Jb=yt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCHours());Jb.range;const Pu=yt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nn)/Lr,e=>e.getDate()-1);Pu.range;const ph=yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lr,e=>e.getUTCDate()-1);ph.range;const qT=yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lr,e=>Math.floor(e/Lr));qT.range;function wi(e){return yt(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())*Nn)/Xb)}const mh=wi(0),Uf=wi(1),xV=wi(2),SV=wi(3),Cl=wi(4),wV=wi(5),jV=wi(6);mh.range;Uf.range;xV.range;SV.range;Cl.range;wV.range;jV.range;function ji(e){return yt(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)/Xb)}const yh=ji(0),Hf=ji(1),OV=ji(2),AV=ji(3),Ml=ji(4),_V=ji(5),EV=ji(6);yh.range;Hf.range;OV.range;AV.range;Ml.range;_V.range;EV.range;const e0=yt(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());e0.range;const t0=yt(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());t0.range;const Br=yt(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());Br.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yt(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)});Br.range;const zr=yt(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());zr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yt(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)});zr.range;function GT(e,t,n,r,a,i){const l=[[Va,1,jr],[Va,5,5*jr],[Va,15,15*jr],[Va,30,30*jr],[i,1,Nn],[i,5,5*Nn],[i,15,15*Nn],[i,30,30*Nn],[a,1,Or],[a,3,3*Or],[a,6,6*Or],[a,12,12*Or],[r,1,Lr],[r,2,2*Lr],[n,1,Xb],[t,1,dw],[t,3,3*dw],[e,1,Xp]];function o(u,d,f){const h=d<u;h&&([u,d]=[d,u]);const p=f&&typeof f.range=="function"?f:s(u,d,f),S=p?p.range(u,+d+1):[];return h?S.reverse():S}function s(u,d,f){const h=Math.abs(d-u)/f,p=Lb(([,,v])=>v).right(l,h);if(p===l.length)return e.every(Yy(u/Xp,d/Xp,f));if(p===0)return If.every(Math.max(Yy(u,d,f),1));const[S,g]=l[h/l[p-1][2]<l[p][2]/h?p-1:p];return S.every(g)}return[o,s]}const[TV,NV]=GT(zr,t0,yh,qT,Jb,Zb),[CV,MV]=GT(Br,e0,mh,Pu,Qb,Wb);function Wp(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 Zp(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 $o(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $V(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,o=e.months,s=e.shortMonths,u=Ro(a),d=Po(a),f=Ro(i),h=Po(i),p=Ro(l),S=Po(l),g=Ro(o),v=Po(o),m=Ro(s),y=Po(s),b={a:P,A:B,b:H,B:G,c:null,d:gw,e:gw,f:tK,g:fK,G:hK,H:QV,I:JV,j:eK,L:YT,m:nK,M:rK,p:q,q:Y,Q:Sw,s:ww,S:aK,u:iK,U:lK,V:oK,w:sK,W:uK,x:null,X:null,y:cK,Y:dK,Z:pK,"%":xw},w={a:W,A:oe,b:Ce,B:se,c:null,d:bw,e:bw,f:gK,g:TK,G:CK,H:mK,I:yK,j:vK,L:VT,m:bK,M:xK,p:Ot,q:ct,Q:Sw,s:ww,S:SK,u:wK,U:jK,V:OK,w:AK,W:_K,x:null,X:null,y:EK,Y:NK,Z:MK,"%":xw},x={a:T,A:R,b:N,B:L,c:k,d:yw,e:yw,f:KV,g:mw,G:pw,H:vw,I:vw,j:GV,L:VV,m:qV,M:YV,p:E,q:HV,Q:WV,s:ZV,S:FV,u:LV,U:BV,V:zV,w:kV,W:IV,x:D,X:$,y:mw,Y:pw,Z:UV,"%":XV};b.x=j(n,b),b.X=j(r,b),b.c=j(t,b),w.x=j(n,w),w.X=j(r,w),w.c=j(t,w);function j(V,ae){return function(ue){var U=[],Ue=-1,me=0,Oe=V.length,Z,Me,At;for(ue instanceof Date||(ue=new Date(+ue));++Ue<Oe;)V.charCodeAt(Ue)===37&&(U.push(V.slice(me,Ue)),(Me=hw[Z=V.charAt(++Ue)])!=null?Z=V.charAt(++Ue):Me=Z==="e"?" ":"0",(At=ae[Z])&&(Z=At(ue,Me)),U.push(Z),me=Ue+1);return U.push(V.slice(me,Ue)),U.join("")}}function A(V,ae){return function(ue){var U=$o(1900,void 0,1),Ue=_(U,V,ue+="",0),me,Oe;if(Ue!=ue.length)return null;if("Q"in U)return new Date(U.Q);if("s"in U)return new Date(U.s*1e3+("L"in U?U.L:0));if(ae&&!("Z"in U)&&(U.Z=0),"p"in U&&(U.H=U.H%12+U.p*12),U.m===void 0&&(U.m="q"in U?U.q:0),"V"in U){if(U.V<1||U.V>53)return null;"w"in U||(U.w=1),"Z"in U?(me=Zp($o(U.y,0,1)),Oe=me.getUTCDay(),me=Oe>4||Oe===0?Hf.ceil(me):Hf(me),me=ph.offset(me,(U.V-1)*7),U.y=me.getUTCFullYear(),U.m=me.getUTCMonth(),U.d=me.getUTCDate()+(U.w+6)%7):(me=Wp($o(U.y,0,1)),Oe=me.getDay(),me=Oe>4||Oe===0?Uf.ceil(me):Uf(me),me=Pu.offset(me,(U.V-1)*7),U.y=me.getFullYear(),U.m=me.getMonth(),U.d=me.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Oe="Z"in U?Zp($o(U.y,0,1)).getUTCDay():Wp($o(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Oe+5)%7:U.w+U.U*7-(Oe+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Zp(U)):Wp(U)}}function _(V,ae,ue,U){for(var Ue=0,me=ae.length,Oe=ue.length,Z,Me;Ue<me;){if(U>=Oe)return-1;if(Z=ae.charCodeAt(Ue++),Z===37){if(Z=ae.charAt(Ue++),Me=x[Z in hw?ae.charAt(Ue++):Z],!Me||(U=Me(V,ue,U))<0)return-1}else if(Z!=ue.charCodeAt(U++))return-1}return U}function E(V,ae,ue){var U=u.exec(ae.slice(ue));return U?(V.p=d.get(U[0].toLowerCase()),ue+U[0].length):-1}function T(V,ae,ue){var U=p.exec(ae.slice(ue));return U?(V.w=S.get(U[0].toLowerCase()),ue+U[0].length):-1}function R(V,ae,ue){var U=f.exec(ae.slice(ue));return U?(V.w=h.get(U[0].toLowerCase()),ue+U[0].length):-1}function N(V,ae,ue){var U=m.exec(ae.slice(ue));return U?(V.m=y.get(U[0].toLowerCase()),ue+U[0].length):-1}function L(V,ae,ue){var U=g.exec(ae.slice(ue));return U?(V.m=v.get(U[0].toLowerCase()),ue+U[0].length):-1}function k(V,ae,ue){return _(V,t,ae,ue)}function D(V,ae,ue){return _(V,n,ae,ue)}function $(V,ae,ue){return _(V,r,ae,ue)}function P(V){return l[V.getDay()]}function B(V){return i[V.getDay()]}function H(V){return s[V.getMonth()]}function G(V){return o[V.getMonth()]}function q(V){return a[+(V.getHours()>=12)]}function Y(V){return 1+~~(V.getMonth()/3)}function W(V){return l[V.getUTCDay()]}function oe(V){return i[V.getUTCDay()]}function Ce(V){return s[V.getUTCMonth()]}function se(V){return o[V.getUTCMonth()]}function Ot(V){return a[+(V.getUTCHours()>=12)]}function ct(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var ae=j(V+="",b);return ae.toString=function(){return V},ae},parse:function(V){var ae=A(V+="",!1);return ae.toString=function(){return V},ae},utcFormat:function(V){var ae=j(V+="",w);return ae.toString=function(){return V},ae},utcParse:function(V){var ae=A(V+="",!0);return ae.toString=function(){return V},ae}}}var hw={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,RV=/^%/,PV=/[\\^$*+?|[\]().{}]/g;function xe(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 DV(e){return e.replace(PV,"\\$&")}function Ro(e){return new RegExp("^(?:"+e.map(DV).join("|")+")","i")}function Po(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function kV(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function LV(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function BV(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function zV(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function IV(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pw(e,t,n){var r=jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function UV(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 HV(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function qV(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function yw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function GV(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function vw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function YV(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function FV(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function VV(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function KV(e,t,n){var r=jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function XV(e,t,n){var r=RV.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function WV(e,t,n){var r=jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ZV(e,t,n){var r=jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gw(e,t){return xe(e.getDate(),t,2)}function QV(e,t){return xe(e.getHours(),t,2)}function JV(e,t){return xe(e.getHours()%12||12,t,2)}function eK(e,t){return xe(1+Pu.count(Br(e),e),t,3)}function YT(e,t){return xe(e.getMilliseconds(),t,3)}function tK(e,t){return YT(e,t)+"000"}function nK(e,t){return xe(e.getMonth()+1,t,2)}function rK(e,t){return xe(e.getMinutes(),t,2)}function aK(e,t){return xe(e.getSeconds(),t,2)}function iK(e){var t=e.getDay();return t===0?7:t}function lK(e,t){return xe(mh.count(Br(e)-1,e),t,2)}function FT(e){var t=e.getDay();return t>=4||t===0?Cl(e):Cl.ceil(e)}function oK(e,t){return e=FT(e),xe(Cl.count(Br(e),e)+(Br(e).getDay()===4),t,2)}function sK(e){return e.getDay()}function uK(e,t){return xe(Uf.count(Br(e)-1,e),t,2)}function cK(e,t){return xe(e.getFullYear()%100,t,2)}function fK(e,t){return e=FT(e),xe(e.getFullYear()%100,t,2)}function dK(e,t){return xe(e.getFullYear()%1e4,t,4)}function hK(e,t){var n=e.getDay();return e=n>=4||n===0?Cl(e):Cl.ceil(e),xe(e.getFullYear()%1e4,t,4)}function pK(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xe(t/60|0,"0",2)+xe(t%60,"0",2)}function bw(e,t){return xe(e.getUTCDate(),t,2)}function mK(e,t){return xe(e.getUTCHours(),t,2)}function yK(e,t){return xe(e.getUTCHours()%12||12,t,2)}function vK(e,t){return xe(1+ph.count(zr(e),e),t,3)}function VT(e,t){return xe(e.getUTCMilliseconds(),t,3)}function gK(e,t){return VT(e,t)+"000"}function bK(e,t){return xe(e.getUTCMonth()+1,t,2)}function xK(e,t){return xe(e.getUTCMinutes(),t,2)}function SK(e,t){return xe(e.getUTCSeconds(),t,2)}function wK(e){var t=e.getUTCDay();return t===0?7:t}function jK(e,t){return xe(yh.count(zr(e)-1,e),t,2)}function KT(e){var t=e.getUTCDay();return t>=4||t===0?Ml(e):Ml.ceil(e)}function OK(e,t){return e=KT(e),xe(Ml.count(zr(e),e)+(zr(e).getUTCDay()===4),t,2)}function AK(e){return e.getUTCDay()}function _K(e,t){return xe(Hf.count(zr(e)-1,e),t,2)}function EK(e,t){return xe(e.getUTCFullYear()%100,t,2)}function TK(e,t){return e=KT(e),xe(e.getUTCFullYear()%100,t,2)}function NK(e,t){return xe(e.getUTCFullYear()%1e4,t,4)}function CK(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ml(e):Ml.ceil(e),xe(e.getUTCFullYear()%1e4,t,4)}function MK(){return"+0000"}function xw(){return"%"}function Sw(e){return+e}function ww(e){return Math.floor(+e/1e3)}var $i,XT,WT;$K({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 $K(e){return $i=$V(e),XT=$i.format,$i.parse,WT=$i.utcFormat,$i.utcParse,$i}function RK(e){return new Date(e)}function PK(e){return e instanceof Date?+e:+new Date(+e)}function n0(e,t,n,r,a,i,l,o,s,u){var d=Hb(),f=d.invert,h=d.domain,p=u(".%L"),S=u(":%S"),g=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),y=u("%b %d"),b=u("%B"),w=u("%Y");function x(j){return(s(j)<j?p:o(j)<j?S:l(j)<j?g:i(j)<j?v:r(j)<j?a(j)<j?m:y:n(j)<j?b:w)(j)}return d.invert=function(j){return new Date(f(j))},d.domain=function(j){return arguments.length?h(Array.from(j,PK)):h().map(RK)},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?x: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(kT(A,j)):d},d.copy=function(){return Ru(d,n0(e,t,n,r,a,i,l,o,s,u))},d}function DK(){return Ln.apply(n0(CV,MV,Br,e0,mh,Pu,Qb,Wb,Va,XT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function kK(){return Ln.apply(n0(TV,NV,zr,t0,yh,ph,Jb,Zb,Va,WT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vh(){var e=0,t=1,n,r,a,i,l=Ht,o=!1,s;function u(f){return f==null||isNaN(f=+f)?s:l(a===0?.5:(f=(i(f)-n)*a,o?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?(o=!!f,u):o},u.interpolator=function(f){return arguments.length?(l=f,u):l};function d(f){return function(h){var p,S;return arguments.length?([p,S]=h,l=f(p,S),u):[l(0),l(1)]}}return u.range=d(vo),u.rangeRound=d(Ub),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 Ta(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ZT(){var e=Ea(vh()(Ht));return e.copy=function(){return Ta(e,ZT())},Gr.apply(e,arguments)}function QT(){var e=Yb(vh()).domain([1,10]);return e.copy=function(){return Ta(e,QT()).base(e.base())},Gr.apply(e,arguments)}function JT(){var e=Fb(vh());return e.copy=function(){return Ta(e,JT()).constant(e.constant())},Gr.apply(e,arguments)}function r0(){var e=Vb(vh());return e.copy=function(){return Ta(e,r0()).exponent(e.exponent())},Gr.apply(e,arguments)}function LK(){return r0.apply(null,arguments).exponent(.5)}function eN(){var e=[],t=Ht;function n(r){if(r!=null&&!isNaN(r=+r))return t((Mu(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(va),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)=>jF(e,i/r))},n.copy=function(){return eN(t).domain(e)},Gr.apply(n,arguments)}function gh(){var e=0,t=.5,n=1,r=1,a,i,l,o,s,u=Ht,d,f=!1,h;function p(g){return isNaN(g=+g)?h:(g=.5+((g=+d(g))-i)*(r*g<r*i?o:s),u(f?Math.max(0,Math.min(1,g)):g))}p.domain=function(g){return arguments.length?([e,t,n]=g,a=d(e=+e),i=d(t=+t),l=d(n=+n),o=a===i?0:.5/(i-a),s=i===l?0:.5/(l-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(g){return arguments.length?(f=!!g,p):f},p.interpolator=function(g){return arguments.length?(u=g,p):u};function S(g){return function(v){var m,y,b;return arguments.length?([m,y,b]=v,u=XF(g,[m,y,b]),p):[u(0),u(.5),u(1)]}}return p.range=S(vo),p.rangeRound=S(Ub),p.unknown=function(g){return arguments.length?(h=g,p):h},function(g){return d=g,a=g(e),i=g(t),l=g(n),o=a===i?0:.5/(i-a),s=i===l?0:.5/(l-i),r=i<a?-1:1,p}}function tN(){var e=Ea(gh()(Ht));return e.copy=function(){return Ta(e,tN())},Gr.apply(e,arguments)}function nN(){var e=Yb(gh()).domain([.1,1,10]);return e.copy=function(){return Ta(e,nN()).base(e.base())},Gr.apply(e,arguments)}function rN(){var e=Fb(gh());return e.copy=function(){return Ta(e,rN()).constant(e.constant())},Gr.apply(e,arguments)}function a0(){var e=Vb(gh());return e.copy=function(){return Ta(e,a0()).exponent(e.exponent())},Gr.apply(e,arguments)}function BK(){return a0.apply(null,arguments).exponent(.5)}const jw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ds,scaleDiverging:tN,scaleDivergingLog:nN,scaleDivergingPow:a0,scaleDivergingSqrt:BK,scaleDivergingSymlog:rN,scaleIdentity:DT,scaleImplicit:Fy,scaleLinear:zf,scaleLog:LT,scaleOrdinal:Bb,scalePoint:ls,scalePow:Kb,scaleQuantile:IT,scaleQuantize:UT,scaleRadial:zT,scaleSequential:ZT,scaleSequentialLog:QT,scaleSequentialPow:r0,scaleSequentialQuantile:eN,scaleSequentialSqrt:LK,scaleSequentialSymlog:JT,scaleSqrt:gV,scaleSymlog:BT,scaleThreshold:HT,scaleTime:DK,scaleUtc:kK,tickFormat:PT},Symbol.toStringTag,{value:"Module"}));var zK=oo;function IK(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],l=t(i);if(l!=null&&(o===void 0?l===l&&!zK(l):n(l,o)))var o=l,s=i}return s}var bh=IK;function UK(e,t){return e>t}var aN=UK,HK=bh,qK=aN,GK=mo;function YK(e){return e&&e.length?HK(e,GK,qK):void 0}var FK=YK;const xh=Te(FK);function VK(e,t){return e<t}var iN=VK,KK=bh,XK=iN,WK=mo;function ZK(e){return e&&e.length?KK(e,WK,XK):void 0}var QK=ZK;const Sh=Te(QK);var JK=vb,eX=_a,tX=pT,nX=en;function rX(e,t){var n=nX(e)?JK:tX;return n(e,eX(t))}var aX=rX,iX=dT,lX=aX;function oX(e,t){return iX(lX(e,t),1)}var sX=oX;const uX=Te(sX);var cX=Rb;function fX(e,t){return cX(e,t)}var dX=fX;const wh=Te(dX);var go=1e9,hX={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l0,Xe=!0,Pn="[DecimalError] ",ri=Pn+"Invalid argument: ",i0=Pn+"Exponent out of range: ",bo=Math.floor,Ha=Math.pow,pX=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,sn,gt=1e7,Ge=7,lN=9007199254740991,qf=bo(lN/Ge),X={};X.absoluteValue=X.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};X.comparedTo=X.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};X.decimalPlaces=X.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ge;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};X.dividedBy=X.div=function(e){return Cr(this,new this.constructor(e))};X.dividedToIntegerBy=X.idiv=function(e){var t=this,n=t.constructor;return De(Cr(t,new n(e),0,1),n.precision)};X.equals=X.eq=function(e){return!this.cmp(e)};X.exponent=function(){return ut(this)};X.greaterThan=X.gt=function(e){return this.cmp(e)>0};X.greaterThanOrEqualTo=X.gte=function(e){return this.cmp(e)>=0};X.isInteger=X.isint=function(){return this.e>this.d.length-2};X.isNegative=X.isneg=function(){return this.s<0};X.isPositive=X.ispos=function(){return this.s>0};X.isZero=function(){return this.s===0};X.lessThan=X.lt=function(e){return this.cmp(e)<0};X.lessThanOrEqualTo=X.lte=function(e){return this.cmp(e)<1};X.logarithm=X.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(sn))throw Error(Pn+"NaN");if(n.s<1)throw Error(Pn+(n.s?"NaN":"-Infinity"));return n.eq(sn)?new r(0):(Xe=!1,t=Cr(Is(n,i),Is(e,i),i),Xe=!0,De(t,a))};X.minus=X.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uN(t,e):oN(t,(e.s=-e.s,e))};X.modulo=X.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Pn+"NaN");return n.s?(Xe=!1,t=Cr(n,e,0,1).times(e),Xe=!0,n.minus(t)):De(new r(n),a)};X.naturalExponential=X.exp=function(){return sN(this)};X.naturalLogarithm=X.ln=function(){return Is(this)};X.negated=X.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};X.plus=X.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oN(t,e):uN(t,(e.s=-e.s,e))};X.precision=X.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ri+e);if(t=ut(a)+1,r=a.d.length-1,n=r*Ge+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};X.squareRoot=X.sqrt=function(){var e,t,n,r,a,i,l,o=this,s=o.constructor;if(o.s<1){if(!o.s)return new s(0);throw Error(Pn+"NaN")}for(e=ut(o),Xe=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=Jn(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=bo((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=l=n+3;;)if(i=r,r=i.plus(Cr(o,i,l+2)).times(.5),Jn(i.d).slice(0,l)===(t=Jn(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(De(i,n+1,0),i.times(i).eq(o)){r=i;break}}else if(t!="9999")break;l+=4}return Xe=!0,De(r,n)};X.times=X.mul=function(e){var t,n,r,a,i,l,o,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,l=s,s=u,u=l),i=[],l=s+u,r=l;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=s+r;a>r;)o=i[a]+p[r]*h[a-r-1]+t,i[a--]=o%gt|0,t=o/gt|0;i[a]=(i[a]+t)%gt|0}for(;!i[--l];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Xe?De(e,f.precision):e};X.toDecimalPlaces=X.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(rr(e,0,go),t===void 0?t=r.rounding:rr(t,0,8),De(n,e+ut(n)+1,t))};X.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=pi(r,!0):(rr(e,0,go),t===void 0?t=a.rounding:rr(t,0,8),r=De(new a(r),e+1,t),n=pi(r,!0,e+1)),n};X.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?pi(a):(rr(e,0,go),t===void 0?t=i.rounding:rr(t,0,8),r=De(new i(a),e+ut(a)+1,t),n=pi(r.abs(),!1,e+ut(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};X.toInteger=X.toint=function(){var e=this,t=e.constructor;return De(new t(e),ut(e)+1,t.rounding)};X.toNumber=function(){return+this};X.toPower=X.pow=function(e){var t,n,r,a,i,l,o=this,s=o.constructor,u=12,d=+(e=new s(e));if(!e.s)return new s(sn);if(o=new s(o),!o.s){if(e.s<1)throw Error(Pn+"Infinity");return o}if(o.eq(sn))return o;if(r=s.precision,e.eq(sn))return De(o,r);if(t=e.e,n=e.d.length-1,l=t>=n,i=o.s,l){if((n=d<0?-d:d)<=lN){for(a=new s(sn),t=Math.ceil(r/Ge+4),Xe=!1;n%2&&(a=a.times(o),Aw(a.d,t)),n=bo(n/2),n!==0;)o=o.times(o),Aw(o.d,t);return Xe=!0,e.s<0?new s(sn).div(a):De(a,r)}}else if(i<0)throw Error(Pn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,o.s=1,Xe=!1,a=e.times(Is(o,r+u)),Xe=!0,a=sN(a),a.s=i,a};X.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=ut(a),r=pi(a,n<=i.toExpNeg||n>=i.toExpPos)):(rr(e,1,go),t===void 0?t=i.rounding:rr(t,0,8),a=De(new i(a),e,t),n=ut(a),r=pi(a,e<=n||n<=i.toExpNeg,e)),r};X.toSignificantDigits=X.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(rr(e,1,go),t===void 0?t=r.rounding:rr(t,0,8)),De(new r(n),e,t)};X.toString=X.valueOf=X.val=X.toJSON=X[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ut(e),n=e.constructor;return pi(e,t<=n.toExpNeg||t>=n.toExpPos)};function oN(e,t){var n,r,a,i,l,o,s,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Xe?De(t,f):t;if(s=e.d,u=t.d,l=e.e,a=t.e,s=s.slice(),i=l-a,i){for(i<0?(r=s,i=-i,o=u.length):(r=u,a=l,o=s.length),l=Math.ceil(f/Ge),o=l>o?l+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=s.length,i=u.length,o-i<0&&(i=o,r=u,u=s,s=r),n=0;i;)n=(s[--i]=s[i]+u[i]+n)/gt|0,s[i]%=gt;for(n&&(s.unshift(n),++a),o=s.length;s[--o]==0;)s.pop();return t.d=s,t.e=a,Xe?De(t,f):t}function rr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ri+e)}function Jn(e){var t,n,r,a=e.length-1,i="",l=e[0];if(a>0){for(i+=l,t=1;t<a;t++)r=e[t]+"",n=Ge-r.length,n&&(i+=Zr(n)),i+=r;l=e[t],r=l+"",n=Ge-r.length,n&&(i+=Zr(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return i+l}var Cr=function(){function e(r,a){var i,l=0,o=r.length;for(r=r.slice();o--;)i=r[o]*a+l,r[o]=i%gt|0,l=i/gt|0;return l&&r.unshift(l),r}function t(r,a,i,l){var o,s;if(i!=l)s=i>l?1:-1;else for(o=s=0;o<i;o++)if(r[o]!=a[o]){s=r[o]>a[o]?1:-1;break}return s}function n(r,a,i){for(var l=0;i--;)r[i]-=l,l=r[i]<a[i]?1:0,r[i]=l*gt+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,l){var o,s,u,d,f,h,p,S,g,v,m,y,b,w,x,j,A,_,E=r.constructor,T=r.s==a.s?1:-1,R=r.d,N=a.d;if(!r.s)return new E(r);if(!a.s)throw Error(Pn+"Division by zero");for(s=r.e-a.e,A=N.length,x=R.length,p=new E(T),S=p.d=[],u=0;N[u]==(R[u]||0);)++u;if(N[u]>(R[u]||0)&&--s,i==null?y=i=E.precision:l?y=i+(ut(r)-ut(a))+1:y=i,y<0)return new E(0);if(y=y/Ge+2|0,u=0,A==1)for(d=0,N=N[0],y++;(u<x||d)&&y--;u++)b=d*gt+(R[u]||0),S[u]=b/N|0,d=b%N|0;else{for(d=gt/(N[0]+1)|0,d>1&&(N=e(N,d),R=e(R,d),A=N.length,x=R.length),w=A,g=R.slice(0,A),v=g.length;v<A;)g[v++]=0;_=N.slice(),_.unshift(0),j=N[0],N[1]>=gt/2&&++j;do d=0,o=t(N,g,A,v),o<0?(m=g[0],A!=v&&(m=m*gt+(g[1]||0)),d=m/j|0,d>1?(d>=gt&&(d=gt-1),f=e(N,d),h=f.length,v=g.length,o=t(f,g,h,v),o==1&&(d--,n(f,A<h?_:N,h))):(d==0&&(o=d=1),f=N.slice()),h=f.length,h<v&&f.unshift(0),n(g,f,v),o==-1&&(v=g.length,o=t(N,g,A,v),o<1&&(d++,n(g,A<v?_:N,v))),v=g.length):o===0&&(d++,g=[0]),S[u++]=d,o&&g[0]?g[v++]=R[w]||0:(g=[R[w]],v=1);while((w++<x||g[0]!==void 0)&&y--)}return S[0]||S.shift(),p.e=s,De(p,l?i+ut(p)+1:i)}}();function sN(e,t){var n,r,a,i,l,o,s=0,u=0,d=e.constructor,f=d.precision;if(ut(e)>16)throw Error(i0+ut(e));if(!e.s)return new d(sn);for(Xe=!1,o=f,l=new d(.03125);e.abs().gte(.1);)e=e.times(l),u+=5;for(r=Math.log(Ha(2,u))/Math.LN10*2+5|0,o+=r,n=a=i=new d(sn),d.precision=o;;){if(a=De(a.times(e),o),n=n.times(++s),l=i.plus(Cr(a,n,o)),Jn(l.d).slice(0,o)===Jn(i.d).slice(0,o)){for(;u--;)i=De(i.times(i),o);return d.precision=f,t==null?(Xe=!0,De(i,f)):i}i=l}}function ut(e){for(var t=e.e*Ge,n=e.d[0];n>=10;n/=10)t++;return t}function Qp(e,t,n){if(t>e.LN10.sd())throw Xe=!0,n&&(e.precision=n),Error(Pn+"LN10 precision limit exceeded");return De(new e(e.LN10),t)}function Zr(e){for(var t="";e--;)t+="0";return t}function Is(e,t){var n,r,a,i,l,o,s,u,d,f=1,h=10,p=e,S=p.d,g=p.constructor,v=g.precision;if(p.s<1)throw Error(Pn+(p.s?"NaN":"-Infinity"));if(p.eq(sn))return new g(0);if(t==null?(Xe=!1,u=v):u=t,p.eq(10))return t==null&&(Xe=!0),Qp(g,u);if(u+=h,g.precision=u,n=Jn(S),r=n.charAt(0),i=ut(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Jn(p.d),r=n.charAt(0),f++;i=ut(p),r>1?(p=new g("0."+n),i++):p=new g(r+"."+n.slice(1))}else return s=Qp(g,u+2,v).times(i+""),p=Is(new g(r+"."+n.slice(1)),u-h).plus(s),g.precision=v,t==null?(Xe=!0,De(p,v)):p;for(o=l=p=Cr(p.minus(sn),p.plus(sn),u),d=De(p.times(p),u),a=3;;){if(l=De(l.times(d),u),s=o.plus(Cr(l,new g(a),u)),Jn(s.d).slice(0,u)===Jn(o.d).slice(0,u))return o=o.times(2),i!==0&&(o=o.plus(Qp(g,u+2,v).times(i+""))),o=Cr(o,new g(f),u),g.precision=v,t==null?(Xe=!0,De(o,v)):o;o=s,a+=2}}function Ow(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=bo(n/Ge),e.d=[],r=(n+1)%Ge,n<0&&(r+=Ge),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Ge;r<a;)e.d.push(+t.slice(r,r+=Ge));t=t.slice(r),r=Ge-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),Xe&&(e.e>qf||e.e<-qf))throw Error(i0+n)}else e.s=0,e.e=0,e.d=[0];return e}function De(e,t,n){var r,a,i,l,o,s,u,d,f=e.d;for(l=1,i=f[0];i>=10;i/=10)l++;if(r=t-l,r<0)r+=Ge,a=t,u=f[d=0];else{if(d=Math.ceil((r+1)/Ge),i=f.length,d>=i)return e;for(u=i=f[d],l=1;i>=10;i/=10)l++;r%=Ge,a=r-Ge+l}if(n!==void 0&&(i=Ha(10,l-a-1),o=u/i%10|0,s=t<0||f[d+1]!==void 0||u%i,s=n<4?(o||s)&&(n==0||n==(e.s<0?3:2)):o>5||o==5&&(n==4||s||n==6&&(r>0?a>0?u/Ha(10,l-a):0:f[d-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(i=ut(e),f.length=1,t=t-i-1,f[0]=Ha(10,(Ge-t%Ge)%Ge),e.e=bo(-t/Ge)||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=Ha(10,Ge-r),f[d]=a>0?(u/Ha(10,l-a)%Ha(10,a)|0)*i:0),s)for(;;)if(d==0){(f[0]+=i)==gt&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=gt)break;f[d--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(Xe&&(e.e>qf||e.e<-qf))throw Error(i0+ut(e));return e}function uN(e,t){var n,r,a,i,l,o,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),Xe?De(t,p):t;if(s=e.d,f=t.d,r=t.e,u=e.e,s=s.slice(),l=u-r,l){for(d=l<0,d?(n=s,l=-l,o=f.length):(n=f,r=u,o=s.length),a=Math.max(Math.ceil(p/Ge),o)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=s.length,o=f.length,d=a<o,d&&(o=a),a=0;a<o;a++)if(s[a]!=f[a]){d=s[a]<f[a];break}l=0}for(d&&(n=s,s=f,f=n,t.s=-t.s),o=s.length,a=f.length-o;a>0;--a)s[o++]=0;for(a=f.length;a>l;){if(s[--a]<f[a]){for(i=a;i&&s[--i]===0;)s[i]=gt-1;--s[i],s[a]+=gt}s[a]-=f[a]}for(;s[--o]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,Xe?De(t,p):t):new h(0)}function pi(e,t,n){var r,a=ut(e),i=Jn(e.d),l=i.length;return t?(n&&(r=n-l)>0?i=i.charAt(0)+"."+i.slice(1)+Zr(r):l>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Zr(-a-1)+i,n&&(r=n-l)>0&&(i+=Zr(r))):a>=l?(i+=Zr(a+1-l),n&&(r=n-a-1)>0&&(i=i+"."+Zr(r))):((r=a+1)<l&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(i+="."),i+=Zr(r))),e.s<0?"-"+i:i}function Aw(e,t){if(e.length>t)return e.length=t,!0}function cN(e){var t,n,r;function a(i){var l=this;if(!(l instanceof a))return new a(i);if(l.constructor=a,i instanceof a){l.s=i.s,l.e=i.e,l.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ri+i);if(i>0)l.s=1;else if(i<0)i=-i,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(i===~~i&&i<1e7){l.e=0,l.d=[i];return}return Ow(l,i.toString())}else if(typeof i!="string")throw Error(ri+i);if(i.charCodeAt(0)===45?(i=i.slice(1),l.s=-1):l.s=1,pX.test(i))Ow(l,i);else throw Error(ri+i)}if(a.prototype=X,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=cN,a.config=a.set=mX,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 mX(e){if(!e||typeof e!="object")throw Error(Pn+"Object expected");var t,n,r,a=["precision",1,go,"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(bo(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(ri+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ri+n+": "+r);return this}var l0=cN(hX);sn=new l0(1);const Re=l0;function yX(e){return xX(e)||bX(e)||gX(e)||vX()}function vX(){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 gX(e,t){if(e){if(typeof e=="string")return Wy(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 Wy(e,t)}}function bX(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function xX(e){if(Array.isArray(e))return Wy(e)}function Wy(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 SX=function(t){return t},fN={},dN=function(t){return t===fN},_w=function(t){return function n(){return arguments.length===0||arguments.length===1&&dN(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},wX=function e(t,n){return t===1?n:_w(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var l=a.filter(function(o){return o!==fN}).length;return l>=t?n.apply(void 0,a):e(t-l,_w(function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var d=a.map(function(f){return dN(f)?s.shift():f});return n.apply(void 0,yX(d).concat(s))}))})},jh=function(t){return wX(t.length,t)},Zy=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},jX=jh(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),OX=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return SX;var a=n.reverse(),i=a[0],l=a.slice(1);return function(){return l.reduce(function(o,s){return s(o)},i.apply(void 0,arguments))}},Qy=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},hN=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return n&&i.every(function(o,s){return o===n[s]})||(n=i,r=t.apply(void 0,i)),r}};function AX(e){var t;return e===0?t=1:t=Math.floor(new Re(e).abs().log(10).toNumber())+1,t}function _X(e,t,n){for(var r=new Re(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var EX=jh(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),TX=jh(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),NX=jh(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Oh={rangeStep:_X,getDigitCount:AX,interpolateNumber:EX,uninterpolateNumber:TX,uninterpolateTruncation:NX};function Jy(e){return $X(e)||MX(e)||pN(e)||CX()}function CX(){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 MX(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function $X(e){if(Array.isArray(e))return ev(e)}function Us(e,t){return DX(e)||PX(e,t)||pN(e,t)||RX()}function RX(){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 pN(e,t){if(e){if(typeof e=="string")return ev(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 ev(e,t)}}function ev(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 PX(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var l=e[Symbol.iterator](),o;!(r=(o=l.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(s){a=!0,i=s}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw i}}return n}}function DX(e){if(Array.isArray(e))return e}function mN(e){var t=Us(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function yN(e,t,n){if(e.lte(0))return new Re(0);var r=Oh.getDigitCount(e.toNumber()),a=new Re(10).pow(r),i=e.div(a),l=r!==1?.05:.1,o=new Re(Math.ceil(i.div(l).toNumber())).add(n).mul(l),s=o.mul(a);return t?s:new Re(Math.ceil(s))}function kX(e,t,n){var r=1,a=new Re(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Re(10).pow(Oh.getDigitCount(e)-1),a=new Re(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Re(Math.floor(e)))}else e===0?a=new Re(Math.floor((t-1)/2)):n||(a=new Re(Math.floor(e)));var l=Math.floor((t-1)/2),o=OX(jX(function(s){return a.add(new Re(s-l).mul(r)).toNumber()}),Zy);return o(0,t)}function vN(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 Re(0),tickMin:new Re(0),tickMax:new Re(0)};var i=yN(new Re(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new Re(0):(l=new Re(e).add(t).div(2),l=l.sub(new Re(l).mod(i)));var o=Math.ceil(l.sub(e).div(i).toNumber()),s=Math.ceil(new Re(t).sub(l).div(i).toNumber()),u=o+s+1;return u>n?vN(e,t,n,r,a+1):(u<n&&(s=t>0?s+(n-u):s,o=t>0?o:o+(n-u)),{step:i,tickMin:l.sub(new Re(o).mul(i)),tickMax:l.add(new Re(s).mul(i))})}function LX(e){var t=Us(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,l=Math.max(a,2),o=mN([n,r]),s=Us(o,2),u=s[0],d=s[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(Jy(Zy(0,a-1).map(function(){return 1/0}))):[].concat(Jy(Zy(0,a-1).map(function(){return-1/0})),[d]);return n>r?Qy(f):f}if(u===d)return kX(u,a,i);var h=vN(u,d,l,i),p=h.step,S=h.tickMin,g=h.tickMax,v=Oh.rangeStep(S,g.add(new Re(.1).mul(p)),p);return n>r?Qy(v):v}function BX(e,t){var n=Us(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=mN([r,a]),o=Us(l,2),s=o[0],u=o[1];if(s===-1/0||u===1/0)return[r,a];if(s===u)return[s];var d=Math.max(t,2),f=yN(new Re(u).sub(s).div(d-1),i,0),h=[].concat(Jy(Oh.rangeStep(new Re(s),new Re(u).sub(new Re(.99).mul(f)),f)),[u]);return r>a?Qy(h):h}var zX=hN(LX),IX=hN(BX),UX="Invariant failed";function mi(e,t){throw new Error(UX)}var HX=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function $l(e){"@babel/helpers - typeof";return $l=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},$l(e)}function Gf(){return Gf=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},Gf.apply(this,arguments)}function qX(e,t){return VX(e)||FX(e,t)||YX(e,t)||GX()}function GX(){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 YX(e,t){if(e){if(typeof e=="string")return Ew(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 Ew(e,t)}}function Ew(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 FX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function VX(e){if(Array.isArray(e))return e}function KX(e,t){if(e==null)return{};var n=XX(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 XX(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 WX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZX(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,xN(r.key),r)}}function QX(e,t,n){return t&&ZX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JX(e,t,n){return t=Yf(t),eW(e,gN()?Reflect.construct(t,n||[],Yf(e).constructor):t.apply(e,n))}function eW(e,t){if(t&&($l(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tW(e)}function tW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gN=function(){return!!e})()}function Yf(e){return Yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yf(e)}function nW(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&&tv(e,t)}function tv(e,t){return tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},tv(e,t)}function bN(e,t,n){return t=xN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xN(e){var t=rW(e,"string");return $l(t)=="symbol"?t:t+""}function rW(e,t){if($l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ah=function(e){function t(){return WX(this,t),JX(this,t,arguments)}return nW(t,e),QX(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,l=r.width,o=r.dataKey,s=r.data,u=r.dataPointFormatter,d=r.xAxis,f=r.yAxis,h=KX(r,HX),p=re(h,!1);this.props.direction==="x"&&d.type!=="number"&&mi();var S=s.map(function(g){var v=u(g,o),m=v.x,y=v.y,b=v.value,w=v.errorVal;if(!w)return null;var x=[],j,A;if(Array.isArray(w)){var _=qX(w,2);j=_[0],A=_[1]}else j=A=w;if(i==="vertical"){var E=d.scale,T=y+a,R=T+l,N=T-l,L=E(b-j),k=E(b+A);x.push({x1:k,y1:R,x2:k,y2:N}),x.push({x1:L,y1:T,x2:k,y2:T}),x.push({x1:L,y1:R,x2:L,y2:N})}else if(i==="horizontal"){var D=f.scale,$=m+a,P=$-l,B=$+l,H=D(b-j),G=D(b+A);x.push({x1:P,y1:G,x2:B,y2:G}),x.push({x1:$,y1:H,x2:$,y2:G}),x.push({x1:P,y1:H,x2:B,y2:H})}return M.createElement(Ee,Gf({className:"recharts-errorBar",key:"bar-".concat(x.map(function(q){return"".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))},p),x.map(function(q){return M.createElement("line",Gf({},q,{key:"line-".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))}))});return M.createElement(Ee,{className:"recharts-errorBars"},S)}}])}(M.Component);bN(Ah,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});bN(Ah,"displayName","ErrorBar");function Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}function Tw(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 Ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tw(Object(n),!0).forEach(function(r){aW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aW(e,t,n){return t=iW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iW(e){var t=lW(e,"string");return Hs(t)=="symbol"?t:t+""}function lW(e,t){if(Hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SN=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,l=an(n,ti);if(!l)return null;var o=ti.defaultProps,s=o!==void 0?Ra(Ra({},o),l.props):{},u;return l.props&&l.props.payload?u=l.props&&l.props.payload:i==="children"?u=(r||[]).reduce(function(d,f){var h=f.item,p=f.props,S=p.sectors||p.data||[];return d.concat(S.map(function(g){return{type:l.props.iconType||h.props.legendType,value:g.name,color:g.fill,payload:g}}))},[]):u=(r||[]).map(function(d){var f=d.item,h=f.type.defaultProps,p=h!==void 0?Ra(Ra({},h),f.props):{},S=p.dataKey,g=p.name,v=p.legendType,m=p.hide;return{inactive:m,dataKey:S,type:s.iconType||v||"square",color:o0(f),value:g||S,payload:p}}),Ra(Ra(Ra({},s),ti.getWithHeight(l,a)),{},{payload:u,item:l})};function qs(e){"@babel/helpers - typeof";return qs=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},qs(e)}function Nw(e){return cW(e)||uW(e)||sW(e)||oW()}function oW(){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 sW(e,t){if(e){if(typeof e=="string")return nv(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 nv(e,t)}}function uW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cW(e){if(Array.isArray(e))return nv(e)}function nv(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 Cw(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 Je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(n),!0).forEach(function(r){cl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cl(e,t,n){return t=fW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fW(e){var t=dW(e,"string");return qs(t)=="symbol"?t:t+""}function dW(e,t){if(qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qs(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 pe(e)||pe(t)?n:pt(t)?pn(e,t,n):ie(t)?t(e):n}function os(e,t,n,r){var a=uX(e,function(o){return kt(o,t)});if(n==="number"){var i=a.filter(function(o){return F(o)||parseFloat(o)});return i.length?[Sh(i),xh(i)]:[1/0,-1/0]}var l=r?a.filter(function(o){return!pe(o)}):a;return l.map(function(o){return pt(o)||o instanceof Date?o:""})}var hW=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,l=-1,o=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(o<=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<o;u++){var d=u>0?a[u-1].coordinate:a[o-1].coordinate,f=a[u].coordinate,h=u>=o-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(It(f-d)!==It(h-f)){var S=[];if(It(h-f)===It(s[1]-s[0])){p=h;var g=f+s[1]-s[0];S[0]=Math.min(g,(g+d)/2),S[1]=Math.max(g,(g+d)/2)}else{p=d;var v=h+s[1]-s[0];S[0]=Math.min(f,(v+f)/2),S[1]=Math.max(f,(v+f)/2)}var m=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>m[0]&&t<=m[1]||t>=S[0]&&t<=S[1]){l=a[u].index;break}}else{var y=Math.min(d,h),b=Math.max(d,h);if(t>(y+f)/2&&t<=(b+f)/2){l=a[u].index;break}}}else for(var w=0;w<o;w++)if(w===0&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<o-1&&t>(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===o-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){l=r[w].index;break}return l},o0=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Je(Je({},t.type.defaultProps),t.props):t.props,l=i.stroke,o=i.fill,s;switch(a){case"Line":s=l;break;case"Area":case"Radar":s=l&&l!=="none"?l:o;break;default:s=o;break}return s},pW=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var l={},o=Object.keys(i),s=0,u=o.length;s<u;s++)for(var d=i[o[s]].stackGroups,f=Object.keys(d),h=0,p=f.length;h<p;h++){var S=d[f[h]],g=S.items,v=S.cateAxisId,m=g.filter(function(A){return Tr(A.type).indexOf("Bar")>=0});if(m&&m.length){var y=m[0].type.defaultProps,b=y!==void 0?Je(Je({},y),m[0].props):m[0].props,w=b.barSize,x=b[v];l[x]||(l[x]=[]);var j=pe(w)?n:w;l[x].push({item:m[0],stackList:m.slice(1),barSize:pe(j)?void 0:Ut(j,r,0)})}}return l},mW=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,l=i===void 0?[]:i,o=t.maxBarSize,s=l.length;if(s<1)return null;var u=Ut(n,a,0,!0),d,f=[];if(l[0].barSize===+l[0].barSize){var h=!1,p=a/s,S=l.reduce(function(w,x){return w+x.barSize||0},0);S+=(s-1)*u,S>=a&&(S-=(s-1)*u,u=0),S>=a&&p>0&&(h=!0,p*=.9,S=s*p);var g=(a-S)/2>>0,v={offset:g-u,size:0};d=l.reduce(function(w,x){var j={item:x.item,position:{offset:v.offset+v.size+u,size:h?p:x.barSize}},A=[].concat(Nw(w),[j]);return v=A[A.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){A.push({item:_,position:v})}),A},f)}else{var m=Ut(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 b=o===+o?Math.min(y,o):y;d=l.reduce(function(w,x,j){var A=[].concat(Nw(w),[{item:x.item,position:{offset:m+(y+u)*j+(y-b)/2,size:b}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){A.push({item:_,position:A[A.length-1].position})}),A},f)}return d},yW=function(t,n,r,a){var i=r.children,l=r.width,o=r.margin,s=l-(o.left||0)-(o.right||0),u=SN({children:i,legendWidth:s});if(u){var d=a||{},f=d.width,h=d.height,p=u.align,S=u.verticalAlign,g=u.layout;if((g==="vertical"||g==="horizontal"&&S==="middle")&&p!=="center"&&F(t[p]))return Je(Je({},t),{},cl({},p,t[p]+(f||0)));if((g==="horizontal"||g==="vertical"&&p==="center")&&S!=="middle"&&F(t[S]))return Je(Je({},t),{},cl({},S,t[S]+(h||0)))}return t},vW=function(t,n,r){return pe(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},wN=function(t,n,r,a,i){var l=n.props.children,o=$n(l,Ah).filter(function(u){return vW(a,i,u.props.direction)});if(o&&o.length){var s=o.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=kt(d,r);if(pe(f))return u;var h=Array.isArray(f)?[Sh(f),xh(f)]:[f,f],p=s.reduce(function(S,g){var v=kt(d,g,0),m=h[0]-Math.abs(Array.isArray(v)?v[0]:v),y=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(m,S[0]),Math.max(y,S[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},gW=function(t,n,r,a,i){var l=n.map(function(o){return wN(t,o,r,i,a)}).filter(function(o){return!pe(o)});return l&&l.length?l.reduce(function(o,s){return[Math.min(o[0],s[0]),Math.max(o[1],s[1])]},[1/0,-1/0]):null},jN=function(t,n,r,a,i){var l=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&wN(t,s,u,a)||os(t,u,r,i)});if(r==="number")return l.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var o={};return l.reduce(function(s,u){for(var d=0,f=u.length;d<f;d++)o[u[d]]||(o[u[d]]=!0,s.push(u[d]));return s},[])},ON=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Ka=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,l=t.type,o=t.range,s=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?It(o[0]-o[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!Nu(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}})},Jp=new WeakMap,sc=function(t,n){if(typeof n!="function")return t;Jp.has(t)||Jp.set(t,new WeakMap);var r=Jp.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},AN=function(t,n,r){var a=t.scale,i=t.type,l=t.layout,o=t.axisType;if(a==="auto")return l==="radial"&&o==="radiusAxis"?{scale:Ds(),realScaleType:"band"}:l==="radial"&&o==="angleAxis"?{scale:zf(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:ls(),realScaleType:"point"}:i==="category"?{scale:Ds(),realScaleType:"band"}:{scale:zf(),realScaleType:"linear"};if(fi(a)){var s="scale".concat(ih(a));return{scale:(jw[s]||ls)(),realScaleType:jw[s]?s:"point"}}return ie(a)?{scale:a}:{scale:ls(),realScaleType:"point"}},Mw=1e-4,_N=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])-Mw,l=Math.max(a[0],a[1])+Mw,o=t(n[0]),s=t(n[r-1]);(o<i||o>l||s<i||s>l)&&t.domain([n[0],n[r-1]])}},bW=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},xW=function(t,n){if(!n||n.length!==2||!F(n[0])||!F(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(!F(t[0])||t[0]<r)&&(i[0]=r),(!F(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},SW=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,l=0,o=0;o<n;++o){var s=Nu(t[o][r][1])?t[o][r][0]:t[o][r][1];s>=0?(t[o][r][0]=i,t[o][r][1]=i+s,i=t[o][r][1]):(t[o][r][0]=l,t[o][r][1]=l+s,l=t[o][r][1])}},wW=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,l=0;l<n;++l){var o=Nu(t[l][r][1])?t[l][r][0]:t[l][r][1];o>=0?(t[l][r][0]=i,t[l][r][1]=i+o,i=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},jW={sign:SW,expand:Uz,none:Ol,silhouette:Hz,wiggle:qz,positive:wW},OW=function(t,n,r){var a=n.map(function(o){return o.props.dataKey}),i=jW[r],l=Iz().keys(a).value(function(o,s){return+kt(o,s,0)}).order(Ey).offset(i);return l(t)},AW=function(t,n,r,a,i,l){if(!t)return null;var o=l?n.reverse():n,s={},u=o.reduce(function(f,h){var p,S=(p=h.type)!==null&&p!==void 0&&p.defaultProps?Je(Je({},h.type.defaultProps),h.props):h.props,g=S.stackId,v=S.hide;if(v)return f;var m=S[r],y=f[m]||{hasStack:!1,stackGroups:{}};if(pt(g)){var b=y.stackGroups[g]||{numericAxisId:r,cateAxisId:a,items:[]};b.items.push(h),y.hasStack=!0,y.stackGroups[g]=b}else y.stackGroups[Cu("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return Je(Je({},f),{},cl({},m,y))},s),d={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var S={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(g,v){var m=p.stackGroups[v];return Je(Je({},g),{},cl({},v,{numericAxisId:r,cateAxisId:a,items:m.items,stackedData:OW(t,m.items,i)}))},S)}return Je(Je({},f),{},cl({},h,p))},d)},EN=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,l=n.originalDomain,o=n.allowDecimals,s=r||n.scale;if(s!=="auto"&&s!=="linear")return null;if(i&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=zX(u,i,o);return t.domain([Sh(d),xh(d)]),{niceTicks:d}}if(i&&a==="number"){var f=t.domain(),h=IX(f,i,o);return{niceTicks:h}}return null},$w=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,l=t.entry,o=t.index;if(n.type==="category")return r[o]?r[o].coordinate+a:null;var s=kt(l,n.dataKey,n.domain[o]);return pe(s)?null:n.scale(s)-i/2+a},_W=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]},EW=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Je(Je({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(pt(i)){var l=n[i];if(l){var o=l.items.indexOf(t);return o>=0?l.stackedData[o]:null}}return null},TW=function(t){return t.reduce(function(n,r){return[Sh(r.concat([n[0]]).filter(F)),xh(r.concat([n[1]]).filter(F))]},[1/0,-1/0])},TN=function(t,n,r){return Object.keys(t).reduce(function(a,i){var l=t[i],o=l.stackedData,s=o.reduce(function(u,d){var f=TW(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})},Rw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Pw=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rv=function(t,n,r){if(ie(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(F(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(Rw.test(t[0])){var i=+Rw.exec(t[0])[1];a[0]=n[0]-i}else ie(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(F(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(Pw.test(t[1])){var l=+Pw.exec(t[1])[1];a[1]=n[1]+l}else ie(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Ff=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=Db(n,function(f){return f.coordinate}),l=1/0,o=1,s=i.length;o<s;o++){var u=i[o],d=i[o-1];l=Math.min((u.coordinate||0)-(d.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},Dw=function(t,n,r){return!t||!t.length||wh(t,pn(r,"type.defaultProps.domain"))?n:t},NN=function(t,n){var r=t.type.defaultProps?Je(Je({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,l=r.unit,o=r.formatter,s=r.tooltipType,u=r.chartType,d=r.hide;return Je(Je({},re(t,!1)),{},{dataKey:a,unit:l,formatter:o,name:i||a,color:o0(t),value:kt(n,a),type:s,payload:n,chartType:u,hide:d})};function Gs(e){"@babel/helpers - typeof";return Gs=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},Gs(e)}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 vr(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){CN(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 CN(e,t,n){return t=NW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NW(e){var t=CW(e,"string");return Gs(t)=="symbol"?t:t+""}function CW(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MW(e,t){return DW(e)||PW(e,t)||RW(e,t)||$W()}function $W(){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 RW(e,t){if(e){if(typeof e=="string")return Lw(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 Lw(e,t)}}function Lw(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 PW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function DW(e){if(Array.isArray(e))return e}var Vf=Math.PI/180,kW=function(t){return t*180/Math.PI},Ie=function(t,n,r,a){return{x:t+Math.cos(-Vf*a)*r,y:n+Math.sin(-Vf*a)*r}},MN=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},LW=function(t,n,r,a,i){var l=t.width,o=t.height,s=t.startAngle,u=t.endAngle,d=Ut(t.cx,l,l/2),f=Ut(t.cy,o,o/2),h=MN(l,o,r),p=Ut(t.innerRadius,h,0),S=Ut(t.outerRadius,h,h*.8),g=Object.keys(n);return g.reduce(function(v,m){var y=n[m],b=y.domain,w=y.reversed,x;if(pe(y.range))a==="angleAxis"?x=[s,u]:a==="radiusAxis"&&(x=[p,S]),w&&(x=[x[1],x[0]]);else{x=y.range;var j=x,A=MW(j,2);s=A[0],u=A[1]}var _=AN(y,i),E=_.realScaleType,T=_.scale;T.domain(b).range(x),_N(T);var R=EN(T,vr(vr({},y),{},{realScaleType:E})),N=vr(vr(vr({},y),R),{},{range:x,radius:S,realScaleType:E,scale:T,cx:d,cy:f,innerRadius:p,outerRadius:S,startAngle:s,endAngle:u});return vr(vr({},v),{},CN({},m,N))},{})},BW=function(t,n){var r=t.x,a=t.y,i=n.x,l=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-l,2))},zW=function(t,n){var r=t.x,a=t.y,i=n.cx,l=n.cy,o=BW({x:r,y:a},{x:i,y:l});if(o<=0)return{radius:o};var s=(r-i)/o,u=Math.acos(s);return a>l&&(u=2*Math.PI-u),{radius:o,angle:kW(u),angleInRadian:u}},IW=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),l=Math.min(a,i);return{startAngle:n-l*360,endAngle:r-l*360}},UW=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),l=Math.floor(a/360),o=Math.min(i,l);return t+o*360},Bw=function(t,n){var r=t.x,a=t.y,i=zW({x:r,y:a},n),l=i.radius,o=i.angle,s=n.innerRadius,u=n.outerRadius;if(l<s||l>u)return!1;if(l===0)return!0;var d=IW(n),f=d.startAngle,h=d.endAngle,p=o,S;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;S=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;S=p>=h&&p<=f}return S?vr(vr({},n),{},{radius:l,angle:UW(p,n)}):null},$N=function(t){return!O.isValidElement(t)&&!ie(t)&&typeof t!="boolean"?t.className:""};function Ys(e){"@babel/helpers - typeof";return Ys=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},Ys(e)}var HW=["offset"];function qW(e){return VW(e)||FW(e)||YW(e)||GW()}function GW(){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 YW(e,t){if(e){if(typeof e=="string")return av(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 av(e,t)}}function FW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VW(e){if(Array.isArray(e))return av(e)}function av(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 KW(e,t){if(e==null)return{};var n=XW(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 XW(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 zw(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 dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(n),!0).forEach(function(r){WW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WW(e,t,n){return t=ZW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZW(e){var t=QW(e,"string");return Ys(t)=="symbol"?t:t+""}function QW(e,t){if(Ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fs(){return Fs=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},Fs.apply(this,arguments)}var JW=function(t){var n=t.value,r=t.formatter,a=pe(t.children)?n:t.children;return ie(r)?r(a):a},eZ=function(t,n){var r=It(n-t),a=Math.min(Math.abs(n-t),360);return r*a},tZ=function(t,n,r){var a=t.position,i=t.viewBox,l=t.offset,o=t.className,s=i,u=s.cx,d=s.cy,f=s.innerRadius,h=s.outerRadius,p=s.startAngle,S=s.endAngle,g=s.clockWise,v=(f+h)/2,m=eZ(p,S),y=m>=0?1:-1,b,w;a==="insideStart"?(b=p+y*l,w=g):a==="insideEnd"?(b=S-y*l,w=!g):a==="end"&&(b=S+y*l,w=g),w=m<=0?w:!w;var x=Ie(u,d,v,b),j=Ie(u,d,v,b+(w?1:-1)*359),A="M".concat(x.x,",").concat(x.y,`
    A`).concat(v,",").concat(v,",0,1,").concat(w?0:1,`,
    `).concat(j.x,",").concat(j.y),_=pe(t.id)?Cu("recharts-radial-line-"):t.id;return M.createElement("text",Fs({},r,{dominantBaseline:"central",className:he("recharts-radial-bar-label",o)}),M.createElement("defs",null,M.createElement("path",{id:_,d:A})),M.createElement("textPath",{xlinkHref:"#".concat(_)},n))},nZ=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,l=i.cx,o=i.cy,s=i.innerRadius,u=i.outerRadius,d=i.startAngle,f=i.endAngle,h=(d+f)/2;if(a==="outside"){var p=Ie(l,o,u+r,h),S=p.x,g=p.y;return{x:S,y:g,textAnchor:S>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"end"};var v=(s+u)/2,m=Ie(l,o,v,h),y=m.x,b=m.y;return{x:y,y:b,textAnchor:"middle",verticalAnchor:"middle"}},rZ=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,l=n,o=l.x,s=l.y,u=l.width,d=l.height,f=d>=0?1:-1,h=f*a,p=f>0?"end":"start",S=f>0?"start":"end",g=u>=0?1:-1,v=g*a,m=g>0?"end":"start",y=g>0?"start":"end";if(i==="top"){var b={x:o+u/2,y:s-f*a,textAnchor:"middle",verticalAnchor:p};return dt(dt({},b),r?{height:Math.max(s-r.y,0),width:u}:{})}if(i==="bottom"){var w={x:o+u/2,y:s+d+h,textAnchor:"middle",verticalAnchor:S};return dt(dt({},w),r?{height:Math.max(r.y+r.height-(s+d),0),width:u}:{})}if(i==="left"){var x={x:o-v,y:s+d/2,textAnchor:m,verticalAnchor:"middle"};return dt(dt({},x),r?{width:Math.max(x.x-r.x,0),height:d}:{})}if(i==="right"){var j={x:o+u+v,y:s+d/2,textAnchor:y,verticalAnchor:"middle"};return dt(dt({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:d}:{})}var A=r?{width:u,height:d}:{};return i==="insideLeft"?dt({x:o+v,y:s+d/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideRight"?dt({x:o+u-v,y:s+d/2,textAnchor:m,verticalAnchor:"middle"},A):i==="insideTop"?dt({x:o+u/2,y:s+h,textAnchor:"middle",verticalAnchor:S},A):i==="insideBottom"?dt({x:o+u/2,y:s+d-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?dt({x:o+v,y:s+h,textAnchor:y,verticalAnchor:S},A):i==="insideTopRight"?dt({x:o+u-v,y:s+h,textAnchor:m,verticalAnchor:S},A):i==="insideBottomLeft"?dt({x:o+v,y:s+d-h,textAnchor:y,verticalAnchor:p},A):i==="insideBottomRight"?dt({x:o+u-v,y:s+d-h,textAnchor:m,verticalAnchor:p},A):so(i)&&(F(i.x)||Ya(i.x))&&(F(i.y)||Ya(i.y))?dt({x:o+Ut(i.x,u),y:s+Ut(i.y,d),textAnchor:"end",verticalAnchor:"end"},A):dt({x:o+u/2,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},A)},aZ=function(t){return"cx"in t&&F(t.cx)};function St(e){var t=e.offset,n=t===void 0?5:t,r=KW(e,HW),a=dt({offset:n},r),i=a.viewBox,l=a.position,o=a.value,s=a.children,u=a.content,d=a.className,f=d===void 0?"":d,h=a.textBreakAll;if(!i||pe(o)&&pe(s)&&!O.isValidElement(u)&&!ie(u))return null;if(O.isValidElement(u))return O.cloneElement(u,a);var p;if(ie(u)){if(p=O.createElement(u,a),O.isValidElement(p))return p}else p=JW(a);var S=aZ(i),g=re(a,!0);if(S&&(l==="insideStart"||l==="insideEnd"||l==="end"))return tZ(a,p,g);var v=S?nZ(a):rZ(a);return M.createElement(hi,Fs({className:he("recharts-label",f)},g,v,{breakAll:h}),p)}St.displayName="Label";var RN=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,l=t.endAngle,o=t.r,s=t.radius,u=t.innerRadius,d=t.outerRadius,f=t.x,h=t.y,p=t.top,S=t.left,g=t.width,v=t.height,m=t.clockWise,y=t.labelViewBox;if(y)return y;if(F(g)&&F(v)){if(F(f)&&F(h))return{x:f,y:h,width:g,height:v};if(F(p)&&F(S))return{x:p,y:S,width:g,height:v}}return F(f)&&F(h)?{x:f,y:h,width:0,height:0}:F(n)&&F(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:l||a||0,innerRadius:u||0,outerRadius:d||s||o||0,clockWise:m}:t.viewBox?t.viewBox:{}},iZ=function(t,n){return t?t===!0?M.createElement(St,{key:"label-implicit",viewBox:n}):pt(t)?M.createElement(St,{key:"label-implicit",viewBox:n,value:t}):O.isValidElement(t)?t.type===St?O.cloneElement(t,{key:"label-implicit",viewBox:n}):M.createElement(St,{key:"label-implicit",content:t,viewBox:n}):ie(t)?M.createElement(St,{key:"label-implicit",content:t,viewBox:n}):so(t)?M.createElement(St,Fs({viewBox:n},t,{key:"label-implicit"})):null:null},lZ=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=RN(t),l=$n(a,St).map(function(s,u){return O.cloneElement(s,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return l;var o=iZ(t.label,n||i);return[o].concat(qW(l))};St.parseViewBox=RN;St.renderCallByParent=lZ;function oZ(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var sZ=oZ;const uZ=Te(sZ);function Vs(e){"@babel/helpers - typeof";return Vs=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},Vs(e)}var cZ=["valueAccessor"],fZ=["data","dataKey","clockWise","id","textBreakAll"];function dZ(e){return yZ(e)||mZ(e)||pZ(e)||hZ()}function hZ(){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 pZ(e,t){if(e){if(typeof e=="string")return iv(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 iv(e,t)}}function mZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yZ(e){if(Array.isArray(e))return iv(e)}function iv(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 Kf(){return Kf=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},Kf.apply(this,arguments)}function Iw(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 Uw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iw(Object(n),!0).forEach(function(r){vZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vZ(e,t,n){return t=gZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gZ(e){var t=bZ(e,"string");return Vs(t)=="symbol"?t:t+""}function bZ(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hw(e,t){if(e==null)return{};var n=xZ(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 xZ(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 SZ=function(t){return Array.isArray(t.value)?uZ(t.value):t.value};function ga(e){var t=e.valueAccessor,n=t===void 0?SZ:t,r=Hw(e,cZ),a=r.data,i=r.dataKey,l=r.clockWise,o=r.id,s=r.textBreakAll,u=Hw(r,fZ);return!a||!a.length?null:M.createElement(Ee,{className:"recharts-label-list"},a.map(function(d,f){var h=pe(i)?n(d,f):kt(d&&d.payload,i),p=pe(o)?{}:{id:"".concat(o,"-").concat(f)};return M.createElement(St,Kf({},re(d,!0),u,p,{parentViewBox:d.parentViewBox,value:h,textBreakAll:s,viewBox:St.parseViewBox(pe(l)?d:Uw(Uw({},d),{},{clockWise:l})),key:"label-".concat(f),index:f}))}))}ga.displayName="LabelList";function wZ(e,t){return e?e===!0?M.createElement(ga,{key:"labelList-implicit",data:t}):M.isValidElement(e)||ie(e)?M.createElement(ga,{key:"labelList-implicit",data:t,content:e}):so(e)?M.createElement(ga,Kf({data:t},e,{key:"labelList-implicit"})):null:null}function jZ(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=$n(r,ga).map(function(l,o){return O.cloneElement(l,{data:t,key:"labelList-".concat(o)})});if(!n)return a;var i=wZ(e.label,t);return[i].concat(dZ(a))}ga.renderCallByParent=jZ;function Ks(e){"@babel/helpers - typeof";return Ks=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},Ks(e)}function lv(){return lv=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},lv.apply(this,arguments)}function qw(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 Gw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(n),!0).forEach(function(r){OZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OZ(e,t,n){return t=AZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AZ(e){var t=_Z(e,"string");return Ks(t)=="symbol"?t:t+""}function _Z(e,t){if(Ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EZ=function(t,n){var r=It(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},uc=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,l=t.sign,o=t.isExternal,s=t.cornerRadius,u=t.cornerIsExternal,d=s*(o?1:-1)+a,f=Math.asin(s/d)/Vf,h=u?i:i+l*f,p=Ie(n,r,d,h),S=Ie(n,r,a,h),g=u?i-l*f:i,v=Ie(n,r,d*Math.cos(f*Vf),g);return{center:p,circleTangency:S,lineTangency:v,theta:f}},PN=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,l=t.startAngle,o=t.endAngle,s=EZ(l,o),u=l+s,d=Ie(n,r,i,l),f=Ie(n,r,i,u),h="M ".concat(d.x,",").concat(d.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(l>u),`,
    `).concat(f.x,",").concat(f.y,`
  `);if(a>0){var p=Ie(n,r,a,l),S=Ie(n,r,a,u);h+="L ".concat(S.x,",").concat(S.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(s)>180),",").concat(+(l<=u),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},TZ=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,l=t.cornerRadius,o=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=It(d-u),h=uc({cx:n,cy:r,radius:i,angle:u,sign:f,cornerRadius:l,cornerIsExternal:s}),p=h.circleTangency,S=h.lineTangency,g=h.theta,v=uc({cx:n,cy:r,radius:i,angle:d,sign:-f,cornerRadius:l,cornerIsExternal:s}),m=v.circleTangency,y=v.lineTangency,b=v.theta,w=s?Math.abs(u-d):Math.abs(u-d)-g-b;if(w<0)return o?"M ".concat(S.x,",").concat(S.y,`
        a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
        a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
      `):PN({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var x="M ".concat(S.x,",").concat(S.y,`
    A`).concat(l,",").concat(l,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(m.x,",").concat(m.y,`
    A`).concat(l,",").concat(l,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
  `);if(a>0){var j=uc({cx:n,cy:r,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:l,cornerIsExternal:s}),A=j.circleTangency,_=j.lineTangency,E=j.theta,T=uc({cx:n,cy:r,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:l,cornerIsExternal:s}),R=T.circleTangency,N=T.lineTangency,L=T.theta,k=s?Math.abs(u-d):Math.abs(u-d)-E-L;if(k<0&&l===0)return"".concat(x,"L").concat(n,",").concat(r,"Z");x+="L".concat(N.x,",").concat(N.y,`
      A`).concat(l,",").concat(l,",0,0,").concat(+(f<0),",").concat(R.x,",").concat(R.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(k>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(l,",").concat(l,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"Z")}else x+="L".concat(n,",").concat(r,"Z");return x},NZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},DN=function(t){var n=Gw(Gw({},NZ),t),r=n.cx,a=n.cy,i=n.innerRadius,l=n.outerRadius,o=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,d=n.startAngle,f=n.endAngle,h=n.className;if(l<i||d===f)return null;var p=he("recharts-sector",h),S=l-i,g=Ut(o,S,0,!0),v;return g>0&&Math.abs(d-f)<360?v=TZ({cx:r,cy:a,innerRadius:i,outerRadius:l,cornerRadius:Math.min(g,S/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}):v=PN({cx:r,cy:a,innerRadius:i,outerRadius:l,startAngle:d,endAngle:f}),M.createElement("path",lv({},re(n,!0),{className:p,d:v,role:"img"}))};function Xs(e){"@babel/helpers - typeof";return Xs=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},Xs(e)}function ov(){return ov=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},ov.apply(this,arguments)}function Yw(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 Fw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yw(Object(n),!0).forEach(function(r){CZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CZ(e,t,n){return t=MZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MZ(e){var t=$Z(e,"string");return Xs(t)=="symbol"?t:t+""}function $Z(e,t){if(Xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vw={curveBasisClosed:Nz,curveBasisOpen:Cz,curveBasis:Tz,curveBumpX:pz,curveBumpY:mz,curveLinearClosed:Mz,curveLinear:oh,curveMonotoneX:$z,curveMonotoneY:Rz,curveNatural:Pz,curveStep:Dz,curveStepAfter:Lz,curveStepBefore:kz},cc=function(t){return t.x===+t.x&&t.y===+t.y},Do=function(t){return t.x},ko=function(t){return t.y},RZ=function(t,n){if(ie(t))return t;var r="curve".concat(ih(t));return(r==="curveMonotone"||r==="curveBump")&&n?Vw["".concat(r).concat(n==="vertical"?"Y":"X")]:Vw[r]||oh},PZ=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,l=t.baseLine,o=t.layout,s=t.connectNulls,u=s===void 0?!1:s,d=RZ(r,o),f=u?i.filter(function(g){return cc(g)}):i,h;if(Array.isArray(l)){var p=u?l.filter(function(g){return cc(g)}):l,S=f.map(function(g,v){return Fw(Fw({},g),{},{base:p[v]})});return o==="vertical"?h=ec().y(ko).x1(Do).x0(function(g){return g.base.x}):h=ec().x(Do).y1(ko).y0(function(g){return g.base.y}),h.defined(cc).curve(d),h(S)}return o==="vertical"&&F(l)?h=ec().y(ko).x1(Do).x0(l):F(l)?h=ec().x(Do).y1(ko).y0(l):h=$2().x(Do).y(ko),h.defined(cc).curve(d),h(f)},sv=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?PZ(t):a;return O.createElement("path",ov({},re(t,!1),gf(t),{className:he("recharts-curve",n),d:l,ref:i}))},kN={exports:{}},DZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kZ=DZ,LZ=kZ;function LN(){}function BN(){}BN.resetWarningCache=LN;var BZ=function(){function e(r,a,i,l,o,s){if(s!==LZ){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:BN,resetWarningCache:LN};return n.PropTypes=n,n};kN.exports=BZ();var zZ=kN.exports;const je=Te(zZ),{getOwnPropertyNames:IZ,getOwnPropertySymbols:UZ}=Object,{hasOwnProperty:HZ}=Object.prototype;function em(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function fc(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,l=i.get(n),o=i.get(r);if(l&&o)return l===r&&o===n;i.set(n,r),i.set(r,n);const s=e(n,r,a);return i.delete(n),i.delete(r),s}}function qZ(e){return e!=null?e[Symbol.toStringTag]:void 0}function Kw(e){return IZ(e).concat(UZ(e))}const GZ=Object.hasOwn||((e,t)=>HZ.call(e,t));function Oi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const YZ="__v",FZ="__o",VZ="_owner",{getOwnPropertyDescriptor:Xw,keys:Ww}=Object;function KZ(e,t){return e.byteLength===t.byteLength&&Xf(new Uint8Array(e),new Uint8Array(t))}function XZ(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 WZ(e,t){return e.byteLength===t.byteLength&&Xf(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function ZZ(e,t){return Oi(e.getTime(),t.getTime())}function QZ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function JZ(e,t){return e===t}function Zw(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 l,o,s=0;for(;(l=i.next())&&!l.done;){const u=t.entries();let d=!1,f=0;for(;(o=u.next())&&!o.done;){if(a[f]){f++;continue}const h=l.value,p=o.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 eQ=Oi;function tQ(e,t,n){const r=Ww(e);let a=r.length;if(Ww(t).length!==a)return!1;for(;a-- >0;)if(!zN(e,t,n,r[a]))return!1;return!0}function Lo(e,t,n){const r=Kw(e);let a=r.length;if(Kw(t).length!==a)return!1;let i,l,o;for(;a-- >0;)if(i=r[a],!zN(e,t,n,i)||(l=Xw(e,i),o=Xw(t,i),(l||o)&&(!l||!o||l.configurable!==o.configurable||l.enumerable!==o.enumerable||l.writable!==o.writable)))return!1;return!0}function nQ(e,t){return Oi(e.valueOf(),t.valueOf())}function rQ(e,t){return e.source===t.source&&e.flags===t.flags}function Qw(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 l,o;for(;(l=i.next())&&!l.done;){const s=t.values();let u=!1,d=0;for(;(o=s.next())&&!o.done;){if(!a[d]&&n.equals(l.value,o.value,l.value,o.value,e,t,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function Xf(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 aQ(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 zN(e,t,n,r){return(r===VZ||r===FZ||r===YZ)&&(e.$$typeof||t.$$typeof)?!0:GZ(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const iQ="[object ArrayBuffer]",lQ="[object Arguments]",oQ="[object Boolean]",sQ="[object DataView]",uQ="[object Date]",cQ="[object Error]",fQ="[object Map]",dQ="[object Number]",hQ="[object Object]",pQ="[object RegExp]",mQ="[object Set]",yQ="[object String]",vQ={"[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},gQ="[object URL]",bQ=Object.prototype.toString;function xQ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:l,areNumbersEqual:o,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:f,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:S}){return function(v,m,y){if(v===m)return!0;if(v==null||m==null)return!1;const b=typeof v;if(b!==typeof m)return!1;if(b!=="object")return b==="number"?o(v,m,y):b==="function"?i(v,m,y):!1;const w=v.constructor;if(w!==m.constructor)return!1;if(w===Object)return s(v,m,y);if(Array.isArray(v))return t(v,m,y);if(w===Date)return r(v,m,y);if(w===RegExp)return d(v,m,y);if(w===Map)return l(v,m,y);if(w===Set)return f(v,m,y);const x=bQ.call(v);if(x===uQ)return r(v,m,y);if(x===pQ)return d(v,m,y);if(x===fQ)return l(v,m,y);if(x===mQ)return f(v,m,y);if(x===hQ)return typeof v.then!="function"&&typeof m.then!="function"&&s(v,m,y);if(x===gQ)return p(v,m,y);if(x===cQ)return a(v,m,y);if(x===lQ)return s(v,m,y);if(vQ[x])return h(v,m,y);if(x===iQ)return e(v,m,y);if(x===sQ)return n(v,m,y);if(x===oQ||x===dQ||x===yQ)return u(v,m,y);if(S){let j=S[x];if(!j){const A=qZ(v);A&&(j=S[A])}if(j)return j(v,m,y)}return!1}}function SQ({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:KZ,areArraysEqual:n?Lo:XZ,areDataViewsEqual:WZ,areDatesEqual:ZZ,areErrorsEqual:QZ,areFunctionsEqual:JZ,areMapsEqual:n?em(Zw,Lo):Zw,areNumbersEqual:eQ,areObjectsEqual:n?Lo:tQ,arePrimitiveWrappersEqual:nQ,areRegExpsEqual:rQ,areSetsEqual:n?em(Qw,Lo):Qw,areTypedArraysEqual:n?em(Xf,Lo):Xf,areUrlsEqual:aQ,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=fc(r.areArraysEqual),i=fc(r.areMapsEqual),l=fc(r.areObjectsEqual),o=fc(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:o})}return r}function wQ(e){return function(t,n,r,a,i,l,o){return e(t,n,o)}}function jQ({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(o,s){const{cache:u=e?new WeakMap:void 0,meta:d}=n();return t(o,s,{cache:u,equals:r,meta:d,strict:a})};if(e)return function(o,s){return t(o,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(o,s){return t(o,s,i)}}const OQ=Na();Na({strict:!0});Na({circular:!0});Na({circular:!0,strict:!0});Na({createInternalComparator:()=>Oi});Na({strict:!0,createInternalComparator:()=>Oi});Na({circular:!0,createInternalComparator:()=>Oi});Na({circular:!0,createInternalComparator:()=>Oi,strict:!0});function Na(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=SQ(e),l=xQ(i),o=n?n(l):wQ(l);return jQ({circular:t,comparator:l,createState:r,equals:o,strict:a})}function AQ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Jw(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):AQ(a)};requestAnimationFrame(r)}function uv(e){"@babel/helpers - typeof";return uv=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},uv(e)}function _Q(e){return CQ(e)||NQ(e)||TQ(e)||EQ()}function EQ(){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 TQ(e,t){if(e){if(typeof e=="string")return ej(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 ej(e,t)}}function ej(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 NQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CQ(e){if(Array.isArray(e))return e}function MQ(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var l=i,o=_Q(l),s=o[0],u=o.slice(1);if(typeof s=="number"){Jw(a.bind(null,u),s);return}a(s),Jw(a.bind(null,u));return}uv(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 Ws(e){"@babel/helpers - typeof";return Ws=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},Ws(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){IN(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 IN(e,t,n){return t=$Q(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Q(e){var t=RQ(e,"string");return Ws(t)==="symbol"?t:String(t)}function RQ(e,t){if(Ws(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ws(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PQ=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},DQ=function(t){return t},kQ=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},ss=function(t,n){return Object.keys(n).reduce(function(r,a){return nj(nj({},r),{},IN({},a,t(a,n[a])))},{})},rj=function(t,n,r){return t.map(function(a){return"".concat(kQ(a)," ").concat(n,"ms ").concat(r)}).join(",")};function LQ(e,t){return IQ(e)||zQ(e,t)||UN(e,t)||BQ()}function BQ(){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 zQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function IQ(e){if(Array.isArray(e))return e}function UQ(e){return GQ(e)||qQ(e)||UN(e)||HQ()}function HQ(){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 UN(e,t){if(e){if(typeof e=="string")return cv(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 cv(e,t)}}function qQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GQ(e){if(Array.isArray(e))return cv(e)}function cv(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 Wf=1e-4,HN=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},qN=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},aj=function(t,n){return function(r){var a=HN(t,n);return qN(a,r)}},YQ=function(t,n){return function(r){var a=HN(t,n),i=[].concat(UQ(a.map(function(l,o){return l*o}).slice(1)),[0]);return qN(i,r)}},ij=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],l=n[2],o=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,l=1,o=1;break;case"ease":a=.25,i=.1,l=.25,o=1;break;case"ease-in":a=.42,i=0,l=1,o=1;break;case"ease-out":a=.42,i=0,l=.58,o=1;break;case"ease-in-out":a=0,i=0,l=.58,o=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(v){return parseFloat(v)}),d=LQ(u,4);a=d[0],i=d[1],l=d[2],o=d[3]}}}var f=aj(a,l),h=aj(i,o),p=YQ(a,l),S=function(m){return m>1?1:m<0?0:m},g=function(m){for(var y=m>1?1:m,b=y,w=0;w<8;++w){var x=f(b)-y,j=p(b);if(Math.abs(x-y)<Wf||j<Wf)return h(b);b=S(b-x/j)}return h(b)};return g.isStepper=!1,g},FQ=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,l=t.dt,o=l===void 0?17:l,s=function(d,f,h){var p=-(d-f)*r,S=h*i,g=h+(p-S)*o/1e3,v=h*o/1e3+d;return Math.abs(v-f)<Wf&&Math.abs(g)<Wf?[f,0]:[v,g]};return s.isStepper=!0,s.dt=o,s},VQ=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 ij(a);case"spring":return FQ();default:if(a.split("(")[0]==="cubic-bezier")return ij(a)}return typeof a=="function"?a:null};function Zs(e){"@babel/helpers - typeof";return Zs=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},Zs(e)}function lj(e){return WQ(e)||XQ(e)||GN(e)||KQ()}function KQ(){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 XQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WQ(e){if(Array.isArray(e))return dv(e)}function oj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oj(Object(n),!0).forEach(function(r){fv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fv(e,t,n){return t=ZQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZQ(e){var t=QQ(e,"string");return Zs(t)==="symbol"?t:String(t)}function QQ(e,t){if(Zs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JQ(e,t){return nJ(e)||tJ(e,t)||GN(e,t)||eJ()}function eJ(){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 GN(e,t){if(e){if(typeof e=="string")return dv(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 dv(e,t)}}function dv(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 tJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function nJ(e){if(Array.isArray(e))return e}var Zf=function(t,n,r){return t+(n-t)*r},hv=function(t){var n=t.from,r=t.to;return n!==r},rJ=function e(t,n,r){var a=ss(function(i,l){if(hv(l)){var o=t(l.from,l.to,l.velocity),s=JQ(o,2),u=s[0],d=s[1];return _t(_t({},l),{},{from:u,velocity:d})}return l},n);return r<1?ss(function(i,l){return hv(l)?_t(_t({},l),{},{velocity:Zf(l.velocity,a[i].velocity,r),from:Zf(l.from,a[i].from,r)}):l},n):e(t,a,r-1)};const aJ=function(e,t,n,r,a){var i=PQ(e,t),l=i.reduce(function(v,m){return _t(_t({},v),{},fv({},m,[e[m],t[m]]))},{}),o=i.reduce(function(v,m){return _t(_t({},v),{},fv({},m,{from:e[m],velocity:0,to:t[m]}))},{}),s=-1,u,d,f=function(){return null},h=function(){return ss(function(m,y){return y.from},o)},p=function(){return!Object.values(o).filter(hv).length},S=function(m){u||(u=m);var y=m-u,b=y/n.dt;o=rJ(n,o,b),a(_t(_t(_t({},e),t),h())),u=m,p()||(s=requestAnimationFrame(f))},g=function(m){d||(d=m);var y=(m-d)/r,b=ss(function(x,j){return Zf.apply(void 0,lj(j).concat([n(y)]))},l);if(a(_t(_t(_t({},e),t),b)),y<1)s=requestAnimationFrame(f);else{var w=ss(function(x,j){return Zf.apply(void 0,lj(j).concat([n(1)]))},l);a(_t(_t(_t({},e),t),w))}};return f=n.isStepper?S:g,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function Rl(e){"@babel/helpers - typeof";return Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}var iJ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function lJ(e,t){if(e==null)return{};var n=oJ(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 oJ(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 tm(e){return fJ(e)||cJ(e)||uJ(e)||sJ()}function sJ(){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 uJ(e,t){if(e){if(typeof e=="string")return pv(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 pv(e,t)}}function cJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fJ(e){if(Array.isArray(e))return pv(e)}function pv(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 sj(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 In(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sj(Object(n),!0).forEach(function(r){Go(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Go(e,t,n){return t=YN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dJ(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,YN(r.key),r)}}function pJ(e,t,n){return t&&hJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YN(e){var t=mJ(e,"string");return Rl(t)==="symbol"?t:String(t)}function mJ(e,t){if(Rl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yJ(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&&mv(e,t)}function mv(e,t){return mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},mv(e,t)}function vJ(e){var t=gJ();return function(){var r=Qf(e),a;if(t){var i=Qf(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return yv(this,a)}}function yv(e,t){if(t&&(Rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vv(e)}function vv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gJ(){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 Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qf(e)}var Ir=function(e){yJ(n,e);var t=vJ(n);function n(r,a){var i;dJ(this,n),i=t.call(this,r,a);var l=i.props,o=l.isActive,s=l.attributeName,u=l.from,d=l.to,f=l.steps,h=l.children,p=l.duration;if(i.handleStyleChange=i.handleStyleChange.bind(vv(i)),i.changeStyle=i.changeStyle.bind(vv(i)),!o||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:d}),yv(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof h=="function")return i.state={style:u},yv(i);i.state={style:s?Go({},s,u):u}}else i.state={style:{}};return i}return pJ(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,l=a.canBegin;this.mounted=!0,!(!i||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,l=i.isActive,o=i.canBegin,s=i.attributeName,u=i.shouldReAnimate,d=i.to,f=i.from,h=this.state.style;if(o){if(!l){var p={style:s?Go({},s,d):d};this.state&&h&&(s&&h[s]!==d||!s&&h!==d)&&this.setState(p);return}if(!(OQ(a.to,d)&&a.canBegin&&a.isActive)){var S=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=S||u?f:a.to;if(this.state&&h){var v={style:s?Go({},s,g):g};(s&&h[s]!==g||!s&&h!==g)&&this.setState(v)}this.runAnimation(In(In({},this.props),{},{from:g,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,l=a.from,o=a.to,s=a.duration,u=a.easing,d=a.begin,f=a.onAnimationEnd,h=a.onAnimationStart,p=aJ(l,o,VQ(u),s,this.changeStyle),S=function(){i.stopJSAnimation=p()};this.manager.start([h,d,S,s,f])}},{key:"runStepAnimation",value:function(a){var i=this,l=a.steps,o=a.begin,s=a.onAnimationStart,u=l[0],d=u.style,f=u.duration,h=f===void 0?0:f,p=function(g,v,m){if(m===0)return g;var y=v.duration,b=v.easing,w=b===void 0?"ease":b,x=v.style,j=v.properties,A=v.onAnimationEnd,_=m>0?l[m-1]:v,E=j||Object.keys(x);if(typeof w=="function"||w==="spring")return[].concat(tm(g),[i.runJSAnimation.bind(i,{from:_.style,to:x,duration:y,easing:w}),y]);var T=rj(E,y,w),R=In(In(In({},_.style),x),{},{transition:T});return[].concat(tm(g),[R,y,A]).filter(DQ)};return this.manager.start([s].concat(tm(l.reduce(p,[d,Math.max(h,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=MQ());var i=a.begin,l=a.duration,o=a.attributeName,s=a.to,u=a.easing,d=a.onAnimationStart,f=a.onAnimationEnd,h=a.steps,p=a.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var g=o?Go({},o,s):s,v=rj(Object.keys(g),l,u);S.start([d,i,In(In({},g),{},{transition:v}),l,f])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var o=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var s=lJ(a,iJ),u=O.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!o||u===0||l<=0)return i;var f=function(p){var S=p.props,g=S.style,v=g===void 0?{}:g,m=S.className,y=O.cloneElement(p,In(In({},s),{},{style:In(In({},v),d),className:m}));return y};return u===1?f(O.Children.only(i)):M.createElement("div",null,O.Children.map(i,function(h){return f(h)}))}}]),n}(O.PureComponent);Ir.displayName="Animate";Ir.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ir.propTypes={from:je.oneOfType([je.object,je.string]),to:je.oneOfType([je.object,je.string]),attributeName:je.string,duration:je.number,begin:je.number,easing:je.oneOfType([je.string,je.func]),steps:je.arrayOf(je.shape({duration:je.number.isRequired,style:je.object.isRequired,easing:je.oneOfType([je.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),je.func]),properties:je.arrayOf("string"),onAnimationEnd:je.func})),children:je.oneOfType([je.node,je.func]),isActive:je.bool,canBegin:je.bool,onAnimationEnd:je.func,shouldReAnimate:je.bool,onAnimationStart:je.func,onAnimationReStart:je.func};function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}function Jf(){return Jf=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},Jf.apply(this,arguments)}function bJ(e,t){return jJ(e)||wJ(e,t)||SJ(e,t)||xJ()}function xJ(){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 SJ(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 wJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function jJ(e){if(Array.isArray(e))return e}function cj(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 fj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cj(Object(n),!0).forEach(function(r){OJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OJ(e,t,n){return t=AJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AJ(e){var t=_J(e,"string");return Qs(t)=="symbol"?t:t+""}function _J(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dj=function(t,n,r,a,i){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),o=a>=0?1:-1,s=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,d;if(l>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=i[h]>l?l:i[h];d="M".concat(t,",").concat(n+o*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+o*f[1])),d+="L ".concat(t+r,",").concat(n+a-o*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-o*f[3])),d+="Z"}else if(l>0&&i===+i&&i>0){var S=Math.min(l,i);d="M ".concat(t,",").concat(n+o*S,`
            A `).concat(S,",").concat(S,",0,0,").concat(u,",").concat(t+s*S,",").concat(n,`
            L `).concat(t+r-s*S,",").concat(n,`
            A `).concat(S,",").concat(S,",0,0,").concat(u,",").concat(t+r,",").concat(n+o*S,`
            L `).concat(t+r,",").concat(n+a-o*S,`
            A `).concat(S,",").concat(S,",0,0,").concat(u,",").concat(t+r-s*S,",").concat(n+a,`
            L `).concat(t+s*S,",").concat(n+a,`
            A `).concat(S,",").concat(S,",0,0,").concat(u,",").concat(t,",").concat(n+a-o*S," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return d},EJ=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,l=n.y,o=n.width,s=n.height;if(Math.abs(o)>0&&Math.abs(s)>0){var u=Math.min(i,i+o),d=Math.max(i,i+o),f=Math.min(l,l+s),h=Math.max(l,l+s);return r>=u&&r<=d&&a>=f&&a<=h}return!1},TJ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},s0=function(t){var n=fj(fj({},TJ),t),r=O.useRef(),a=O.useState(-1),i=bJ(a,2),l=i[0],o=i[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&o(w)}catch{}},[]);var s=n.x,u=n.y,d=n.width,f=n.height,h=n.radius,p=n.className,S=n.animationEasing,g=n.animationDuration,v=n.animationBegin,m=n.isAnimationActive,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var b=he("recharts-rectangle",p);return y?M.createElement(Ir,{canBegin:l>0,from:{width:d,height:f,x:s,y:u},to:{width:d,height:f,x:s,y:u},duration:g,animationEasing:S,isActive:y},function(w){var x=w.width,j=w.height,A=w.x,_=w.y;return M.createElement(Ir,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,isActive:m,easing:S},M.createElement("path",Jf({},re(n,!0),{className:b,d:dj(A,_,x,j,h),ref:r})))}):M.createElement("path",Jf({},re(n,!0),{className:b,d:dj(s,u,d,f,h)}))},NJ=["points","className","baseLinePoints","connectNulls"];function Wi(){return Wi=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},Wi.apply(this,arguments)}function CJ(e,t){if(e==null)return{};var n=MJ(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 MJ(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 hj(e){return DJ(e)||PJ(e)||RJ(e)||$J()}function $J(){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 RJ(e,t){if(e){if(typeof e=="string")return gv(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 gv(e,t)}}function PJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DJ(e){if(Array.isArray(e))return gv(e)}function gv(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 pj=function(t){return t&&t.x===+t.x&&t.y===+t.y},kJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){pj(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),pj(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},us=function(t,n){var r=kJ(t);n&&(r=[r.reduce(function(i,l){return[].concat(hj(i),hj(l))},[])]);var a=r.map(function(i){return i.reduce(function(l,o,s){return"".concat(l).concat(s===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},LJ=function(t,n,r){var a=us(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(us(n.reverse(),r).slice(1))},BJ=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,l=CJ(t,NJ);if(!n||!n.length)return null;var o=he("recharts-polygon",r);if(a&&a.length){var s=l.stroke&&l.stroke!=="none",u=LJ(n,a,i);return M.createElement("g",{className:o},M.createElement("path",Wi({},re(l,!0),{fill:u.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:u})),s?M.createElement("path",Wi({},re(l,!0),{fill:"none",d:us(n,i)})):null,s?M.createElement("path",Wi({},re(l,!0),{fill:"none",d:us(a,i)})):null)}var d=us(n,i);return M.createElement("path",Wi({},re(l,!0),{fill:d.slice(-1)==="Z"?l.fill:"none",className:o,d}))};function bv(){return bv=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},bv.apply(this,arguments)}var u0=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,l=he("recharts-dot",i);return n===+n&&r===+r&&a===+a?O.createElement("circle",bv({},re(t,!1),gf(t),{className:l,cx:n,cy:r,r:a})):null};function Js(e){"@babel/helpers - typeof";return Js=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},Js(e)}var zJ=["x","y","top","left","width","height","className"];function xv(){return xv=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},xv.apply(this,arguments)}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 IJ(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){UJ(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 UJ(e,t,n){return t=HJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HJ(e){var t=qJ(e,"string");return Js(t)=="symbol"?t:t+""}function qJ(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GJ(e,t){if(e==null)return{};var n=YJ(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 YJ(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 FJ=function(t,n,r,a,i,l){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},VJ=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,l=t.top,o=l===void 0?0:l,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,S=t.className,g=GJ(t,zJ),v=IJ({x:r,y:i,top:o,left:u,width:f,height:p},g);return!F(r)||!F(i)||!F(f)||!F(p)||!F(o)||!F(u)?null:M.createElement("path",xv({},re(v,!0),{className:he("recharts-cross",S),d:FJ(r,i,f,p,o,u)}))},KJ=bh,XJ=aN,WJ=_a;function ZJ(e,t){return e&&e.length?KJ(e,WJ(t),XJ):void 0}var QJ=ZJ;const JJ=Te(QJ);var eee=bh,tee=_a,nee=iN;function ree(e,t){return e&&e.length?eee(e,tee(t),nee):void 0}var aee=ree;const iee=Te(aee);var lee=["cx","cy","angle","ticks","axisLine"],oee=["ticks","tick","angle","tickFormatter","stroke"];function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(e)}function cs(){return cs=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},cs.apply(this,arguments)}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 Pa(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){_h(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 vj(e,t){if(e==null)return{};var n=see(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 see(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 uee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gj(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,VN(r.key),r)}}function cee(e,t,n){return t&&gj(e.prototype,t),n&&gj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fee(e,t,n){return t=ed(t),dee(e,FN()?Reflect.construct(t,n||[],ed(e).constructor):t.apply(e,n))}function dee(e,t){if(t&&(Pl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hee(e)}function hee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FN=function(){return!!e})()}function ed(e){return ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ed(e)}function pee(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&&Sv(e,t)}function Sv(e,t){return Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Sv(e,t)}function _h(e,t,n){return t=VN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VN(e){var t=mee(e,"string");return Pl(t)=="symbol"?t:t+""}function mee(e,t){if(Pl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eh=function(e){function t(){return uee(this,t),fee(this,t,arguments)}return pee(t,e),cee(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,l=i.angle,o=i.cx,s=i.cy;return Ie(o,s,a,l)}},{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,l=r.angle,o=r.ticks,s=JJ(o,function(d){return d.coordinate||0}),u=iee(o,function(d){return d.coordinate||0});return{cx:a,cy:i,startAngle:l,endAngle:l,innerRadius:u.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,l=r.angle,o=r.ticks,s=r.axisLine,u=vj(r,lee),d=o.reduce(function(S,g){return[Math.min(S[0],g.coordinate),Math.max(S[1],g.coordinate)]},[1/0,-1/0]),f=Ie(a,i,d[0],l),h=Ie(a,i,d[1],l),p=Pa(Pa(Pa({},re(u,!1)),{},{fill:"none"},re(s,!1)),{},{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return M.createElement("line",cs({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,l=a.tick,o=a.angle,s=a.tickFormatter,u=a.stroke,d=vj(a,oee),f=this.getTickTextAnchor(),h=re(d,!1),p=re(l,!1),S=i.map(function(g,v){var m=r.getTickValueCoord(g),y=Pa(Pa(Pa(Pa({textAnchor:f,transform:"rotate(".concat(90-o,", ").concat(m.x,", ").concat(m.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:v},m),{},{payload:g});return M.createElement(Ee,cs({className:he("recharts-polar-radius-axis-tick",$N(l)),key:"tick-".concat(g.coordinate)},di(r.props,g,v)),t.renderTickItem(l,y,s?s(g.value,v):g.value))});return M.createElement(Ee,{className:"recharts-polar-radius-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,l=r.tick;return!a||!a.length?null:M.createElement(Ee,{className:he("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),l&&this.renderTicks(),St.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var l;return M.isValidElement(r)?l=M.cloneElement(r,a):ie(r)?l=r(a):l=M.createElement(hi,cs({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),l}}])}(O.PureComponent);_h(Eh,"displayName","PolarRadiusAxis");_h(Eh,"axisType","radiusAxis");_h(Eh,"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 Dl(e){"@babel/helpers - typeof";return Dl=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},Dl(e)}function qa(){return qa=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},qa.apply(this,arguments)}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 Da(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){Th(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 yee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xj(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,XN(r.key),r)}}function vee(e,t,n){return t&&xj(e.prototype,t),n&&xj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gee(e,t,n){return t=td(t),bee(e,KN()?Reflect.construct(t,n||[],td(e).constructor):t.apply(e,n))}function bee(e,t){if(t&&(Dl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xee(e)}function xee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KN=function(){return!!e})()}function td(e){return td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},td(e)}function See(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&&wv(e,t)}function wv(e,t){return wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wv(e,t)}function Th(e,t,n){return t=XN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e){var t=wee(e,"string");return Dl(t)=="symbol"?t:t+""}function wee(e,t){if(Dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jee=Math.PI/180,Sj=1e-5,Nh=function(e){function t(){return yee(this,t),gee(this,t,arguments)}return See(t,e),vee(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,l=a.cy,o=a.radius,s=a.orientation,u=a.tickSize,d=u||8,f=Ie(i,l,o,r.coordinate),h=Ie(i,l,o+(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*jee),l;return i>Sj?l=a==="outer"?"start":"end":i<-Sj?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,l=r.radius,o=r.axisLine,s=r.axisLineType,u=Da(Da({},re(this.props,!1)),{},{fill:"none"},re(o,!1));if(s==="circle")return M.createElement(u0,qa({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:l}));var d=this.props.ticks,f=d.map(function(h){return Ie(a,i,l,h.coordinate)});return M.createElement(BJ,qa({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,l=a.tick,o=a.tickLine,s=a.tickFormatter,u=a.stroke,d=re(this.props,!1),f=re(l,!1),h=Da(Da({},d),{},{fill:"none"},re(o,!1)),p=i.map(function(S,g){var v=r.getTickLineCoord(S),m=r.getTickTextAnchor(S),y=Da(Da(Da({textAnchor:m},d),{},{stroke:"none",fill:u},f),{},{index:g,payload:S,x:v.x2,y:v.y2});return M.createElement(Ee,qa({className:he("recharts-polar-angle-axis-tick",$N(l)),key:"tick-".concat(S.coordinate)},di(r.props,S,g)),o&&M.createElement("line",qa({className:"recharts-polar-angle-axis-tick-line"},h,v)),l&&t.renderTickItem(l,y,s?s(S.value,g):S.value))});return M.createElement(Ee,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,l=r.axisLine;return i<=0||!a||!a.length?null:M.createElement(Ee,{className:he("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var l;return M.isValidElement(r)?l=M.cloneElement(r,a):ie(r)?l=r(a):l=M.createElement(hi,qa({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),l}}])}(O.PureComponent);Th(Nh,"displayName","PolarAngleAxis");Th(Nh,"axisType","angleAxis");Th(Nh,"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 Oee=nT,Aee=Oee(Object.getPrototypeOf,Object),_ee=Aee,Eee=Hr,Tee=_ee,Nee=qr,Cee="[object Object]",Mee=Function.prototype,$ee=Object.prototype,WN=Mee.toString,Ree=$ee.hasOwnProperty,Pee=WN.call(Object);function Dee(e){if(!Nee(e)||Eee(e)!=Cee)return!1;var t=Tee(e);if(t===null)return!0;var n=Ree.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&WN.call(n)==Pee}var kee=Dee;const Lee=Te(kee);var Bee=Hr,zee=qr,Iee="[object Boolean]";function Uee(e){return e===!0||e===!1||zee(e)&&Bee(e)==Iee}var Hee=Uee;const qee=Te(Hee);function eu(e){"@babel/helpers - typeof";return eu=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},eu(e)}function nd(){return nd=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},nd.apply(this,arguments)}function Gee(e,t){return Kee(e)||Vee(e,t)||Fee(e,t)||Yee()}function Yee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fee(e,t){if(e){if(typeof e=="string")return wj(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 wj(e,t)}}function wj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Kee(e){if(Array.isArray(e))return e}function jj(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 Oj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jj(Object(n),!0).forEach(function(r){Xee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xee(e,t,n){return t=Wee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wee(e){var t=Zee(e,"string");return eu(t)=="symbol"?t:t+""}function Zee(e,t){if(eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Aj=function(t,n,r,a,i){var l=r-a,o;return o="M ".concat(t,",").concat(n),o+="L ".concat(t+r,",").concat(n),o+="L ".concat(t+r-l/2,",").concat(n+i),o+="L ".concat(t+r-l/2-a,",").concat(n+i),o+="L ".concat(t,",").concat(n," Z"),o},Qee={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Jee=function(t){var n=Oj(Oj({},Qee),t),r=O.useRef(),a=O.useState(-1),i=Gee(a,2),l=i[0],o=i[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var s=n.x,u=n.y,d=n.upperWidth,f=n.lowerWidth,h=n.height,p=n.className,S=n.animationEasing,g=n.animationDuration,v=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=he("recharts-trapezoid",p);return m?M.createElement(Ir,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:u},to:{upperWidth:d,lowerWidth:f,height:h,x:s,y:u},duration:g,animationEasing:S,isActive:m},function(b){var w=b.upperWidth,x=b.lowerWidth,j=b.height,A=b.x,_=b.y;return M.createElement(Ir,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,easing:S},M.createElement("path",nd({},re(n,!0),{className:y,d:Aj(A,_,w,x,j),ref:r})))}):M.createElement("g",null,M.createElement("path",nd({},re(n,!0),{className:y,d:Aj(s,u,d,f,h)})))},ete=["option","shapeType","propTransformer","activeClassName","isActive"];function tu(e){"@babel/helpers - typeof";return tu=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},tu(e)}function tte(e,t){if(e==null)return{};var n=nte(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 nte(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 _j(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 rd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_j(Object(n),!0).forEach(function(r){rte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_j(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rte(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=ite(e,"string");return tu(t)=="symbol"?t:t+""}function ite(e,t){if(tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lte(e,t){return rd(rd({},t),e)}function ote(e,t){return e==="symbols"}function Ej(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return M.createElement(s0,n);case"trapezoid":return M.createElement(Jee,n);case"sector":return M.createElement(DN,n);case"symbols":if(ote(t))return M.createElement(_b,n);break;default:return null}}function ste(e){return O.isValidElement(e)?e.props:e}function ZN(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?lte:r,i=e.activeClassName,l=i===void 0?"recharts-active-shape":i,o=e.isActive,s=tte(e,ete),u;if(O.isValidElement(t))u=O.cloneElement(t,rd(rd({},s),ste(t)));else if(ie(t))u=t(s);else if(Lee(t)&&!qee(t)){var d=a(t,s);u=M.createElement(Ej,{shapeType:n,elementProps:d})}else{var f=s;u=M.createElement(Ej,{shapeType:n,elementProps:f})}return o?M.createElement(Ee,{className:l},u):u}function Ch(e,t){return t!=null&&"trapezoids"in e.props}function Mh(e,t){return t!=null&&"sectors"in e.props}function nu(e,t){return t!=null&&"points"in e.props}function ute(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 cte(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function fte(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function dte(e,t){var n;return Ch(e,t)?n=ute:Mh(e,t)?n=cte:nu(e,t)&&(n=fte),n}function hte(e,t){var n;return Ch(e,t)?n="trapezoids":Mh(e,t)?n="sectors":nu(e,t)&&(n="points"),n}function pte(e,t){if(Ch(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(Mh(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 nu(e,t)?t.payload:{}}function mte(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=hte(n,t),i=pte(n,t),l=r.filter(function(s,u){var d=wh(i,s),f=n.props[a].filter(function(S){var g=dte(n,t);return g(S,t)}),h=n.props[a].indexOf(f[f.length-1]),p=u===h;return d&&p}),o=r.indexOf(l[l.length-1]);return o}var kc;function kl(e){"@babel/helpers - typeof";return kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kl(e)}function Zi(){return Zi=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},Zi.apply(this,arguments)}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 Le(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){Tn(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 yte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nj(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,JN(r.key),r)}}function vte(e,t,n){return t&&Nj(e.prototype,t),n&&Nj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gte(e,t,n){return t=ad(t),bte(e,QN()?Reflect.construct(t,n||[],ad(e).constructor):t.apply(e,n))}function bte(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 xte(e)}function xte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QN=function(){return!!e})()}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ad(e)}function Ste(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&&jv(e,t)}function jv(e,t){return jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},jv(e,t)}function Tn(e,t,n){return t=JN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(e){var t=wte(e,"string");return kl(t)=="symbol"?t:t+""}function wte(e,t){if(kl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yr=function(e){function t(n){var r;return yte(this,t),r=gte(this,t,[n]),Tn(r,"pieRef",null),Tn(r,"sectorRefs",[]),Tn(r,"id",Cu("recharts-pie-")),Tn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ie(a)&&a()}),Tn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ie(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Ste(t,e),vte(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,l=i.label,o=i.labelLine,s=i.dataKey,u=i.valueKey,d=re(this.props,!1),f=re(l,!1),h=re(o,!1),p=l&&l.offsetRadius||20,S=r.map(function(g,v){var m=(g.startAngle+g.endAngle)/2,y=Ie(g.cx,g.cy,g.outerRadius+p,m),b=Le(Le(Le(Le({},d),g),{},{stroke:"none"},f),{},{index:v,textAnchor:t.getTextAnchor(y.x,g.cx)},y),w=Le(Le(Le(Le({},d),g),{},{fill:"none",stroke:g.fill},h),{},{index:v,points:[Ie(g.cx,g.cy,g.outerRadius,m),y]}),x=s;return pe(s)&&pe(u)?x="value":pe(s)&&(x=u),M.createElement(Ee,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(v)},o&&t.renderLabelLineItem(o,w,"line"),t.renderLabelItem(l,b,kt(g,x)))});return M.createElement(Ee,{className:"recharts-pie-labels"},S)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,l=i.activeShape,o=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?l:h,S=Le(Le({},u),{},{stroke:o?u.fill:u.stroke,tabIndex:-1});return M.createElement(Ee,Zi({ref:function(v){v&&!a.sectorRefs.includes(v)&&a.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},di(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)}),M.createElement(ZN,Zi({option:p,isActive:f,shapeType:"sector"},S)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,l=a.isAnimationActive,o=a.animationBegin,s=a.animationDuration,u=a.animationEasing,d=a.animationId,f=this.state,h=f.prevSectors,p=f.prevIsAnimationActive;return M.createElement(Ir,{begin:o,duration:s,isActive:l,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(S){var g=S.t,v=[],m=i&&i[0],y=m.startAngle;return i.forEach(function(b,w){var x=h&&h[w],j=w>0?pn(b,"paddingAngle",0):0;if(x){var A=Wr(x.endAngle-x.startAngle,b.endAngle-b.startAngle),_=Le(Le({},b),{},{startAngle:y+j,endAngle:y+A(g)+j});v.push(_),y=_.endAngle}else{var E=b.endAngle,T=b.startAngle,R=Wr(0,E-T),N=R(g),L=Le(Le({},b),{},{startAngle:y+j,endAngle:y+N+j});v.push(L),y=L.endAngle}}),M.createElement(Ee,null,r.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var o=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});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,l=this.state.prevSectors;return i&&a&&a.length&&(!l||!wh(l,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,l=a.sectors,o=a.className,s=a.label,u=a.cx,d=a.cy,f=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,S=this.state.isAnimationFinished;if(i||!l||!l.length||!F(u)||!F(d)||!F(f)||!F(h))return null;var g=he("recharts-pie",o);return M.createElement(Ee,{tabIndex:this.props.rootTabIndex,className:g,ref:function(m){r.pieRef=m}},this.renderSectors(),s&&this.renderLabels(l),St.renderCallByParent(this.props,null,!1),(!p||S)&&ga.renderCallByParent(this.props,l,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if(M.isValidElement(r))return M.cloneElement(r,a);if(ie(r))return r(a);var l=he("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return M.createElement(sv,Zi({},a,{key:i,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,i){if(M.isValidElement(r))return M.cloneElement(r,a);var l=i;if(ie(r)&&(l=r(a),M.isValidElement(l)))return l;var o=he("recharts-pie-label-text",typeof r!="boolean"&&!ie(r)?r.className:"");return M.createElement(hi,Zi({},a,{alignmentBaseline:"middle",className:o}),l)}}])}(O.PureComponent);kc=Yr;Tn(Yr,"displayName","Pie");Tn(Yr,"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:!yo.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Tn(Yr,"parseDeltaAngle",function(e,t){var n=It(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Tn(Yr,"getRealPieData",function(e){var t=e.data,n=e.children,r=re(e,!1),a=$n(n,dh);return t&&t.length?t.map(function(i,l){return Le(Le(Le({payload:i},r),i),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(i){return Le(Le({},r),i.props)}):[]});Tn(Yr,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,l=MN(a,i),o=r+Ut(e.cx,a,a/2),s=n+Ut(e.cy,i,i/2),u=Ut(e.innerRadius,l,0),d=Ut(e.outerRadius,l,l*.8),f=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:o,cy:s,innerRadius:u,outerRadius:d,maxRadius:f}});Tn(Yr,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Le(Le({},t.type.defaultProps),t.props):t.props,a=kc.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,l=r.startAngle,o=r.endAngle,s=r.paddingAngle,u=r.dataKey,d=r.nameKey,f=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),S=kc.parseCoordinateOfPie(r,n),g=kc.parseDeltaAngle(l,o),v=Math.abs(g),m=u;pe(u)&&pe(f)?(Nr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),m="value"):pe(u)&&(Nr(!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(_){return kt(_,m,0)!==0}).length,b=(v>=360?y:y-1)*s,w=v-y*p-b,x=a.reduce(function(_,E){var T=kt(E,m,0);return _+(F(T)?T:0)},0),j;if(x>0){var A;j=a.map(function(_,E){var T=kt(_,m,0),R=kt(_,d,E),N=(F(T)?T:0)/x,L;E?L=A.endAngle+It(g)*s*(T!==0?1:0):L=l;var k=L+It(g)*((T!==0?p:0)+N*w),D=(L+k)/2,$=(S.innerRadius+S.outerRadius)/2,P=[{name:R,value:T,payload:_,dataKey:m,type:h}],B=Ie(S.cx,S.cy,$,D);return A=Le(Le(Le({percent:N,cornerRadius:i,name:R,tooltipPayload:P,midAngle:D,middleRadius:$,tooltipPosition:B},_),S),{},{value:kt(_,m),startAngle:L,endAngle:k,payload:_,paddingAngle:It(g)*s}),A})}return Le(Le({},S),{},{sectors:j,data:a})});var jte=Math.ceil,Ote=Math.max;function Ate(e,t,n,r){for(var a=-1,i=Ote(jte((t-e)/(n||1)),0),l=Array(i);i--;)l[r?i:++a]=e,e+=n;return l}var _te=Ate,Ete=xT,Cj=1/0,Tte=17976931348623157e292;function Nte(e){if(!e)return e===0?e:0;if(e=Ete(e),e===Cj||e===-Cj){var t=e<0?-1:1;return t*Tte}return e===e?e:0}var Cte=Nte,Mte=_te,$te=fh,nm=Cte;function Rte(e){return function(t,n,r){return r&&typeof r!="number"&&$te(t,n,r)&&(n=r=void 0),t=nm(t),n===void 0?(n=t,t=0):n=nm(n),r=r===void 0?t<n?1:-1:nm(r),Mte(t,n,r,e)}}var Pte=Rte,Dte=Pte,kte=Dte(),Lte=kte;const id=Te(Lte);function ru(e){"@babel/helpers - typeof";return ru=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},ru(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 $j(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){eC(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 eC(e,t,n){return t=Bte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bte(e){var t=zte(e,"string");return ru(t)=="symbol"?t:t+""}function zte(e,t){if(ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ite=["Webkit","Moz","O","ms"],Ute=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Ite.reduce(function(i,l){return $j($j({},i),{},eC({},l+r,n))},{});return a[t]=n,a};function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}function ld(){return ld=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},ld.apply(this,arguments)}function Rj(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 rm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rj(Object(n),!0).forEach(function(r){nn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pj(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,nC(r.key),r)}}function qte(e,t,n){return t&&Pj(e.prototype,t),n&&Pj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gte(e,t,n){return t=od(t),Yte(e,tC()?Reflect.construct(t,n||[],od(e).constructor):t.apply(e,n))}function Yte(e,t){if(t&&(Ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fte(e)}function Fte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tC=function(){return!!e})()}function od(e){return od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},od(e)}function Vte(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&&Ov(e,t)}function Ov(e,t){return Ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ov(e,t)}function nn(e,t,n){return t=nC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nC(e){var t=Kte(e,"string");return Ll(t)=="symbol"?t:t+""}function Kte(e,t){if(Ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xte=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,l=t.width,o=t.travellerWidth;if(!n||!n.length)return{};var s=n.length,u=ls().domain(id(0,s)).range([i,i+l-o]),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}},Dj=function(t){return t.changedTouches&&!!t.changedTouches.length},Bl=function(e){function t(n){var r;return Hte(this,t),r=Gte(this,t,[n]),nn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),nn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),nn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,l=a.onDragEnd,o=a.startIndex;l==null||l({endIndex:i,startIndex:o})}),r.detachDragEndListener()}),nn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),nn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),nn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),nn(r,"handleSlideDragStart",function(a){var i=Dj(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 Vte(t,e),qte(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,l=this.state.scaleValues,o=this.props,s=o.gap,u=o.data,d=u.length-1,f=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(l,f),S=t.getIndexInRange(l,h);return{startIndex:p-p%s,endIndex:S===d?d:S-S%s}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,l=a.tickFormatter,o=a.dataKey,s=kt(i[r],o,r);return ie(l)?l(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,l=a.startX,o=a.endX,s=this.props,u=s.x,d=s.width,f=s.travellerWidth,h=s.startIndex,p=s.endIndex,S=s.onChange,g=r.pageX-i;g>0?g=Math.min(g,u+d-f-o,u+d-f-l):g<0&&(g=Math.max(g,u-l,u-o));var v=this.getIndex({startX:l+g,endX:o+g});(v.startIndex!==h||v.endIndex!==p)&&S&&S(v),this.setState({startX:l+g,endX:o+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=Dj(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,l=a.movingTravellerId,o=a.endX,s=a.startX,u=this.state[l],d=this.props,f=d.x,h=d.width,p=d.travellerWidth,S=d.onChange,g=d.gap,v=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[l]=u+y;var b=this.getIndex(m),w=b.startIndex,x=b.endIndex,j=function(){var _=v.length-1;return l==="startX"&&(o>s?w%g===0:x%g===0)||o<s&&x===_||l==="endX"&&(o>s?x%g===0:w%g===0)||o>s&&x===_};this.setState(nn(nn({},l,u+y),"brushMoveStartX",r.pageX),function(){S&&j()&&S(b)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,l=this.state,o=l.scaleValues,s=l.startX,u=l.endX,d=this.state[a],f=o.indexOf(d);if(f!==-1){var h=f+r;if(!(h===-1||h>=o.length)){var p=o[h];a==="startX"&&p>=u||a==="endX"&&p<=s||this.setState(nn({},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,l=r.width,o=r.height,s=r.fill,u=r.stroke;return M.createElement("rect",{stroke:u,fill:s,x:a,y:i,width:l,height:o})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,l=r.width,o=r.height,s=r.data,u=r.children,d=r.padding,f=O.Children.only(u);return f?M.cloneElement(f,{x:a,y:i,width:l,height:o,margin:d,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,l,o=this,s=this.props,u=s.y,d=s.travellerWidth,f=s.height,h=s.traveller,p=s.ariaLabel,S=s.data,g=s.startIndex,v=s.endIndex,m=Math.max(r,this.props.x),y=rm(rm({},re(this.props,!1)),{},{x:m,y:u,width:d,height:f}),b=p||"Min value: ".concat((i=S[g])===null||i===void 0?void 0:i.name,", Max value: ").concat((l=S[v])===null||l===void 0?void 0:l.name);return M.createElement(Ee,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(x){["ArrowLeft","ArrowRight"].includes(x.key)&&(x.preventDefault(),x.stopPropagation(),o.handleTravellerMoveKeyboard(x.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,y))}},{key:"renderSlide",value:function(r,a){var i=this.props,l=i.y,o=i.height,s=i.stroke,u=i.travellerWidth,d=Math.min(r,a)+u,f=Math.max(Math.abs(a-r)-u,0);return M.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:d,y:l,width:f,height:o})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,l=r.y,o=r.height,s=r.travellerWidth,u=r.stroke,d=this.state,f=d.startX,h=d.endX,p=5,S={pointerEvents:"none",fill:u};return M.createElement(Ee,{className:"recharts-brush-texts"},M.createElement(hi,ld({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:l+o/2},S),this.getTextOfTick(a)),M.createElement(hi,ld({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+s+p,y:l+o/2},S),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,l=r.children,o=r.x,s=r.y,u=r.width,d=r.height,f=r.alwaysShowText,h=this.state,p=h.startX,S=h.endX,g=h.isTextActive,v=h.isSlideMoving,m=h.isTravellerMoving,y=h.isTravellerFocused;if(!a||!a.length||!F(o)||!F(s)||!F(u)||!F(d)||u<=0||d<=0)return null;var b=he("recharts-brush",i),w=M.Children.count(l)===1,x=Ute("userSelect","none");return M.createElement(Ee,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(p,S),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(S,"endX"),(g||v||m||y||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,l=r.width,o=r.height,s=r.stroke,u=Math.floor(i+o/2)-1;return M.createElement(M.Fragment,null,M.createElement("rect",{x:a,y:i,width:l,height:o,fill:s,stroke:"none"}),M.createElement("line",{x1:a+1,y1:u,x2:a+l-1,y2:u,fill:"none",stroke:"#fff"}),M.createElement("line",{x1:a+1,y1:u+2,x2:a+l-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return M.isValidElement(r)?i=M.cloneElement(r,a):ie(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,l=r.width,o=r.x,s=r.travellerWidth,u=r.updateId,d=r.startIndex,f=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return rm({prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:o,prevWidth:l},i&&i.length?Xte({data:i,width:l,x:o,travellerWidth:s,startIndex:d,endIndex:f}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||o!==a.prevX||s!==a.prevTravellerWidth)){a.scale.range([o,o+l-s]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:o,prevWidth:l,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,l=0,o=i-1;o-l>1;){var s=Math.floor((l+o)/2);r[s]>a?o=s:l=s}return a>=r[o]?o:l}}])}(O.PureComponent);nn(Bl,"displayName","Brush");nn(Bl,"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 Wte=Pb;function Zte(e,t){var n;return Wte(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var Qte=Zte,Jte=K2,ene=_a,tne=Qte,nne=en,rne=fh;function ane(e,t,n){var r=nne(e)?Jte:tne;return n&&rne(e,t,n)&&(t=void 0),r(e,ene(t))}var ine=ane;const lne=Te(ine);var nr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},kj=mT;function one(e,t,n){t=="__proto__"&&kj?kj(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var sne=one,une=sne,cne=hT,fne=_a;function dne(e,t){var n={};return t=fne(t),cne(e,function(r,a,i){une(n,a,t(r,a,i))}),n}var hne=dne;const pne=Te(hne);function mne(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 yne=mne,vne=Pb;function gne(e,t){var n=!0;return vne(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var bne=gne,xne=yne,Sne=bne,wne=_a,jne=en,One=fh;function Ane(e,t,n){var r=jne(e)?xne:Sne;return n&&One(e,t,n)&&(t=void 0),r(e,wne(t))}var _ne=Ane;const Ene=Te(_ne);var Tne=["x","y"];function au(e){"@babel/helpers - typeof";return au=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},au(e)}function Av(){return Av=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},Av.apply(this,arguments)}function Lj(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 Bo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lj(Object(n),!0).forEach(function(r){Nne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nne(e,t,n){return t=Cne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cne(e){var t=Mne(e,"string");return au(t)=="symbol"?t:t+""}function Mne(e,t){if(au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $ne(e,t){if(e==null)return{};var n=Rne(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 Rne(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 Pne(e,t){var n=e.x,r=e.y,a=$ne(e,Tne),i="".concat(n),l=parseInt(i,10),o="".concat(r),s=parseInt(o,10),u="".concat(t.height||a.height),d=parseInt(u,10),f="".concat(t.width||a.width),h=parseInt(f,10);return Bo(Bo(Bo(Bo(Bo({},t),a),l?{x:l}:{}),s?{y:s}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function Bj(e){return M.createElement(ZN,Av({shapeType:"rectangle",propTransformer:Pne,activeClassName:"recharts-active-bar"},e))}var Dne=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=F(r)||eB(r);return i?t(r,a):(i||mi(),n)}},kne=["value","background"],rC;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 Lne(e,t){if(e==null)return{};var n=Bne(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 Bne(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 sd(){return sd=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},sd.apply(this,arguments)}function zj(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 at(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zj(Object(n),!0).forEach(function(r){oa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ij(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iC(r.key),r)}}function Ine(e,t,n){return t&&Ij(e.prototype,t),n&&Ij(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Une(e,t,n){return t=ud(t),Hne(e,aC()?Reflect.construct(t,n||[],ud(e).constructor):t.apply(e,n))}function Hne(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 qne(e)}function qne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aC=function(){return!!e})()}function ud(e){return ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ud(e)}function Gne(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&&_v(e,t)}function _v(e,t){return _v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_v(e,t)}function oa(e,t,n){return t=iC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iC(e){var t=Yne(e,"string");return zl(t)=="symbol"?t:t+""}function Yne(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 Ai=function(e){function t(){var n;zne(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Une(this,t,[].concat(a)),oa(n,"state",{isAnimationFinished:!1}),oa(n,"id",Cu("recharts-bar-")),oa(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),oa(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return Gne(t,e),Ine(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,l=i.shape,o=i.dataKey,s=i.activeIndex,u=i.activeBar,d=re(this.props,!1);return r&&r.map(function(f,h){var p=h===s,S=p?u:l,g=at(at(at({},d),f),{},{isActive:p,option:S,index:h,dataKey:o,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return M.createElement(Ee,sd({className:"recharts-bar-rectangle"},di(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)}),M.createElement(Bj,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,l=a.layout,o=a.isAnimationActive,s=a.animationBegin,u=a.animationDuration,d=a.animationEasing,f=a.animationId,h=this.state.prevData;return M.createElement(Ir,{begin:s,duration:u,isActive:o,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var S=p.t,g=i.map(function(v,m){var y=h&&h[m];if(y){var b=Wr(y.x,v.x),w=Wr(y.y,v.y),x=Wr(y.width,v.width),j=Wr(y.height,v.height);return at(at({},v),{},{x:b(S),y:w(S),width:x(S),height:j(S)})}if(l==="horizontal"){var A=Wr(0,v.height),_=A(S);return at(at({},v),{},{y:v.y+v.height-_,height:_})}var E=Wr(0,v.width),T=E(S);return at(at({},v),{},{width:T})});return M.createElement(Ee,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,l=this.state.prevData;return i&&a&&a.length&&(!l||!wh(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,l=a.dataKey,o=a.activeIndex,s=re(this.props.background,!1);return i.map(function(u,d){u.value;var f=u.background,h=Lne(u,kne);if(!f)return null;var p=at(at(at(at(at({},h),{},{fill:"#eee"},f),s),di(r.props,u,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:d,className:"recharts-bar-background-rectangle"});return M.createElement(Bj,sd({key:"background-bar-".concat(d),option:r.props.background,isActive:d===o},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,l=i.data,o=i.xAxis,s=i.yAxis,u=i.layout,d=i.children,f=$n(d,Ah);if(!f)return null;var h=u==="vertical"?l[0].height/2:l[0].width/2,p=function(v,m){var y=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:y,errorVal:kt(v,m)}},S={clipPath:r?"url(#clipPath-".concat(a,")"):null};return M.createElement(Ee,S,f.map(function(g){return M.cloneElement(g,{key:"error-bar-".concat(a,"-").concat(g.props.dataKey),data:l,xAxis:o,yAxis:s,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,l=r.className,o=r.xAxis,s=r.yAxis,u=r.left,d=r.top,f=r.width,h=r.height,p=r.isAnimationActive,S=r.background,g=r.id;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,m=he("recharts-bar",l),y=o&&o.allowDataOverflow,b=s&&s.allowDataOverflow,w=y||b,x=pe(g)?this.id:g;return M.createElement(Ee,{className:m},y||b?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(x)},M.createElement("rect",{x:y?u:u-f/2,y:b?d:d-h/2,width:y?f:f*2,height:b?h:h*2}))):null,M.createElement(Ee,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(x,")"):null},S?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,x),(!p||v)&&ga.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);rC=Ai;oa(Ai,"displayName","Bar");oa(Ai,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!yo.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});oa(Ai,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,l=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,u=e.stackedData,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=bW(r,n);if(!p)return null;var S=t.layout,g=n.type.defaultProps,v=g!==void 0?at(at({},g),n.props):n.props,m=v.dataKey,y=v.children,b=v.minPointSize,w=S==="horizontal"?l:i,x=u?w.scale.domain():null,j=_W({numericAxis:w}),A=$n(y,dh),_=f.map(function(E,T){var R,N,L,k,D,$;u?R=xW(u[d+T],x):(R=kt(E,m),Array.isArray(R)||(R=[j,R]));var P=Dne(b,rC.defaultProps.minPointSize)(R[1],T);if(S==="horizontal"){var B,H=[l.scale(R[0]),l.scale(R[1])],G=H[0],q=H[1];N=$w({axis:i,ticks:o,bandSize:a,offset:p.offset,entry:E,index:T}),L=(B=q??G)!==null&&B!==void 0?B:void 0,k=p.size;var Y=G-q;if(D=Number.isNaN(Y)?0:Y,$={x:N,y:l.y,width:k,height:l.height},Math.abs(P)>0&&Math.abs(D)<Math.abs(P)){var W=It(D||P)*(Math.abs(P)-Math.abs(D));L-=W,D+=W}}else{var oe=[i.scale(R[0]),i.scale(R[1])],Ce=oe[0],se=oe[1];if(N=Ce,L=$w({axis:l,ticks:s,bandSize:a,offset:p.offset,entry:E,index:T}),k=se-Ce,D=p.size,$={x:i.x,y:L,width:i.width,height:D},Math.abs(P)>0&&Math.abs(k)<Math.abs(P)){var Ot=It(k||P)*(Math.abs(P)-Math.abs(k));k+=Ot}}return at(at(at({},E),{},{x:N,y:L,width:k,height:D,value:u?R:R[1],payload:E,background:$},A&&A[T]&&A[T].props),{},{tooltipPayload:[NN(n,E)],tooltipPosition:{x:N+k/2,y:L+D/2}})});return at({data:_,layout:S},h)});function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function Fne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uj(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,lC(r.key),r)}}function Vne(e,t,n){return t&&Uj(e.prototype,t),n&&Uj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hj(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 qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hj(Object(n),!0).forEach(function(r){$h(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $h(e,t,n){return t=lC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lC(e){var t=Kne(e,"string");return iu(t)=="symbol"?t:t+""}function Kne(e,t){if(iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xne=function(t,n,r,a,i){var l=t.width,o=t.height,s=t.layout,u=t.children,d=Object.keys(n),f={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:o-r.bottom,bottomMirror:o-r.bottom},h=!!an(u,Ai);return d.reduce(function(p,S){var g=n[S],v=g.orientation,m=g.domain,y=g.padding,b=y===void 0?{}:y,w=g.mirror,x=g.reversed,j="".concat(v).concat(w?"Mirror":""),A,_,E,T,R;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var N=m[1]-m[0],L=1/0,k=g.categoricalDomain.sort(rB);if(k.forEach(function(oe,Ce){Ce>0&&(L=Math.min((oe||0)-(k[Ce-1]||0),L))}),Number.isFinite(L)){var D=L/N,$=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(A=D*$/2),g.padding==="no-gap"){var P=Ut(t.barCategoryGap,D*$),B=D*$/2;A=B-P-(B-P)/$*P}}}a==="xAxis"?_=[r.left+(b.left||0)+(A||0),r.left+r.width-(b.right||0)-(A||0)]:a==="yAxis"?_=s==="horizontal"?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(A||0),r.top+r.height-(b.bottom||0)-(A||0)]:_=g.range,x&&(_=[_[1],_[0]]);var H=AN(g,i,h),G=H.scale,q=H.realScaleType;G.domain(m).range(_),_N(G);var Y=EN(G,qn(qn({},g),{},{realScaleType:q}));a==="xAxis"?(R=v==="top"&&!w||v==="bottom"&&w,E=r.left,T=f[j]-R*g.height):a==="yAxis"&&(R=v==="left"&&!w||v==="right"&&w,E=f[j]-R*g.width,T=r.top);var W=qn(qn(qn({},g),Y),{},{realScaleType:q,x:E,y:T,scale:G,width:a==="xAxis"?r.width:g.width,height:a==="yAxis"?r.height:g.height});return W.bandSize=Ff(W,Y),!g.hide&&a==="xAxis"?f[j]+=(R?-1:1)*W.height:g.hide||(f[j]+=(R?-1:1)*W.width),qn(qn({},p),{},$h({},S,W))},{})},oC=function(t,n){var r=t.x,a=t.y,i=n.x,l=n.y;return{x:Math.min(r,i),y:Math.min(a,l),width:Math.abs(i-r),height:Math.abs(l-a)}},Wne=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return oC({x:n,y:r},{x:a,y:i})},sC=function(){function e(t){Fne(this,e),this.scale=t}return Vne(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 l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(n)+o}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)}}])}();$h(sC,"EPS",1e-4);var c0=function(t){var n=Object.keys(t).reduce(function(r,a){return qn(qn({},r),{},$h({},a,sC.create(t[a])))},{});return qn(qn({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.bandAware,o=i.position;return pne(a,function(s,u){return n[u].apply(s,{bandAware:l,position:o})})},isInRange:function(a){return Ene(a,function(i,l){return n[l].isInRange(i)})}})};function Zne(e){return(e%180+180)%180}var Qne=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Zne(a),l=i*Math.PI/180,o=Math.atan(r/n),s=l>o&&l<Math.PI-o?r/Math.sin(l):n/Math.cos(l);return Math.abs(s)},Jne=l5(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("")}),uC=O.createContext(void 0),cC=O.createContext(void 0),fC=O.createContext(void 0),ere=O.createContext({}),dC=O.createContext(void 0),hC=O.createContext(0),pC=O.createContext(0),qj=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,l=t.clipPathId,o=t.children,s=t.width,u=t.height,d=Jne(i);return M.createElement(uC.Provider,{value:r},M.createElement(cC.Provider,{value:a},M.createElement(ere.Provider,{value:i},M.createElement(fC.Provider,{value:d},M.createElement(dC.Provider,{value:l},M.createElement(hC.Provider,{value:u},M.createElement(pC.Provider,{value:s},o)))))))},tre=function(){return O.useContext(dC)},mC=function(t){var n=O.useContext(uC);n==null&&mi();var r=n[t];return r==null&&mi(),r},yC=function(t){var n=O.useContext(cC);n==null&&mi();var r=n[t];return r==null&&mi(),r},nre=function(){var t=O.useContext(fC);return t},vC=function(){return O.useContext(pC)},gC=function(){return O.useContext(hC)};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 rre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function are(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,xC(r.key),r)}}function ire(e,t,n){return t&&are(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lre(e,t,n){return t=cd(t),ore(e,bC()?Reflect.construct(t,n||[],cd(e).constructor):t.apply(e,n))}function ore(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 sre(e)}function sre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bC=function(){return!!e})()}function cd(e){return cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cd(e)}function ure(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&&Ev(e,t)}function Ev(e,t){return Ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ev(e,t)}function Gj(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 Yj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gj(Object(n),!0).forEach(function(r){f0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f0(e,t,n){return t=xC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xC(e){var t=cre(e,"string");return Il(t)=="symbol"?t:t+""}function cre(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)}function fre(e,t){return mre(e)||pre(e,t)||hre(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){if(e){if(typeof e=="string")return Fj(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 Fj(e,t)}}function Fj(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 pre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function mre(e){if(Array.isArray(e))return e}function Tv(){return Tv=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},Tv.apply(this,arguments)}var yre=function(t,n){var r;return M.isValidElement(t)?r=M.cloneElement(t,n):ie(t)?r=t(n):r=M.createElement("line",Tv({},n,{className:"recharts-reference-line-line"})),r},vre=function(t,n,r,a,i,l,o,s,u){var d=i.x,f=i.y,h=i.width,p=i.height;if(r){var S=u.y,g=t.y.apply(S,{position:l});if(nr(u,"discard")&&!t.y.isInRange(g))return null;var v=[{x:d+h,y:g},{x:d,y:g}];return s==="left"?v.reverse():v}if(n){var m=u.x,y=t.x.apply(m,{position:l});if(nr(u,"discard")&&!t.x.isInRange(y))return null;var b=[{x:y,y:f+p},{x:y,y:f}];return o==="top"?b.reverse():b}if(a){var w=u.segment,x=w.map(function(j){return t.apply(j,{position:l})});return nr(u,"discard")&&lne(x,function(j){return!t.isInRange(j)})?null:x}return null};function gre(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,l=e.shape,o=e.className,s=e.alwaysShow,u=tre(),d=mC(a),f=yC(i),h=nre();if(!u||!h)return null;Nr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=c0({x:d.scale,y:f.scale}),S=pt(t),g=pt(n),v=r&&r.length===2,m=vre(p,S,g,v,h,e.position,d.orientation,f.orientation,e);if(!m)return null;var y=fre(m,2),b=y[0],w=b.x,x=b.y,j=y[1],A=j.x,_=j.y,E=nr(e,"hidden")?"url(#".concat(u,")"):void 0,T=Yj(Yj({clipPath:E},re(e,!0)),{},{x1:w,y1:x,x2:A,y2:_});return M.createElement(Ee,{className:he("recharts-reference-line",o)},yre(l,T),St.renderCallByParent(e,Wne({x1:w,y1:x,x2:A,y2:_})))}var d0=function(e){function t(){return rre(this,t),lre(this,t,arguments)}return ure(t,e),ire(t,[{key:"render",value:function(){return M.createElement(gre,this.props)}}])}(M.Component);f0(d0,"displayName","ReferenceLine");f0(d0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Nv(){return Nv=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},Nv.apply(this,arguments)}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 Vj(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 Kj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vj(Object(n),!0).forEach(function(r){Rh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xre(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,wC(r.key),r)}}function Sre(e,t,n){return t&&xre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wre(e,t,n){return t=fd(t),jre(e,SC()?Reflect.construct(t,n||[],fd(e).constructor):t.apply(e,n))}function jre(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 Ore(e)}function Ore(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SC=function(){return!!e})()}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fd(e)}function Are(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&&Cv(e,t)}function Cv(e,t){return Cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Cv(e,t)}function Rh(e,t,n){return t=wC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wC(e){var t=_re(e,"string");return Ul(t)=="symbol"?t:t+""}function _re(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)}var Ere=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,l=c0({x:a.scale,y:i.scale}),o=l.apply({x:n,y:r},{bandAware:!0});return nr(t,"discard")&&!l.isInRange(o)?null:o},Ph=function(e){function t(){return bre(this,t),wre(this,t,arguments)}return Are(t,e),Sre(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,l=r.r,o=r.alwaysShow,s=r.clipPathId,u=pt(a),d=pt(i);if(Nr(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=Ere(this.props);if(!f)return null;var h=f.x,p=f.y,S=this.props,g=S.shape,v=S.className,m=nr(this.props,"hidden")?"url(#".concat(s,")"):void 0,y=Kj(Kj({clipPath:m},re(this.props,!0)),{},{cx:h,cy:p});return M.createElement(Ee,{className:he("recharts-reference-dot",v)},t.renderDot(g,y),St.renderCallByParent(this.props,{x:h-l,y:p-l,width:2*l,height:2*l}))}}])}(M.Component);Rh(Ph,"displayName","ReferenceDot");Rh(Ph,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Rh(Ph,"renderDot",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):ie(e)?n=e(t):n=M.createElement(u0,Nv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Mv(){return Mv=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},Mv.apply(this,arguments)}function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}function Xj(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 Wj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xj(Object(n),!0).forEach(function(r){Dh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nre(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,OC(r.key),r)}}function Cre(e,t,n){return t&&Nre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mre(e,t,n){return t=dd(t),$re(e,jC()?Reflect.construct(t,n||[],dd(e).constructor):t.apply(e,n))}function $re(e,t){if(t&&(Hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rre(e)}function Rre(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 dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dd(e)}function Pre(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&&$v(e,t)}function $v(e,t){return $v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$v(e,t)}function Dh(e,t,n){return t=OC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OC(e){var t=Dre(e,"string");return Hl(t)=="symbol"?t:t+""}function Dre(e,t){if(Hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kre=function(t,n,r,a,i){var l=i.x1,o=i.x2,s=i.y1,u=i.y2,d=i.xAxis,f=i.yAxis;if(!d||!f)return null;var h=c0({x:d.scale,y:f.scale}),p={x:t?h.x.apply(l,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(s,{position:"start"}):h.y.rangeMin},S={x:n?h.x.apply(o,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return nr(i,"discard")&&(!h.isInRange(p)||!h.isInRange(S))?null:oC(p,S)},kh=function(e){function t(){return Tre(this,t),Mre(this,t,arguments)}return Pre(t,e),Cre(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,l=r.y1,o=r.y2,s=r.className,u=r.alwaysShow,d=r.clipPathId;Nr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=pt(a),h=pt(i),p=pt(l),S=pt(o),g=this.props.shape;if(!f&&!h&&!p&&!S&&!g)return null;var v=kre(f,h,p,S,this.props);if(!v&&!g)return null;var m=nr(this.props,"hidden")?"url(#".concat(d,")"):void 0;return M.createElement(Ee,{className:he("recharts-reference-area",s)},t.renderRect(g,Wj(Wj({clipPath:m},re(this.props,!0)),v)),St.renderCallByParent(this.props,v))}}])}(M.Component);Dh(kh,"displayName","ReferenceArea");Dh(kh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Dh(kh,"renderRect",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):ie(e)?n=e(t):n=M.createElement(s0,Mv({},t,{className:"recharts-reference-area-rect"})),n});function AC(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 Lre(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Qne(r,n)}function Bre(e,t,n){var r=n==="width",a=e.x,i=e.y,l=e.width,o=e.height;return t===1?{start:r?a:i,end:r?a+l:i+o}:{start:r?a+l:i+o,end:r?a:i}}function hd(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 zre(e,t){return AC(e,t+1)}function Ire(e,t,n,r,a){for(var i=(r||[]).slice(),l=t.start,o=t.end,s=0,u=1,d=l,f=function(){var S=r==null?void 0:r[s];if(S===void 0)return{v:AC(r,u)};var g=s,v,m=function(){return v===void 0&&(v=n(S,g)),v},y=S.coordinate,b=s===0||hd(e,y,m,d,o);b||(s=0,d=l,u+=1),b&&(d=y+e*(m()/2+a),s+=u)},h;u<=i.length;)if(h=f(),h)return h.v;return[]}function lu(e){"@babel/helpers - typeof";return lu=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},lu(e)}function Zj(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zj(Object(n),!0).forEach(function(r){Ure(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ure(e,t,n){return t=Hre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hre(e){var t=qre(e,"string");return lu(t)=="symbol"?t:t+""}function qre(e,t){if(lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gre(e,t,n,r,a){for(var i=(r||[]).slice(),l=i.length,o=t.start,s=t.end,u=function(h){var p=i[h],S,g=function(){return S===void 0&&(S=n(p,h)),S};if(h===l-1){var v=e*(p.coordinate+e*g()/2-s);i[h]=p=Dt(Dt({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else i[h]=p=Dt(Dt({},p),{},{tickCoord:p.coordinate});var m=hd(e,p.tickCoord,g,o,s);m&&(s=p.tickCoord-e*(g()/2+a),i[h]=Dt(Dt({},p),{},{isShow:!0}))},d=l-1;d>=0;d--)u(d);return i}function Yre(e,t,n,r,a,i){var l=(r||[]).slice(),o=l.length,s=t.start,u=t.end;if(i){var d=r[o-1],f=n(d,o-1),h=e*(d.coordinate+e*f/2-u);l[o-1]=d=Dt(Dt({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var p=hd(e,d.tickCoord,function(){return f},s,u);p&&(u=d.tickCoord-e*(f/2+a),l[o-1]=Dt(Dt({},d),{},{isShow:!0}))}for(var S=i?o-1:o,g=function(y){var b=l[y],w,x=function(){return w===void 0&&(w=n(b,y)),w};if(y===0){var j=e*(b.coordinate-e*x()/2-s);l[y]=b=Dt(Dt({},b),{},{tickCoord:j<0?b.coordinate-j*e:b.coordinate})}else l[y]=b=Dt(Dt({},b),{},{tickCoord:b.coordinate});var A=hd(e,b.tickCoord,x,s,u);A&&(s=b.tickCoord+e*(x()/2+a),l[y]=Dt(Dt({},b),{},{isShow:!0}))},v=0;v<S;v++)g(v);return l}function Fre(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,l=e.minTickGap,o=e.orientation,s=e.interval,u=e.tickFormatter,d=e.unit,f=e.angle;if(!a||!a.length||!r)return[];if(F(s)||yo.isSsr)return zre(a,typeof s=="number"&&F(s)?s:0);var h=[],p=o==="top"||o==="bottom"?"width":"height",S=d&&p==="width"?is(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(b,w){var x=ie(u)?u(b.value,w):b.value;return p==="width"?Lre(is(x,{fontSize:t,letterSpacing:n}),S,f):is(x,{fontSize:t,letterSpacing:n})[p]},v=a.length>=2?It(a[1].coordinate-a[0].coordinate):1,m=Bre(i,v,p);return s==="equidistantPreserveStart"?Ire(v,m,g,a,l):(s==="preserveStart"||s==="preserveStartEnd"?h=Yre(v,m,g,a,l,s==="preserveStartEnd"):h=Gre(v,m,g,a,l),h.filter(function(y){return y.isShow}))}var Vre=["viewBox"],Kre=["viewBox"],Xre=["ticks"];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 Qi(){return Qi=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},Qi.apply(this,arguments)}function Qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qj(Object(n),!0).forEach(function(r){h0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function am(e,t){if(e==null)return{};var n=Wre(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 Wre(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 Zre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jj(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,EC(r.key),r)}}function Qre(e,t,n){return t&&Jj(e.prototype,t),n&&Jj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jre(e,t,n){return t=pd(t),eae(e,_C()?Reflect.construct(t,n||[],pd(e).constructor):t.apply(e,n))}function eae(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 tae(e)}function tae(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 pd(e){return pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pd(e)}function nae(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&&Rv(e,t)}function Rv(e,t){return Rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Rv(e,t)}function h0(e,t,n){return t=EC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EC(e){var t=rae(e,"string");return ql(t)=="symbol"?t:t+""}function rae(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 Lh=function(e){function t(n){var r;return Zre(this,t),r=Jre(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return nae(t,e),Qre(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,l=am(r,Vre),o=this.props,s=o.viewBox,u=am(o,Kre);return!sl(i,s)||!sl(l,u)||!sl(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,l=a.y,o=a.width,s=a.height,u=a.orientation,d=a.tickSize,f=a.mirror,h=a.tickMargin,p,S,g,v,m,y,b=f?-1:1,w=r.tickSize||d,x=F(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=S=r.coordinate,v=l+ +!f*s,g=v-b*w,y=g-b*h,m=x;break;case"left":g=v=r.coordinate,S=i+ +!f*o,p=S-b*w,m=p-b*h,y=x;break;case"right":g=v=r.coordinate,S=i+ +f*o,p=S+b*w,m=p+b*h,y=x;break;default:p=S=r.coordinate,v=l+ +f*s,g=v+b*w,y=g+b*h,m=x;break}return{line:{x1:p,y1:g,x2:S,y2:v},tick:{x:m,y}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,l;switch(a){case"left":l=i?"start":"end";break;case"right":l=i?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=i?"start":"end";break;default:l=i?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,l=r.width,o=r.height,s=r.orientation,u=r.mirror,d=r.axisLine,f=ft(ft(ft({},re(this.props,!1)),re(d,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!u||s==="bottom"&&u);f=ft(ft({},f),{},{x1:a,y1:i+h*o,x2:a+l,y2:i+h*o})}else{var p=+(s==="left"&&!u||s==="right"&&u);f=ft(ft({},f),{},{x1:a+p*l,y1:i,x2:a+p*l,y2:i+o})}return M.createElement("line",Qi({},f,{className:he("recharts-cartesian-axis-line",pn(d,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var l=this,o=this.props,s=o.tickLine,u=o.stroke,d=o.tick,f=o.tickFormatter,h=o.unit,p=Fre(ft(ft({},this.props),{},{ticks:r}),a,i),S=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),v=re(this.props,!1),m=re(d,!1),y=ft(ft({},v),{},{fill:"none"},re(s,!1)),b=p.map(function(w,x){var j=l.getTickLineCoord(w),A=j.line,_=j.tick,E=ft(ft(ft(ft({textAnchor:S,verticalAnchor:g},v),{},{stroke:"none",fill:u},m),_),{},{index:x,payload:w,visibleTicksCount:p.length,tickFormatter:f});return M.createElement(Ee,Qi({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},di(l.props,w,x)),s&&M.createElement("line",Qi({},y,A,{className:he("recharts-cartesian-axis-tick-line",pn(s,"className"))})),d&&t.renderTickItem(d,E,"".concat(ie(f)?f(w.value,x):w.value).concat(h||"")))});return M.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,l=a.width,o=a.height,s=a.ticksGenerator,u=a.className,d=a.hide;if(d)return null;var f=this.props,h=f.ticks,p=am(f,Xre),S=h;return ie(s)&&(S=h&&h.length>0?s(this.props):s(p)),l<=0||o<=0||!S||!S.length?null:M.createElement(Ee,{className:he("recharts-cartesian-axis",u),ref:function(v){r.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),St.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var l,o=he(a.className,"recharts-cartesian-axis-tick-value");return M.isValidElement(r)?l=M.cloneElement(r,ft(ft({},a),{},{className:o})):ie(r)?l=r(ft(ft({},a),{},{className:o})):l=M.createElement(hi,Qi({},a,{className:"recharts-cartesian-axis-tick-value"}),i),l}}])}(O.Component);h0(Lh,"displayName","CartesianAxis");h0(Lh,"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 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 aae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iae(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,CC(r.key),r)}}function lae(e,t,n){return t&&iae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oae(e,t,n){return t=md(t),sae(e,TC()?Reflect.construct(t,n||[],md(e).constructor):t.apply(e,n))}function sae(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 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 TC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TC=function(){return!!e})()}function md(e){return md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},md(e)}function cae(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&&Pv(e,t)}function Pv(e,t){return Pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Pv(e,t)}function NC(e,t,n){return t=CC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CC(e){var t=fae(e,"string");return Gl(t)=="symbol"?t:t+""}function fae(e,t){if(Gl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Dv(){return Dv=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},Dv.apply(this,arguments)}function dae(e){var t=e.xAxisId,n=vC(),r=gC(),a=mC(t);return a==null?null:O.createElement(Lh,Dv({},a,{className:he("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return Ka(l,!0)}}))}var Bh=function(e){function t(){return aae(this,t),oae(this,t,arguments)}return cae(t,e),lae(t,[{key:"render",value:function(){return O.createElement(dae,this.props)}}])}(O.Component);NC(Bh,"displayName","XAxis");NC(Bh,"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 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 hae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pae(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,RC(r.key),r)}}function mae(e,t,n){return t&&pae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yae(e,t,n){return t=yd(t),vae(e,MC()?Reflect.construct(t,n||[],yd(e).constructor):t.apply(e,n))}function vae(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 gae(e)}function gae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MC=function(){return!!e})()}function yd(e){return yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yd(e)}function bae(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&&kv(e,t)}function kv(e,t){return kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kv(e,t)}function $C(e,t,n){return t=RC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RC(e){var t=xae(e,"string");return Yl(t)=="symbol"?t:t+""}function xae(e,t){if(Yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Lv(){return Lv=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},Lv.apply(this,arguments)}var Sae=function(t){var n=t.yAxisId,r=vC(),a=gC(),i=yC(n);return i==null?null:O.createElement(Lh,Lv({},i,{className:he("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(o){return Ka(o,!0)}}))},zh=function(e){function t(){return hae(this,t),yae(this,t,arguments)}return bae(t,e),mae(t,[{key:"render",value:function(){return O.createElement(Sae,this.props)}}])}(O.Component);$C(zh,"displayName","YAxis");$C(zh,"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 eO(e){return Aae(e)||Oae(e)||jae(e)||wae()}function wae(){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 jae(e,t){if(e){if(typeof e=="string")return Bv(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 Bv(e,t)}}function Oae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aae(e){if(Array.isArray(e))return Bv(e)}function Bv(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 zv=function(t,n,r,a,i){var l=$n(t,d0),o=$n(t,Ph),s=[].concat(eO(l),eO(o)),u=$n(t,kh),d="".concat(a,"Id"),f=a[0],h=n;if(s.length&&(h=s.reduce(function(g,v){if(v.props[d]===r&&nr(v.props,"extendDomain")&&F(v.props[f])){var m=v.props[f];return[Math.min(g[0],m),Math.max(g[1],m)]}return g},h)),u.length){var p="".concat(f,"1"),S="".concat(f,"2");h=u.reduce(function(g,v){if(v.props[d]===r&&nr(v.props,"extendDomain")&&F(v.props[p])&&F(v.props[S])){var m=v.props[p],y=v.props[S];return[Math.min(g[0],m,y),Math.max(g[1],m,y)]}return g},h)}return i&&i.length&&(h=i.reduce(function(g,v){return F(v)?[Math.min(g[0],v),Math.max(g[1],v)]:g},h)),h},PC={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),S=n?n+u:u;return s._events[S]?s._events[S].fn?s._events[S]=[s._events[S],p]:s._events[S].push(p):(s._events[S]=p,s._eventsCount++),s}function l(s,u){--s._eventsCount===0?s._events=new r:delete s._events[u]}function o(){this._events=new r,this._eventsCount=0}o.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},o.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,S=new Array(p);h<p;h++)S[h]=f[h].fn;return S},o.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},o.prototype.emit=function(u,d,f,h,p,S){var g=n?n+u:u;if(!this._events[g])return!1;var v=this._events[g],m=arguments.length,y,b;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),m){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,f),!0;case 4:return v.fn.call(v.context,d,f,h),!0;case 5:return v.fn.call(v.context,d,f,h,p),!0;case 6:return v.fn.call(v.context,d,f,h,p,S),!0}for(b=1,y=new Array(m-1);b<m;b++)y[b-1]=arguments[b];v.fn.apply(v.context,y)}else{var w=v.length,x;for(b=0;b<w;b++)switch(v[b].once&&this.removeListener(u,v[b].fn,void 0,!0),m){case 1:v[b].fn.call(v[b].context);break;case 2:v[b].fn.call(v[b].context,d);break;case 3:v[b].fn.call(v[b].context,d,f);break;case 4:v[b].fn.call(v[b].context,d,f,h);break;default:if(!y)for(x=1,y=new Array(m-1);x<m;x++)y[x-1]=arguments[x];v[b].fn.apply(v[b].context,y)}}return!0},o.prototype.on=function(u,d,f){return i(this,u,d,f,!1)},o.prototype.once=function(u,d,f){return i(this,u,d,f,!0)},o.prototype.removeListener=function(u,d,f,h){var p=n?n+u:u;if(!this._events[p])return this;if(!d)return l(this,p),this;var S=this._events[p];if(S.fn)S.fn===d&&(!h||S.once)&&(!f||S.context===f)&&l(this,p);else{for(var g=0,v=[],m=S.length;g<m;g++)(S[g].fn!==d||h&&!S[g].once||f&&S[g].context!==f)&&v.push(S[g]);v.length?this._events[p]=v.length===1?v[0]:v:l(this,p)}return this},o.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&l(this,d)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o})(PC);var _ae=PC.exports;const Eae=Te(_ae);var im=new Eae,lm="recharts.syncMouseEvents";function ou(e){"@babel/helpers - typeof";return ou=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},ou(e)}function Tae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nae(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 Cae(e,t,n){return t&&Nae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function om(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=Mae(e,"string");return ou(t)=="symbol"?t:t+""}function Mae(e,t){if(ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $ae=function(){function e(){Tae(this,e),om(this,"activeIndex",0),om(this,"coordinateList",[]),om(this,"layout","horizontal")}return Cae(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,l=n.container,o=l===void 0?null:l,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=o??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,l=a.y,o=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=l+this.offset.top+o/2+d;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])}();function Rae(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&&F(r)&&F(a))return!0}return!1}function Pae(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 kC(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,l=Ie(t,n,r,a),o=Ie(t,n,r,i);return{points:[l,o],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function Dae(e,t,n){var r,a,i,l;if(e==="horizontal")r=t.x,i=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,s=t.cy,u=t.innerRadius,d=t.outerRadius,f=t.angle,h=Ie(o,s,u,f),p=Ie(o,s,d,f);r=h.x,a=h.y,i=p.x,l=p.y}else return kC(t);return[{x:r,y:a},{x:i,y:l}]}function su(e){"@babel/helpers - typeof";return su=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},su(e)}function tO(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 dc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(n),!0).forEach(function(r){kae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kae(e,t,n){return t=Lae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lae(e){var t=Bae(e,"string");return su(t)=="symbol"?t:t+""}function Bae(e,t){if(su(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(su(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zae(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,l=e.activeCoordinate,o=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||!l||h!=="ScatterChart"&&a!=="axis")return null;var S,g=sv;if(h==="ScatterChart")S=l,g=VJ;else if(h==="BarChart")S=Pae(f,l,s,d),g=s0;else if(f==="radial"){var v=kC(l),m=v.cx,y=v.cy,b=v.radius,w=v.startAngle,x=v.endAngle;S={cx:m,cy:y,startAngle:w,endAngle:x,innerRadius:b,outerRadius:b},g=DN}else S={points:Dae(f,l,s)},g=sv;var j=dc(dc(dc(dc({stroke:"#ccc",pointerEvents:"none"},s),S),re(p,!1)),{},{payload:o,payloadIndex:u,className:he("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,j):O.createElement(g,j)}var Iae=["item"],Uae=["children","className","width","height","style","compact","title","desc"];function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function Ji(){return Ji=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},Ji.apply(this,arguments)}function nO(e,t){return Gae(e)||qae(e,t)||BC(e,t)||Hae()}function Hae(){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 qae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Gae(e){if(Array.isArray(e))return e}function rO(e,t){if(e==null)return{};var n=Yae(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 Yae(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 Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vae(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,zC(r.key),r)}}function Kae(e,t,n){return t&&Vae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xae(e,t,n){return t=vd(t),Wae(e,LC()?Reflect.construct(t,n||[],vd(e).constructor):t.apply(e,n))}function Wae(e,t){if(t&&(Fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zae(e)}function Zae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LC=function(){return!!e})()}function vd(e){return vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vd(e)}function Qae(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&&Iv(e,t)}function Iv(e,t){return Iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Iv(e,t)}function Vl(e){return tie(e)||eie(e)||BC(e)||Jae()}function Jae(){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 BC(e,t){if(e){if(typeof e=="string")return Uv(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 Uv(e,t)}}function eie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tie(e){if(Array.isArray(e))return Uv(e)}function Uv(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 aO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aO(Object(n),!0).forEach(function(r){ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ee(e,t,n){return t=zC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zC(e){var t=nie(e,"string");return Fl(t)=="symbol"?t:t+""}function nie(e,t){if(Fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rie={xAxis:["bottom","top"],yAxis:["left","right"]},aie={width:"100%",height:"100%"},IC={x:0,y:0};function hc(e){return e}var iie=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},lie=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 l=i.coordinate,o=a.radius;return z(z(z({},a),Ie(a.cx,a.cy,o,l)),{},{angle:l,radius:o})}var s=i.coordinate,u=a.angle;return z(z(z({},a),Ie(a.cx,a.cy,s,u)),{},{angle:u,radius:s})}return IC},Ih=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,l=(r??[]).reduce(function(o,s){var u=s.props.data;return u&&u.length?[].concat(Vl(o),Vl(u)):o},[]);return l.length>0?l:t&&t.length&&F(a)&&F(i)?t.slice(a,i+1):[]};function UC(e){return e==="number"?[0,"auto"]:void 0}var Hv=function(t,n,r,a){var i=t.graphicalItems,l=t.tooltipAxis,o=Ih(n,t);return r<0||!i||!i.length||r>=o.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(l.dataKey&&!l.allowDuplicatedCategory){var p=f===void 0?o:f;h=yy(p,l.dataKey,a)}else h=f&&f[r]||o[r];return h?[].concat(Vl(s),[NN(u,h)]):s},[])},iO=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},l=iie(i,r),o=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,d=hW(l,o,u,s);if(d>=0&&u){var f=u[d]&&u[d].value,h=Hv(t,n,d,f),p=lie(r,o,d,i);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},oie=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,l=n.axisIdKey,o=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,d=t.layout,f=t.children,h=t.stackOffset,p=ON(d,i);return r.reduce(function(S,g){var v,m=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,y=m.type,b=m.dataKey,w=m.allowDataOverflow,x=m.allowDuplicatedCategory,j=m.scale,A=m.ticks,_=m.includeHidden,E=m[l];if(S[E])return S;var T=Ih(t.data,{graphicalItems:a.filter(function(Y){var W,oe=l in Y.props?Y.props[l]:(W=Y.type.defaultProps)===null||W===void 0?void 0:W[l];return oe===E}),dataStartIndex:s,dataEndIndex:u}),R=T.length,N,L,k;Rae(m.domain,w,y)&&(N=rv(m.domain,null,w),p&&(y==="number"||j!=="auto")&&(k=os(T,b,"category")));var D=UC(y);if(!N||N.length===0){var $,P=($=m.domain)!==null&&$!==void 0?$:D;if(b){if(N=os(T,b,y),y==="category"&&p){var B=nB(N);x&&B?(L=N,N=id(0,R)):x||(N=Dw(P,N,g).reduce(function(Y,W){return Y.indexOf(W)>=0?Y:[].concat(Vl(Y),[W])},[]))}else if(y==="category")x?N=N.filter(function(Y){return Y!==""&&!pe(Y)}):N=Dw(P,N,g).reduce(function(Y,W){return Y.indexOf(W)>=0||W===""||pe(W)?Y:[].concat(Vl(Y),[W])},[]);else if(y==="number"){var H=gW(T,a.filter(function(Y){var W,oe,Ce=l in Y.props?Y.props[l]:(W=Y.type.defaultProps)===null||W===void 0?void 0:W[l],se="hide"in Y.props?Y.props.hide:(oe=Y.type.defaultProps)===null||oe===void 0?void 0:oe.hide;return Ce===E&&(_||!se)}),b,i,d);H&&(N=H)}p&&(y==="number"||j!=="auto")&&(k=os(T,b,"category"))}else p?N=id(0,R):o&&o[E]&&o[E].hasStack&&y==="number"?N=h==="expand"?[0,1]:TN(o[E].stackGroups,s,u):N=jN(T,a.filter(function(Y){var W=l in Y.props?Y.props[l]:Y.type.defaultProps[l],oe="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return W===E&&(_||!oe)}),y,d,!0);if(y==="number")N=zv(f,N,E,i,A),P&&(N=rv(P,N,w));else if(y==="category"&&P){var G=P,q=N.every(function(Y){return G.indexOf(Y)>=0});q&&(N=G)}}return z(z({},S),{},ee({},E,z(z({},m),{},{axisType:i,domain:N,categoricalDomain:k,duplicateDomain:L,originalDomain:(v=m.domain)!==null&&v!==void 0?v:D,isCategorical:p,layout:d})))},{})},sie=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,l=n.axisIdKey,o=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,d=t.layout,f=t.children,h=Ih(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=h.length,S=ON(d,i),g=-1;return r.reduce(function(v,m){var y=m.type.defaultProps!==void 0?z(z({},m.type.defaultProps),m.props):m.props,b=y[l],w=UC("number");if(!v[b]){g++;var x;return S?x=id(0,p):o&&o[b]&&o[b].hasStack?(x=TN(o[b].stackGroups,s,u),x=zv(f,x,b,i)):(x=rv(w,jN(h,r.filter(function(j){var A,_,E=l in j.props?j.props[l]:(A=j.type.defaultProps)===null||A===void 0?void 0:A[l],T="hide"in j.props?j.props.hide:(_=j.type.defaultProps)===null||_===void 0?void 0:_.hide;return E===b&&!T}),"number",d),a.defaultProps.allowDataOverflow),x=zv(f,x,b,i)),z(z({},v),{},ee({},b,z(z({axisType:i},a.defaultProps),{},{hide:!0,orientation:pn(rie,"".concat(i,".").concat(g%2),null),domain:x,originalDomain:w,isCategorical:S,layout:d})))}return v},{})},uie=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,l=n.graphicalItems,o=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,d=t.children,f="".concat(a,"Id"),h=$n(d,i),p={};return h&&h.length?p=oie(t,{axes:h,graphicalItems:l,axisType:a,axisIdKey:f,stackGroups:o,dataStartIndex:s,dataEndIndex:u}):l&&l.length&&(p=sie(t,{Axis:i,graphicalItems:l,axisType:a,axisIdKey:f,stackGroups:o,dataStartIndex:s,dataEndIndex:u})),p},cie=function(t){var n=ki(t),r=Ka(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Db(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ff(n,r)}},lO=function(t){var n=t.children,r=t.defaultShowTooltip,a=an(n,Bl),i=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},fie=function(t){return!t||!t.length?!1:t.some(function(n){var r=Tr(n&&n.type);return r&&r.indexOf("Bar")>=0})},oO=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"}},die=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,l=i===void 0?{}:i,o=t.yAxisMap,s=o===void 0?{}:o,u=r.width,d=r.height,f=r.children,h=r.margin||{},p=an(f,Bl),S=an(f,ti),g=Object.keys(s).reduce(function(x,j){var A=s[j],_=A.orientation;return!A.mirror&&!A.hide?z(z({},x),{},ee({},_,x[_]+A.width)):x},{left:h.left||0,right:h.right||0}),v=Object.keys(l).reduce(function(x,j){var A=l[j],_=A.orientation;return!A.mirror&&!A.hide?z(z({},x),{},ee({},_,pn(x,"".concat(_))+A.height)):x},{top:h.top||0,bottom:h.bottom||0}),m=z(z({},v),g),y=m.bottom;p&&(m.bottom+=p.props.height||Bl.defaultProps.height),S&&n&&(m=yW(m,a,r,n));var b=u-m.left-m.right,w=d-m.top-m.bottom;return z(z({brushBottom:y},m),{},{width:Math.max(b,0),height:Math.max(w,0)})},hie=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},HC=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,l=t.validateTooltipEventTypes,o=l===void 0?["axis"]:l,s=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,f=t.defaultProps,h=function(m,y){var b=y.graphicalItems,w=y.stackGroups,x=y.offset,j=y.updateId,A=y.dataStartIndex,_=y.dataEndIndex,E=m.barSize,T=m.layout,R=m.barGap,N=m.barCategoryGap,L=m.maxBarSize,k=oO(T),D=k.numericAxisName,$=k.cateAxisName,P=fie(b),B=[];return b.forEach(function(H,G){var q=Ih(m.data,{graphicalItems:[H],dataStartIndex:A,dataEndIndex:_}),Y=H.type.defaultProps!==void 0?z(z({},H.type.defaultProps),H.props):H.props,W=Y.dataKey,oe=Y.maxBarSize,Ce=Y["".concat(D,"Id")],se=Y["".concat($,"Id")],Ot={},ct=s.reduce(function(cr,tn){var Hh=y["".concat(tn.axisType,"Map")],m0=Y["".concat(tn.axisType,"Id")];Hh&&Hh[m0]||tn.axisType==="zAxis"||mi();var y0=Hh[m0];return z(z({},cr),{},ee(ee({},tn.axisType,y0),"".concat(tn.axisType,"Ticks"),Ka(y0)))},Ot),V=ct[$],ae=ct["".concat($,"Ticks")],ue=w&&w[Ce]&&w[Ce].hasStack&&EW(H,w[Ce].stackGroups),U=Tr(H.type).indexOf("Bar")>=0,Ue=Ff(V,ae),me=[],Oe=P&&pW({barSize:E,stackGroups:w,totalSize:hie(ct,$)});if(U){var Z,Me,At=pe(oe)?L:oe,Gt=(Z=(Me=Ff(V,ae,!0))!==null&&Me!==void 0?Me:At)!==null&&Z!==void 0?Z:0;me=mW({barGap:R,barCategoryGap:N,bandSize:Gt!==Ue?Gt:Ue,sizeList:Oe[se],maxBarSize:At}),Gt!==Ue&&(me=me.map(function(cr){return z(z({},cr),{},{position:z(z({},cr.position),{},{offset:cr.position.offset-Gt/2})})}))}var Ma=H&&H.type&&H.type.getComposedData;Ma&&B.push({props:z(z({},Ma(z(z({},ct),{},{displayedData:q,props:m,dataKey:W,item:H,bandSize:Ue,barPosition:me,offset:x,stackedData:ue,layout:T,dataStartIndex:A,dataEndIndex:_}))),{},ee(ee(ee({key:H.key||"item-".concat(G)},D,ct[D]),$,ct[$]),"animationId",j)),childIndex:pB(H,m.children),item:H})}),B},p=function(m,y){var b=m.props,w=m.dataStartIndex,x=m.dataEndIndex,j=m.updateId;if(!T1({props:b}))return null;var A=b.children,_=b.layout,E=b.stackOffset,T=b.data,R=b.reverseStackOrder,N=oO(_),L=N.numericAxisName,k=N.cateAxisName,D=$n(A,r),$=AW(T,D,"".concat(L,"Id"),"".concat(k,"Id"),E,R),P=s.reduce(function(Y,W){var oe="".concat(W.axisType,"Map");return z(z({},Y),{},ee({},oe,uie(b,z(z({},W),{},{graphicalItems:D,stackGroups:W.axisType===L&&$,dataStartIndex:w,dataEndIndex:x}))))},{}),B=die(z(z({},P),{},{props:b,graphicalItems:D}),y==null?void 0:y.legendBBox);Object.keys(P).forEach(function(Y){P[Y]=d(b,P[Y],B,Y.replace("Map",""),n)});var H=P["".concat(k,"Map")],G=cie(H),q=h(b,z(z({},P),{},{dataStartIndex:w,dataEndIndex:x,updateId:j,graphicalItems:D,stackGroups:$,offset:B}));return z(z({formattedGraphicalItems:q,graphicalItems:D,offset:B,stackGroups:$},G),P)},S=function(v){function m(y){var b,w,x;return Fae(this,m),x=Xae(this,m,[y]),ee(x,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ee(x,"accessibilityManager",new $ae),ee(x,"handleLegendBBoxUpdate",function(j){if(j){var A=x.state,_=A.dataStartIndex,E=A.dataEndIndex,T=A.updateId;x.setState(z({legendBBox:j},p({props:x.props,dataStartIndex:_,dataEndIndex:E,updateId:T},z(z({},x.state),{},{legendBBox:j}))))}}),ee(x,"handleReceiveSyncEvent",function(j,A,_){if(x.props.syncId===j){if(_===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(A)}}),ee(x,"handleBrushChange",function(j){var A=j.startIndex,_=j.endIndex;if(A!==x.state.dataStartIndex||_!==x.state.dataEndIndex){var E=x.state.updateId;x.setState(function(){return z({dataStartIndex:A,dataEndIndex:_},p({props:x.props,dataStartIndex:A,dataEndIndex:_,updateId:E},x.state))}),x.triggerSyncEvent({dataStartIndex:A,dataEndIndex:_})}}),ee(x,"handleMouseEnter",function(j){var A=x.getMouseInfo(j);if(A){var _=z(z({},A),{},{isTooltipActive:!0});x.setState(_),x.triggerSyncEvent(_);var E=x.props.onMouseEnter;ie(E)&&E(_,j)}}),ee(x,"triggeredAfterMouseMove",function(j){var A=x.getMouseInfo(j),_=A?z(z({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(_),x.triggerSyncEvent(_);var E=x.props.onMouseMove;ie(E)&&E(_,j)}),ee(x,"handleItemMouseEnter",function(j){x.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),ee(x,"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),ee(x,"handleMouseMove",function(j){j.persist(),x.throttleTriggeredAfterMouseMove(j)}),ee(x,"handleMouseLeave",function(j){x.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};x.setState(A),x.triggerSyncEvent(A);var _=x.props.onMouseLeave;ie(_)&&_(A,j)}),ee(x,"handleOuterEvent",function(j){var A=hB(j),_=pn(x.props,"".concat(A));if(A&&ie(_)){var E,T;/.*touch.*/i.test(A)?T=x.getMouseInfo(j.changedTouches[0]):T=x.getMouseInfo(j),_((E=T)!==null&&E!==void 0?E:{},j)}}),ee(x,"handleClick",function(j){var A=x.getMouseInfo(j);if(A){var _=z(z({},A),{},{isTooltipActive:!0});x.setState(_),x.triggerSyncEvent(_);var E=x.props.onClick;ie(E)&&E(_,j)}}),ee(x,"handleMouseDown",function(j){var A=x.props.onMouseDown;if(ie(A)){var _=x.getMouseInfo(j);A(_,j)}}),ee(x,"handleMouseUp",function(j){var A=x.props.onMouseUp;if(ie(A)){var _=x.getMouseInfo(j);A(_,j)}}),ee(x,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),ee(x,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&x.handleMouseDown(j.changedTouches[0])}),ee(x,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&x.handleMouseUp(j.changedTouches[0])}),ee(x,"handleDoubleClick",function(j){var A=x.props.onDoubleClick;if(ie(A)){var _=x.getMouseInfo(j);A(_,j)}}),ee(x,"handleContextMenu",function(j){var A=x.props.onContextMenu;if(ie(A)){var _=x.getMouseInfo(j);A(_,j)}}),ee(x,"triggerSyncEvent",function(j){x.props.syncId!==void 0&&im.emit(lm,x.props.syncId,j,x.eventEmitterSymbol)}),ee(x,"applySyncEvent",function(j){var A=x.props,_=A.layout,E=A.syncMethod,T=x.state.updateId,R=j.dataStartIndex,N=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)x.setState(z({dataStartIndex:R,dataEndIndex:N},p({props:x.props,dataStartIndex:R,dataEndIndex:N,updateId:T},x.state)));else if(j.activeTooltipIndex!==void 0){var L=j.chartX,k=j.chartY,D=j.activeTooltipIndex,$=x.state,P=$.offset,B=$.tooltipTicks;if(!P)return;if(typeof E=="function")D=E(B,j);else if(E==="value"){D=-1;for(var H=0;H<B.length;H++)if(B[H].value===j.activeLabel){D=H;break}}var G=z(z({},P),{},{x:P.left,y:P.top}),q=Math.min(L,G.x+G.width),Y=Math.min(k,G.y+G.height),W=B[D]&&B[D].value,oe=Hv(x.state,x.props.data,D),Ce=B[D]?{x:_==="horizontal"?B[D].coordinate:q,y:_==="horizontal"?Y:B[D].coordinate}:IC;x.setState(z(z({},j),{},{activeLabel:W,activeCoordinate:Ce,activePayload:oe,activeTooltipIndex:D}))}else x.setState(j)}),ee(x,"renderCursor",function(j){var A,_=x.state,E=_.isTooltipActive,T=_.activeCoordinate,R=_.activePayload,N=_.offset,L=_.activeTooltipIndex,k=_.tooltipAxisBandSize,D=x.getTooltipEventType(),$=(A=j.props.active)!==null&&A!==void 0?A:E,P=x.props.layout,B=j.key||"_recharts-cursor";return M.createElement(zae,{key:B,activeCoordinate:T,activePayload:R,activeTooltipIndex:L,chartName:n,element:j,isActive:$,layout:P,offset:N,tooltipAxisBandSize:k,tooltipEventType:D})}),ee(x,"renderPolarAxis",function(j,A,_){var E=pn(j,"type.axisType"),T=pn(x.state,"".concat(E,"Map")),R=j.type.defaultProps,N=R!==void 0?z(z({},R),j.props):j.props,L=T&&T[N["".concat(E,"Id")]];return O.cloneElement(j,z(z({},L),{},{className:he(E,L.className),key:j.key||"".concat(A,"-").concat(_),ticks:Ka(L,!0)}))}),ee(x,"renderPolarGrid",function(j){var A=j.props,_=A.radialLines,E=A.polarAngles,T=A.polarRadius,R=x.state,N=R.radiusAxisMap,L=R.angleAxisMap,k=ki(N),D=ki(L),$=D.cx,P=D.cy,B=D.innerRadius,H=D.outerRadius;return O.cloneElement(j,{polarAngles:Array.isArray(E)?E:Ka(D,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(T)?T:Ka(k,!0).map(function(G){return G.coordinate}),cx:$,cy:P,innerRadius:B,outerRadius:H,key:j.key||"polar-grid",radialLines:_})}),ee(x,"renderLegend",function(){var j=x.state.formattedGraphicalItems,A=x.props,_=A.children,E=A.width,T=A.height,R=x.props.margin||{},N=E-(R.left||0)-(R.right||0),L=SN({children:_,formattedGraphicalItems:j,legendWidth:N,legendContent:u});if(!L)return null;var k=L.item,D=rO(L,Iae);return O.cloneElement(k,z(z({},D),{},{chartWidth:E,chartHeight:T,margin:R,onBBoxUpdate:x.handleLegendBBoxUpdate}))}),ee(x,"renderTooltip",function(){var j,A=x.props,_=A.children,E=A.accessibilityLayer,T=an(_,Hn);if(!T)return null;var R=x.state,N=R.isTooltipActive,L=R.activeCoordinate,k=R.activePayload,D=R.activeLabel,$=R.offset,P=(j=T.props.active)!==null&&j!==void 0?j:N;return O.cloneElement(T,{viewBox:z(z({},$),{},{x:$.left,y:$.top}),active:P,label:D,payload:P?k:[],coordinate:L,accessibilityLayer:E})}),ee(x,"renderBrush",function(j){var A=x.props,_=A.margin,E=A.data,T=x.state,R=T.offset,N=T.dataStartIndex,L=T.dataEndIndex,k=T.updateId;return O.cloneElement(j,{key:j.key||"_recharts-brush",onChange:sc(x.handleBrushChange,j.props.onChange),data:E,x:F(j.props.x)?j.props.x:R.left,y:F(j.props.y)?j.props.y:R.top+R.height+R.brushBottom-(_.bottom||0),width:F(j.props.width)?j.props.width:R.width,startIndex:N,endIndex:L,updateId:"brush-".concat(k)})}),ee(x,"renderReferenceElement",function(j,A,_){if(!j)return null;var E=x,T=E.clipPathId,R=x.state,N=R.xAxisMap,L=R.yAxisMap,k=R.offset,D=j.type.defaultProps||{},$=j.props,P=$.xAxisId,B=P===void 0?D.xAxisId:P,H=$.yAxisId,G=H===void 0?D.yAxisId:H;return O.cloneElement(j,{key:j.key||"".concat(A,"-").concat(_),xAxis:N[B],yAxis:L[G],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:T})}),ee(x,"renderActivePoints",function(j){var A=j.item,_=j.activePoint,E=j.basePoint,T=j.childIndex,R=j.isRange,N=[],L=A.props.key,k=A.item.type.defaultProps!==void 0?z(z({},A.item.type.defaultProps),A.item.props):A.item.props,D=k.activeDot,$=k.dataKey,P=z(z({index:T,dataKey:$,cx:_.x,cy:_.y,r:4,fill:o0(A.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},re(D,!1)),gf(D));return N.push(m.renderActiveDot(D,P,"".concat(L,"-activePoint-").concat(T))),E?N.push(m.renderActiveDot(D,z(z({},P),{},{cx:E.x,cy:E.y}),"".concat(L,"-basePoint-").concat(T))):R&&N.push(null),N}),ee(x,"renderGraphicChild",function(j,A,_){var E=x.filterFormatItem(j,A,_);if(!E)return null;var T=x.getTooltipEventType(),R=x.state,N=R.isTooltipActive,L=R.tooltipAxis,k=R.activeTooltipIndex,D=R.activeLabel,$=x.props.children,P=an($,Hn),B=E.props,H=B.points,G=B.isRange,q=B.baseLine,Y=E.item.type.defaultProps!==void 0?z(z({},E.item.type.defaultProps),E.item.props):E.item.props,W=Y.activeDot,oe=Y.hide,Ce=Y.activeBar,se=Y.activeShape,Ot=!!(!oe&&N&&P&&(W||Ce||se)),ct={};T!=="axis"&&P&&P.props.trigger==="click"?ct={onClick:sc(x.handleItemMouseEnter,j.props.onClick)}:T!=="axis"&&(ct={onMouseLeave:sc(x.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:sc(x.handleItemMouseEnter,j.props.onMouseEnter)});var V=O.cloneElement(j,z(z({},E.props),ct));function ae(tn){return typeof L.dataKey=="function"?L.dataKey(tn.payload):null}if(Ot)if(k>=0){var ue,U;if(L.dataKey&&!L.allowDuplicatedCategory){var Ue=typeof L.dataKey=="function"?ae:"payload.".concat(L.dataKey.toString());ue=yy(H,Ue,D),U=G&&q&&yy(q,Ue,D)}else ue=H==null?void 0:H[k],U=G&&q&&q[k];if(se||Ce){var me=j.props.activeIndex!==void 0?j.props.activeIndex:k;return[O.cloneElement(j,z(z(z({},E.props),ct),{},{activeIndex:me})),null,null]}if(!pe(ue))return[V].concat(Vl(x.renderActivePoints({item:E,activePoint:ue,basePoint:U,childIndex:k,isRange:G})))}else{var Oe,Z=(Oe=x.getItemByXY(x.state.activeCoordinate))!==null&&Oe!==void 0?Oe:{graphicalItem:V},Me=Z.graphicalItem,At=Me.item,Gt=At===void 0?j:At,Ma=Me.childIndex,cr=z(z(z({},E.props),ct),{},{activeIndex:Ma});return[O.cloneElement(Gt,cr),null,null]}return G?[V,null,null]:[V,null]}),ee(x,"renderCustomized",function(j,A,_){return O.cloneElement(j,z(z({key:"recharts-customized-".concat(_)},x.props),x.state))}),ee(x,"renderMap",{CartesianGrid:{handler:hc,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:hc},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:hc},YAxis:{handler:hc},Brush:{handler:x.renderBrush,once:!0},Bar:{handler:x.renderGraphicChild},Line:{handler:x.renderGraphicChild},Area:{handler:x.renderGraphicChild},Radar:{handler:x.renderGraphicChild},RadialBar:{handler:x.renderGraphicChild},Scatter:{handler:x.renderGraphicChild},Pie:{handler:x.renderGraphicChild},Funnel:{handler:x.renderGraphicChild},Tooltip:{handler:x.renderCursor,once:!0},PolarGrid:{handler:x.renderPolarGrid,once:!0},PolarAngleAxis:{handler:x.renderPolarAxis},PolarRadiusAxis:{handler:x.renderPolarAxis},Customized:{handler:x.renderCustomized}}),x.clipPathId="".concat((b=y.id)!==null&&b!==void 0?b:Cu("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=ST(x.triggeredAfterMouseMove,(w=y.throttleDelay)!==null&&w!==void 0?w:1e3/60),x.state={},x}return Qae(m,v),Kae(m,[{key:"componentDidMount",value:function(){var b,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,w=b.children,x=b.data,j=b.height,A=b.layout,_=an(w,Hn);if(_){var E=_.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,R=Hv(this.state,x,E,T),N=this.state.tooltipTicks[E].coordinate,L=(this.state.offset.top+j)/2,k=A==="horizontal",D=k?{x:N,y:L}:{y:N,x:L},$=this.state.formattedGraphicalItems.find(function(B){var H=B.item;return H.type.name==="Scatter"});$&&(D=z(z({},D),$.props.points[E].tooltipPosition),R=$.props.points[E].tooltipPayload);var P={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:T,activePayload:R,activeCoordinate:D};this.setState(P),this.renderCursor(_),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var x,j;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(b){gy([an(b.children,Hn)],[an(this.props.children,Hn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=an(this.props.children,Hn);if(b&&typeof b.props.shared=="boolean"){var w=b.props.shared?"axis":"item";return o.indexOf(w)>=0?w:i}return i}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var w=this.container,x=w.getBoundingClientRect(),j=UY(x),A={chartX:Math.round(b.pageX-j.left),chartY:Math.round(b.pageY-j.top)},_=x.width/w.offsetWidth||1,E=this.inRange(A.chartX,A.chartY,_);if(!E)return null;var T=this.state,R=T.xAxisMap,N=T.yAxisMap,L=this.getTooltipEventType(),k=iO(this.state,this.props.data,this.props.layout,E);if(L!=="axis"&&R&&N){var D=ki(R).scale,$=ki(N).scale,P=D&&D.invert?D.invert(A.chartX):null,B=$&&$.invert?$.invert(A.chartY):null;return z(z({},A),{},{xValue:P,yValue:B},k)}return k?z(z({},A),k):null}},{key:"inRange",value:function(b,w){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,A=b/x,_=w/x;if(j==="horizontal"||j==="vertical"){var E=this.state.offset,T=A>=E.left&&A<=E.left+E.width&&_>=E.top&&_<=E.top+E.height;return T?{x:A,y:_}:null}var R=this.state,N=R.angleAxisMap,L=R.radiusAxisMap;if(N&&L){var k=ki(N);return Bw({x:A,y:_},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,w=this.getTooltipEventType(),x=an(b,Hn),j={};x&&w==="axis"&&(x.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=gf(this.props,this.handleOuterEvent);return z(z({},A),j)}},{key:"addListener",value:function(){im.on(lm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){im.removeListener(lm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,w,x){for(var j=this.state.formattedGraphicalItems,A=0,_=j.length;A<_;A++){var E=j[A];if(E.item===b||E.props.key===b.key||w===Tr(E.item.type)&&x===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,w=this.state.offset,x=w.left,j=w.top,A=w.height,_=w.width;return M.createElement("defs",null,M.createElement("clipPath",{id:b},M.createElement("rect",{x,y:j,height:A,width:_})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(w,x){var j=nO(x,2),A=j[0],_=j[1];return z(z({},w),{},ee({},A,_.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(w,x){var j=nO(x,2),A=j[0],_=j[1];return z(z({},w),{},ee({},A,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(b){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(b){var w=this.state,x=w.formattedGraphicalItems,j=w.activeItem;if(x&&x.length)for(var A=0,_=x.length;A<_;A++){var E=x[A],T=E.props,R=E.item,N=R.type.defaultProps!==void 0?z(z({},R.type.defaultProps),R.props):R.props,L=Tr(R.type);if(L==="Bar"){var k=(T.data||[]).find(function(B){return EJ(b,B)});if(k)return{graphicalItem:E,payload:k}}else if(L==="RadialBar"){var D=(T.data||[]).find(function(B){return Bw(b,B)});if(D)return{graphicalItem:E,payload:D}}else if(Ch(E,j)||Mh(E,j)||nu(E,j)){var $=mte({graphicalItem:E,activeTooltipItem:j,itemData:N.data}),P=N.activeIndex===void 0?$:N.activeIndex;return{graphicalItem:z(z({},E),{},{childIndex:P}),payload:nu(E,j)?N.data[$]:E.props.data[$]}}}return null}},{key:"render",value:function(){var b=this;if(!T1(this))return null;var w=this.props,x=w.children,j=w.className,A=w.width,_=w.height,E=w.style,T=w.compact,R=w.title,N=w.desc,L=rO(w,Uae),k=re(L,!1);if(T)return M.createElement(qj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},M.createElement(xy,Ji({},k,{width:A,height:_,title:R,desc:N}),this.renderClipPath(),C1(x,this.renderMap)));if(this.props.accessibilityLayer){var D,$;k.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,k.role=($=this.props.role)!==null&&$!==void 0?$:"application",k.onKeyDown=function(B){b.accessibilityManager.keyboardEvent(B)},k.onFocus=function(){b.accessibilityManager.focus()}}var P=this.parseEventsOfWrapper();return M.createElement(qj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},M.createElement("div",Ji({className:he("recharts-wrapper",j),style:z({position:"relative",cursor:"default",width:A,height:_},E)},P,{ref:function(H){b.container=H}}),M.createElement(xy,Ji({},k,{width:A,height:_,title:R,desc:N,style:aie}),this.renderClipPath(),C1(x,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(O.Component);ee(S,"displayName",n),ee(S,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ee(S,"getDerivedStateFromProps",function(v,m){var y=v.dataKey,b=v.data,w=v.children,x=v.width,j=v.height,A=v.layout,_=v.stackOffset,E=v.margin,T=m.dataStartIndex,R=m.dataEndIndex;if(m.updateId===void 0){var N=lO(v);return z(z(z({},N),{},{updateId:0},p(z(z({props:v},N),{},{updateId:0}),m)),{},{prevDataKey:y,prevData:b,prevWidth:x,prevHeight:j,prevLayout:A,prevStackOffset:_,prevMargin:E,prevChildren:w})}if(y!==m.prevDataKey||b!==m.prevData||x!==m.prevWidth||j!==m.prevHeight||A!==m.prevLayout||_!==m.prevStackOffset||!sl(E,m.prevMargin)){var L=lO(v),k={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},D=z(z({},iO(m,b,A)),{},{updateId:m.updateId+1}),$=z(z(z({},L),k),D);return z(z(z({},$),p(z({props:v},$),m)),{},{prevDataKey:y,prevData:b,prevWidth:x,prevHeight:j,prevLayout:A,prevStackOffset:_,prevMargin:E,prevChildren:w})}if(!gy(w,m.prevChildren)){var P,B,H,G,q=an(w,Bl),Y=q&&(P=(B=q.props)===null||B===void 0?void 0:B.startIndex)!==null&&P!==void 0?P:T,W=q&&(H=(G=q.props)===null||G===void 0?void 0:G.endIndex)!==null&&H!==void 0?H:R,oe=Y!==T||W!==R,Ce=!pe(b),se=Ce&&!oe?m.updateId:m.updateId+1;return z(z({updateId:se},p(z(z({props:v},m),{},{updateId:se,dataStartIndex:Y,dataEndIndex:W}),m)),{},{prevChildren:w,dataStartIndex:Y,dataEndIndex:W})}return null}),ee(S,"renderActiveDot",function(v,m,y){var b;return O.isValidElement(v)?b=O.cloneElement(v,m):ie(v)?b=v(m):b=M.createElement(u0,m),M.createElement(Ee,{className:"recharts-active-dot",key:y},b)});var g=O.forwardRef(function(m,y){return M.createElement(S,Ji({},m,{ref:y}))});return g.displayName=S.displayName,g},pie=HC({chartName:"BarChart",GraphicalChild:Ai,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Bh},{axisType:"yAxis",AxisComp:zh}],formatAxisMap:Xne}),mie=HC({chartName:"PieChart",GraphicalChild:Yr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Nh},{axisType:"radiusAxis",AxisComp:Eh}],formatAxisMap:LW,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const sO=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6"];function yie(){const[e,t]=O.useState(null),[n,r]=O.useState(null);O.useEffect(()=>{J.get("/dashboard").then(u=>t(u.data.data)).catch(()=>{}),J.get("/ai/insights").then(u=>r(u.data.data)).catch(()=>{})},[]);const a=(e==null?void 0:e.kpi)||{},i=(e==null?void 0:e.headcountTrend)||[],l=(e==null?void 0:e.deptHeadcount)||[],o=(e==null?void 0:e.attendance)||{},s=[{label:"전체 사원",value:a.total_employees||0,icon:"👥",color:"text-blue-600",bg:"bg-blue-50"},{label:"금년 신규입사",value:a.new_hires_ytd||0,icon:"✅",color:"text-green-600",bg:"bg-green-50"},{label:"채용 진행중",value:a.open_positions||0,icon:"🔍",color:"text-orange-600",bg:"bg-orange-50"},{label:"승인 대기",value:(a.pending_leaves||0)+(a.pending_reviews||0),icon:"⏳",color:"text-red-600",bg:"bg-red-50"}];return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"인사 대시보드"}),c.jsx("span",{className:"text-sm text-slate-500",children:new Date().toLocaleDateString("ko-KR",{year:"numeric",month:"long",day:"numeric"})})]}),c.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:s.map(u=>c.jsx("div",{className:"card",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:`w-10 h-10 rounded-xl ${u.bg} flex items-center justify-center text-xl`,children:u.icon}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs text-slate-500",children:u.label}),c.jsx("p",{className:`text-2xl font-bold ${u.color}`,children:u.value.toLocaleString()})]})]})},u.label))}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"인원 추이 (6개월)"}),c.jsx(ES,{width:"100%",height:200,children:c.jsxs(pie,{data:i,children:[c.jsx(Bh,{dataKey:"month",tick:{fontSize:11}}),c.jsx(zh,{tick:{fontSize:11}}),c.jsx(Hn,{}),c.jsx(Ai,{dataKey:"headcount",fill:"#3b82f6",radius:[4,4,0,0]})]})})]}),c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"부서별 인원"}),c.jsx(ES,{width:"100%",height:200,children:c.jsxs(mie,{children:[c.jsx(Yr,{data:l,dataKey:"headcount",nameKey:"dept_name",cx:"50%",cy:"50%",outerRadius:80,label:!0,children:l.map((u,d)=>c.jsx(dh,{fill:sO[d%sO.length]},d))}),c.jsx(Hn,{}),c.jsx(ti,{})]})})]}),c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"오늘 출결 현황"}),c.jsxs("div",{className:"space-y-3",children:[[{label:"출근",value:o.present_count||0,color:"bg-green-500"},{label:"결근",value:o.absent_count||0,color:"bg-red-500"},{label:"휴가",value:o.leave_count||0,color:"bg-yellow-500"}].map(u=>c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:"w-12 text-sm text-slate-600",children:u.label}),c.jsx("div",{className:"flex-1 bg-slate-100 rounded-full h-3 overflow-hidden",children:c.jsx("div",{className:`${u.color} h-3 rounded-full`,style:{width:`${Math.min(u.value/Math.max(a.total_employees||1,1)*100,100)}%`}})}),c.jsx("span",{className:"text-sm font-semibold text-slate-700 w-8 text-right",children:u.value})]},u.label)),c.jsxs("p",{className:"text-sm text-slate-500 mt-2",children:["출근율: ",c.jsxs("span",{className:"font-bold text-green-600",children:[o.attendance_rate||0,"%"]})]})]})]}),c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"🤖 AI 인사 인사이트"}),c.jsxs("div",{className:"space-y-3",children:[((n==null?void 0:n.insights)||[]).map((u,d)=>c.jsxs("div",{className:"flex items-start gap-3 p-3 bg-slate-50 rounded-lg",children:[c.jsx("span",{className:`mt-0.5 px-2 py-0.5 rounded text-xs font-bold ${u.priority==="HIGH"?"bg-red-100 text-red-700":u.priority==="MEDIUM"?"bg-yellow-100 text-yellow-700":"bg-green-100 text-green-700"}`,children:u.priority}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-700",children:u.title}),c.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:u.desc})]})]},d)),!n&&c.jsx("p",{className:"text-sm text-slate-400",children:"AI 분석 로딩 중..."})]})]})]}),((e==null?void 0:e.pendingApprovals)||[]).length>0&&c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"승인 대기 목록"}),c.jsx("div",{className:"space-y-2",children:(e.pendingApprovals||[]).map((u,d)=>{var f;return c.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-slate-100 last:border-0",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:`badge ${u.type==="leave"?"bg-blue-100 text-blue-700":"bg-purple-100 text-purple-700"}`,children:u.type==="leave"?"휴가":"성과평가"}),c.jsx("span",{className:"text-sm text-slate-700",children:u.title})]}),c.jsx("span",{className:"text-xs text-slate-400",children:(f=u.created_at)==null?void 0:f.slice(0,10)})]},d)})})]})]})}function vie(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(""),[l,o]=O.useState("ACTIVE"),[s,u]=O.useState(1),[d,f]=O.useState(!1),[h,p]=O.useState(null),[S,g]=O.useState({name:"",email:"",employmentType:"REGULAR",hireDate:"",status:"ACTIVE"}),v=()=>{J.get("/employees",{params:{keyword:a,status:l,page:s,size:20}}).then(b=>{t(b.data.data.items),r(b.data.data.total)}).catch(()=>{})};O.useEffect(()=>{v()},[a,l,s]);const m=async()=>{var b,w;try{h?await J.put(`/employees/${h.id}`,S):await J.post("/employees",S),f(!1),p(null),v()}catch(x){alert(((w=(b=x.response)==null?void 0:b.data)==null?void 0:w.message)||"저장 실패")}},y=b=>{const w={ACTIVE:"bg-green-100 text-green-700",LEAVE:"bg-yellow-100 text-yellow-700",RETIRED:"bg-slate-100 text-slate-600"},x={ACTIVE:"재직",LEAVE:"휴직",RETIRED:"퇴직"};return c.jsx("span",{className:`badge ${w[b]||"bg-slate-100 text-slate-600"}`,children:x[b]||b})};return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"사원관리"}),c.jsx("button",{className:"btn-primary",onClick:()=>{p(null),g({name:"",email:"",employmentType:"REGULAR",hireDate:"",status:"ACTIVE"}),f(!0)},children:"+ 사원 등록"})]}),c.jsxs("div",{className:"card flex gap-4",children:[c.jsx("input",{value:a,onChange:b=>i(b.target.value),placeholder:"이름/사원번호 검색",className:"border border-slate-200 rounded-lg px-3 py-2 text-sm flex-1 focus:outline-none focus:ring-2 focus:ring-blue-400"}),c.jsxs("select",{value:l,onChange:b=>o(b.target.value),className:"border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",children:[c.jsx("option",{value:"",children:"전체"}),c.jsx("option",{value:"ACTIVE",children:"재직"}),c.jsx("option",{value:"LEAVE",children:"휴직"}),c.jsx("option",{value:"RETIRED",children:"퇴직"})]})]}),c.jsxs("div",{className:"card overflow-x-auto",children:[c.jsx("div",{className:"flex justify-between items-center mb-3",children:c.jsxs("p",{className:"text-sm text-slate-500",children:["총 ",c.jsx("span",{className:"font-bold text-blue-600",children:n}),"명"]})}),c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsxs("tr",{children:[["사원번호","이름","부서","직책","직급","고용형태","상태","입사일"].map(b=>c.jsx("th",{className:"table-header",children:b},b)),c.jsx("th",{className:"table-header",children:"관리"})]})}),c.jsxs("tbody",{children:[e.map(b=>c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell font-mono text-xs",children:b.empNo}),c.jsx("td",{className:"table-cell font-medium",children:b.name}),c.jsx("td",{className:"table-cell",children:b.departmentName||"-"}),c.jsx("td",{className:"table-cell",children:b.positionName||"-"}),c.jsx("td",{className:"table-cell",children:b.gradeName||"-"}),c.jsx("td",{className:"table-cell",children:b.employmentType==="REGULAR"?"정규직":b.employmentType==="CONTRACT"?"계약직":"파트타임"}),c.jsx("td",{className:"table-cell",children:y(b.status)}),c.jsx("td",{className:"table-cell text-xs",children:b.hireDate}),c.jsx("td",{className:"table-cell",children:c.jsx("button",{className:"text-blue-600 text-xs hover:underline",onClick:()=>{p(b),g(b),f(!0)},children:"수정"})})]},b.id)),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"text-center py-8 text-slate-400",children:"검색 결과가 없습니다"})})]})]}),c.jsx("div",{className:"flex justify-center gap-2 mt-4",children:Array.from({length:Math.ceil(n/20)},(b,w)=>w+1).map(b=>c.jsx("button",{onClick:()=>u(b),className:`px-3 py-1 rounded text-sm ${s===b?"bg-blue-600 text-white":"bg-slate-100 text-slate-700 hover:bg-slate-200"}`,children:b},b))})]}),d&&c.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:c.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-lg p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-slate-800 mb-5",children:h?"사원 수정":"사원 등록"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[[{label:"이름*",key:"name",type:"text"},{label:"이메일",key:"email",type:"email"},{label:"입사일*",key:"hireDate",type:"date"}].map(b=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:b.label}),c.jsx("input",{type:b.type,value:S[b.key]||"",onChange:w=>g({...S,[b.key]:w.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-400"})]},b.key)),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"고용형태"}),c.jsxs("select",{value:S.employmentType||"REGULAR",onChange:b=>g({...S,employmentType:b.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"REGULAR",children:"정규직"}),c.jsx("option",{value:"CONTRACT",children:"계약직"}),c.jsx("option",{value:"PARTTIME",children:"파트타임"})]})]})]}),c.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[c.jsx("button",{className:"btn-secondary",onClick:()=>{f(!1),p(null)},children:"취소"}),c.jsx("button",{className:"btn-primary",onClick:m,children:"저장"})]})]})})]})}function qC({dept:e,level:t=0}){var a,i,l,o;const[n,r]=O.useState(!0);return c.jsxs("div",{style:{marginLeft:t*24},children:[c.jsxs("div",{className:"flex items-center gap-2 py-2 px-3 hover:bg-slate-50 rounded-lg cursor-pointer",onClick:()=>r(!n),children:[((a=e.children)==null?void 0:a.length)>0&&c.jsx("span",{className:"text-slate-400 text-xs",children:n?"▼":"▶"}),((i=e.children)==null?void 0:i.length)===0&&c.jsx("span",{className:"w-3"}),c.jsx("span",{className:"w-8 h-8 rounded-lg bg-blue-100 text-blue-700 flex items-center justify-center text-sm font-bold",children:(l=e.dept_name)==null?void 0:l.charAt(0)}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-700",children:e.dept_name}),c.jsxs("p",{className:"text-xs text-slate-400",children:[e.headcount||0,"명 ",e.manager_name?`| 장: ${e.manager_name}`:""]})]})]}),n&&((o=e.children)==null?void 0:o.map(s=>c.jsx(qC,{dept:s,level:t+1},s.id)))]})}function gie(){const[e,t]=O.useState([]),[n,r]=O.useState([]),[a,i]=O.useState([]),[l,o]=O.useState("org");return O.useEffect(()=>{J.get("/departments").then(s=>t(s.data.data)).catch(()=>{}),J.get("/positions").then(s=>r(s.data.data)).catch(()=>{}),J.get("/grades").then(s=>i(s.data.data)).catch(()=>{})},[]),c.jsxs("div",{className:"space-y-4",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"조직도"}),c.jsx("div",{className:"flex gap-2 border-b border-slate-200",children:["org","position","grade"].map(s=>c.jsx("button",{onClick:()=>o(s),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${l===s?"border-blue-600 text-blue-600":"border-transparent text-slate-500 hover:text-slate-700"}`,children:s==="org"?"조직도":s==="position"?"직책":"직급"},s))}),l==="org"&&c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"조직 구조"}),e.map(s=>c.jsx(qC,{dept:s},s.id)),e.length===0&&c.jsx("p",{className:"text-slate-400 text-sm text-center py-8",children:"부서 데이터가 없습니다"})]}),l==="position"&&c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"직책 목록"}),c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-slate-100",children:[c.jsx("th",{className:"table-header",children:"직책코드"}),c.jsx("th",{className:"table-header",children:"직책명"}),c.jsx("th",{className:"table-header",children:"순서"})]})}),c.jsx("tbody",{children:n.map(s=>c.jsxs("tr",{className:"border-b border-slate-50",children:[c.jsx("td",{className:"table-cell font-mono text-xs",children:s.position_code}),c.jsx("td",{className:"table-cell font-medium",children:s.position_name}),c.jsx("td",{className:"table-cell",children:s.sort_order})]},s.id))})]})]}),l==="grade"&&c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"직급 목록"}),c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-slate-100",children:[c.jsx("th",{className:"table-header",children:"직급코드"}),c.jsx("th",{className:"table-header",children:"직급명"}),c.jsx("th",{className:"table-header",children:"레벨"})]})}),c.jsx("tbody",{children:a.map(s=>c.jsxs("tr",{className:"border-b border-slate-50",children:[c.jsx("td",{className:"table-cell font-mono text-xs",children:s.grade_code}),c.jsx("td",{className:"table-cell font-medium",children:s.grade_name}),c.jsx("td",{className:"table-cell",children:s.grade_level})]},s.id))})]})]})]})}function bie(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(new Date().getFullYear()),[l,o]=O.useState(new Date().getMonth()+1),s=()=>{J.get("/payroll",{params:{year:a,month:l,page:1,size:20}}).then(f=>{t(f.data.data.items||[]),r(f.data.data.total||0)}).catch(()=>{})};O.useEffect(()=>{s()},[a,l]);const u=async()=>{var f,h;if(confirm(`${a}년 ${l}월 급여를 처리하시겠습니까?`))try{await J.post("/payroll/process",null,{params:{year:a,month:l}}),alert("급여 처리 완료"),s()}catch(p){alert(((h=(f=p.response)==null?void 0:f.data)==null?void 0:h.message)||"처리 실패")}},d=f=>{const h={DRAFT:"bg-slate-100 text-slate-600",PROCESSED:"bg-blue-100 text-blue-700",APPROVED:"bg-green-100 text-green-700"},p={DRAFT:"초안",PROCESSED:"처리완료",APPROVED:"승인완료"};return c.jsx("span",{className:`badge ${h[f]||""}`,children:p[f]||f})};return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"급여관리"}),c.jsx("button",{className:"btn-primary",onClick:u,children:"급여 처리 실행"})]}),c.jsxs("div",{className:"card flex gap-4 items-center",children:[c.jsx("label",{className:"text-sm text-slate-600",children:"연도"}),c.jsx("select",{value:a,onChange:f=>i(+f.target.value),className:"border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",children:[2024,2025,2026].map(f=>c.jsxs("option",{value:f,children:[f,"년"]},f))}),c.jsx("label",{className:"text-sm text-slate-600",children:"월"}),c.jsx("select",{value:l,onChange:f=>o(+f.target.value),className:"border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",children:Array.from({length:12},(f,h)=>h+1).map(f=>c.jsxs("option",{value:f,children:[f,"월"]},f))}),c.jsxs("span",{className:"text-sm text-slate-500",children:["총 ",n,"건"]})]}),c.jsx("div",{className:"card overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["연월","총지급액","상태","처리자","처리일시","급여명세수","관리"].map(f=>c.jsx("th",{className:"table-header",children:f},f))})}),c.jsxs("tbody",{children:[e.map(f=>{var h;return c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsxs("td",{className:"table-cell font-medium",children:[f.year,"년 ",f.month,"월"]}),c.jsxs("td",{className:"table-cell font-mono",children:[(f.total_amount||0).toLocaleString(),"원"]}),c.jsx("td",{className:"table-cell",children:d(f.status)}),c.jsx("td",{className:"table-cell",children:f.processed_by||"-"}),c.jsx("td",{className:"table-cell text-xs",children:((h=f.processed_at)==null?void 0:h.slice(0,16))||"-"}),c.jsxs("td",{className:"table-cell",children:[f.payslip_count||0,"건"]}),c.jsx("td",{className:"table-cell",children:f.status==="PROCESSED"&&c.jsx("button",{className:"text-green-600 text-xs hover:underline",onClick:async()=>{await J.post(`/payroll/${f.id}/approve`),s()},children:"승인"})})]},f.id)}),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center py-8 text-slate-400",children:"급여 처리 내역이 없습니다"})})]})]})})]})}function xie(){const[e,t]=O.useState([]),[n,r]=O.useState([]),[a,i]=O.useState([]),[l,o]=O.useState("att"),[s,u]=O.useState(!1),[d,f]=O.useState({empId:"",leaveTypeId:"",startDate:"",endDate:"",days:1,reason:""}),h=()=>{const v=new Date().toISOString().slice(0,10);J.get("/attendance",{params:{date:v}}).then(m=>t(m.data.data.items||[])).catch(()=>{})},p=()=>{J.get("/attendance/leaves/1",{params:{status:"PENDING",year:new Date().getFullYear()}}).then(v=>r(v.data.data||[])).catch(()=>{}),J.get("/attendance/leave-types").then(v=>i(v.data.data||[])).catch(()=>{})};O.useEffect(()=>{h(),p()},[]);const S=async()=>{var v,m;try{await J.post(`/attendance/leaves/${d.empId}`,d),u(!1),p()}catch(y){alert(((m=(v=y.response)==null?void 0:v.data)==null?void 0:m.message)||"신청 실패")}},g=v=>{const m={PENDING:"bg-yellow-100 text-yellow-700",APPROVED:"bg-green-100 text-green-700",REJECTED:"bg-red-100 text-red-700"},y={PENDING:"승인대기",APPROVED:"승인",REJECTED:"반려"};return c.jsx("span",{className:`badge ${m[v]||""}`,children:y[v]||v})};return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"근태관리"}),c.jsx("button",{className:"btn-primary",onClick:()=>u(!0),children:"+ 휴가 신청"})]}),c.jsx("div",{className:"flex gap-2 border-b border-slate-200",children:[{v:"att",l:"출결 현황"},{v:"leave",l:"휴가 현황"}].map(v=>c.jsx("button",{onClick:()=>o(v.v),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${l===v.v?"border-blue-600 text-blue-600":"border-transparent text-slate-500"}`,children:v.l},v.v))}),l==="att"&&c.jsxs("div",{className:"card overflow-x-auto",children:[c.jsxs("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:["오늘 출결 현황 (",new Date().toLocaleDateString("ko-KR"),")"]}),c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["사원번호","이름","부서","출근시간","퇴근시간","근무시간","상태"].map(v=>c.jsx("th",{className:"table-header",children:v},v))})}),c.jsxs("tbody",{children:[e.map(v=>{var m,y;return c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell font-mono text-xs",children:v.emp_no}),c.jsx("td",{className:"table-cell font-medium",children:v.emp_name}),c.jsx("td",{className:"table-cell",children:v.dept_name}),c.jsx("td",{className:"table-cell",children:((m=v.check_in_time)==null?void 0:m.slice(11,16))||"-"}),c.jsx("td",{className:"table-cell",children:((y=v.check_out_time)==null?void 0:y.slice(11,16))||"-"}),c.jsx("td",{className:"table-cell",children:v.work_minutes?Math.floor(v.work_minutes/60)+"h "+v.work_minutes%60+"m":"-"}),c.jsx("td",{className:"table-cell",children:c.jsx("span",{className:`badge ${v.status==="PRESENT"?"bg-green-100 text-green-700":"bg-slate-100 text-slate-600"}`,children:v.status==="PRESENT"?"출근":v.status})})]},v.id)}),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center py-8 text-slate-400",children:"출결 데이터가 없습니다"})})]})]})]}),l==="leave"&&c.jsxs("div",{className:"card overflow-x-auto",children:[c.jsx("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:"휴가 신청 현황"}),c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["휴가유형","시작일","종료일","일수","사유","상태","관리"].map(v=>c.jsx("th",{className:"table-header",children:v},v))})}),c.jsxs("tbody",{children:[n.map(v=>c.jsxs("tr",{className:"border-b border-slate-50",children:[c.jsx("td",{className:"table-cell",children:v.type_name}),c.jsx("td",{className:"table-cell",children:v.start_date}),c.jsx("td",{className:"table-cell",children:v.end_date}),c.jsxs("td",{className:"table-cell",children:[v.days,"일"]}),c.jsx("td",{className:"table-cell",children:v.reason}),c.jsx("td",{className:"table-cell",children:g(v.status)}),c.jsx("td",{className:"table-cell",children:v.status==="PENDING"&&c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{className:"text-green-600 text-xs hover:underline",onClick:async()=>{await J.patch(`/attendance/leaves/${v.id}/approve`,null,{params:{status:"APPROVED"}}),p()},children:"승인"}),c.jsx("button",{className:"text-red-600 text-xs hover:underline",onClick:async()=>{await J.patch(`/attendance/leaves/${v.id}/approve`,null,{params:{status:"REJECTED"}}),p()},children:"반려"})]})})]},v.id)),n.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center py-8 text-slate-400",children:"휴가 신청 내역이 없습니다"})})]})]})]}),s&&c.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:c.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-md p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-slate-800 mb-5",children:"휴가 신청"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"사원 ID"}),c.jsx("input",{type:"number",value:d.empId,onChange:v=>f({...d,empId:v.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",placeholder:"사원 ID"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"휴가 유형"}),c.jsxs("select",{value:d.leaveTypeId,onChange:v=>f({...d,leaveTypeId:v.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"",children:"선택"}),a.map(v=>c.jsx("option",{value:v.id,children:v.type_name},v.id))]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"시작일"}),c.jsx("input",{type:"date",value:d.startDate,onChange:v=>f({...d,startDate:v.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"종료일"}),c.jsx("input",{type:"date",value:d.endDate,onChange:v=>f({...d,endDate:v.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"사유"}),c.jsx("textarea",{value:d.reason,onChange:v=>f({...d,reason:v.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",rows:2})]})]}),c.jsxs("div",{className:"flex justify-end gap-3 mt-5",children:[c.jsx("button",{className:"btn-secondary",onClick:()=>u(!1),children:"취소"}),c.jsx("button",{className:"btn-primary",onClick:S,children:"신청"})]})]})})]})}function Sie(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(new Date().getFullYear()),[l,o]=O.useState("review"),s=()=>{J.get("/performance/reviews",{params:{year:a,page:1,size:20}}).then(f=>{t(f.data.data.items||[]),r(f.data.data.total||0)}).catch(()=>{})};O.useEffect(()=>{s()},[a]);const u=f=>{const h={S:"bg-purple-100 text-purple-700",A:"bg-blue-100 text-blue-700",B:"bg-green-100 text-green-700",C:"bg-yellow-100 text-yellow-700",D:"bg-red-100 text-red-700"};return f?c.jsxs("span",{className:`badge font-bold ${h[f]||""}`,children:[f,"등급"]}):c.jsx("span",{className:"text-slate-400 text-xs",children:"미평가"})},d=f=>{const h={DRAFT:"bg-slate-100 text-slate-600",SUBMITTED:"bg-blue-100 text-blue-700",COMPLETED:"bg-green-100 text-green-700"},p={DRAFT:"작성중",SUBMITTED:"제출완료",COMPLETED:"최종확정"};return c.jsx("span",{className:`badge ${h[f]||""}`,children:p[f]||f})};return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"성과평가"}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("select",{value:a,onChange:f=>i(+f.target.value),className:"border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",children:[2024,2025,2026].map(f=>c.jsxs("option",{value:f,children:[f,"년"]},f))}),c.jsx("button",{className:"btn-primary",onClick:()=>J.post("/performance/reviews",{year:a,period:"ANNUAL"}).then(s),children:"+ 평가 생성"})]})]}),c.jsx("div",{className:"flex gap-2 border-b border-slate-200",children:[{v:"review",l:"성과 평가표"},{v:"goal",l:"MBO 목표"}].map(f=>c.jsx("button",{onClick:()=>o(f.v),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${l===f.v?"border-blue-600 text-blue-600":"border-transparent text-slate-500"}`,children:f.l},f.v))}),l==="review"&&c.jsxs("div",{className:"card overflow-x-auto",children:[c.jsx("div",{className:"flex justify-between items-center mb-3",children:c.jsxs("p",{className:"text-sm text-slate-500",children:["총 ",c.jsx("span",{className:"font-bold text-blue-600",children:n}),"건"]})}),c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["사원","사원번호","연도/기간","등급","점수","상태","관리"].map(f=>c.jsx("th",{className:"table-header",children:f},f))})}),c.jsxs("tbody",{children:[e.map(f=>c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell font-medium",children:f.emp_name}),c.jsx("td",{className:"table-cell font-mono text-xs",children:f.emp_no}),c.jsxs("td",{className:"table-cell",children:[f.year," / ",f.period]}),c.jsx("td",{className:"table-cell",children:u(f.final_grade)}),c.jsx("td",{className:"table-cell",children:f.score?f.score.toFixed(1):"-"}),c.jsx("td",{className:"table-cell",children:d(f.status)}),c.jsx("td",{className:"table-cell",children:c.jsxs("div",{className:"flex gap-2",children:[f.status==="DRAFT"&&c.jsx("button",{className:"text-blue-600 text-xs hover:underline",onClick:async()=>{await J.post(`/performance/reviews/${f.id}/submit`),s()},children:"제출"}),f.status==="SUBMITTED"&&c.jsx("button",{className:"text-green-600 text-xs hover:underline",onClick:async()=>{await J.post(`/performance/reviews/${f.id}/approve`),s()},children:"확정"})]})})]},f.id)),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center py-8 text-slate-400",children:"평가 데이터가 없습니다"})})]})]})]}),l==="goal"&&c.jsxs("div",{className:"card",children:[c.jsx("p",{className:"text-sm text-slate-500 mb-4",children:"사원 ID 선택 후 MBO 목표를 조회합니다"}),c.jsxs("div",{className:"flex gap-4 items-center",children:[c.jsx("input",{type:"number",id:"goalEmpId",placeholder:"사원 ID 입력",className:"border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none w-40"}),c.jsx("button",{className:"btn-primary",onClick:()=>{const f=document.getElementById("goalEmpId").value;f&&(window.location.href=`/performance?empId=${f}`)},children:"조회"})]}),c.jsx("div",{className:"mt-6 p-8 bg-slate-50 rounded-xl text-center text-slate-400",children:"역량 레이더 차트는 사원 선택 후 표시됩니다"})]})]})}function wie(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState("posting"),[l,o]=O.useState([]),[s,u]=O.useState(!1),[d,f]=O.useState({title:"",employmentType:"REGULAR",headcount:1,startDate:"",endDate:"",description:""}),h=()=>{J.get("/recruitment/postings",{params:{page:1,size:20}}).then(m=>{t(m.data.data.items||[]),r(m.data.data.total||0)}).catch(()=>{})},p=()=>{J.get("/recruitment/applicants",{params:{status:""}}).then(m=>o(m.data.data||[])).catch(()=>{})};O.useEffect(()=>{h(),p()},[]);const S=async()=>{var m,y;try{await J.post("/recruitment/postings",d),u(!1),h()}catch(b){alert(((y=(m=b.response)==null?void 0:m.data)==null?void 0:y.message)||"저장 실패")}},g=m=>{const y={DRAFT:"bg-slate-100 text-slate-600",PUBLISHED:"bg-green-100 text-green-700",CLOSED:"bg-red-100 text-red-700"},b={DRAFT:"초안",PUBLISHED:"공개중",CLOSED:"마감"};return c.jsx("span",{className:`badge ${y[m]||""}`,children:b[m]||m})},v=m=>{const y={APPLIED:"bg-blue-100 text-blue-700",REVIEWED:"bg-yellow-100 text-yellow-700",INTERVIEW:"bg-purple-100 text-purple-700",OFFER:"bg-green-100 text-green-700",HIRED:"bg-emerald-100 text-emerald-700",REJECTED:"bg-red-100 text-red-700"},b={APPLIED:"지원",REVIEWED:"서류검토",INTERVIEW:"면접",OFFER:"합격통보",HIRED:"채용확정",REJECTED:"불합격"};return c.jsx("span",{className:`badge ${y[m]||""}`,children:b[m]||m})};return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"채용관리"}),c.jsx("button",{className:"btn-primary",onClick:()=>u(!0),children:"+ 채용공고 작성"})]}),c.jsx("div",{className:"flex gap-2 border-b border-slate-200",children:[{v:"posting",l:`채용공고 (${n}건)`},{v:"applicant",l:`지원자 (${l.length}명)`}].map(m=>c.jsx("button",{onClick:()=>i(m.v),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${a===m.v?"border-blue-600 text-blue-600":"border-transparent text-slate-500"}`,children:m.l},m.v))}),a==="posting"&&c.jsx("div",{className:"card overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["제목","부서","고용형태","모집인원","지원자","게시기간","상태","관리"].map(m=>c.jsx("th",{className:"table-header",children:m},m))})}),c.jsxs("tbody",{children:[e.map(m=>c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell font-medium",children:m.title}),c.jsx("td",{className:"table-cell",children:m.dept_name||"-"}),c.jsx("td",{className:"table-cell",children:m.employment_type==="REGULAR"?"정규직":"계약직"}),c.jsxs("td",{className:"table-cell",children:[m.headcount,"명"]}),c.jsxs("td",{className:"table-cell",children:[m.applicant_count||0,"명"]}),c.jsxs("td",{className:"table-cell text-xs",children:[m.start_date," ~ ",m.end_date]}),c.jsx("td",{className:"table-cell",children:g(m.status)}),c.jsxs("td",{className:"table-cell",children:[m.status==="DRAFT"&&c.jsx("button",{className:"text-blue-600 text-xs hover:underline",onClick:async()=>{await J.post(`/recruitment/postings/${m.id}/publish`),h()},children:"공개"}),m.status==="PUBLISHED"&&c.jsx("button",{className:"text-red-600 text-xs hover:underline",onClick:async()=>{await J.post(`/recruitment/postings/${m.id}/close`),h()},children:"마감"})]})]},m.id)),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:8,className:"text-center py-8 text-slate-400",children:"채용공고가 없습니다"})})]})]})}),a==="applicant"&&c.jsx("div",{className:"card overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["이름","이메일","지원일","전형단계","관리"].map(m=>c.jsx("th",{className:"table-header",children:m},m))})}),c.jsxs("tbody",{children:[l.map(m=>{var y;return c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell font-medium",children:m.applicant_name}),c.jsx("td",{className:"table-cell",children:m.email}),c.jsx("td",{className:"table-cell text-xs",children:(y=m.apply_date)==null?void 0:y.slice(0,10)}),c.jsx("td",{className:"table-cell",children:v(m.status)}),c.jsx("td",{className:"table-cell",children:c.jsx("select",{value:m.status,onChange:async b=>{await J.patch(`/recruitment/applicants/${m.id}/status`,null,{params:{status:b.target.value}}),p()},className:"border border-slate-200 rounded px-2 py-1 text-xs",children:["APPLIED","REVIEWED","INTERVIEW","OFFER","HIRED","REJECTED"].map(b=>c.jsx("option",{value:b,children:b},b))})})]},m.id)}),l.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:5,className:"text-center py-8 text-slate-400",children:"지원자가 없습니다"})})]})]})}),s&&c.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:c.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-lg p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-slate-800 mb-5",children:"채용공고 작성"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"공고 제목*"}),c.jsx("input",{value:d.title,onChange:m=>f({...d,title:m.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"고용형태"}),c.jsxs("select",{value:d.employmentType,onChange:m=>f({...d,employmentType:m.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm",children:[c.jsx("option",{value:"REGULAR",children:"정규직"}),c.jsx("option",{value:"CONTRACT",children:"계약직"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"모집인원"}),c.jsx("input",{type:"number",value:d.headcount,onChange:m=>f({...d,headcount:+m.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",min:1})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"게시 시작일"}),c.jsx("input",{type:"date",value:d.startDate,onChange:m=>f({...d,startDate:m.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"게시 종료일"}),c.jsx("input",{type:"date",value:d.endDate,onChange:m=>f({...d,endDate:m.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"공고 내용"}),c.jsx("textarea",{value:d.description,onChange:m=>f({...d,description:m.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",rows:3})]})]}),c.jsxs("div",{className:"flex justify-end gap-3 mt-5",children:[c.jsx("button",{className:"btn-secondary",onClick:()=>u(!1),children:"취소"}),c.jsx("button",{className:"btn-primary",onClick:S,children:"저장"})]})]})})]})}function jie(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState([]),[l,o]=O.useState("course"),[s,u]=O.useState(!1),[d,f]=O.useState({courseName:"",category:"SKILL",provider:"",startDate:"",endDate:"",maxCapacity:20,description:""}),h=()=>{J.get("/training/courses",{params:{page:1,size:20}}).then(y=>{t(y.data.data.items||[]),r(y.data.data.total||0)}).catch(()=>{})},p=()=>{J.get("/training/legal-status",{params:{year:new Date().getFullYear()}}).then(y=>i(y.data.data||[])).catch(()=>{})};O.useEffect(()=>{h(),p()},[]);const S=async()=>{var y,b;try{await J.post("/training/courses",d),u(!1),h()}catch(w){alert(((b=(y=w.response)==null?void 0:y.data)==null?void 0:b.message)||"저장 실패")}},g=async(y,b)=>{var w,x;try{await J.post(`/training/courses/${y}/enroll`,null,{params:{empId:b}}),alert("수강 신청 완료")}catch(j){alert(((x=(w=j.response)==null?void 0:w.data)==null?void 0:x.message)||"신청 실패")}},v={SKILL:"직무역량",COMPLIANCE:"법정의무",LEADERSHIP:"리더십",SAFETY:"안전",LANGUAGE:"어학"},m=y=>{const b={PLANNED:"bg-slate-100 text-slate-600",ONGOING:"bg-blue-100 text-blue-700",COMPLETED:"bg-green-100 text-green-700",CANCELLED:"bg-red-100 text-red-700"},w={PLANNED:"예정",ONGOING:"진행중",COMPLETED:"완료",CANCELLED:"취소"};return c.jsx("span",{className:`badge ${b[y]||""}`,children:w[y]||y})};return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"교육관리"}),c.jsx("button",{className:"btn-primary",onClick:()=>u(!0),children:"+ 교육과정 등록"})]}),c.jsx("div",{className:"flex gap-2 border-b border-slate-200",children:[{v:"course",l:`교육과정 (${n}건)`},{v:"legal",l:"법정교육 현황"}].map(y=>c.jsx("button",{onClick:()=>o(y.v),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${l===y.v?"border-blue-600 text-blue-600":"border-transparent text-slate-500"}`,children:y.l},y.v))}),l==="course"&&c.jsx("div",{className:"card overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["과정명","카테고리","제공기관","기간","정원/수강","상태","관리"].map(y=>c.jsx("th",{className:"table-header",children:y},y))})}),c.jsxs("tbody",{children:[e.map(y=>{var b,w;return c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell font-medium",children:y.course_name}),c.jsx("td",{className:"table-cell",children:c.jsx("span",{className:"badge bg-slate-100 text-slate-700",children:v[y.category]||y.category})}),c.jsx("td",{className:"table-cell",children:y.provider||"-"}),c.jsxs("td",{className:"table-cell text-xs",children:[(b=y.start_date)==null?void 0:b.slice(0,10)," ~ ",(w=y.end_date)==null?void 0:w.slice(0,10)]}),c.jsxs("td",{className:"table-cell",children:[y.max_capacity||"-"," / ",y.enrolled_count||0,"명"]}),c.jsx("td",{className:"table-cell",children:m(y.status)}),c.jsx("td",{className:"table-cell",children:y.status==="ONGOING"&&c.jsx("button",{className:"text-blue-600 text-xs hover:underline",onClick:()=>{const x=prompt("사원 ID를 입력하세요");x&&g(y.id,+x)},children:"수강신청"})})]},y.id)}),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center py-8 text-slate-400",children:"교육과정이 없습니다"})})]})]})}),l==="legal"&&c.jsxs("div",{className:"card overflow-x-auto",children:[c.jsxs("h2",{className:"text-base font-semibold text-slate-700 mb-4",children:["법정의무교육 이수 현황 (",new Date().getFullYear(),"년)"]}),c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["사원번호","이름","부서","직위","성희롱예방","개인정보보호","산업안전","장애인식","이수율"].map(y=>c.jsx("th",{className:"table-header text-xs",children:y},y))})}),c.jsxs("tbody",{children:[a.map(y=>{const b=["sexual_harassment","privacy","safety","disability"],w=b.filter(x=>y[x+"_completed"]).length;return c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell font-mono text-xs",children:y.emp_no}),c.jsx("td",{className:"table-cell font-medium",children:y.emp_name}),c.jsx("td",{className:"table-cell text-xs",children:y.dept_name}),c.jsx("td",{className:"table-cell text-xs",children:y.position_name}),b.map(x=>c.jsx("td",{className:"table-cell text-center",children:c.jsx("span",{className:`inline-block w-5 h-5 rounded-full text-xs flex items-center justify-center ${y[x+"_completed"]?"bg-green-100 text-green-700":"bg-red-100 text-red-600"}`,children:y[x+"_completed"]?"O":"X"})},x)),c.jsx("td",{className:"table-cell",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-16 bg-slate-100 rounded-full h-1.5",children:c.jsx("div",{className:"bg-blue-500 h-1.5 rounded-full",style:{width:`${w/4*100}%`}})}),c.jsxs("span",{className:"text-xs text-slate-600",children:[w,"/4"]})]})})]},y.emp_id)}),a.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"text-center py-8 text-slate-400",children:"법정교육 현황이 없습니다"})})]})]})]}),s&&c.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:c.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-lg p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-slate-800 mb-5",children:"교육과정 등록"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"과정명*"}),c.jsx("input",{value:d.courseName,onChange:y=>f({...d,courseName:y.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"카테고리"}),c.jsx("select",{value:d.category,onChange:y=>f({...d,category:y.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm",children:Object.entries(v).map(([y,b])=>c.jsx("option",{value:y,children:b},y))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"제공기관"}),c.jsx("input",{value:d.provider,onChange:y=>f({...d,provider:y.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"시작일"}),c.jsx("input",{type:"date",value:d.startDate,onChange:y=>f({...d,startDate:y.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"종료일"}),c.jsx("input",{type:"date",value:d.endDate,onChange:y=>f({...d,endDate:y.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"정원"}),c.jsx("input",{type:"number",value:d.maxCapacity,onChange:y=>f({...d,maxCapacity:+y.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",min:1})]})]}),c.jsxs("div",{className:"flex justify-end gap-3 mt-5",children:[c.jsx("button",{className:"btn-secondary",onClick:()=>u(!1),children:"취소"}),c.jsx("button",{className:"btn-primary",onClick:S,children:"저장"})]})]})})]})}function Oie(){const[e,t]=O.useState("insights"),[n,r]=O.useState(!1),[a,i]=O.useState(null),[l,o]=O.useState({empId:"",deptId:""}),[s,u]=O.useState(""),d=async(p,S)=>{var g,v;r(!0),i(null);try{const m=await J.post(p,S||{},{params:S});i(m.data.data)}catch(m){i({error:((v=(g=m.response)==null?void 0:g.data)==null?void 0:v.message)||"AI 분석 실패"})}finally{r(!1)}},f=[{v:"insights",l:"HR 인사이트"},{v:"turnover",l:"이직 예측"},{v:"performance",l:"성과 예측"},{v:"recruitment",l:"채용 추천"},{v:"orghealth",l:"조직 건강도"},{v:"resume",l:"이력서 분석"}],h=()=>n?c.jsx("div",{className:"flex items-center justify-center py-16",children:c.jsxs("div",{className:"text-center space-y-3",children:[c.jsx("div",{className:"w-10 h-10 border-2 border-blue-600 border-t-transparent rounded-full animate-spin mx-auto"}),c.jsx("p",{className:"text-sm text-slate-500",children:"Ollama AI 분석 중..."})]})}):a?a.error?c.jsx("div",{className:"p-4 bg-red-50 text-red-600 rounded-lg text-sm",children:a.error}):c.jsx("div",{className:"space-y-3",children:typeof a=="string"?c.jsx("p",{className:"text-sm text-slate-700 whitespace-pre-wrap leading-relaxed",children:a}):c.jsx("pre",{className:"text-xs bg-slate-50 p-4 rounded-lg overflow-auto whitespace-pre-wrap text-slate-700 leading-relaxed",children:JSON.stringify(a,null,2)})}):c.jsxs("div",{className:"py-16 text-center text-slate-400",children:[c.jsx("p",{className:"text-4xl mb-3",children:"AI"}),c.jsx("p",{className:"text-sm",children:"위 버튼을 눌러 AI 분석을 시작하세요"}),c.jsx("p",{className:"text-xs mt-1 text-slate-300",children:"Ollama 온프레미스 AI — 외부 전송 없음"})]});return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"AI 인사 분석"}),c.jsx("span",{className:"badge bg-purple-100 text-purple-700",children:"Ollama 온프레미스"})]}),c.jsx("div",{className:"flex gap-2 border-b border-slate-200 overflow-x-auto",children:f.map(p=>c.jsx("button",{onClick:()=>{t(p.v),i(null)},className:`px-4 py-2 text-sm font-medium border-b-2 whitespace-nowrap transition-colors ${e===p.v?"border-purple-600 text-purple-600":"border-transparent text-slate-500"}`,children:p.l},p.v))}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"card space-y-4",children:[e==="insights"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"font-semibold text-slate-700",children:"HR 종합 인사이트"}),c.jsx("p",{className:"text-sm text-slate-500",children:"전사 HR 데이터를 분석하여 핵심 인사이트와 액션 아이템을 제공합니다."}),c.jsx("button",{className:"btn-primary w-full",onClick:()=>d("/ai/insights"),children:"인사이트 생성"})]}),e==="turnover"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"font-semibold text-slate-700",children:"이직 예측"}),c.jsx("p",{className:"text-sm text-slate-500",children:"사원별 이직 위험도를 분석하고 예방 방안을 제시합니다."}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"사원 ID (선택)"}),c.jsx("input",{type:"number",value:l.empId,onChange:p=>o({...l,empId:p.target.value}),placeholder:"미입력 시 전체 분석",className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsx("button",{className:"btn-primary w-full",onClick:()=>d("/ai/turnover-prediction",l.empId?{empId:+l.empId}:{}),children:"이직 위험도 분석"})]}),e==="performance"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"font-semibold text-slate-700",children:"성과 예측"}),c.jsx("p",{className:"text-sm text-slate-500",children:"사원의 역량·출결·교육이력을 기반으로 성과를 예측합니다."}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"사원 ID*"}),c.jsx("input",{type:"number",value:l.empId,onChange:p=>o({...l,empId:p.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsx("button",{className:"btn-primary w-full",onClick:()=>d("/ai/performance-prediction",l.empId?{empId:+l.empId}:{}),children:"성과 예측 실행"})]}),e==="recruitment"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"font-semibold text-slate-700",children:"채용 추천"}),c.jsx("p",{className:"text-sm text-slate-500",children:"부서별 인력 현황과 업무 부하를 분석하여 최적 채용 계획을 추천합니다."}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"부서 ID (선택)"}),c.jsx("input",{type:"number",value:l.deptId,onChange:p=>o({...l,deptId:p.target.value}),placeholder:"미입력 시 전체",className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsx("button",{className:"btn-primary w-full",onClick:()=>d("/ai/recruitment-recommendation",l.deptId?{deptId:+l.deptId}:{}),children:"채용 계획 추천"})]}),e==="orghealth"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"font-semibold text-slate-700",children:"조직 건강도"}),c.jsx("p",{className:"text-sm text-slate-500",children:"조직의 전반적인 건강도와 위험 요인을 AI로 진단합니다."}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"부서 ID (선택)"}),c.jsx("input",{type:"number",value:l.deptId,onChange:p=>o({...l,deptId:p.target.value}),placeholder:"미입력 시 전체",className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsx("button",{className:"btn-primary w-full",onClick:()=>d("/ai/org-health",l.deptId?{deptId:+l.deptId}:{}),children:"조직 건강도 진단"})]}),e==="resume"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"font-semibold text-slate-700",children:"이력서 분석"}),c.jsx("p",{className:"text-sm text-slate-500",children:"지원자 이력서를 AI가 분석하여 적합도와 주요 역량을 추출합니다."}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"이력서 내용"}),c.jsx("textarea",{value:s,onChange:p=>u(p.target.value),placeholder:"이력서 내용을 붙여넣으세요...",className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none",rows:6})]}),c.jsx("button",{className:"btn-primary w-full",onClick:()=>d("/ai/analyze-resume",{resumeText:s}),children:"이력서 분석"})]})]}),c.jsxs("div",{className:"card min-h-[300px]",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[c.jsx("div",{className:"w-2 h-2 rounded-full bg-purple-500 animate-pulse"}),c.jsx("h3",{className:"text-sm font-semibold text-slate-700",children:"AI 분석 결과"})]}),h()]})]}),c.jsx("div",{className:"card bg-slate-50 border border-slate-200",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-purple-100 flex items-center justify-center text-purple-700 text-sm font-bold flex-shrink-0",children:"AI"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-700",children:"온프레미스 AI 사용 중"}),c.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"모든 분석은 내부 Ollama 서버(localhost:11434)에서 처리됩니다. 사원 정보가 외부로 전송되지 않습니다."})]})]})})]})}/**
 * @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 Aie=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),GC=(...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 _ie={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 Eie=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...o},s)=>O.createElement("svg",{ref:s,..._ie,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:GC("lucide",a),...o},[...l.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 vt=(e,t)=>{const n=O.forwardRef(({className:r,...a},i)=>O.createElement(Eie,{ref:i,iconNode:t,className:GC(`lucide-${Aie(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 Tie=vt("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 Nie=vt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["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 YC=vt("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
 * @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 Cie=vt("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 pc=vt("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 Mie=vt("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 $ie=vt("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 Rie=vt("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["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 Pie=vt("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["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 Die=vt("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @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 kie=vt("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
 * @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 Lie=vt("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 Bie=vt("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 FC=vt("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 sm=vt("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 zie=vt("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 uO=vt("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 qv=vt("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 Iie=vt("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"}]]),Uh=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),Uie=()=>Uh(J.get("/admin/ai-config")),Hie=e=>Uh(J.put("/admin/ai-config",e)),qie=()=>Uh(J.post("/admin/ai-config/test",{})),Gie=e=>Uh(J.post("/ai/feedback",e)),Yie=[{id:"claude",label:"Claude (외부)",sub:"Anthropic Messages API · 소유자 승인 예외",icon:YC,ext:!0},{id:"qwen3",label:"Qwen3 (온프레미스)",sub:"qwen3:1.7b · 중국 top1 오픈소스(기본)",icon:pc},{id:"deepseek",label:"DeepSeek (온프레미스)",sub:"deepseek-r1:1.5b · 추론 특화",icon:pc},{id:"glm",label:"GLM (온프레미스)",sub:"glm4:9b · RAM 여유 필요",icon:pc,ram:!0},{id:"ollama",label:"Ollama 로컬",sub:"llama3 등 기존 소형 폴백",icon:pc}],cO=[{id:"claude-sonnet-4-6",label:"Claude Sonnet 4.6 (기본)"},{id:"claude-haiku-4-5",label:"Claude Haiku 4.5"},{id:"claude-opus-4-8",label:"Claude Opus 4.8"}],Vr=({text:e,color:t="bg-blue-100 text-blue-700"})=>c.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${t}`,children:e});function Fie(){const[e,t]=O.useState(null),[n,r]=O.useState("ollama"),[a,i]=O.useState("claude-sonnet-4-6"),[l,o]=O.useState(!1),[s,u]=O.useState(""),[d,f]=O.useState(null),[h,p]=O.useState("insights"),[S,g]=O.useState(""),[v,m]=O.useState(""),[y,b]=O.useState(""),w=()=>Uie().then(_=>{var E;t(_),r(_.provider),i(((E=cO.find(T=>T.id===_.claudeModel))==null?void 0:E.id)??"claude-sonnet-4-6")}).catch(()=>u("설정을 불러오지 못했습니다. 관리자(SUPERADMIN) 권한이 필요합니다."));O.useEffect(()=>{w()},[]);const x=async()=>{var _,E;o(!0),u(""),f(null);try{const T=await Hie({provider:n,claudeModel:n==="claude"?a:void 0});t(T),u("저장되었습니다. 다음 AI 호출부터 반영됩니다.")}catch(T){u(((E=(_=T==null?void 0:T.response)==null?void 0:_.data)==null?void 0:E.message)??"저장 실패")}finally{o(!1)}},j=async()=>{var _,E;o(!0),f(null),u("");try{f(await qie())}catch(T){f({ok:!1,degraded:!0,message:((E=(_=T==null?void 0:T.response)==null?void 0:_.data)==null?void 0:E.message)??"연결 테스트 실패"})}finally{o(!1)}},A=async _=>{b("");try{const E=await Gie({feature:h,answer:S,verdict:_,correction:v});b(`피드백 반영됨 · 로컬 저장 ${E.storedLocal?"성공":"(비활성)"} · 중앙 학습 전달`),m("")}catch{b("피드백 전송 실패")}};return c.jsxs("div",{className:"space-y-5 max-w-4xl",children:[c.jsxs("div",{children:[c.jsxs("h1",{className:"text-2xl font-bold text-slate-800 flex items-center gap-2",children:[c.jsx(YC,{className:"text-blue-600",size:22})," AI 플랫폼 설정"]}),c.jsxs("p",{className:"text-slate-500 text-sm mt-1",children:["LLM 제공자·모델을 선택합니다. ",c.jsx("b",{children:"API 키는 서버 환경변수(ANTHROPIC_API_KEY)로만 주입"}),"되어 화면·응답에 노출되지 않습니다. Claude 실패 시 자동으로 Ollama(온프레미스)로 폴백합니다."]})]}),s&&c.jsx("div",{className:"card text-sm text-slate-700 py-3",children:s}),e&&c.jsxs("div",{className:"card flex flex-wrap gap-4 items-center",children:[c.jsxs("div",{className:"text-sm text-slate-600",children:["현재 provider ",c.jsx(Vr,{text:e.provider})]}),c.jsxs("div",{className:"text-sm text-slate-600",children:["Ollama 모델 ",c.jsx(Vr,{text:e.ollamaTextModel,color:"bg-slate-100 text-slate-600"})]}),c.jsxs("div",{className:"text-sm text-slate-600 flex items-center gap-1",children:[c.jsx(FC,{size:14,className:e.claudeKeySet?"text-emerald-500":"text-slate-400"}),"Claude 키 ",e.claudeKeySet?c.jsx(Vr,{text:"설정됨",color:"bg-emerald-100 text-emerald-700"}):c.jsx(Vr,{text:"미설정(폴백)",color:"bg-amber-100 text-amber-700"})]}),c.jsxs("div",{className:"text-sm text-slate-600",children:["AI ",e.aiEnabled?c.jsx(Vr,{text:"활성",color:"bg-emerald-100 text-emerald-700"}):c.jsx(Vr,{text:"비활성(규칙기반)",color:"bg-amber-100 text-amber-700"})]})]}),c.jsxs("div",{className:"card",children:[c.jsx("div",{className:"text-sm font-semibold text-slate-700 mb-3",children:"프로바이더 선택"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Yie.map(_=>{const E=_.icon,T=n===_.id;return c.jsxs("button",{onClick:()=>r(_.id),className:`text-left border rounded-lg p-3 transition-colors ${T?"border-blue-500 bg-blue-50":"border-slate-200 hover:bg-slate-50"}`,children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(E,{size:16,className:T?"text-blue-600":"text-slate-400"}),c.jsx("span",{className:"font-medium text-sm text-slate-700",children:_.label}),_.ext&&c.jsx(Vr,{text:"외부",color:"bg-blue-100 text-blue-700"}),_.ram&&c.jsx(Vr,{text:"RAM 증설 필요",color:"bg-amber-100 text-amber-700"})]}),c.jsx("div",{className:"text-xs text-slate-500 mt-1",children:_.sub})]},_.id)})}),n==="glm"&&c.jsxs("div",{className:"mt-3 text-xs text-amber-600 flex items-center gap-1",children:[c.jsx(qv,{size:14})," glm4:9b 은 약 5.5GB 로드 — 현재 서버 RAM 여유 부족 시 콜드로드 실패하여 폴백될 수 있습니다."]}),n==="claude"&&c.jsxs("div",{className:"mt-4",children:[c.jsx("div",{className:"text-sm font-semibold text-slate-700 mb-2",children:"Claude 모델"}),c.jsx("select",{value:a,onChange:_=>i(_.target.value),className:"border border-slate-200 rounded-lg px-3 py-2 text-sm w-full max-w-sm",children:cO.map(_=>c.jsx("option",{value:_.id,children:_.label},_.id))}),e&&!e.claudeKeySet&&c.jsxs("div",{className:"mt-2 text-xs text-amber-600 flex items-center gap-1",children:[c.jsx(qv,{size:14})," 서버에 ANTHROPIC_API_KEY 미설정 — 저장은 되나 실제로는 Ollama 로 폴백 동작합니다."]})]}),c.jsxs("div",{className:"mt-4 flex gap-2",children:[c.jsx("button",{onClick:x,disabled:l,className:"btn-primary disabled:opacity-50",children:"저장"}),c.jsxs("button",{onClick:j,disabled:l,className:"btn-secondary flex items-center gap-1 disabled:opacity-50",children:[c.jsx(Iie,{size:14})," 연결 테스트"]})]}),d&&c.jsxs("div",{className:`mt-3 text-sm rounded-lg px-4 py-2 border ${d.ok?"border-emerald-200 bg-emerald-50 text-emerald-700":"border-amber-200 bg-amber-50 text-amber-700"}`,children:[d.ok?"정상":"주의"," · ",d.message]})]}),c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"text-sm font-semibold text-slate-700 mb-1 flex items-center gap-2",children:[c.jsx(uO,{size:16,className:"text-blue-600"})," AI 답변 피드백 (학습 루프)"]}),c.jsx("p",{className:"text-xs text-slate-500 mb-3",children:"피드백은 로컬 DuckDB(ai_feedback)에 적재되고 중앙 guardia-rag 로 전달됩니다. 입력 텍스트는 서버에서 PII 마스킹 후 저장됩니다(인사 데이터 보호)."}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:c.jsxs("div",{children:[c.jsx("label",{className:"text-xs text-slate-500",children:"기능"}),c.jsxs("select",{value:h,onChange:_=>p(_.target.value),className:"border border-slate-200 rounded-lg px-3 py-2 text-sm w-full mt-1",children:[c.jsx("option",{value:"insights",children:"HR 인사이트"}),c.jsx("option",{value:"turnover",children:"이직 예측"}),c.jsx("option",{value:"performance",children:"성과 예측"}),c.jsx("option",{value:"recruitment",children:"채용 추천"}),c.jsx("option",{value:"orghealth",children:"조직 건강도"}),c.jsx("option",{value:"resume",children:"이력서 분석"})]})]})}),c.jsx("textarea",{value:S,onChange:_=>g(_.target.value),rows:2,placeholder:"평가할 AI 답변(선택)",className:"border border-slate-200 rounded-lg px-3 py-2 text-sm w-full mt-3"}),c.jsx("textarea",{value:v,onChange:_=>m(_.target.value),rows:2,placeholder:"교정/올바른 답(선택)",className:"border border-slate-200 rounded-lg px-3 py-2 text-sm w-full mt-2"}),c.jsxs("div",{className:"mt-3 flex gap-2",children:[c.jsxs("button",{onClick:()=>A("up"),className:"border border-emerald-300 text-emerald-700 px-4 py-2 rounded-lg text-sm flex items-center gap-1 hover:bg-emerald-50",children:[c.jsx(uO,{size:14})," 좋음"]}),c.jsxs("button",{onClick:()=>A("down"),className:"border border-rose-300 text-rose-700 px-4 py-2 rounded-lg text-sm flex items-center gap-1 hover:bg-rose-50",children:[c.jsx(zie,{size:14})," 개선 필요"]}),c.jsxs("button",{onClick:()=>A("down"),className:"btn-secondary flex items-center gap-1",children:[c.jsx(Bie,{size:14})," 교정 제출"]})]}),y&&c.jsx("div",{className:"mt-2 text-xs text-slate-500",children:y})]})]})}function Vie(){const[e,t]=O.useState([]),[n,r]=O.useState([]),[a,i]=O.useState([]),[l,o]=O.useState("users"),[s,u]=O.useState(!1),[d,f]=O.useState({username:"",password:"",fullName:"",email:"",role:"HR_STAFF"}),h=()=>J.get("/admin/users").then(x=>t(x.data.data||[])).catch(()=>{}),p=()=>J.get("/admin/audit-logs",{params:{page:1,size:30}}).then(x=>r(x.data.data.items||[])).catch(()=>{}),S=()=>J.get("/admin/settings").then(x=>i(x.data.data||[])).catch(()=>{});O.useEffect(()=>{h(),p(),S()},[]);const g=async()=>{var x,j;try{await J.post("/admin/users",d),u(!1),f({username:"",password:"",fullName:"",email:"",role:"HR_STAFF"}),h()}catch(A){alert(((j=(x=A.response)==null?void 0:x.data)==null?void 0:j.message)||"저장 실패")}},v=async(x,j)=>{await J.patch(`/admin/users/${x}/status`,null,{params:{active:!j}}),h()},m=async(x,j)=>{var A,_,E;if(window.confirm(`'${j}' 사용자의 OTP를 초기화하시겠습니까?
초기화하면 다음 로그인 시 재등록해야 합니다.`))try{await Ck(x),alert("OTP가 초기화되었습니다.")}catch(T){alert(((A=T==null?void 0:T.response)==null?void 0:A.status)===403?"권한이 없습니다 (SUPERADMIN 전용).":((E=(_=T==null?void 0:T.response)==null?void 0:_.data)==null?void 0:E.message)||"OTP 초기화에 실패했습니다.")}},y=async(x,j)=>{await J.put(`/admin/settings/${x}`,null,{params:{value:j}}),S()},b=x=>{const j={SUPERADMIN:"bg-red-100 text-red-700",MANAGER:"bg-orange-100 text-orange-700",HR_STAFF:"bg-blue-100 text-blue-700",VIEWER:"bg-slate-100 text-slate-600"};return c.jsx("span",{className:`badge ${j[x]||""}`,children:x})},w=x=>{const j={GET:"bg-green-100 text-green-700",POST:"bg-blue-100 text-blue-700",PUT:"bg-yellow-100 text-yellow-700",PATCH:"bg-yellow-100 text-yellow-700",DELETE:"bg-red-100 text-red-700"};return c.jsx("span",{className:`badge text-xs font-mono ${j[x]||""}`,children:x})};return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"시스템 관리"}),l==="users"&&c.jsx("button",{className:"btn-primary",onClick:()=>u(!0),children:"+ 사용자 추가"})]}),c.jsx("div",{className:"flex gap-2 border-b border-slate-200",children:[{v:"users",l:"사용자 관리"},{v:"audit",l:"감사 로그"},{v:"settings",l:"시스템 설정"}].map(x=>c.jsx("button",{onClick:()=>o(x.v),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${l===x.v?"border-blue-600 text-blue-600":"border-transparent text-slate-500"}`,children:x.l},x.v))}),l==="users"&&c.jsx("div",{className:"card overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["사용자명","이름","이메일","역할","상태","마지막 로그인","관리"].map(x=>c.jsx("th",{className:"table-header",children:x},x))})}),c.jsxs("tbody",{children:[e.map(x=>{var j;return c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell font-mono text-xs",children:x.username}),c.jsx("td",{className:"table-cell font-medium",children:x.full_name}),c.jsx("td",{className:"table-cell text-xs",children:x.email||"-"}),c.jsx("td",{className:"table-cell",children:b(x.role)}),c.jsx("td",{className:"table-cell",children:c.jsx("span",{className:`badge ${x.is_active?"bg-green-100 text-green-700":"bg-slate-100 text-slate-500"}`,children:x.is_active?"활성":"비활성"})}),c.jsx("td",{className:"table-cell text-xs",children:((j=x.last_login_at)==null?void 0:j.slice(0,16))||"-"}),c.jsx("td",{className:"table-cell",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{className:`text-xs hover:underline ${x.is_active?"text-red-600":"text-blue-600"}`,onClick:()=>v(x.id,x.is_active),children:x.is_active?"비활성화":"활성화"}),c.jsx("button",{className:"text-xs text-slate-500 hover:underline hover:text-blue-600",onClick:()=>m(x.id,x.username),title:"OTP 초기화(다음 로그인 재등록)",children:"OTP 초기화"})]})})]},x.id)}),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center py-8 text-slate-400",children:"사용자가 없습니다"})})]})]})}),l==="audit"&&c.jsx("div",{className:"card overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-slate-100",children:c.jsx("tr",{children:["시간","사용자","메서드","경로","상태","IP"].map(x=>c.jsx("th",{className:"table-header",children:x},x))})}),c.jsxs("tbody",{children:[n.map(x=>{var j;return c.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50",children:[c.jsx("td",{className:"table-cell text-xs",children:(j=x.created_at)==null?void 0:j.slice(0,19)}),c.jsx("td",{className:"table-cell text-xs",children:x.username||"-"}),c.jsx("td",{className:"table-cell",children:w(x.method)}),c.jsx("td",{className:"table-cell text-xs font-mono max-w-[200px] truncate",children:x.path}),c.jsx("td",{className:"table-cell",children:c.jsx("span",{className:`badge ${x.status_code<400?"bg-green-100 text-green-700":"bg-red-100 text-red-700"}`,children:x.status_code})}),c.jsx("td",{className:"table-cell text-xs",children:x.ip_address||"-"})]},x.id)}),n.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:6,className:"text-center py-8 text-slate-400",children:"감사 로그가 없습니다"})})]})]})}),l==="settings"&&c.jsxs("div",{className:"card space-y-3",children:[c.jsx("h2",{className:"font-semibold text-slate-700 mb-2",children:"시스템 설정"}),a.map(x=>c.jsxs("div",{className:"flex items-center justify-between p-3 border border-slate-100 rounded-lg",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium text-slate-700",children:x.key}),x.description&&c.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:x.description})]}),c.jsx("div",{className:"flex items-center gap-2",children:c.jsx("input",{defaultValue:x.value,onBlur:j=>{j.target.value!==x.value&&y(x.key,j.target.value)},className:"border border-slate-200 rounded-lg px-3 py-1.5 text-sm focus:outline-none w-40 text-right"})})]},x.key)),a.length===0&&c.jsx("p",{className:"text-center py-8 text-slate-400 text-sm",children:"설정이 없습니다"})]}),s&&c.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:c.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-md p-6",children:[c.jsx("h2",{className:"text-lg font-bold text-slate-800 mb-5",children:"사용자 추가"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"사용자명*"}),c.jsx("input",{value:d.username,onChange:x=>f({...d,username:x.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"비밀번호*"}),c.jsx("input",{type:"password",value:d.password,onChange:x=>f({...d,password:x.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"이름"}),c.jsx("input",{value:d.fullName,onChange:x=>f({...d,fullName:x.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"이메일"}),c.jsx("input",{type:"email",value:d.email,onChange:x=>f({...d,email:x.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-medium text-slate-600 mb-1",children:"역할"}),c.jsx("select",{value:d.role,onChange:x=>f({...d,role:x.target.value}),className:"w-full border border-slate-200 rounded-lg px-3 py-2 text-sm",children:["SUPERADMIN","MANAGER","HR_STAFF","VIEWER"].map(x=>c.jsx("option",{value:x,children:x},x))})]})]}),c.jsxs("div",{className:"flex justify-end gap-3 mt-5",children:[c.jsx("button",{className:"btn-secondary",onClick:()=>u(!1),children:"취소"}),c.jsx("button",{className:"btn-primary",onClick:g,children:"저장"})]})]})})]})}const um=8;function mc(e,t){var n,r,a;return((n=e==null?void 0:e.response)==null?void 0:n.status)===403?"권한이 없습니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||t}function Kie(){const[e,t]=O.useState(""),[n,r]=O.useState(null),[a,i]=O.useState("idle"),[l,o]=O.useState(""),[s,u]=O.useState(""),[d,f]=O.useState(""),[h,p]=O.useState(!1),[S,g]=O.useState(null),[v,m]=O.useState(""),[y,b]=O.useState(""),[w,x]=O.useState(""),[j,A]=O.useState(!1),[_,E]=O.useState(!1),[T,R]=O.useState(null),N=()=>Ak().then(q=>{var oe;const Y=((oe=q.data)==null?void 0:oe.data)||{};let W="";try{W=JSON.parse(localStorage.getItem("hrm_user")||"{}").username||""}catch{}t(Y.username||W),typeof Y.otpEnabled=="boolean"?r(Y.otpEnabled):typeof Y.verifyMethod=="string"&&r(Y.verifyMethod==="OTP")}).catch(()=>{});O.useEffect(()=>{N()},[]);const L=async()=>{var q;g(null),p(!0);try{const W=((q=(await _k()).data)==null?void 0:q.data)||{};o(W.qrImage||""),u(W.secret||""),f(""),i("setup")}catch(Y){g({ok:!1,text:mc(Y,"OTP 등록을 시작하지 못했습니다.")})}finally{p(!1)}},k=async()=>{g(null),p(!0);try{await Ek(d),u(""),o(""),f(""),i("done"),r(!0),g({ok:!0,text:"2차 인증이 활성화되었습니다."})}catch(q){g({ok:!1,text:mc(q,"코드가 일치하지 않거나 만료되었습니다.")})}finally{p(!1)}},D=()=>{i("idle"),u(""),o(""),f(""),g(null)},$=async()=>{if(window.confirm("Authenticator 2차 인증을 해제하시겠습니까?")){g(null),p(!0);try{await Tk(),i("idle"),u(""),o(""),r(!1),g({ok:!0,text:"2차 인증이 해제되었습니다."})}catch(q){g({ok:!1,text:mc(q,"OTP 해제에 실패했습니다.")})}finally{p(!1)}}},P=async()=>{if(R(null),!v){R({ok:!1,text:"현재 비밀번호를 입력하세요."});return}if(y.length<um){R({ok:!1,text:`새 비밀번호는 최소 ${um}자 이상이어야 합니다.`});return}if(y!==w){R({ok:!1,text:"새 비밀번호가 일치하지 않습니다."});return}if(y===v){R({ok:!1,text:"새 비밀번호는 현재 비밀번호와 달라야 합니다."});return}E(!0);try{await Nk(v,y),m(""),b(""),x(""),R({ok:!0,text:"비밀번호가 변경되었습니다."})}catch(q){R({ok:!1,text:mc(q,"비밀번호 변경에 실패했습니다.")})}finally{E(!1)}},B="w-full border border-slate-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",H=B+" tracking-[0.4em] text-center text-lg",G=({m:q})=>q?c.jsxs("div",{className:`flex items-center gap-2 text-sm rounded-lg px-3 py-2 mb-3 border ${q.ok?"bg-green-50 border-green-200 text-green-700":"bg-red-50 border-red-200 text-red-600"}`,children:[q.ok?c.jsx(Nie,{size:16}):c.jsx(qv,{size:16}),q.text]}):null;return c.jsxs("div",{className:"max-w-2xl space-y-6",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"마이페이지"}),c.jsx("p",{className:"text-sm text-slate-500 mt-1",children:e&&c.jsxs(c.Fragment,{children:["계정: ",c.jsx("span",{className:"text-slate-700 font-medium",children:e})]})})]}),c.jsxs("section",{className:"card",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(FC,{size:18,className:"text-blue-600"}),c.jsx("h2",{className:"font-semibold text-slate-800",children:"2차 인증 — Authenticator(OTP)"})]}),c.jsxs("p",{className:"text-xs text-slate-500 mb-4",children:["Google·Microsoft Authenticator 앱으로 6자리 코드를 사용하는 2차 인증을 설정합니다.",n!==null&&c.jsxs("span",{className:"ml-2",children:["현재 상태:"," ",c.jsx("span",{className:n?"text-green-600 font-medium":"text-slate-500",children:n?"OTP 사용 중":"미설정"})]})]}),c.jsx(G,{m:S}),a==="idle"&&c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsxs("button",{onClick:L,disabled:h,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 disabled:opacity-50",children:[c.jsx(kie,{size:16})," ",h?"발급 중...":n?"OTP 재설정 시작":"OTP 등록 시작"]}),n&&c.jsx("button",{onClick:$,disabled:h,className:"px-3 py-2 rounded-lg border border-red-300 text-red-600 text-sm hover:bg-red-50 disabled:opacity-50",children:"Authenticator 해제"})]}),a==="setup"&&c.jsxs("div",{children:[c.jsxs("ol",{className:"list-decimal list-inside text-sm text-slate-600 leading-7 mb-3",children:[c.jsx("li",{children:"Authenticator 앱에서 아래 QR을 스캔하세요."}),c.jsx("li",{children:"스캔이 안 되면 수동 키를 직접 입력하세요."}),c.jsx("li",{children:"앱에 표시된 6자리 코드를 입력해 확인하세요."})]}),l&&c.jsx("div",{className:"flex justify-center mb-3",children:c.jsx("img",{src:l,alt:"OTP QR",width:200,height:200,style:{background:"#fff",padding:8,borderRadius:8,border:"1px solid #e2e8f0"}})}),s&&c.jsxs("div",{className:"mb-4",children:[c.jsx("div",{className:"text-[11px] text-slate-400 mb-1",children:"수동 입력 키"}),c.jsx("code",{className:"block text-xs text-blue-700 bg-slate-50 border border-slate-200 rounded-md px-2 py-1.5 break-all select-all",children:s})]}),c.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"앱에 표시된 6자리 코드"}),c.jsx("input",{value:d,onChange:q=>f(q.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,placeholder:"000000",className:H+" mb-3"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:k,disabled:h||d.length!==6,className:"px-4 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 disabled:opacity-50",children:h?"확인 중...":"코드 확인 · 활성화"}),c.jsx("button",{onClick:D,disabled:h,className:"px-4 py-2 rounded-lg border border-slate-200 text-sm text-slate-600 hover:bg-slate-50",children:"취소"})]})]}),a==="done"&&c.jsx("div",{className:"flex flex-wrap gap-2",children:c.jsx("button",{onClick:$,disabled:h,className:"px-3 py-2 rounded-lg border border-red-300 text-red-600 text-sm hover:bg-red-50 disabled:opacity-50",children:"Authenticator 해제"})})]}),c.jsxs("section",{className:"card",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[c.jsx(Die,{size:18,className:"text-blue-600"}),c.jsx("h2",{className:"font-semibold text-slate-800",children:"비밀번호 변경"})]}),c.jsx(G,{m:T}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"현재 비밀번호"}),c.jsx("input",{type:j?"text":"password",value:v,autoComplete:"current-password",onChange:q=>m(q.target.value),className:B})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-xs text-slate-500 mb-1",children:["새 비밀번호 (최소 ",um,"자)"]}),c.jsx("input",{type:j?"text":"password",value:y,autoComplete:"new-password",onChange:q=>b(q.target.value),className:B})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"새 비밀번호 확인"}),c.jsx("input",{type:j?"text":"password",value:w,autoComplete:"new-password",onChange:q=>x(q.target.value),className:B})]}),c.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-slate-500 cursor-pointer select-none",children:[c.jsx("button",{type:"button",onClick:()=>A(!j),className:"text-slate-400 hover:text-blue-600",children:j?c.jsx(Rie,{size:15}):c.jsx(Pie,{size:15})}),"비밀번호 표시"]}),c.jsx("button",{onClick:P,disabled:_,className:"px-4 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 disabled:opacity-50",children:_?"변경 중...":"비밀번호 변경"})]})]})]})}const VC="https://itsm.zioinfo.co.kr",cm=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,VC);function Xie(){const[e,t]=O.useState(null),[n,r]=O.useState(!0),[a,i]=O.useState(""),[l,o]=O.useState(!1),s=()=>{r(!0),i(""),fetch(`${VC}/api/app/public-latest`).then(d=>d.json()).then(d=>t({...d,qr_url:cm(d.qr_url),landing_url:cm(d.landing_url),download_url:cm(d.download_url)})).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),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(sm,{className:"text-blue-600",size:24}),c.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"GUARDiA 통합 메신저 앱 설치"})]}),c.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-slate-100 text-slate-600 text-sm hover:bg-slate-200 transition-colors",children:[c.jsx(Lie,{size:15})," 새로고침"]})]}),c.jsxs("p",{className:"text-sm text-slate-500",children:["QR 코드를 스캔하면 ",c.jsx("span",{className:"text-blue-600 font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 없이 바로 설치할 수 있으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&c.jsx("div",{className:"text-slate-400 text-sm",children:"불러오는 중…"}),a&&c.jsx("div",{className:"card text-rose-600 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&c.jsxs("div",{className:"card text-center text-slate-400 py-10",children:[c.jsx(sm,{size:36,className:"mx-auto mb-3 text-slate-300"}),"아직 등록된 앱 버전이 없습니다.",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:"card grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[c.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-3 flex items-center justify-center",children:e.qr_url?c.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"}):c.jsx(sm,{size:64,className:"text-slate-300"})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-lg font-bold text-slate-800",children:e.app_name||"GUARDiA Messenger"}),c.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-blue-600 text-white text-xs font-semibold",children:["v",e.version]})]}),c.jsxs("div",{className:"text-xs text-slate-500 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-400 uppercase tracking-wider mb-1",children:"릴리즈 노트"}),c.jsx("div",{className:"text-sm text-slate-600 whitespace-pre-line bg-slate-50 border border-slate-200 rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&c.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 transition-colors",children:[c.jsx($ie,{size:15})," 설치 페이지 열기"]}),e.download_url&&c.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-slate-100 text-slate-700 text-sm font-medium hover:bg-slate-200 transition-colors",children:[c.jsx(Mie,{size:15})," APK 직접 다운로드"]}),c.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-slate-100 text-slate-700 text-sm font-medium hover:bg-slate-200 transition-colors",children:[l?c.jsx(Tie,{size:15,className:"text-green-600"}):c.jsx(Cie,{size:15}),l?"복사됨":"다운로드 링크 복사"]})]})]})]})]})}const p0={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function ur({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 uu({children:e,style:t}){return c.jsx("div",{style:{...p0,padding:18,...t},children:e})}function Q({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 fe({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 de({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 Ca({children:e}){return c.jsx(uu,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function _i({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return c.jsx("div",{style:{...p0,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:l=>l.currentTarget.style.background="var(--uiws-row-hover)",onMouseLeave:l=>l.currentTarget.style.background="transparent",children:e.map(l=>c.jsx("td",{style:{padding:"11px 14px",textAlign:l.align??"left"},children:l.render?l.render(i):String(i[l.key]??"")},l.key))},n(i)))})]})})}function KC({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(Q,{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(Q,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function Ei({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 Bn({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:{...p0,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 Dn({label:e="불러오는 중..."}){return c.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const fO={ONGOING:"진행중",DONE:"종료"};function Wie(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(0),[l,o]=O.useState([]),[s,u]=O.useState(""),[d,f]=O.useState(""),[h,p]=O.useState(!1),[S,g]=O.useState(!1),[v,m]=O.useState(null),y=async()=>{p(!0);try{const j=(await Yk({page:n,size:20,progressCd:s||void 0})).data.data;t(j.content??[]),i(j.totalPages??0);const A=await Fk({});o(A.data.data??[])}finally{p(!1)}};O.useEffect(()=>{y()},[n,s]);const b=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:x=>fO[x.progressCd]??x.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],w=async x=>{const j=await Kk(x.worklogId);m(j.data.data)};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:c.jsx(Q,{onClick:()=>g(!0),children:"+ 업무일지 작성"})}),c.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:l.map(x=>c.jsxs("div",{onClick:()=>{u(s===x.progressCd?"":x.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${s===x.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:x.progressNm}),c.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:x.count})]},x.progressCd))}),c.jsxs(Ca,{children:[c.jsx(fe,{value:d,onChange:f,placeholder:"제목 검색",style:{minWidth:220}}),c.jsx(Q,{variant:"ghost",onClick:()=>{r(0),y()},children:"검색"}),s&&c.jsxs(Q,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",fO[s]??s]})]}),h?c.jsx(Dn,{}):c.jsxs(c.Fragment,{children:[c.jsx(_i,{columns:b,rows:e,rowKey:x=>x.worklogId,onRowClick:w,empty:"업무일지가 없습니다."}),c.jsx(KC,{page:n,totalPages:a,onChange:r})]}),S&&c.jsx(Zie,{onClose:()=>g(!1),onSaved:()=>{g(!1),y()}}),v&&c.jsx(Qie,{detail:v,onClose:()=>m(null),onChanged:()=>{m(null),y()}})]})}function Zie({onClose:e,onSaved:t}){const[n,r]=O.useState(""),[a,i]=O.useState(()=>{try{return JSON.parse(localStorage.getItem("hrm_user")||"{}").username||"admin"}catch{return"admin"}}),[l,o]=O.useState(new Date().toISOString().slice(0,10)),[s,u]=O.useState("NORMAL"),[d,f]=O.useState(""),h=async()=>{var p,S;f("");try{await Vk({title:n,writerId:a,workDate:l,workStatusCd:s,progressCd:"ONGOING",details:[]}),t()}catch(g){f(((S=(p=g==null?void 0:g.response)==null?void 0:p.data)==null?void 0:S.message)||"저장 실패")}};return c.jsxs(Bn,{title:"업무일지 작성",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(Q,{onClick:h,children:"저장"})]}),children:[c.jsx(de,{label:"제목",children:c.jsx(fe,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(de,{label:"작성자 ID",children:c.jsx(fe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(de,{label:"근무일자",children:c.jsx(fe,{type:"date",value:l,onChange:o,style:{width:"100%"}})}),c.jsx(de,{label:"근무상태 코드",children:c.jsx(fe,{value:s,onChange:u,style:{width:"100%"}})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:d})]})}function Qie({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=O.useState(""),[i,l]=O.useState(""),o=async()=>{await Xk(e.worklogId),n()},s=async()=>{var d,f;l("");try{await Wk(e.worklogId,r),a(""),n()}catch(h){l(((f=(d=h==null?void 0:h.response)==null?void 0:d.data)==null?void 0:f.message)||"댓글 등록 실패")}};return c.jsxs(Bn,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"danger",onClick:o,children:"삭제"}),c.jsx(Q,{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(fe,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),c.jsx(Q,{onClick:s,children:"등록"})]}),i&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const Jie=["일","월","화","수","목","금","토"];function ele(){const[e,t]=O.useState(new Date),[n,r]=O.useState("PERSONAL"),[a,i]=O.useState([]),[l,o]=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()=>{o(!0);try{const w=await Uk({type:n,view:"month",baseDate:`${h}-01`});i(w.data.data??[])}finally{o(!1)}};O.useEffect(()=>{p()},[h,n]);const g=new Date(e.getFullYear(),e.getMonth(),1).getDay(),v=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),m=[...Array(g).fill(null),...Array.from({length:v},(w,x)=>x+1)],y=w=>{const x=`${h}-${String(w).padStart(2,"0")}`;return a.filter(j=>(j.startDt??"").slice(0,10)<=x&&x<=(j.endDt??"").slice(0,10))},b=w=>t(new Date(e.getFullYear(),e.getMonth()+w,1));return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:c.jsx(Q,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),c.jsxs(uu,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[c.jsx(Q,{variant:"ghost",onClick:()=>b(-1),children:"‹ 이전"}),c.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),c.jsx(Q,{variant:"ghost",onClick:()=>b(1),children:"다음 ›"}),c.jsx("div",{style:{flex:1}}),c.jsx(Q,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),c.jsx(Q,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),l?c.jsx(Dn,{}):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:[Jie.map((w,x)=>c.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:x===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:w},w)),m.map((w,x)=>c.jsxs("div",{onClick:()=>w&&u(`${h}-${String(w).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:w?"pointer":"default"},children:[w&&c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:w}),w&&y(w).slice(0,3).map(j=>c.jsx("div",{onClick:A=>{A.stopPropagation(),qk(j.scheduleId).then(_=>f(_.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))]},x))]})}),s&&c.jsx(tle,{date:s,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),d&&c.jsx(nle,{detail:d,onClose:()=>f(null),onDeleted:()=>{f(null),p()}})]})}function tle({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=O.useState(""),[l,o]=O.useState(`${e}T09:00:00`),[s,u]=O.useState(`${e}T18:00:00`),[d,f]=O.useState(""),[h,p]=O.useState(""),S=async()=>{var g,v;p("");try{await Hk({scheType:t,title:a,startDt:l,endDt:s,content:d,attachmentIds:[]}),r()}catch(m){p(((v=(g=m==null?void 0:m.response)==null?void 0:g.data)==null?void 0:v.message)||"저장 실패")}};return c.jsxs(Bn,{title:"일정 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(Q,{onClick:S,children:"저장"})]}),children:[c.jsx(de,{label:"제목",children:c.jsx(fe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(de,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:c.jsx(fe,{value:l,onChange:o,style:{width:"100%"}})}),c.jsx(de,{label:"종료",children:c.jsx(fe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(de,{label:"내용",children:c.jsx(fe,{value:d,onChange:f,style:{width:"100%"}})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function nle({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await Gk(e.scheduleId),n()};return c.jsxs(Bn,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"danger",onClick:r,children:"삭제"}),c.jsx(Q,{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 rle(){const[e,t]=O.useState("received"),[n,r]=O.useState([]),[a,i]=O.useState(0),[l,o]=O.useState(0),[s,u]=O.useState(""),[d,f]=O.useState(!1),[h,p]=O.useState(!1),[S,g]=O.useState(null),v=async()=>{f(!0);try{const j=(await(e==="received"?zk:Lk)({page:a,size:20,titleKeyword:s||void 0})).data.data;r(j.content??[]),o(j.totalPages??0)}finally{f(!1)}};O.useEffect(()=>{v()},[e,a]);const m=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:w=>c.jsx(Ei,{yn:w.readYn})}],y=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:w=>`${w.openCount}/${w.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],b=async w=>{const x=e==="received"?await Ik(w.messageId):await Bk(w.messageId);g({...x.data.data,_tab:e}),e==="received"&&v()};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:c.jsx(Q,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),c.jsxs(Ca,{children:[c.jsx(Q,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),c.jsx(Q,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),c.jsx("div",{style:{flex:1}}),c.jsx(fe,{value:s,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),c.jsx(Q,{variant:"ghost",onClick:()=>{i(0),v()},children:"검색"})]}),d?c.jsx(Dn,{}):c.jsxs(c.Fragment,{children:[c.jsx(_i,{columns:e==="received"?m:y,rows:n,rowKey:w=>w.messageId,onRowClick:b,empty:"쪽지가 없습니다."}),c.jsx(KC,{page:a,totalPages:l,onChange:i})]}),h&&c.jsx(ale,{onClose:()=>p(!1),onSent:()=>{p(!1),v()}}),S&&c.jsx(ile,{detail:S,onClose:()=>g(null)})]})}function ale({onClose:e,onSent:t}){const[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState(""),[s,u]=O.useState(""),d=async()=>{var f,h;u("");try{await kk({title:a,content:l,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(Bn,{title:"쪽지 보내기",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(Q,{onClick:d,children:"보내기"})]}),children:[c.jsx(de,{label:"받는사람 ID",children:c.jsx(fe,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(de,{label:"제목",children:c.jsx(fe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(de,{label:"내용",children:c.jsx(fe,{value:l,onChange:o,style:{width:"100%"}})}),s&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:s})]})}function ile({detail:e,onClose:t}){return c.jsxs(Bn,{title:e.title,onClose:t,footer:c.jsx(Q,{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(Ei,{yn:n.readYn})]},r))]})]})}function lle(){const[e,t]=O.useState("personal"),[n,r]=O.useState(null),[a,i]=O.useState(!1),l=new Date().toISOString().slice(0,10),o=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[s,u]=O.useState(o),[d,f]=O.useState(l),h=async()=>{i(!0);try{const g=await(e==="personal"?Zk:Qk)({fromDate:s,toDate:d});r(g.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(ur,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),c.jsxs(Ca,{children:[c.jsx(Q,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),c.jsx(Q,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),c.jsx("div",{style:{flex:1}}),c.jsx(fe,{type:"date",value:s,onChange:u}),c.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),c.jsx(fe,{type:"date",value:d,onChange:f}),c.jsx(Q,{variant:"ghost",onClick:h,children:"조회"})]}),a?c.jsx(Dn,{}):!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(S=>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:S.label},S.key))})}),c.jsx("tbody",{children:n.rows.map((S,g)=>c.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(v=>c.jsx("td",{style:{padding:"10px 14px"},children:String(S[v.key]??"")},v.key))},g))})]})})]})}function Gv(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 ole(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,o]=O.useState(""),[s,u]=O.useState(new Set),[d,f]=O.useState(null),[h,p]=O.useState(!1),S=async(y=n)=>{var b;i(!0),o("");try{const w=await Jk(y||void 0);t(((b=w.data.data)==null?void 0:b.content)??[]),u(new Set)}catch(w){o(Gv(w))}finally{i(!1)}};O.useEffect(()=>{S("")},[]);const g=y=>u(b=>{const w=new Set(b);return w.has(y)?w.delete(y):w.add(y),w}),v=async()=>{if(s.size!==0&&window.confirm(`선택한 권한 ${s.size}건을 삭제하시겠습니까?`))try{await n4([...s]),await S()}catch(y){o(Gv(y))}},m=[{key:"sel",header:"",width:44,align:"center",render:y=>c.jsx("input",{type:"checkbox",checked:s.has(y.roleId),onClick:b=>b.stopPropagation(),onChange:()=>g(y.roleId)})},{key:"roleId",header:"권한ID",width:180},{key:"roleNm",header:"권한명"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,align:"center",render:y=>c.jsx(Ei,{yn:y.useYn,yes:"사용",no:"미사용"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"권한 관리",subtitle:"시스템관리(권한) · 역할(Role) 등록/수정/삭제 — RBAC",actions:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"danger",onClick:v,disabled:s.size===0,children:"선택 삭제"}),c.jsx(Q,{onClick:()=>{f(null),p(!0)},children:"+ 권한 등록"})]})}),l&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),c.jsxs(Ca,{children:[c.jsx(fe,{value:n,onChange:r,placeholder:"권한ID/권한명 검색",style:{minWidth:240}}),c.jsx(Q,{variant:"ghost",onClick:()=>S(),children:"검색"})]}),a?c.jsx(Dn,{}):c.jsx(_i,{columns:m,rows:e,rowKey:y=>y.roleId,onRowClick:y=>{f(y),p(!0)},empty:"등록된 권한이 없습니다."}),h&&c.jsx(sle,{role:d,onClose:()=>p(!1),onSaved:()=>{p(!1),S()}})]})}function sle({role:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.roleId)??""),[l,o]=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(""),S=async()=>{if(p(""),!l.trim()){p("권한명은 필수입니다.");return}if(!r&&!a.trim()){p("권한ID는 필수입니다.");return}try{const g={roleId:a,roleNm:l,roleDesc:s,useYn:d};r?await t4(a,g):await e4(g),n()}catch(g){p(Gv(g))}};return c.jsxs(Bn,{title:r?"권한 수정":"권한 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(Q,{onClick:S,children:"저장"})]}),children:[c.jsx(de,{label:"권한ID",children:c.jsx(fe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(de,{label:"권한명",children:c.jsx(fe,{value:l,onChange:o,style:{width:"100%"}})}),c.jsx(de,{label:"설명",children:c.jsx(fe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(de,{label:"사용 여부",children:c.jsxs("select",{value:d,onChange:g=>f(g.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 fm(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 ule(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState([]),[l,o]=O.useState(!1),[s,u]=O.useState(!1),[d,f]=O.useState(!1),[h,p]=O.useState(""),[S,g]=O.useState(""),v=async()=>{var w;o(!0),p("");try{const j=((w=(await b4()).data.data)==null?void 0:w.content)??[];t(j),!n&&j.length>0&&r(j[0].roleId)}catch(x){p(fm(x))}finally{o(!1)}};O.useEffect(()=>{v()},[]);const m=async(w=n)=>{if(!w){i([]);return}u(!0),p(""),g("");try{const x=await x4(w);i(x.data.data??[])}catch(x){p(fm(x))}finally{u(!1)}};O.useEffect(()=>{m()},[n]);const y=(w,x)=>{i(j=>j.map(A=>{if(A.menuId!==w)return A;const _={...A,[x]:A[x]==="Y"?"N":"Y"};return x==="writeYn"&&_.writeYn==="Y"&&(_.readYn="Y"),x==="readYn"&&_.readYn==="N"&&(_.writeYn="N"),_}))},b=async()=>{if(n){f(!0),p(""),g("");try{await S4(n,a),g("저장되었습니다.")}catch(w){p(fm(w))}finally{f(!1)}}};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"역할-메뉴 권한",subtitle:"시스템관리(권한) · 권한별 메뉴 읽기/쓰기 매핑",actions:c.jsx(Q,{onClick:b,disabled:d||!n,children:d?"저장 중...":"권한 저장"})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:h}),S&&c.jsx("div",{style:{color:"var(--uiws-success)",fontSize:13,marginBottom:12},children:S}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"300px 1fr",gap:16,alignItems:"start"},children:[c.jsxs(uu,{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:"권한 목록"}),l?c.jsx(Dn,{}):c.jsxs("div",{children:[e.length===0&&c.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"권한이 없습니다."}),e.map(w=>c.jsxs("div",{onClick:()=>r(w.roleId),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,borderLeft:`3px solid ${n===w.roleId?"var(--uiws-primary)":"transparent"}`,background:n===w.roleId?"var(--uiws-primary-soft)":"transparent"},children:[c.jsx("div",{style:{fontWeight:600,color:n===w.roleId?"var(--uiws-primary)":"var(--uiws-text)"},children:w.roleNm}),c.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:w.roleId})]},w.roleId))]})]}),c.jsxs(uu,{style:{padding:0,overflow:"hidden"},children:[c.jsxs("div",{style:{padding:"12px 16px",fontSize:14,fontWeight:600,color:"var(--uiws-text)",borderBottom:"1px solid var(--uiws-border)"},children:["메뉴 권한 ",n&&c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontWeight:400,fontSize:13},children:["(",n,")"]})]}),s?c.jsx(Dn,{}):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.jsx("th",{style:{textAlign:"center",padding:"11px 14px",width:90,color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:"읽기"}),c.jsx("th",{style:{textAlign:"center",padding:"11px 14px",width:90,color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:"쓰기"})]})}),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:n?"매핑 가능한 메뉴가 없습니다.":"권한을 선택하세요."})}):a.map(w=>c.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[c.jsxs("td",{style:{padding:"10px 14px"},children:[w.menuNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",w.menuId,")"]})]}),c.jsx("td",{style:{padding:"10px 14px",textAlign:"center"},children:c.jsx("input",{type:"checkbox",checked:w.readYn==="Y",onChange:()=>y(w.menuId,"readYn")})}),c.jsx("td",{style:{padding:"10px 14px",textAlign:"center"},children:c.jsx("input",{type:"checkbox",checked:w.writeYn==="Y",onChange:()=>y(w.menuId,"writeYn")})})]},w.menuId))})]})]})]})]})}function el(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)||"요청을 처리하지 못했습니다."}function cle(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState({grpNm:"",useYn:"Y"}),[l,o]=O.useState([]),[s,u]=O.useState(""),[d,f]=O.useState(!1),[h,p]=O.useState(!1),[S,g]=O.useState(""),[v,m]=O.useState({open:!1,edit:null}),[y,b]=O.useState({open:!1,edit:null}),w=async(T="")=>{var R;f(!0),g("");try{const L=((R=(await r4(T||void 0)).data.data)==null?void 0:R.content)??[];t(L),!n&&L.length>0&&r(L[0].grpCd)}catch(N){g(el(N))}finally{f(!1)}};O.useEffect(()=>{w("")},[]);const x=async(T=n)=>{if(!T){o([]);return}p(!0);try{const N=(await a4(T)).data.data;i({grpNm:(N==null?void 0:N.grpNm)??"",useYn:(N==null?void 0:N.useYn)??"Y"}),o(((N==null?void 0:N.values)??[]).map(L=>({...L,grpCd:T})))}catch(R){g(el(R))}finally{p(!1)}};O.useEffect(()=>{x()},[n]);const j=async T=>{if(window.confirm(`코드그룹 '${T}' 와 하위 코드를 삭제하시겠습니까?`))try{await l4(T),n===T&&(r(""),o([])),await w()}catch(R){g(el(R))}},A=async(T,R)=>{const N=R?l.map(L=>L.codeVal===R?T:L):[...l,T];await my(n,{grpCd:n,grpNm:a.grpNm,useYn:a.useYn,values:N}),await x()},_=async T=>{if(window.confirm(`코드 '${T.codeNm}' 를 삭제하시겠습니까?`))try{const R=l.filter(N=>N.codeVal!==T.codeVal);await my(n,{grpCd:n,grpNm:a.grpNm,useYn:a.useYn,values:R}),await x()}catch(R){g(el(R))}},E=[{key:"codeVal",header:"코드값",width:150},{key:"codeNm",header:"코드명"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:T=>c.jsx(Ei,{yn:T.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:T=>c.jsx(Q,{variant:"ghost",onClick:()=>_(T),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"공통코드 관리",subtitle:"시스템관리(권한) · 코드그룹/코드값 CRUD",actions:c.jsx(Q,{onClick:()=>m({open:!0,edit:null}),children:"+ 코드그룹 등록"})}),S&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:S}),c.jsxs(Ca,{children:[c.jsx(fe,{value:s,onChange:u,placeholder:"코드그룹 검색",style:{minWidth:220}}),c.jsx(Q,{variant:"ghost",onClick:()=>w(s),children:"검색"})]}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"300px 1fr",gap:16,alignItems:"start"},children:[c.jsxs(uu,{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:"코드그룹"}),d?c.jsx(Dn,{}):c.jsxs("div",{children:[e.length===0&&c.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"코드그룹이 없습니다."}),e.map(T=>c.jsxs("div",{onClick:()=>r(T.grpCd),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",borderLeft:`3px solid ${n===T.grpCd?"var(--uiws-primary)":"transparent"}`,background:n===T.grpCd?"var(--uiws-primary-soft)":"transparent"},children:[c.jsxs("div",{children:[c.jsx("div",{style:{fontWeight:600,color:n===T.grpCd?"var(--uiws-primary)":"var(--uiws-text)"},children:T.grpNm}),c.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:T.grpCd})]}),c.jsxs("div",{style:{display:"flex",gap:6},onClick:R=>R.stopPropagation(),children:[c.jsx(Q,{variant:"ghost",onClick:()=>m({open:!0,edit:T}),children:"수정"}),c.jsx(Q,{variant:"ghost",onClick:()=>j(T.grpCd),children:"삭제"})]})]},T.grpCd))]})]}),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:["코드값 ",n&&c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontWeight:400},children:["(",n,")"]})]}),c.jsx(Q,{onClick:()=>b({open:!0,edit:null}),disabled:!n,children:"+ 코드값 등록"})]}),h?c.jsx(Dn,{}):c.jsx(_i,{columns:E,rows:l,rowKey:T=>`${T.grpCd}:${T.codeVal}`,onRowClick:T=>b({open:!0,edit:T}),empty:n?"코드값이 없습니다.":"코드그룹을 선택하세요."})]})]}),v.open&&c.jsx(fle,{grp:v.edit,onClose:()=>m({open:!1,edit:null}),onSaved:()=>{m({open:!1,edit:null}),w(s)}}),y.open&&n&&c.jsx(dle,{grpCd:n,code:y.edit,existing:l,onSave:A,onClose:()=>b({open:!1,edit:null}),onSaved:()=>b({open:!1,edit:null})})]})}function XC({value:e,onChange:t}){return c.jsxs("select",{value:e,onChange:n=>t(n.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:"미사용"})]})}function fle({grp:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.grpCd)??""),[l,o]=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(!l.trim()){f("그룹명은 필수입니다.");return}try{const p={grpCd:a,grpNm:l,useYn:s,values:[]};r?await my(a,{...p,values:void 0}):await i4(p),n()}catch(p){f(el(p))}};return c.jsxs(Bn,{title:r?"코드그룹 수정":"코드그룹 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(Q,{onClick:h,children:"저장"})]}),children:[c.jsx(de,{label:"그룹코드",children:c.jsx(fe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(de,{label:"그룹명",children:c.jsx(fe,{value:l,onChange:o,style:{width:"100%"}})}),c.jsx(de,{label:"사용 여부",children:c.jsx(XC,{value:s,onChange:u})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:d})]})}function dle({grpCd:e,code:t,existing:n,onSave:r,onClose:a,onSaved:i}){const l=!!t,[o,s]=O.useState((t==null?void 0:t.codeVal)??""),[u,d]=O.useState((t==null?void 0:t.codeNm)??""),[f,h]=O.useState(String((t==null?void 0:t.sortOrd)??0)),[p,S]=O.useState((t==null?void 0:t.useYn)??"Y"),[g,v]=O.useState(""),m=async()=>{if(v(""),!l&&!o.trim()){v("코드값은 필수입니다.");return}if(!u.trim()){v("코드명은 필수입니다.");return}if(!l&&n.some(y=>y.codeVal===o.trim())){v("이미 존재하는 코드값입니다.");return}try{const y={grpCd:e,codeVal:o,codeNm:u,sortOrd:Number(f)||0,useYn:p};await r(y,l?t.codeVal:null),i()}catch(y){v(el(y))}};return c.jsxs(Bn,{title:l?"코드값 수정":"코드값 등록",onClose:a,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:a,children:"취소"}),c.jsx(Q,{onClick:m,children:"저장"})]}),children:[c.jsx(de,{label:"그룹코드",children:c.jsx(fe,{value:e,onChange:()=>{},style:{width:"100%",opacity:.6}})}),c.jsx(de,{label:"코드값",children:c.jsx(fe,{value:o,onChange:s,style:{width:"100%",opacity:l?.6:1}})}),c.jsx(de,{label:"코드명",children:c.jsx(fe,{value:u,onChange:d,style:{width:"100%"}})}),c.jsx(de,{label:"정렬순서",children:c.jsx(fe,{type:"number",value:f,onChange:h,style:{width:"100%"}})}),c.jsx(de,{label:"사용 여부",children:c.jsx(XC,{value:p,onChange:S})}),g&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:g})]})}function Yv(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 hle(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,o]=O.useState(""),[s,u]=O.useState({open:!1,edit:null}),d=async()=>{var g;i(!0),o("");try{const v=await o4();t(((g=v.data.data)==null?void 0:g.content)??[])}catch(v){o(Yv(v))}finally{i(!1)}};O.useEffect(()=>{d()},[]);const f=O.useMemo(()=>{const g=n.trim().toLowerCase();return g?e.filter(v=>v.menuNm.toLowerCase().includes(g)||v.menuId.toLowerCase().includes(g)):e},[e,n]),h=O.useMemo(()=>{const g=f,v=g.filter(b=>!b.parentMenuId).sort((b,w)=>(b.sortOrd??0)-(w.sortOrd??0)),m=[];for(const b of v)m.push({menu:b,depth:0}),g.filter(w=>w.parentMenuId===b.menuId).sort((w,x)=>(w.sortOrd??0)-(x.sortOrd??0)).forEach(w=>m.push({menu:w,depth:1}));const y=new Set(m.map(b=>b.menu.menuId));return g.filter(b=>!y.has(b.menuId)).forEach(b=>m.push({menu:b,depth:0})),m.map(b=>({...b.menu,_depth:b.depth}))},[f]),p=async g=>{if(window.confirm(`메뉴 '${g.menuNm}' 를 삭제하시겠습니까?`))try{await c4(g.menuId),await d()}catch(v){o(Yv(v))}},S=[{key:"menuNm",header:"메뉴명",render:g=>c.jsxs("span",{style:{paddingLeft:g._depth*22},children:[g._depth>0&&c.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),g.menuNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",g.menuId,")"]})]})},{key:"menuUrl",header:"URL",width:220,render:g=>g.menuUrl??"-"},{key:"programId",header:"프로그램",width:140,render:g=>g.programId??"-"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:g=>c.jsx(Ei,{yn:g.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:g=>c.jsx(Q,{variant:"ghost",onClick:()=>p(g),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"메뉴 관리",subtitle:"시스템관리(권한) · 메뉴 트리(2-depth) 등록/수정/삭제",actions:c.jsx(Q,{onClick:()=>u({open:!0,edit:null}),children:"+ 메뉴 등록"})}),l&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),c.jsxs(Ca,{children:[c.jsx(fe,{value:n,onChange:r,placeholder:"메뉴명 검색",style:{minWidth:220}}),c.jsx(Q,{variant:"ghost",onClick:()=>{},children:"검색"})]}),a?c.jsx(Dn,{}):c.jsx(_i,{columns:S,rows:h,rowKey:g=>g.menuId,onRowClick:g=>u({open:!0,edit:g}),empty:"등록된 메뉴가 없습니다."}),s.open&&c.jsx(ple,{menu:s.edit,parents:e.filter(g=>!g.parentMenuId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),d()}})]})}function ple({menu:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,l]=O.useState((e==null?void 0:e.menuId)??""),[o,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,S]=O.useState((e==null?void 0:e.menuUrl)??""),[g,v]=O.useState(String((e==null?void 0:e.sortOrd)??0)),[m,y]=O.useState((e==null?void 0:e.useYn)??"Y"),[b,w]=O.useState(""),x=async()=>{if(w(""),!a&&!i.trim()){w("메뉴ID는 필수입니다.");return}if(!o.trim()){w("메뉴명은 필수입니다.");return}try{const A={menuId:i,menuNm:o,parentMenuId:u||null,programId:f||null,menuUrl:p||null,sortOrd:Number(g)||0,useYn:m};a?await u4(i,A):await s4(A),r()}catch(A){w(Yv(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(Bn,{title:a?"메뉴 수정":"메뉴 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(Q,{onClick:x,children:"저장"})]}),children:[c.jsx(de,{label:"메뉴ID",children:c.jsx(fe,{value:i,onChange:l,style:{width:"100%",opacity:a?.6:1}})}),c.jsx(de,{label:"메뉴명",children:c.jsx(fe,{value:o,onChange:s,style:{width:"100%"}})}),c.jsx(de,{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(de,{label:"프로그램ID",children:c.jsx(fe,{value:f,onChange:h,style:{width:"100%"}})}),c.jsx(de,{label:"메뉴 URL",children:c.jsx(fe,{value:p,onChange:S,style:{width:"100%"}})}),c.jsx(de,{label:"정렬순서",children:c.jsx(fe,{type:"number",value:g,onChange:v,style:{width:"100%"}})}),c.jsx(de,{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:"미사용"})]})}),b&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:b})]})}function Fv(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 mle(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,o]=O.useState(""),[s,u]=O.useState({open:!1,edit:null}),d=async(S="")=>{var g;i(!0),o("");try{const v=await f4(S||void 0);t(((g=v.data.data)==null?void 0:g.content)??[])}catch(v){o(Fv(v))}finally{i(!1)}};O.useEffect(()=>{d("")},[]);const f=O.useMemo(()=>{const S=e.filter(m=>!m.parentDeptId).sort((m,y)=>(m.sortOrd??0)-(y.sortOrd??0)),g=[];for(const m of S)g.push({...m,_depth:0}),e.filter(y=>y.parentDeptId===m.deptId).sort((y,b)=>(y.sortOrd??0)-(b.sortOrd??0)).forEach(y=>g.push({...y,_depth:1}));const v=new Set(g.map(m=>m.deptId));return e.filter(m=>!v.has(m.deptId)).forEach(m=>g.push({...m,_depth:0})),g},[e]),h=async S=>{if(window.confirm(`부서 '${S.deptNm}' 를 삭제하시겠습니까?`))try{await p4(S.deptId),await d()}catch(g){o(Fv(g))}},p=[{key:"deptNm",header:"부서명",render:S=>c.jsxs("span",{style:{paddingLeft:S._depth*22},children:[S._depth>0&&c.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),S.deptNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",S.deptId,")"]})]})},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:S=>c.jsx(Ei,{yn:S.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:S=>c.jsx(Q,{variant:"ghost",onClick:()=>h(S),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"부서 관리",subtitle:"시스템관리(권한) · 부서 트리(2-depth) 등록/수정/삭제",actions:c.jsx(Q,{onClick:()=>u({open:!0,edit:null}),children:"+ 부서 등록"})}),l&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),c.jsxs(Ca,{children:[c.jsx(fe,{value:n,onChange:r,placeholder:"부서명 검색",style:{minWidth:220}}),c.jsx(Q,{variant:"ghost",onClick:()=>d(n),children:"검색"})]}),a?c.jsx(Dn,{}):c.jsx(_i,{columns:p,rows:f,rowKey:S=>S.deptId,onRowClick:S=>u({open:!0,edit:S}),empty:"등록된 부서가 없습니다."}),s.open&&c.jsx(yle,{dept:s.edit,parents:e.filter(S=>!S.parentDeptId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),d(n)}})]})}function yle({dept:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,l]=O.useState((e==null?void 0:e.deptId)??""),[o,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,S]=O.useState((e==null?void 0:e.useYn)??"Y"),[g,v]=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(v(""),!a&&!i.trim()){v("부서ID는 필수입니다.");return}if(!o.trim()){v("부서명은 필수입니다.");return}try{const b={deptId:i,deptNm:o,parentDeptId:u||null,sortOrd:Number(f)||0,useYn:p};a?await h4(i,b):await d4(b),r()}catch(b){v(Fv(b))}};return c.jsxs(Bn,{title:a?"부서 수정":"부서 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(Q,{onClick:y,children:"저장"})]}),children:[c.jsx(de,{label:"부서ID",children:c.jsx(fe,{value:i,onChange:l,style:{width:"100%",opacity:a?.6:1}})}),c.jsx(de,{label:"부서명",children:c.jsx(fe,{value:o,onChange:s,style:{width:"100%"}})}),c.jsx(de,{label:"상위 부서",children:c.jsxs("select",{value:u,onChange:b=>d(b.target.value),style:m,children:[c.jsx("option",{value:"",children:"(최상위)"}),t.filter(b=>b.deptId!==i).map(b=>c.jsxs("option",{value:b.deptId,children:[b.deptNm," (",b.deptId,")"]},b.deptId))]})}),c.jsx(de,{label:"정렬순서",children:c.jsx(fe,{type:"number",value:f,onChange:h,style:{width:"100%"}})}),c.jsx(de,{label:"사용 여부",children:c.jsxs("select",{value:p,onChange:b=>S(b.target.value),style:m,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 Vv(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 vle(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,o]=O.useState(""),[s,u]=O.useState({open:!1,edit:null}),d=async(p="")=>{var S;i(!0),o("");try{const g=await m4(p||void 0);t(((S=g.data.data)==null?void 0:S.content)??[])}catch(g){o(Vv(g))}finally{i(!1)}};O.useEffect(()=>{d("")},[]);const f=async p=>{if(window.confirm(`거래처 '${p.companyNm}' 를 삭제하시겠습니까?`))try{await g4(p.companyId),await d()}catch(S){o(Vv(S))}},h=[{key:"companyId",header:"거래처ID",width:180},{key:"companyNm",header:"거래처명"},{key:"bizNo",header:"사업자번호",width:180,render:p=>p.bizNo??"-"},{key:"useYn",header:"사용",width:80,align:"center",render:p=>c.jsx(Ei,{yn:p.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:p=>c.jsx(Q,{variant:"ghost",onClick:()=>f(p),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(ur,{title:"거래처 관리",subtitle:"시스템관리(권한) · 거래처(근무처) 등록/수정/삭제",actions:c.jsx(Q,{onClick:()=>u({open:!0,edit:null}),children:"+ 거래처 등록"})}),l&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),c.jsxs(Ca,{children:[c.jsx(fe,{value:n,onChange:r,placeholder:"거래처명 검색",style:{minWidth:220}}),c.jsx(Q,{variant:"ghost",onClick:()=>d(n),children:"검색"})]}),a?c.jsx(Dn,{}):c.jsx(_i,{columns:h,rows:e,rowKey:p=>p.companyId,onRowClick:p=>u({open:!0,edit:p}),empty:"등록된 거래처가 없습니다."}),s.open&&c.jsx(gle,{company:s.edit,onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),d(n)}})]})}function gle({company:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.companyId)??""),[l,o]=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(""),S=async()=>{if(p(""),!r&&!a.trim()){p("거래처ID는 필수입니다.");return}if(!l.trim()){p("거래처명은 필수입니다.");return}try{const g={companyId:a,companyNm:l,bizNo:s||null,useYn:d};r?await v4(a,g):await y4(g),n()}catch(g){p(Vv(g))}};return c.jsxs(Bn,{title:r?"거래처 수정":"거래처 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(Q,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(Q,{onClick:S,children:"저장"})]}),children:[c.jsx(de,{label:"거래처ID",children:c.jsx(fe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(de,{label:"거래처명",children:c.jsx(fe,{value:l,onChange:o,style:{width:"100%"}})}),c.jsx(de,{label:"사업자번호",children:c.jsx(fe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(de,{label:"사용 여부",children:c.jsxs("select",{value:d,onChange:g=>f(g.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 ble=[{key:"roles",label:"권한 관리"},{key:"role-menus",label:"역할-메뉴 권한"},{key:"codes",label:"공통코드"},{key:"menus",label:"메뉴 관리"},{key:"depts",label:"부서 관리"},{key:"companies",label:"거래처 관리"}];function xle(){const[e,t]=O.useState("roles");return c.jsxs("div",{className:"uiws-scope",children:[c.jsx("div",{style:{display:"flex",gap:4,marginBottom:20,flexWrap:"wrap",borderBottom:"1px solid var(--uiws-border)"},children:ble.map(n=>c.jsx("button",{onClick:()=>t(n.key),style:{padding:"10px 16px",fontSize:13,fontWeight:600,cursor:"pointer",background:"transparent",border:"none",color:e===n.key?"var(--uiws-primary)":"var(--uiws-text-muted)",borderBottom:`2px solid ${e===n.key?"var(--uiws-primary)":"transparent"}`,marginBottom:-1},children:n.label},n.key))}),e==="roles"&&c.jsx(ole,{}),e==="role-menus"&&c.jsx(ule,{}),e==="codes"&&c.jsx(cle,{}),e==="menus"&&c.jsx(hle,{}),e==="depts"&&c.jsx(mle,{}),e==="companies"&&c.jsx(vle,{})]})}const WC=["SUPERADMIN","MANAGER","ADMIN"],Sle=[{path:"/dashboard",label:"대시보드",icon:"📊"},{path:"/employees",label:"사원관리",icon:"👥"},{path:"/organization",label:"조직도",icon:"🏢"},{path:"/payroll",label:"급여관리",icon:"💰"},{path:"/attendance",label:"근태관리",icon:"⏰"},{path:"/performance",label:"성과평가",icon:"🎯"},{path:"/recruitment",label:"채용관리",icon:"🔍"},{path:"/training",label:"교육관리",icon:"📚"},{path:"/worklogs",label:"업무일지",icon:"📝"},{path:"/schedules",label:"일정관리",icon:"📅"},{path:"/messages",label:"쪽지함",icon:"✉️"},{path:"/work-stats",label:"업무통계",icon:"📈"},{path:"/ai",label:"AI 인사분석",icon:"🤖"},{path:"/ai-platform",label:"AI 플랫폼 설정",icon:"🧠",adminOnly:!0},{path:"/admin",label:"시스템관리",icon:"⚙️"},{path:"/system",label:"시스템관리(권한)",icon:"🔐",adminOnly:!0},{path:"/mobile-app",label:"모바일 앱",icon:"📱"}];function ZC({children:e}){var l;const[t,n]=O.useState(!1),r=JSON.parse(localStorage.getItem("hrm_user")||'{"displayName":"관리자","role":"SUPERADMIN"}'),a=WC.includes(r.role),i=Sle.filter(o=>!o.adminOnly||a);return c.jsxs("div",{className:"flex h-screen overflow-hidden",children:[c.jsxs("aside",{className:`${t?"w-16":"w-60"} bg-slate-900 flex flex-col transition-all duration-200`,children:[c.jsxs("div",{className:"h-16 flex items-center px-4 border-b border-slate-800",children:[!t&&c.jsxs("div",{children:[c.jsx("p",{className:"text-white font-bold text-sm",children:"GUARDiA HRM"}),c.jsx("p",{className:"text-slate-400 text-xs",children:"AI 인사관리 플랫폼"})]}),c.jsx("button",{onClick:()=>n(!t),className:"ml-auto text-slate-400 hover:text-white text-lg",children:t?"→":"←"})]}),c.jsx("nav",{className:"flex-1 overflow-y-auto py-3 px-2 space-y-1",children:i.map(o=>c.jsxs(cy,{to:o.path,className:({isActive:s})=>`sidebar-item ${s?"active":""}`,children:[c.jsx("span",{className:"text-base",children:o.icon}),!t&&c.jsx("span",{children:o.label})]},o.path))}),c.jsxs("div",{className:"p-4 border-t border-slate-800",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center text-white text-xs font-bold",children:((l=r.displayName)==null?void 0:l.charAt(0))||"A"}),!t&&c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-white text-sm font-medium truncate",children:r.displayName}),c.jsx("p",{className:"text-slate-400 text-xs",children:r.role})]})]}),!t&&c.jsxs("div",{className:"mt-3 flex items-center justify-between",children:[c.jsx(cy,{to:"/mypage",className:"text-xs text-slate-400 hover:text-white",children:"마이페이지"}),c.jsx("button",{className:"text-xs text-slate-400 hover:text-white",onClick:()=>{localStorage.clear(),window.location.href="/login"},children:"로그아웃"})]})]})]}),c.jsx("main",{className:"flex-1 overflow-auto bg-slate-50",children:c.jsx("div",{className:"p-6",children:e})})]})}function Pt({children:e}){return localStorage.getItem("hrm_token")?c.jsx(ZC,{children:e}):c.jsx(_s,{to:"/login",replace:!0})}function dO({children:e}){if(!localStorage.getItem("hrm_token"))return c.jsx(_s,{to:"/login",replace:!0});const n=JSON.parse(localStorage.getItem("hrm_user")||'{"role":"SUPERADMIN"}');return WC.includes(n.role)?c.jsx(ZC,{children:e}):c.jsx(_s,{to:"/dashboard",replace:!0})}function wle(){return c.jsx(gD,{children:c.jsxs(KP,{children:[c.jsx(Qe,{path:"/login",element:c.jsx(w4,{})}),c.jsx(Qe,{path:"/",element:c.jsx(_s,{to:"/dashboard",replace:!0})}),c.jsx(Qe,{path:"/dashboard",element:c.jsx(Pt,{children:c.jsx(yie,{})})}),c.jsx(Qe,{path:"/employees",element:c.jsx(Pt,{children:c.jsx(vie,{})})}),c.jsx(Qe,{path:"/organization",element:c.jsx(Pt,{children:c.jsx(gie,{})})}),c.jsx(Qe,{path:"/payroll",element:c.jsx(Pt,{children:c.jsx(bie,{})})}),c.jsx(Qe,{path:"/attendance",element:c.jsx(Pt,{children:c.jsx(xie,{})})}),c.jsx(Qe,{path:"/performance",element:c.jsx(Pt,{children:c.jsx(Sie,{})})}),c.jsx(Qe,{path:"/recruitment",element:c.jsx(Pt,{children:c.jsx(wie,{})})}),c.jsx(Qe,{path:"/training",element:c.jsx(Pt,{children:c.jsx(jie,{})})}),c.jsx(Qe,{path:"/worklogs",element:c.jsx(Pt,{children:c.jsx(Wie,{})})}),c.jsx(Qe,{path:"/schedules",element:c.jsx(Pt,{children:c.jsx(ele,{})})}),c.jsx(Qe,{path:"/messages",element:c.jsx(Pt,{children:c.jsx(rle,{})})}),c.jsx(Qe,{path:"/work-stats",element:c.jsx(Pt,{children:c.jsx(lle,{})})}),c.jsx(Qe,{path:"/ai",element:c.jsx(Pt,{children:c.jsx(Oie,{})})}),c.jsx(Qe,{path:"/ai-platform",element:c.jsx(dO,{children:c.jsx(Fie,{})})}),c.jsx(Qe,{path:"/admin",element:c.jsx(Pt,{children:c.jsx(Vie,{})})}),c.jsx(Qe,{path:"/mypage",element:c.jsx(Pt,{children:c.jsx(Kie,{})})}),c.jsx(Qe,{path:"/system",element:c.jsx(dO,{children:c.jsx(xle,{})})}),c.jsx(Qe,{path:"/mobile-app",element:c.jsx(Pt,{children:c.jsx(Xie,{})})}),c.jsx(Qe,{path:"*",element:c.jsx(_s,{to:"/dashboard",replace:!0})})]})})}XR.createRoot(document.getElementById("root")).render(c.jsx(M.StrictMode,{children:c.jsx(wle,{})}));
