var Wx=e=>{throw TypeError(e)};var dy=(e,t,n)=>t.has(e)||Wx("Cannot "+n);var j=(e,t,n)=>(dy(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?Wx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(dy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),de=(e,t,n)=>(dy(e,t,"access private method"),n);var Zc=(e,t,n,r)=>({set _(a){X(e,t,a,n)},get _(){return j(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var Jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v_={exports:{}},Uh={};/**
 * @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 f$=Symbol.for("react.transitional.element"),d$=Symbol.for("react.fragment");function g_(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:f$,type:e,key:r,ref:t!==void 0?t:null,props:n}}Uh.Fragment=d$;Uh.jsx=g_;Uh.jsxs=g_;v_.exports=Uh;var g=v_.exports,b_={exports:{}},ue={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Eb=Symbol.for("react.transitional.element"),h$=Symbol.for("react.portal"),p$=Symbol.for("react.fragment"),y$=Symbol.for("react.strict_mode"),m$=Symbol.for("react.profiler"),v$=Symbol.for("react.consumer"),g$=Symbol.for("react.context"),b$=Symbol.for("react.forward_ref"),x$=Symbol.for("react.suspense"),S$=Symbol.for("react.memo"),x_=Symbol.for("react.lazy"),O$=Symbol.for("react.activity"),Zx=Symbol.iterator;function w$(e){return e===null||typeof e!="object"?null:(e=Zx&&e[Zx]||e["@@iterator"],typeof e=="function"?e:null)}var S_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O_=Object.assign,w_={};function ru(e,t,n){this.props=e,this.context=t,this.refs=w_,this.updater=n||S_}ru.prototype.isReactComponent={};ru.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")};ru.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function A_(){}A_.prototype=ru.prototype;function _b(e,t,n){this.props=e,this.context=t,this.refs=w_,this.updater=n||S_}var Tb=_b.prototype=new A_;Tb.constructor=_b;O_(Tb,ru.prototype);Tb.isPureReactComponent=!0;var Jx=Array.isArray;function Dm(){}var Ze={H:null,A:null,T:null,S:null},E_=Object.prototype.hasOwnProperty;function jb(e,t,n){var r=n.ref;return{$$typeof:Eb,type:e,key:t,ref:r!==void 0?r:null,props:n}}function A$(e,t){return jb(e.type,t,e.props)}function Cb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eb}function E$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var e1=/\/+/g;function hy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?E$(""+e.key):t.toString(36)}function _$(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 Co(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Eb:case h$:o=!0;break;case x_:return o=e._init,Co(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+hy(e,0):r,Jx(a)?(n="",o!=null&&(n=o.replace(e1,"$&/")+"/"),Co(a,t,n,"",function(s){return s})):a!=null&&(Cb(a)&&(a=A$(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(e1,"$&/")+"/")+o)),t.push(a)),1;o=0;var l=r===""?".":r+":";if(Jx(e))for(var u=0;u<e.length;u++)r=e[u],i=l+hy(r,u),o+=Co(r,t,n,i,a);else if(u=w$(e),typeof u=="function")for(e=u.call(e),u=0;!(r=e.next()).done;)r=r.value,i=l+hy(r,u++),o+=Co(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Co(_$(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function ef(e,t,n){if(e==null)return e;var r=[],a=0;return Co(e,r,"","",function(i){return t.call(n,i,a++)}),r}function T$(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 t1=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)},j$={map:ef,forEach:function(e,t,n){ef(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ef(e,function(){t++}),t},toArray:function(e){return ef(e,function(t){return t})||[]},only:function(e){if(!Cb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Activity=O$;ue.Children=j$;ue.Component=ru;ue.Fragment=p$;ue.Profiler=m$;ue.PureComponent=_b;ue.StrictMode=y$;ue.Suspense=x$;ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ze;ue.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ze.H.useMemoCache(e)}};ue.cache=function(e){return function(){return e.apply(null,arguments)}};ue.cacheSignal=function(){return null};ue.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=O_({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!E_.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var o=Array(i),l=0;l<i;l++)o[l]=arguments[l+2];r.children=o}return jb(e.type,a,r)};ue.createContext=function(e){return e={$$typeof:g$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:v$,_context:e},e};ue.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)E_.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)a[r]===void 0&&(a[r]=o[r]);return jb(e,i,a)};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:b$,render:e}};ue.isValidElement=Cb;ue.lazy=function(e){return{$$typeof:x_,_payload:{_status:-1,_result:e},_init:T$}};ue.memo=function(e,t){return{$$typeof:S$,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=Ze.T,n={};Ze.T=n;try{var r=e(),a=Ze.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Dm,t1)}catch(i){t1(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ze.T=t}};ue.unstable_useCacheRefresh=function(){return Ze.H.useCacheRefresh()};ue.use=function(e){return Ze.H.use(e)};ue.useActionState=function(e,t,n){return Ze.H.useActionState(e,t,n)};ue.useCallback=function(e,t){return Ze.H.useCallback(e,t)};ue.useContext=function(e){return Ze.H.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e,t){return Ze.H.useDeferredValue(e,t)};ue.useEffect=function(e,t){return Ze.H.useEffect(e,t)};ue.useEffectEvent=function(e){return Ze.H.useEffectEvent(e)};ue.useId=function(){return Ze.H.useId()};ue.useImperativeHandle=function(e,t,n){return Ze.H.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return Ze.H.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return Ze.H.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return Ze.H.useMemo(e,t)};ue.useOptimistic=function(e,t){return Ze.H.useOptimistic(e,t)};ue.useReducer=function(e,t,n){return Ze.H.useReducer(e,t,n)};ue.useRef=function(e){return Ze.H.useRef(e)};ue.useState=function(e){return Ze.H.useState(e)};ue.useSyncExternalStore=function(e,t,n){return Ze.H.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return Ze.H.useTransition()};ue.version="19.2.7";b_.exports=ue;var _=b_.exports;const N=Be(_);var __={exports:{}},zh={},T_={exports:{}},j_={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t($,L){var z=$.length;$.push(L);e:for(;0<z;){var q=z-1>>>1,F=$[q];if(0<a(F,L))$[q]=L,$[z]=F,z=q;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var L=$[0],z=$.pop();if(z!==L){$[0]=z;e:for(var q=0,F=$.length,W=F>>>1;q<W;){var G=2*(q+1)-1,ee=$[G],he=G+1,$e=$[he];if(0>a(ee,z))he<F&&0>a($e,ee)?($[q]=$e,$[he]=z,q=he):($[q]=ee,$[G]=z,q=G);else if(he<F&&0>a($e,z))$[q]=$e,$[he]=z,q=he;else break e}}return L}function a($,L){var z=$.sortIndex-L.sortIndex;return z!==0?z:$.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],s=[],f=1,c=null,d=3,h=!1,b=!1,v=!1,m=!1,p=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w($){for(var L=n(s);L!==null;){if(L.callback===null)r(s);else if(L.startTime<=$)r(s),L.sortIndex=L.expirationTime,t(u,L);else break;L=n(s)}}function S($){if(v=!1,w($),!b)if(n(u)!==null)b=!0,O||(O=!0,R());else{var L=n(s);L!==null&&P(S,L.startTime-$)}}var O=!1,A=-1,E=5,T=-1;function C(){return m?!0:!(e.unstable_now()-T<E)}function D(){if(m=!1,O){var $=e.unstable_now();T=$;var L=!0;try{e:{b=!1,v&&(v=!1,y(A),A=-1),h=!0;var z=d;try{t:{for(w($),c=n(u);c!==null&&!(c.expirationTime>$&&C());){var q=c.callback;if(typeof q=="function"){c.callback=null,d=c.priorityLevel;var F=q(c.expirationTime<=$);if($=e.unstable_now(),typeof F=="function"){c.callback=F,w($),L=!0;break t}c===n(u)&&r(u),w($)}else r(u);c=n(u)}if(c!==null)L=!0;else{var W=n(s);W!==null&&P(S,W.startTime-$),L=!1}}break e}finally{c=null,d=z,h=!1}L=void 0}}finally{L?R():O=!1}}}var R;if(typeof x=="function")R=function(){x(D)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,k=U.port2;U.port1.onmessage=D,R=function(){k.postMessage(null)}}else R=function(){p(D,0)};function P($,L){A=p(function(){$(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var L=3;break;default:L=d}var z=d;d=L;try{return $()}finally{d=z}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function($,L){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var z=d;d=$;try{return L()}finally{d=z}},e.unstable_scheduleCallback=function($,L,z){var q=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?q+z:q):z=q,$){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=z+F,$={id:f++,callback:L,priorityLevel:$,startTime:z,expirationTime:F,sortIndex:-1},z>q?($.sortIndex=z,t(s,$),n(u)===null&&$===n(s)&&(v?(y(A),A=-1):v=!0,P(S,z-q))):($.sortIndex=F,t(u,$),b||h||(b=!0,O||(O=!0,R()))),$},e.unstable_shouldYield=C,e.unstable_wrapCallback=function($){var L=d;return function(){var z=d;d=L;try{return $.apply(this,arguments)}finally{d=z}}}})(j_);T_.exports=j_;var C$=T_.exports,C_={exports:{}},rn={};/**
 * @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 M$=_;function M_(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 wa(){}var Jt={d:{f:wa,r:function(){throw Error(M_(522))},D:wa,C:wa,L:wa,m:wa,X:wa,S:wa,M:wa},p:0,findDOMNode:null},N$=Symbol.for("react.portal");function R$(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:N$,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var ns=M$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ih(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Jt;rn.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(M_(299));return R$(e,t,null,n)};rn.flushSync=function(e){var t=ns.T,n=Jt.p;try{if(ns.T=null,Jt.p=2,e)return e()}finally{ns.T=t,Jt.p=n,Jt.d.f()}};rn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Jt.d.C(e,t))};rn.prefetchDNS=function(e){typeof e=="string"&&Jt.d.D(e)};rn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Ih(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Jt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&Jt.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};rn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Ih(t.as,t.crossOrigin);Jt.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&&Jt.d.M(e)};rn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Ih(n,t.crossOrigin);Jt.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})}};rn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Ih(t.as,t.crossOrigin);Jt.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 Jt.d.m(e)};rn.requestFormReset=function(e){Jt.d.r(e)};rn.unstable_batchedUpdates=function(e,t){return e(t)};rn.useFormState=function(e,t,n){return ns.H.useFormState(e,t,n)};rn.useFormStatus=function(){return ns.H.useHostTransitionStatus()};rn.version="19.2.7";function N_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(N_)}catch(e){console.error(e)}}N_(),C_.exports=rn;var $$=C_.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 _t=C$,R_=_,P$=$$;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 $_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _c(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 P_(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 D_(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 n1(e){if(_c(e)!==e)throw Error(I(188))}function D$(e){var t=e.alternate;if(!t){if(t=_c(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 n1(a),e;if(i===r)return n1(a),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function k_(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=k_(e),t!==null)return t;e=e.sibling}return null}var Je=Object.assign,k$=Symbol.for("react.element"),tf=Symbol.for("react.transitional.element"),Xu=Symbol.for("react.portal"),$o=Symbol.for("react.fragment"),L_=Symbol.for("react.strict_mode"),km=Symbol.for("react.profiler"),B_=Symbol.for("react.consumer"),Xr=Symbol.for("react.context"),Mb=Symbol.for("react.forward_ref"),Lm=Symbol.for("react.suspense"),Bm=Symbol.for("react.suspense_list"),Nb=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),Um=Symbol.for("react.activity"),L$=Symbol.for("react.memo_cache_sentinel"),r1=Symbol.iterator;function Mu(e){return e===null||typeof e!="object"?null:(e=r1&&e[r1]||e["@@iterator"],typeof e=="function"?e:null)}var B$=Symbol.for("react.client.reference");function zm(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===B$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $o:return"Fragment";case km:return"Profiler";case L_:return"StrictMode";case Lm:return"Suspense";case Bm:return"SuspenseList";case Um:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Xu:return"Portal";case Xr:return e.displayName||"Context";case B_:return(e._context.displayName||"Context")+".Consumer";case Mb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nb:return t=e.displayName||null,t!==null?t:zm(e.type)||"Memo";case Ea:t=e._payload,e=e._init;try{return zm(e(t))}catch{}}return null}var Qu=Array.isArray,ae=R_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ee=P$.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Gi={pending:!1,data:null,method:null,action:null},Im=[],Po=-1;function Tr(e){return{current:e}}function $t(e){0>Po||(e.current=Im[Po],Im[Po]=null,Po--)}function Fe(e,t){Po++,Im[Po]=e.current,e.current=t}var wr=Tr(null),Os=Tr(null),Va=Tr(null),rd=Tr(null);function ad(e,t){switch(Fe(Va,t),Fe(Os,e),Fe(wr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sS(t),e=aC(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$t(wr),Fe(wr,e)}function xl(){$t(wr),$t(Os),$t(Va)}function Hm(e){e.memoizedState!==null&&Fe(rd,e);var t=wr.current,n=aC(t,e.type);t!==n&&(Fe(Os,e),Fe(wr,n))}function id(e){Os.current===e&&($t(wr),$t(Os)),rd.current===e&&($t(rd),$s._currentValue=Gi)}var py,a1;function Oi(e){if(py===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);py=t&&t[1]||"",a1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+py+e+a1}var yy=!1;function my(e,t){if(!e||yy)return"";yy=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(h){var d=h}Reflect.construct(e,[],c)}else{try{c.call()}catch(h){d=h}e.call(c.prototype)}}else{try{throw Error()}catch(h){d=h}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(h){if(h&&d&&typeof h.stack=="string")return[h.stack,d.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),o=i[0],l=i[1];if(o&&l){var u=o.split(`
`),s=l.split(`
`);for(a=r=0;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;for(;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;if(r===u.length||a===s.length)for(r=u.length-1,a=s.length-1;1<=r&&0<=a&&u[r]!==s[a];)a--;for(;1<=r&&0<=a;r--,a--)if(u[r]!==s[a]){if(r!==1||a!==1)do if(r--,a--,0>a||u[r]!==s[a]){var f=`
`+u[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{yy=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Oi(n):""}function U$(e,t){switch(e.tag){case 26:case 27:case 5:return Oi(e.type);case 16:return Oi("Lazy");case 13:return e.child!==t&&t!==null?Oi("Suspense Fallback"):Oi("Suspense");case 19:return Oi("SuspenseList");case 0:case 15:return my(e.type,!1);case 11:return my(e.type.render,!1);case 1:return my(e.type,!0);case 31:return Oi("Activity");default:return""}}function i1(e){try{var t="",n=null;do t+=U$(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var qm=Object.prototype.hasOwnProperty,Rb=_t.unstable_scheduleCallback,vy=_t.unstable_cancelCallback,z$=_t.unstable_shouldYield,I$=_t.unstable_requestPaint,jn=_t.unstable_now,H$=_t.unstable_getCurrentPriorityLevel,U_=_t.unstable_ImmediatePriority,z_=_t.unstable_UserBlockingPriority,od=_t.unstable_NormalPriority,q$=_t.unstable_LowPriority,I_=_t.unstable_IdlePriority,F$=_t.log,G$=_t.unstable_setDisableYieldValue,Tc=null,Cn=null;function Ha(e){if(typeof F$=="function"&&G$(e),Cn&&typeof Cn.setStrictMode=="function")try{Cn.setStrictMode(Tc,e)}catch{}}var Mn=Math.clz32?Math.clz32:V$,K$=Math.log,Y$=Math.LN2;function V$(e){return e>>>=0,e===0?32:31-(K$(e)/Y$|0)|0}var nf=256,rf=262144,af=4194304;function wi(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Hh(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~i,r!==0?a=wi(r):(o&=l,o!==0?a=wi(o):n||(n=l&~e,n!==0&&(a=wi(n))))):(l=r&~i,l!==0?a=wi(l):o!==0?a=wi(o):n||(n=r&~e,n!==0&&(a=wi(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function jc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function X$(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 H_(){var e=af;return af<<=1,!(af&62914560)&&(af=4194304),e}function gy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cc(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Q$(e,t,n,r,a,i){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Mn(n),c=1<<f;l[f]=0,u[f]=-1;var d=s[f];if(d!==null)for(s[f]=null,f=0;f<d.length;f++){var h=d[f];h!==null&&(h.lane&=-536870913)}n&=~c}r!==0&&q_(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function q_(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Mn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function F_(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function G_(e,t){var n=t&-t;return n=n&42?1:$b(n),n&(e.suspendedLanes|t)?0:n}function $b(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 Pb(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function K_(){var e=Ee.p;return e!==0?e:(e=window.event,e===void 0?32:yC(e.type))}function o1(e,t){var n=Ee.p;try{return Ee.p=e,t()}finally{Ee.p=n}}var ci=Math.random().toString(36).slice(2),Bt="__reactFiber$"+ci,yn="__reactProps$"+ci,au="__reactContainer$"+ci,Fm="__reactEvents$"+ci,W$="__reactListeners$"+ci,Z$="__reactHandles$"+ci,l1="__reactResources$"+ci,Mc="__reactMarker$"+ci;function Db(e){delete e[Bt],delete e[yn],delete e[Fm],delete e[W$],delete e[Z$]}function Do(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[au]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pS(e);e!==null;){if(n=e[Bt])return n;e=pS(e)}return t}e=n,n=e.parentNode}return null}function iu(e){if(e=e[Bt]||e[au]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(I(33))}function Qo(e){var t=e[l1];return t||(t=e[l1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Nt(e){e[Mc]=!0}var Y_=new Set,V_={};function ho(e,t){Sl(e,t),Sl(e+"Capture",t)}function Sl(e,t){for(V_[e]=t,e=0;e<t.length;e++)Y_.add(t[e])}var J$=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]*$"),u1={},s1={};function eP(e){return qm.call(s1,e)?!0:qm.call(u1,e)?!1:J$.test(e)?s1[e]=!0:(u1[e]=!0,!1)}function Pf(e,t,n){if(eP(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function of(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 Dr(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 Hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function X_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tP(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gm(e){if(!e._valueTracker){var t=X_(e)?"checked":"value";e._valueTracker=tP(e,t,""+e[t])}}function Q_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ld(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 nP=/[\n"\\]/g;function Gn(e){return e.replace(nP,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Km(e,t,n,r,a,i,o,l){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Hn(t)):e.value!==""+Hn(t)&&(e.value=""+Hn(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Ym(e,o,Hn(t)):n!=null?Ym(e,o,Hn(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+Hn(l):e.removeAttribute("name")}function W_(e,t,n,r,a,i,o,l){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Gm(e);return}n=n!=null?""+Hn(n):"",t=t!=null?""+Hn(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Gm(e)}function Ym(e,t,n){t==="number"&&ld(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Wo(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=""+Hn(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 Z_(e,t,n){if(t!=null&&(t=""+Hn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Hn(n):""}function J_(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(I(92));if(Qu(r)){if(1<r.length)throw Error(I(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Hn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Gm(e)}function Ol(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rP=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function c1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||rP.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function eT(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&&c1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&c1(e,i,t[i])}function kb(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 aP=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"]]),iP=/^[\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 Df(e){return iP.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qr(){}var Vm=null;function Lb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ko=null,Zo=null;function f1(e){var t=iu(e);if(t&&(e=t.stateNode)){var n=e[yn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Km(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="'+Gn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[yn]||null;if(!a)throw Error(I(90));Km(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&&Q_(r)}break e;case"textarea":Z_(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Wo(e,!!n.multiple,t,!1)}}}var by=!1;function tT(e,t,n){if(by)return e(t,n);by=!0;try{var r=e(t);return r}finally{if(by=!1,(ko!==null||Zo!==null)&&(ep(),ko&&(t=ko,e=Zo,Zo=ko=null,f1(t),e)))for(t=0;t<e.length;t++)f1(e[t])}}function ws(e,t){var n=e.stateNode;if(n===null)return null;var r=n[yn]||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 la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xm=!1;if(la)try{var Nu={};Object.defineProperty(Nu,"passive",{get:function(){Xm=!0}}),window.addEventListener("test",Nu,Nu),window.removeEventListener("test",Nu,Nu)}catch{Xm=!1}var qa=null,Bb=null,kf=null;function nT(){if(kf)return kf;var e,t=Bb,n=t.length,r,a="value"in qa?qa.value:qa.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===a[i-r];r++);return kf=a.slice(e,1<r?1-r:void 0)}function Lf(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 lf(){return!0}function d1(){return!1}function mn(e){function t(n,r,a,i,o){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?lf:d1,this.isPropagationStopped=d1,this}return Je(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=lf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lf)},persist:function(){},isPersistent:lf}),t}var po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qh=mn(po),Nc=Je({},po,{view:0,detail:0}),oP=mn(Nc),xy,Sy,Ru,Fh=Je({},Nc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ub,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!==Ru&&(Ru&&e.type==="mousemove"?(xy=e.screenX-Ru.screenX,Sy=e.screenY-Ru.screenY):Sy=xy=0,Ru=e),xy)},movementY:function(e){return"movementY"in e?e.movementY:Sy}}),h1=mn(Fh),lP=Je({},Fh,{dataTransfer:0}),uP=mn(lP),sP=Je({},Nc,{relatedTarget:0}),Oy=mn(sP),cP=Je({},po,{animationName:0,elapsedTime:0,pseudoElement:0}),fP=mn(cP),dP=Je({},po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hP=mn(dP),pP=Je({},po,{data:0}),p1=mn(pP),yP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mP={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"},vP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gP(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vP[e])?!!t[e]:!1}function Ub(){return gP}var bP=Je({},Nc,{key:function(e){if(e.key){var t=yP[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mP[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ub,charCode:function(e){return e.type==="keypress"?Lf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xP=mn(bP),SP=Je({},Fh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y1=mn(SP),OP=Je({},Nc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ub}),wP=mn(OP),AP=Je({},po,{propertyName:0,elapsedTime:0,pseudoElement:0}),EP=mn(AP),_P=Je({},Fh,{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}),TP=mn(_P),jP=Je({},po,{newState:0,oldState:0}),CP=mn(jP),MP=[9,13,27,32],zb=la&&"CompositionEvent"in window,rs=null;la&&"documentMode"in document&&(rs=document.documentMode);var NP=la&&"TextEvent"in window&&!rs,rT=la&&(!zb||rs&&8<rs&&11>=rs),m1=" ",v1=!1;function aT(e,t){switch(e){case"keyup":return MP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lo=!1;function RP(e,t){switch(e){case"compositionend":return iT(t);case"keypress":return t.which!==32?null:(v1=!0,m1);case"textInput":return e=t.data,e===m1&&v1?null:e;default:return null}}function $P(e,t){if(Lo)return e==="compositionend"||!zb&&aT(e,t)?(e=nT(),kf=Bb=qa=null,Lo=!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 rT&&t.locale!=="ko"?null:t.data;default:return null}}var PP={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 g1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!PP[e.type]:t==="textarea"}function oT(e,t,n,r){ko?Zo?Zo.push(r):Zo=[r]:ko=r,t=Ed(t,"onChange"),0<t.length&&(n=new qh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var as=null,As=null;function DP(e){tC(e,0)}function Gh(e){var t=Wu(e);if(Q_(t))return e}function b1(e,t){if(e==="change")return t}var lT=!1;if(la){var wy;if(la){var Ay="oninput"in document;if(!Ay){var x1=document.createElement("div");x1.setAttribute("oninput","return;"),Ay=typeof x1.oninput=="function"}wy=Ay}else wy=!1;lT=wy&&(!document.documentMode||9<document.documentMode)}function S1(){as&&(as.detachEvent("onpropertychange",uT),As=as=null)}function uT(e){if(e.propertyName==="value"&&Gh(As)){var t=[];oT(t,As,e,Lb(e)),tT(DP,t)}}function kP(e,t,n){e==="focusin"?(S1(),as=t,As=n,as.attachEvent("onpropertychange",uT)):e==="focusout"&&S1()}function LP(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gh(As)}function BP(e,t){if(e==="click")return Gh(t)}function UP(e,t){if(e==="input"||e==="change")return Gh(t)}function zP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:zP;function Es(e,t){if($n(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(!qm.call(t,a)||!$n(e[a],t[a]))return!1}return!0}function O1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function w1(e,t){var n=O1(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=O1(n)}}function sT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cT(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ld(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=ld(e.document)}return t}function Ib(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 IP=la&&"documentMode"in document&&11>=document.documentMode,Bo=null,Qm=null,is=null,Wm=!1;function A1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wm||Bo==null||Bo!==ld(r)||(r=Bo,"selectionStart"in r&&Ib(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}),is&&Es(is,r)||(is=r,r=Ed(Qm,"onSelect"),0<r.length&&(t=new qh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bo)))}function gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Uo={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionrun:gi("Transition","TransitionRun"),transitionstart:gi("Transition","TransitionStart"),transitioncancel:gi("Transition","TransitionCancel"),transitionend:gi("Transition","TransitionEnd")},Ey={},fT={};la&&(fT=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);function yo(e){if(Ey[e])return Ey[e];if(!Uo[e])return e;var t=Uo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fT)return Ey[e]=t[n];return e}var dT=yo("animationend"),hT=yo("animationiteration"),pT=yo("animationstart"),HP=yo("transitionrun"),qP=yo("transitionstart"),FP=yo("transitioncancel"),yT=yo("transitionend"),mT=new Map,Zm="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(" ");Zm.push("scrollEnd");function dr(e,t){mT.set(e,t),ho(t,[e])}var ud=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},In=[],zo=0,Hb=0;function Kh(){for(var e=zo,t=Hb=zo=0;t<e;){var n=In[t];In[t++]=null;var r=In[t];In[t++]=null;var a=In[t];In[t++]=null;var i=In[t];if(In[t++]=null,r!==null&&a!==null){var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}i!==0&&vT(n,a,i)}}function Yh(e,t,n,r){In[zo++]=e,In[zo++]=t,In[zo++]=n,In[zo++]=r,Hb|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function qb(e,t,n,r){return Yh(e,t,n,r),sd(e)}function mo(e,t){return Yh(e,null,null,t),sd(e)}function vT(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-Mn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function sd(e){if(50<ps)throw ps=0,bv=null,Error(I(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Io={};function GP(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 En(e,t,n,r){return new GP(e,t,n,r)}function Fb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ea(e,t){var n=e.alternate;return n===null?(n=En(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 gT(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 Bf(e,t,n,r,a,i){var o=0;if(r=e,typeof e=="function")Fb(e)&&(o=1);else if(typeof e=="string")o=QD(e,n,wr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Um:return e=En(31,n,t,a),e.elementType=Um,e.lanes=i,e;case $o:return Ki(n.children,a,i,t);case L_:o=8,a|=24;break;case km:return e=En(12,n,t,a|2),e.elementType=km,e.lanes=i,e;case Lm:return e=En(13,n,t,a),e.elementType=Lm,e.lanes=i,e;case Bm:return e=En(19,n,t,a),e.elementType=Bm,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xr:o=10;break e;case B_:o=9;break e;case Mb:o=11;break e;case Nb:o=14;break e;case Ea:o=16,r=null;break e}o=29,n=Error(I(130,e===null?"null":typeof e,"")),r=null}return t=En(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Ki(e,t,n,r){return e=En(7,e,r,t),e.lanes=n,e}function _y(e,t,n){return e=En(6,e,null,t),e.lanes=n,e}function bT(e){var t=En(18,null,null,0);return t.stateNode=e,t}function Ty(e,t,n){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var E1=new WeakMap;function Kn(e,t){if(typeof e=="object"&&e!==null){var n=E1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:i1(t)},E1.set(e,t),t)}return{value:e,source:t,stack:i1(t)}}var Ho=[],qo=0,cd=null,_s=0,qn=[],Fn=0,oi=null,br=1,xr="";function qr(e,t){Ho[qo++]=_s,Ho[qo++]=cd,cd=e,_s=t}function xT(e,t,n){qn[Fn++]=br,qn[Fn++]=xr,qn[Fn++]=oi,oi=e;var r=br;e=xr;var a=32-Mn(r)-1;r&=~(1<<a),n+=1;var i=32-Mn(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,br=1<<32-Mn(t)+a|n<<a|r,xr=i+e}else br=1<<i|n<<a|r,xr=e}function Gb(e){e.return!==null&&(qr(e,1),xT(e,1,0))}function Kb(e){for(;e===cd;)cd=Ho[--qo],Ho[qo]=null,_s=Ho[--qo],Ho[qo]=null;for(;e===oi;)oi=qn[--Fn],qn[Fn]=null,xr=qn[--Fn],qn[Fn]=null,br=qn[--Fn],qn[Fn]=null}function ST(e,t){qn[Fn++]=br,qn[Fn++]=xr,qn[Fn++]=oi,br=t.id,xr=t.overflow,oi=e}var Ut=null,Qe=null,Se=!1,Xa=null,Yn=!1,Jm=Error(I(519));function li(e){var t=Error(I(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ts(Kn(t,e)),Jm}function _1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Bt]=e,t[yn]=r,n){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(n=0;n<Ns.length;n++)ve(Ns[n],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),W_(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),J_(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||rC(t.textContent,n)?(r.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),r.onScroll!=null&&ve("scroll",t),r.onScrollEnd!=null&&ve("scrollend",t),r.onClick!=null&&(t.onclick=Qr),t=!0):t=!1,t||li(e,!0)}function T1(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Ut=Ut.return}}function wo(e){if(e!==Ut)return!1;if(!Se)return T1(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Av(e.type,e.memoizedProps)),n=!n),n&&Qe&&li(e),T1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));Qe=hS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));Qe=hS(e)}else t===27?(t=Qe,fi(e.type)?(e=jv,jv=null,Qe=e):Qe=t):Qe=Ut?Wn(e.stateNode.nextSibling):null;return!0}function Ji(){Qe=Ut=null,Se=!1}function jy(){var e=Xa;return e!==null&&(fn===null?fn=e:fn.push.apply(fn,e),Xa=null),e}function Ts(e){Xa===null?Xa=[e]:Xa.push(e)}var ev=Tr(null),vo=null,Wr=null;function Ca(e,t,n){Fe(ev,t._currentValue),t._currentValue=n}function ta(e){e._currentValue=ev.current,$t(ev)}function tv(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 nv(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;e:for(;i!==null;){var l=i;i=a;for(var u=0;u<t.length;u++)if(l.context===t[u]){i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),tv(i.return,n,e),r||(o=null);break e}i=l.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(I(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),tv(o,n,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function ou(e,t,n,r){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(I(387));if(o=o.memoizedProps,o!==null){var l=a.type;$n(a.pendingProps.value,o.value)||(e!==null?e.push(l):e=[l])}}else if(a===rd.current){if(o=a.alternate,o===null)throw Error(I(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push($s):e=[$s])}a=a.return}e!==null&&nv(t,e,n,r),t.flags|=262144}function fd(e){for(e=e.firstContext;e!==null;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function eo(e){vo=e,Wr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function It(e){return OT(vo,e)}function uf(e,t){return vo===null&&eo(e),OT(e,t)}function OT(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 KP=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()})}},YP=_t.unstable_scheduleCallback,VP=_t.unstable_NormalPriority,mt={$$typeof:Xr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yb(){return{controller:new KP,data:new Map,refCount:0}}function Rc(e){e.refCount--,e.refCount===0&&YP(VP,function(){e.controller.abort()})}var os=null,rv=0,wl=0,Jo=null;function XP(e,t){if(os===null){var n=os=[];rv=0,wl=g0(),Jo={status:"pending",value:void 0,then:function(r){n.push(r)}}}return rv++,t.then(j1,j1),t}function j1(){if(--rv===0&&os!==null){Jo!==null&&(Jo.status="fulfilled");var e=os;os=null,wl=0,Jo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function QP(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 C1=ae.S;ae.S=function(e,t){kj=jn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&XP(e,t),C1!==null&&C1(e,t)};var Yi=Tr(null);function Vb(){var e=Yi.current;return e!==null?e:ze.pooledCache}function Uf(e,t){t===null?Fe(Yi,Yi.current):Fe(Yi,t.pool)}function wT(){var e=Vb();return e===null?null:{parent:mt._currentValue,pool:e}}var lu=Error(I(460)),Xb=Error(I(474)),Vh=Error(I(542)),dd={then:function(){}};function M1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function AT(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Qr,Qr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,R1(e),e;default:if(typeof t.status=="string")t.then(Qr,Qr);else{if(e=ze,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,R1(e),e}throw Vi=t,lu}}function Ai(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Vi=n,lu):n}}var Vi=null;function N1(){if(Vi===null)throw Error(I(459));var e=Vi;return Vi=null,e}function R1(e){if(e===lu||e===Vh)throw Error(I(483))}var el=null,js=0;function sf(e){var t=js;return js+=1,el===null&&(el=[]),AT(el,e,t)}function $u(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function cf(e,t){throw t.$$typeof===k$?Error(I(525)):(e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ET(e){function t(p,y){if(e){var x=p.deletions;x===null?(p.deletions=[y],p.flags|=16):x.push(y)}}function n(p,y){if(!e)return null;for(;y!==null;)t(p,y),y=y.sibling;return null}function r(p){for(var y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function a(p,y){return p=ea(p,y),p.index=0,p.sibling=null,p}function i(p,y,x){return p.index=x,e?(x=p.alternate,x!==null?(x=x.index,x<y?(p.flags|=67108866,y):x):(p.flags|=67108866,y)):(p.flags|=1048576,y)}function o(p){return e&&p.alternate===null&&(p.flags|=67108866),p}function l(p,y,x,w){return y===null||y.tag!==6?(y=_y(x,p.mode,w),y.return=p,y):(y=a(y,x),y.return=p,y)}function u(p,y,x,w){var S=x.type;return S===$o?f(p,y,x.props.children,w,x.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ea&&Ai(S)===y.type)?(y=a(y,x.props),$u(y,x),y.return=p,y):(y=Bf(x.type,x.key,x.props,null,p.mode,w),$u(y,x),y.return=p,y)}function s(p,y,x,w){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Ty(x,p.mode,w),y.return=p,y):(y=a(y,x.children||[]),y.return=p,y)}function f(p,y,x,w,S){return y===null||y.tag!==7?(y=Ki(x,p.mode,w,S),y.return=p,y):(y=a(y,x),y.return=p,y)}function c(p,y,x){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=_y(""+y,p.mode,x),y.return=p,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case tf:return x=Bf(y.type,y.key,y.props,null,p.mode,x),$u(x,y),x.return=p,x;case Xu:return y=Ty(y,p.mode,x),y.return=p,y;case Ea:return y=Ai(y),c(p,y,x)}if(Qu(y)||Mu(y))return y=Ki(y,p.mode,x,null),y.return=p,y;if(typeof y.then=="function")return c(p,sf(y),x);if(y.$$typeof===Xr)return c(p,uf(p,y),x);cf(p,y)}return null}function d(p,y,x,w){var S=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:l(p,y,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case tf:return x.key===S?u(p,y,x,w):null;case Xu:return x.key===S?s(p,y,x,w):null;case Ea:return x=Ai(x),d(p,y,x,w)}if(Qu(x)||Mu(x))return S!==null?null:f(p,y,x,w,null);if(typeof x.then=="function")return d(p,y,sf(x),w);if(x.$$typeof===Xr)return d(p,y,uf(p,x),w);cf(p,x)}return null}function h(p,y,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return p=p.get(x)||null,l(y,p,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case tf:return p=p.get(w.key===null?x:w.key)||null,u(y,p,w,S);case Xu:return p=p.get(w.key===null?x:w.key)||null,s(y,p,w,S);case Ea:return w=Ai(w),h(p,y,x,w,S)}if(Qu(w)||Mu(w))return p=p.get(x)||null,f(y,p,w,S,null);if(typeof w.then=="function")return h(p,y,x,sf(w),S);if(w.$$typeof===Xr)return h(p,y,x,uf(y,w),S);cf(y,w)}return null}function b(p,y,x,w){for(var S=null,O=null,A=y,E=y=0,T=null;A!==null&&E<x.length;E++){A.index>E?(T=A,A=null):T=A.sibling;var C=d(p,A,x[E],w);if(C===null){A===null&&(A=T);break}e&&A&&C.alternate===null&&t(p,A),y=i(C,y,E),O===null?S=C:O.sibling=C,O=C,A=T}if(E===x.length)return n(p,A),Se&&qr(p,E),S;if(A===null){for(;E<x.length;E++)A=c(p,x[E],w),A!==null&&(y=i(A,y,E),O===null?S=A:O.sibling=A,O=A);return Se&&qr(p,E),S}for(A=r(A);E<x.length;E++)T=h(A,p,E,x[E],w),T!==null&&(e&&T.alternate!==null&&A.delete(T.key===null?E:T.key),y=i(T,y,E),O===null?S=T:O.sibling=T,O=T);return e&&A.forEach(function(D){return t(p,D)}),Se&&qr(p,E),S}function v(p,y,x,w){if(x==null)throw Error(I(151));for(var S=null,O=null,A=y,E=y=0,T=null,C=x.next();A!==null&&!C.done;E++,C=x.next()){A.index>E?(T=A,A=null):T=A.sibling;var D=d(p,A,C.value,w);if(D===null){A===null&&(A=T);break}e&&A&&D.alternate===null&&t(p,A),y=i(D,y,E),O===null?S=D:O.sibling=D,O=D,A=T}if(C.done)return n(p,A),Se&&qr(p,E),S;if(A===null){for(;!C.done;E++,C=x.next())C=c(p,C.value,w),C!==null&&(y=i(C,y,E),O===null?S=C:O.sibling=C,O=C);return Se&&qr(p,E),S}for(A=r(A);!C.done;E++,C=x.next())C=h(A,p,E,C.value,w),C!==null&&(e&&C.alternate!==null&&A.delete(C.key===null?E:C.key),y=i(C,y,E),O===null?S=C:O.sibling=C,O=C);return e&&A.forEach(function(R){return t(p,R)}),Se&&qr(p,E),S}function m(p,y,x,w){if(typeof x=="object"&&x!==null&&x.type===$o&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case tf:e:{for(var S=x.key;y!==null;){if(y.key===S){if(S=x.type,S===$o){if(y.tag===7){n(p,y.sibling),w=a(y,x.props.children),w.return=p,p=w;break e}}else if(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ea&&Ai(S)===y.type){n(p,y.sibling),w=a(y,x.props),$u(w,x),w.return=p,p=w;break e}n(p,y);break}else t(p,y);y=y.sibling}x.type===$o?(w=Ki(x.props.children,p.mode,w,x.key),w.return=p,p=w):(w=Bf(x.type,x.key,x.props,null,p.mode,w),$u(w,x),w.return=p,p=w)}return o(p);case Xu:e:{for(S=x.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(p,y.sibling),w=a(y,x.children||[]),w.return=p,p=w;break e}else{n(p,y);break}else t(p,y);y=y.sibling}w=Ty(x,p.mode,w),w.return=p,p=w}return o(p);case Ea:return x=Ai(x),m(p,y,x,w)}if(Qu(x))return b(p,y,x,w);if(Mu(x)){if(S=Mu(x),typeof S!="function")throw Error(I(150));return x=S.call(x),v(p,y,x,w)}if(typeof x.then=="function")return m(p,y,sf(x),w);if(x.$$typeof===Xr)return m(p,y,uf(p,x),w);cf(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,y!==null&&y.tag===6?(n(p,y.sibling),w=a(y,x),w.return=p,p=w):(n(p,y),w=_y(x,p.mode,w),w.return=p,p=w),o(p)):n(p,y)}return function(p,y,x,w){try{js=0;var S=m(p,y,x,w);return el=null,S}catch(A){if(A===lu||A===Vh)throw A;var O=En(29,A,null,p.mode);return O.lanes=w,O.return=p,O}finally{}}}var to=ET(!0),_T=ET(!1),_a=!1;function Qb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function av(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 Qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ae&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=sd(e),vT(e,null,n),t}return Yh(e,r,t,n),sd(e)}function ls(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,F_(e,n)}}function Cy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var iv=!1;function us(){if(iv){var e=Jo;if(e!==null)throw e}}function ss(e,t,n,r){iv=!1;var a=e.updateQueue;_a=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var u=l,s=u.next;u.next=null,o===null?i=s:o.next=s,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=u))}if(i!==null){var c=a.baseState;o=0,f=s=u=null,l=i;do{var d=l.lane&-536870913,h=d!==l.lane;if(h?(be&d)===d:(r&d)===d){d!==0&&d===wl&&(iv=!0),f!==null&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var b=e,v=l;d=t;var m=n;switch(v.tag){case 1:if(b=v.payload,typeof b=="function"){c=b.call(m,c,d);break e}c=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,d=typeof b=="function"?b.call(m,c,d):b,d==null)break e;c=Je({},c,d);break e;case 2:_a=!0}}d=l.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[d]:h.push(d))}else h={lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=h,u=c):f=f.next=h,o|=d;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;h=l,l=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);f===null&&(u=c),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),si|=o,e.lanes=o,e.memoizedState=c}}function TT(e,t){if(typeof e!="function")throw Error(I(191,e));e.call(t)}function jT(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)TT(n[e],t)}var Al=Tr(null),hd=Tr(0);function $1(e,t){e=fa,Fe(hd,e),Fe(Al,t),fa=e|t.baseLanes}function ov(){Fe(hd,fa),Fe(Al,Al.current)}function Wb(){fa=hd.current,$t(Al),$t(hd)}var Pn=Tr(null),Qn=null;function Ma(e){var t=e.alternate;Fe(st,st.current&1),Fe(Pn,e),Qn===null&&(t===null||Al.current!==null||t.memoizedState!==null)&&(Qn=e)}function lv(e){Fe(st,st.current),Fe(Pn,e),Qn===null&&(Qn=e)}function CT(e){e.tag===22?(Fe(st,st.current),Fe(Pn,e),Qn===null&&(Qn=e)):Na()}function Na(){Fe(st,st.current),Fe(Pn,Pn.current)}function An(e){$t(Pn),Qn===e&&(Qn=null),$t(st)}var st=Tr(0);function pd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_v(n)||Tv(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 ua=0,fe=null,Le=null,pt=null,yd=!1,tl=!1,no=!1,md=0,Cs=0,nl=null,WP=0;function at(){throw Error(I(321))}function Zb(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function Jb(e,t,n,r,a,i){return ua=i,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ae.H=e===null||e.memoizedState===null?oj:c0,no=!1,i=n(r,a),no=!1,tl&&(i=NT(t,n,r,a)),MT(e),i}function MT(e){ae.H=Ms;var t=Le!==null&&Le.next!==null;if(ua=0,pt=Le=fe=null,yd=!1,Cs=0,nl=null,t)throw Error(I(300));e===null||vt||(e=e.dependencies,e!==null&&fd(e)&&(vt=!0))}function NT(e,t,n,r){fe=e;var a=0;do{if(tl&&(nl=null),Cs=0,tl=!1,25<=a)throw Error(I(301));if(a+=1,pt=Le=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ae.H=lj,i=t(n,r)}while(tl);return i}function ZP(){var e=ae.H,t=e.useState()[0];return t=typeof t.then=="function"?$c(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(fe.flags|=1024),t}function e0(){var e=md!==0;return md=0,e}function t0(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function n0(e){if(yd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yd=!1}ua=0,pt=Le=fe=null,tl=!1,Cs=md=0,nl=null}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?fe.memoizedState=pt=e:pt=pt.next=e,pt}function ct(){if(Le===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=pt===null?fe.memoizedState:pt.next;if(t!==null)pt=t,Le=e;else{if(e===null)throw fe.alternate===null?Error(I(467)):Error(I(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},pt===null?fe.memoizedState=pt=e:pt=pt.next=e}return pt}function Xh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $c(e){var t=Cs;return Cs+=1,nl===null&&(nl=[]),e=AT(nl,e,t),t=fe,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,ae.H=t===null||t.memoizedState===null?oj:c0),e}function Qh(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $c(e);if(e.$$typeof===Xr)return It(e)}throw Error(I(438,String(e)))}function r0(e){var t=null,n=fe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=fe.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=Xh(),fe.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]=L$;return t.index++,n}function sa(e,t){return typeof t=="function"?t(e):t}function zf(e){var t=ct();return a0(t,Le,e)}function a0(e,t,n){var r=e.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var l=o=null,u=null,s=t,f=!1;do{var c=s.lane&-536870913;if(c!==s.lane?(be&c)===c:(ua&c)===c){var d=s.revertLane;if(d===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),c===wl&&(f=!0);else if((ua&d)===d){s=s.next,d===wl&&(f=!0);continue}else c={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(l=u=c,o=i):u=u.next=c,fe.lanes|=d,si|=d;c=s.action,no&&n(i,c),i=s.hasEagerState?s.eagerState:n(i,c)}else d={lane:c,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(l=u=d,o=i):u=u.next=d,fe.lanes|=c,si|=c;s=s.next}while(s!==null&&s!==t);if(u===null?o=i:u.next=l,!$n(i,e.memoizedState)&&(vt=!0,f&&(n=Jo,n!==null)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=u,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function My(e){var t=ct(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);$n(i,t.memoizedState)||(vt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function RT(e,t,n){var r=fe,a=ct(),i=Se;if(i){if(n===void 0)throw Error(I(407));n=n()}else n=t();var o=!$n((Le||a).memoizedState,n);if(o&&(a.memoizedState=n,vt=!0),a=a.queue,i0(DT.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,El(9,{destroy:void 0},PT.bind(null,r,a,n,t),null),ze===null)throw Error(I(349));i||ua&127||$T(r,t,n)}return n}function $T(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t=Xh(),fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function PT(e,t,n,r){t.value=n,t.getSnapshot=r,kT(t)&&LT(e)}function DT(e,t,n){return n(function(){kT(t)&&LT(e)})}function kT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function LT(e){var t=mo(e,2);t!==null&&hn(t,e,2)}function uv(e){var t=Wt();if(typeof e=="function"){var n=e;if(e=n(),no){Ha(!0);try{n()}finally{Ha(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e},t}function BT(e,t,n,r){return e.baseState=n,a0(e,Le,typeof r=="function"?r:sa)}function JP(e,t,n,r,a){if(Zh(e))throw Error(I(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};ae.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,UT(t,i)):(i.next=n.next,t.pending=n.next=i)}}function UT(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=ae.T,o={};ae.T=o;try{var l=n(a,r),u=ae.S;u!==null&&u(o,l),P1(e,t,l)}catch(s){sv(e,t,s)}finally{i!==null&&o.types!==null&&(i.types=o.types),ae.T=i}}else try{i=n(a,r),P1(e,t,i)}catch(s){sv(e,t,s)}}function P1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){D1(e,t,r)},function(r){return sv(e,t,r)}):D1(e,t,n)}function D1(e,t,n){t.status="fulfilled",t.value=n,zT(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,UT(e,n)))}function sv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,zT(t),t=t.next;while(t!==r)}e.action=null}function zT(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function IT(e,t){return t}function k1(e,t){if(Se){var n=ze.formState;if(n!==null){e:{var r=fe;if(Se){if(Qe){t:{for(var a=Qe,i=Yn;a.nodeType!==8;){if(!i){a=null;break t}if(a=Wn(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Qe=Wn(a.nextSibling),r=a.data==="F!";break e}}li(r)}r=!1}r&&(t=n[0])}}return n=Wt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IT,lastRenderedState:t},n.queue=r,n=rj.bind(null,fe,r),r.dispatch=n,r=uv(!1),i=s0.bind(null,fe,!1,r.queue),r=Wt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=JP.bind(null,fe,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function L1(e){var t=ct();return HT(t,Le,e)}function HT(e,t,n){if(t=a0(e,t,IT)[0],e=zf(sa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=$c(t)}catch(o){throw o===lu?Vh:o}else r=t;t=ct();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(fe.flags|=2048,El(9,{destroy:void 0},eD.bind(null,a,n),null)),[r,i,e]}function eD(e,t){e.action=t}function B1(e){var t=ct(),n=Le;if(n!==null)return HT(t,n,e);ct(),t=t.memoizedState,n=ct();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function El(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=fe.updateQueue,t===null&&(t=Xh(),fe.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 qT(){return ct().memoizedState}function If(e,t,n,r){var a=Wt();fe.flags|=e,a.memoizedState=El(1|t,{destroy:void 0},n,r===void 0?null:r)}function Wh(e,t,n,r){var a=ct();r=r===void 0?null:r;var i=a.memoizedState.inst;Le!==null&&r!==null&&Zb(r,Le.memoizedState.deps)?a.memoizedState=El(t,i,n,r):(fe.flags|=e,a.memoizedState=El(1|t,i,n,r))}function U1(e,t){If(8390656,8,e,t)}function i0(e,t){Wh(2048,8,e,t)}function tD(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=Xh(),fe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function FT(e){var t=ct().memoizedState;return tD({ref:t,nextImpl:e}),function(){if(Ae&2)throw Error(I(440));return t.impl.apply(void 0,arguments)}}function GT(e,t){return Wh(4,2,e,t)}function KT(e,t){return Wh(4,4,e,t)}function YT(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 VT(e,t,n){n=n!=null?n.concat([e]):null,Wh(4,4,YT.bind(null,t,e),n)}function o0(){}function XT(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Zb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function QT(e,t){var n=ct();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Zb(t,r[1]))return r[0];if(r=e(),no){Ha(!0);try{e()}finally{Ha(!1)}}return n.memoizedState=[r,t],r}function l0(e,t,n){return n===void 0||ua&1073741824&&!(be&261930)?e.memoizedState=t:(e.memoizedState=n,e=Bj(),fe.lanes|=e,si|=e,n)}function WT(e,t,n,r){return $n(n,t)?n:Al.current!==null?(e=l0(e,n,r),$n(e,t)||(vt=!0),e):!(ua&42)||ua&1073741824&&!(be&261930)?(vt=!0,e.memoizedState=n):(e=Bj(),fe.lanes|=e,si|=e,t)}function ZT(e,t,n,r,a){var i=Ee.p;Ee.p=i!==0&&8>i?i:8;var o=ae.T,l={};ae.T=l,s0(e,!1,t,n);try{var u=a(),s=ae.S;if(s!==null&&s(l,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=QP(u,r);cs(e,t,f,Nn(e))}else cs(e,t,r,Nn(e))}catch(c){cs(e,t,{then:function(){},status:"rejected",reason:c},Nn())}finally{Ee.p=i,o!==null&&l.types!==null&&(o.types=l.types),ae.T=o}}function nD(){}function cv(e,t,n,r){if(e.tag!==5)throw Error(I(476));var a=JT(e).queue;ZT(e,a,t,Gi,n===null?nD:function(){return ej(e),n(r)})}function JT(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Gi,baseState:Gi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:Gi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ej(e){var t=JT(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Nn())}function u0(){return It($s)}function tj(){return ct().memoizedState}function nj(){return ct().memoizedState}function rD(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nn();e=Qa(n);var r=Wa(t,e,n);r!==null&&(hn(r,t,n),ls(r,t,n)),t={cache:Yb()},e.payload=t;return}t=t.return}}function aD(e,t,n){var r=Nn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Zh(e)?aj(t,n):(n=qb(e,t,n,r),n!==null&&(hn(n,e,r),ij(n,t,r)))}function rj(e,t,n){var r=Nn();cs(e,t,n,r)}function cs(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zh(e))aj(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,$n(l,o))return Yh(e,t,a,0),ze===null&&Kh(),!1}catch{}finally{}if(n=qb(e,t,a,r),n!==null)return hn(n,e,r),ij(n,t,r),!0}return!1}function s0(e,t,n,r){if(r={lane:2,revertLane:g0(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Zh(e)){if(t)throw Error(I(479))}else t=qb(e,n,r,2),t!==null&&hn(t,e,2)}function Zh(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function aj(e,t){tl=yd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ij(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,F_(e,n)}}var Ms={readContext:It,use:Qh,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};Ms.useEffectEvent=at;var oj={readContext:It,use:Qh,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:U1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,If(4194308,4,YT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return If(4194308,4,e,t)},useInsertionEffect:function(e,t){If(4,2,e,t)},useMemo:function(e,t){var n=Wt();t=t===void 0?null:t;var r=e();if(no){Ha(!0);try{e()}finally{Ha(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Wt();if(n!==void 0){var a=n(t);if(no){Ha(!0);try{n(t)}finally{Ha(!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=aD.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:function(e){e=uv(e);var t=e.queue,n=rj.bind(null,fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:o0,useDeferredValue:function(e,t){var n=Wt();return l0(n,e,t)},useTransition:function(){var e=uv(!1);return e=ZT.bind(null,fe,e.queue,!0,!1),Wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=fe,a=Wt();if(Se){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),ze===null)throw Error(I(349));be&127||$T(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,U1(DT.bind(null,r,i,e),[e]),r.flags|=2048,El(9,{destroy:void 0},PT.bind(null,r,i,n,t),null),n},useId:function(){var e=Wt(),t=ze.identifierPrefix;if(Se){var n=xr,r=br;n=(r&~(1<<32-Mn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=md++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=WP++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:u0,useFormState:k1,useActionState:k1,useOptimistic:function(e){var t=Wt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=s0.bind(null,fe,!0,n),n.dispatch=t,[e,t]},useMemoCache:r0,useCacheRefresh:function(){return Wt().memoizedState=rD.bind(null,fe)},useEffectEvent:function(e){var t=Wt(),n={impl:e};return t.memoizedState=n,function(){if(Ae&2)throw Error(I(440));return n.impl.apply(void 0,arguments)}}},c0={readContext:It,use:Qh,useCallback:XT,useContext:It,useEffect:i0,useImperativeHandle:VT,useInsertionEffect:GT,useLayoutEffect:KT,useMemo:QT,useReducer:zf,useRef:qT,useState:function(){return zf(sa)},useDebugValue:o0,useDeferredValue:function(e,t){var n=ct();return WT(n,Le.memoizedState,e,t)},useTransition:function(){var e=zf(sa)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:$c(e),t]},useSyncExternalStore:RT,useId:tj,useHostTransitionStatus:u0,useFormState:L1,useActionState:L1,useOptimistic:function(e,t){var n=ct();return BT(n,Le,e,t)},useMemoCache:r0,useCacheRefresh:nj};c0.useEffectEvent=FT;var lj={readContext:It,use:Qh,useCallback:XT,useContext:It,useEffect:i0,useImperativeHandle:VT,useInsertionEffect:GT,useLayoutEffect:KT,useMemo:QT,useReducer:My,useRef:qT,useState:function(){return My(sa)},useDebugValue:o0,useDeferredValue:function(e,t){var n=ct();return Le===null?l0(n,e,t):WT(n,Le.memoizedState,e,t)},useTransition:function(){var e=My(sa)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:$c(e),t]},useSyncExternalStore:RT,useId:tj,useHostTransitionStatus:u0,useFormState:B1,useActionState:B1,useOptimistic:function(e,t){var n=ct();return Le!==null?BT(n,Le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:r0,useCacheRefresh:nj};lj.useEffectEvent=FT;function Ny(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Je({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fv={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nn(),a=Qa(r);a.payload=t,n!=null&&(a.callback=n),t=Wa(e,a,r),t!==null&&(hn(t,e,r),ls(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nn(),a=Qa(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Wa(e,a,r),t!==null&&(hn(t,e,r),ls(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nn(),r=Qa(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(hn(t,e,n),ls(t,e,n))}};function z1(e,t,n,r,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Es(n,r)||!Es(a,i):!0}function I1(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&&fv.enqueueReplaceState(t,t.state,null)}function ro(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=Je({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function uj(e){ud(e)}function sj(e){console.error(e)}function cj(e){ud(e)}function vd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function H1(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 dv(e,t,n){return n=Qa(n),n.tag=3,n.payload={element:null},n.callback=function(){vd(e,t)},n}function fj(e){return e=Qa(e),e.tag=3,e}function dj(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(){H1(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){H1(t,n,r),typeof a!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function iD(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&ou(t,n,a,!0),n=Pn.current,n!==null){switch(n.tag){case 31:case 13:return Qn===null?Od():n.alternate===null&&lt===0&&(lt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===dd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Hy(e,r,a)),!1;case 22:return n.flags|=65536,r===dd?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)),Hy(e,r,a)),!1}throw Error(I(435,n.tag))}return Hy(e,r,a),Od(),!1}if(Se)return t=Pn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Jm&&(e=Error(I(422),{cause:r}),Ts(Kn(e,n)))):(r!==Jm&&(t=Error(I(423),{cause:r}),Ts(Kn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Kn(r,n),a=dv(e.stateNode,r,a),Cy(e,a),lt!==4&&(lt=2)),!1;var i=Error(I(520),{cause:r});if(i=Kn(i,n),hs===null?hs=[i]:hs.push(i),lt!==4&&(lt=2),t===null)return!0;r=Kn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=dv(n.stateNode,r,e),Cy(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"&&(Za===null||!Za.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=fj(a),dj(a,e,n,r),Cy(n,a),!1}n=n.return}while(n!==null);return!1}var f0=Error(I(461)),vt=!1;function Lt(e,t,n,r){t.child=e===null?_T(t,null,n,r):to(t,e.child,n,r)}function q1(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var o={};for(var l in r)l!=="ref"&&(o[l]=r[l])}else o=r;return eo(t),r=Jb(e,t,n,o,i,a),l=e0(),e!==null&&!vt?(t0(e,t,a),ca(e,t,a)):(Se&&l&&Gb(t),t.flags|=1,Lt(e,t,r,a),t.child)}function F1(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!Fb(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,hj(e,t,i,r,a)):(e=Bf(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!d0(e,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Es,n(o,r)&&e.ref===t.ref)return ca(e,t,a)}return t.flags|=1,e=ea(i,r),e.ref=t.ref,e.return=t,t.child=e}function hj(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Es(i,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=i,d0(e,a))e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,ca(e,t,a)}return hv(e,t,n,r,a)}function pj(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 G1(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Uf(t,i!==null?i.cachePool:null),i!==null?$1(t,i):ov(),CT(t);else return r=t.lanes=536870912,G1(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Uf(t,i.cachePool),$1(t,i),Na(),t.memoizedState=null):(e!==null&&Uf(t,null),ov(),Na());return Lt(e,t,a,n),t.child}function Zu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function G1(e,t,n,r,a){var i=Vb();return i=i===null?null:{parent:mt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Uf(t,null),ov(),CT(t),e!==null&&ou(e,t,r,!0),t.childLanes=a,null}function Hf(e,t){return t=gd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function K1(e,t,n){return to(t,e.child,null,n),e=Hf(t,t.pendingProps),e.flags|=2,An(t),t.memoizedState=null,e}function oD(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(r.mode==="hidden")return e=Hf(t,r),t.lanes=536870912,Zu(null,e);if(lv(t),(e=Qe)?(e=oC(e,Yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:br,overflow:xr}:null,retryLane:536870912,hydrationErrors:null},n=bT(e),n.return=t,t.child=n,Ut=t,Qe=null)):e=null,e===null)throw li(t);return t.lanes=536870912,null}return Hf(t,r)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(lv(t),a)if(t.flags&256)t.flags&=-257,t=K1(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(I(558));else if(vt||ou(e,t,n,!1),a=(n&e.childLanes)!==0,vt||a){if(r=ze,r!==null&&(o=G_(r,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,mo(e,o),hn(r,e,o),f0;Od(),t=K1(e,t,n)}else e=i.treeContext,Qe=Wn(o.nextSibling),Ut=t,Se=!0,Xa=null,Yn=!1,e!==null&&ST(t,e),t=Hf(t,r),t.flags|=4096;return t}return e=ea(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qf(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 hv(e,t,n,r,a){return eo(t),n=Jb(e,t,n,r,void 0,a),r=e0(),e!==null&&!vt?(t0(e,t,a),ca(e,t,a)):(Se&&r&&Gb(t),t.flags|=1,Lt(e,t,n,a),t.child)}function Y1(e,t,n,r,a,i){return eo(t),t.updateQueue=null,n=NT(t,r,n,a),MT(e),r=e0(),e!==null&&!vt?(t0(e,t,i),ca(e,t,i)):(Se&&r&&Gb(t),t.flags|=1,Lt(e,t,n,i),t.child)}function V1(e,t,n,r,a){if(eo(t),t.stateNode===null){var i=Io,o=n.contextType;typeof o=="object"&&o!==null&&(i=It(o)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=fv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},Qb(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?It(o):Io,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Ny(t,n,o,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&fv.enqueueReplaceState(i,i.state,null),ss(t,r,i,a),us(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var l=t.memoizedProps,u=ro(n,l);i.props=u;var s=i.context,f=n.contextType;o=Io,typeof f=="object"&&f!==null&&(o=It(f));var c=n.getDerivedStateFromProps;f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l||s!==o)&&I1(t,i,r,o),_a=!1;var d=t.memoizedState;i.state=d,ss(t,r,i,a),us(),s=t.memoizedState,l||d!==s||_a?(typeof c=="function"&&(Ny(t,n,c,r),s=t.memoizedState),(u=_a||z1(t,n,u,r,d,s,o))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=o,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,av(e,t),o=t.memoizedProps,f=ro(n,o),i.props=f,c=t.pendingProps,d=i.context,s=n.contextType,u=Io,typeof s=="object"&&s!==null&&(u=It(s)),l=n.getDerivedStateFromProps,(s=typeof l=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==c||d!==u)&&I1(t,i,r,u),_a=!1,d=t.memoizedState,i.state=d,ss(t,r,i,a),us();var h=t.memoizedState;o!==c||d!==h||_a||e!==null&&e.dependencies!==null&&fd(e.dependencies)?(typeof l=="function"&&(Ny(t,n,l,r),h=t.memoizedState),(f=_a||z1(t,n,f,r,d,h,u)||e!==null&&e.dependencies!==null&&fd(e.dependencies))?(s||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,h,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,h,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=u,r=f):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,qf(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=to(t,e.child,null,a),t.child=to(t,null,n,a)):Lt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=ca(e,t,a),e}function X1(e,t,n,r){return Ji(),t.flags|=256,Lt(e,t,n,r),t.child}var Ry={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $y(e){return{baseLanes:e,cachePool:wT()}}function Py(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tn),e}function yj(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(a?Ma(t):Na(),(e=Qe)?(e=oC(e,Yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:br,overflow:xr}:null,retryLane:536870912,hydrationErrors:null},n=bT(e),n.return=t,t.child=n,Ut=t,Qe=null)):e=null,e===null)throw li(t);return Tv(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,a?(Na(),a=t.mode,l=gd({mode:"hidden",children:l},a),r=Ki(r,a,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=$y(n),r.childLanes=Py(e,o,n),t.memoizedState=Ry,Zu(null,r)):(Ma(t),pv(t,l))}var u=e.memoizedState;if(u!==null&&(l=u.dehydrated,l!==null)){if(i)t.flags&256?(Ma(t),t.flags&=-257,t=Dy(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),l=r.fallback,a=t.mode,r=gd({mode:"visible",children:r.children},a),l=Ki(l,a,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,to(t,e.child,null,n),r=t.child,r.memoizedState=$y(n),r.childLanes=Py(e,o,n),t.memoizedState=Ry,t=Zu(null,r));else if(Ma(t),Tv(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var s=o.dgst;o=s,r=Error(I(419)),r.stack="",r.digest=o,Ts({value:r,source:null,stack:null}),t=Dy(e,t,n)}else if(vt||ou(e,t,n,!1),o=(n&e.childLanes)!==0,vt||o){if(o=ze,o!==null&&(r=G_(o,n),r!==0&&r!==u.retryLane))throw u.retryLane=r,mo(e,r),hn(o,e,r),f0;_v(l)||Od(),t=Dy(e,t,n)}else _v(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Qe=Wn(l.nextSibling),Ut=t,Se=!0,Xa=null,Yn=!1,e!==null&&ST(t,e),t=pv(t,r.children),t.flags|=4096);return t}return a?(Na(),l=r.fallback,a=t.mode,u=e.child,s=u.sibling,r=ea(u,{mode:"hidden",children:r.children}),r.subtreeFlags=u.subtreeFlags&65011712,s!==null?l=ea(s,l):(l=Ki(l,a,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,Zu(null,r),r=t.child,l=e.child.memoizedState,l===null?l=$y(n):(a=l.cachePool,a!==null?(u=mt._currentValue,a=a.parent!==u?{parent:u,pool:u}:a):a=wT(),l={baseLanes:l.baseLanes|n,cachePool:a}),r.memoizedState=l,r.childLanes=Py(e,o,n),t.memoizedState=Ry,Zu(e.child,r)):(Ma(t),n=e.child,e=n.sibling,n=ea(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function pv(e,t){return t=gd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function gd(e,t){return e=En(22,e,null,t),e.lanes=0,e}function Dy(e,t,n){return to(t,e.child,null,n),e=pv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Q1(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),tv(e.return,t,n)}function ky(e,t,n,r,a,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.treeForkCount=i)}function mj(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var o=st.current,l=(o&2)!==0;if(l?(o=o&1|2,t.flags|=128):o&=1,Fe(st,o),Lt(e,t,r,n),r=Se?_s:0,!l&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Q1(e,n,t);else if(e.tag===19)Q1(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&&pd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ky(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&&pd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ky(t,!0,n,null,i,r);break;case"together":ky(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ca(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),si|=t.lanes,!(n&t.childLanes))if(e!==null){if(ou(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=ea(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ea(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d0(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&fd(e)))}function lD(e,t,n){switch(t.tag){case 3:ad(t,t.stateNode.containerInfo),Ca(t,mt,e.memoizedState.cache),Ji();break;case 27:case 5:Hm(t);break;case 4:ad(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lv(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ma(t),t.flags|=128,null):n&t.child.childLanes?yj(e,t,n):(Ma(t),e=ca(e,t,n),e!==null?e.sibling:null);Ma(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(ou(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return mj(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Fe(st,st.current),r)break;return null;case 22:return t.lanes=0,pj(e,t,n,t.pendingProps);case 24:Ca(t,mt,e.memoizedState.cache)}return ca(e,t,n)}function vj(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!d0(e,n)&&!(t.flags&128))return vt=!1,lD(e,t,n);vt=!!(e.flags&131072)}else vt=!1,Se&&t.flags&1048576&&xT(t,_s,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Ai(t.elementType),t.type=e,typeof e=="function")Fb(e)?(r=ro(e,r),t.tag=1,t=V1(null,t,e,r,n)):(t.tag=0,t=hv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===Mb){t.tag=11,t=q1(null,t,e,r,n);break e}else if(a===Nb){t.tag=14,t=F1(null,t,e,r,n);break e}}throw t=zm(e)||e,Error(I(306,t,""))}}return t;case 0:return hv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=ro(r,t.pendingProps),V1(e,t,r,a,n);case 3:e:{if(ad(t,t.stateNode.containerInfo),e===null)throw Error(I(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,av(e,t),ss(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ca(t,mt,r),r!==i.cache&&nv(t,[mt],n,!0),us(),r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=X1(e,t,r,n);break e}else if(r!==a){a=Kn(Error(I(424)),t),Ts(a),t=X1(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=Wn(e.firstChild),Ut=t,Se=!0,Xa=null,Yn=!0,n=_T(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ji(),r===a){t=ca(e,t,n);break e}Lt(e,t,r,n)}t=t.child}return t;case 26:return qf(e,t),e===null?(n=mS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,r=_d(Va.current).createElement(n),r[Bt]=t,r[yn]=e,qt(r,n,e),Nt(r),t.stateNode=r):t.memoizedState=mS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Hm(t),e===null&&Se&&(r=t.stateNode=lC(t.type,t.pendingProps,Va.current),Ut=t,Yn=!0,a=Qe,fi(t.type)?(jv=a,Qe=Wn(r.firstChild)):Qe=a),Lt(e,t,t.pendingProps.children,n),qf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((a=r=Qe)&&(r=LD(r,t.type,t.pendingProps,Yn),r!==null?(t.stateNode=r,Ut=t,Qe=Wn(r.firstChild),Yn=!1,a=!0):a=!1),a||li(t)),Hm(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,Av(a,i)?r=null:o!==null&&Av(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=Jb(e,t,ZP,null,null,n),$s._currentValue=a),qf(e,t),Lt(e,t,r,n),t.child;case 6:return e===null&&Se&&((e=n=Qe)&&(n=BD(n,t.pendingProps,Yn),n!==null?(t.stateNode=n,Ut=t,Qe=null,e=!0):e=!1),e||li(t)),null;case 13:return yj(e,t,n);case 4:return ad(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=to(t,null,r,n):Lt(e,t,r,n),t.child;case 11:return q1(e,t,t.type,t.pendingProps,n);case 7:return Lt(e,t,t.pendingProps,n),t.child;case 8:return Lt(e,t,t.pendingProps.children,n),t.child;case 12:return Lt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ca(t,t.type,r.value),Lt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,eo(t),a=It(a),r=r(a),t.flags|=1,Lt(e,t,r,n),t.child;case 14:return F1(e,t,t.type,t.pendingProps,n);case 15:return hj(e,t,t.type,t.pendingProps,n);case 19:return mj(e,t,n);case 31:return oD(e,t,n);case 22:return pj(e,t,n,t.pendingProps);case 24:return eo(t),r=It(mt),e===null?(a=Vb(),a===null&&(a=ze,i=Yb(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},Qb(t),Ca(t,mt,a)):(e.lanes&n&&(av(e,t),ss(t,null,null,n),us()),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),Ca(t,mt,r)):(r=i.cache,Ca(t,mt,r),r!==a.cache&&nv(t,[mt],n,!0))),Lt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(I(156,t.tag))}function kr(e){e.flags|=4}function Ly(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(Ij())e.flags|=8192;else throw Vi=dd,Xb}else e.flags&=-16777217}function W1(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!cC(t))if(Ij())e.flags|=8192;else throw Vi=dd,Xb}function ff(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?H_():536870912,e.lanes|=t,_l|=t)}function Pu(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function uD(e,t,n){var r=t.pendingProps;switch(Kb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ta(mt),xl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wo(t)?kr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jy())),Ye(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(kr(t),i!==null?(Ye(t),W1(t,i)):(Ye(t),Ly(t,a,null,r,n))):i?i!==e.memoizedState?(kr(t),Ye(t),W1(t,i)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&kr(t),Ye(t),Ly(t,a,e,r,n)),null;case 27:if(id(t),n=Va.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ye(t),null}e=wr.current,wo(t)?_1(t):(e=lC(a,r,n),t.stateNode=e,kr(t))}return Ye(t),null;case 5:if(id(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ye(t),null}if(i=wr.current,wo(t))_1(t);else{var o=_d(Va.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?o.createElement(a,{is:r.is}):o.createElement(a)}}i[Bt]=t,i[yn]=r;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(qt(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&&kr(t)}}return Ye(t),Ly(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(e=Va.current,wo(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ut,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Bt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||rC(e.nodeValue,n)),e||li(t,!0)}else e=_d(e).createTextNode(r),e[Bt]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=wo(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[Bt]=t}else Ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=jy(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(An(t),t):(An(t),null);if(t.flags&128)throw Error(I(558))}return Ye(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=wo(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[Bt]=t}else Ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),a=!1}else a=jy(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(An(t),t):(An(t),null)}return An(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),ff(t,t.updateQueue),Ye(t),null);case 4:return xl(),e===null&&b0(t.stateNode.containerInfo),Ye(t),null;case 10:return ta(t.type),Ye(t),null;case 19:if($t(st),r=t.memoizedState,r===null)return Ye(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Pu(r,!1);else{if(lt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=pd(e),i!==null){for(t.flags|=128,Pu(r,!1),e=i.updateQueue,t.updateQueue=e,ff(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)gT(n,e),n=n.sibling;return Fe(st,st.current&1|2),Se&&qr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&jn()>xd&&(t.flags|=128,a=!0,Pu(r,!1),t.lanes=4194304)}else{if(!a)if(e=pd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ff(t,e),Pu(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Se)return Ye(t),null}else 2*jn()-r.renderingStartTime>xd&&n!==536870912&&(t.flags|=128,a=!0,Pu(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=jn(),e.sibling=null,n=st.current,Fe(st,a?n&1|2:n&1),Se&&qr(t,r.treeForkCount),e):(Ye(t),null);case 22:case 23:return An(t),Wb(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&ff(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&&$t(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ta(mt),Ye(t),null;case 25:return null;case 30:return null}throw Error(I(156,t.tag))}function sD(e,t){switch(Kb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(mt),xl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return id(t),null;case 31:if(t.memoizedState!==null){if(An(t),t.alternate===null)throw Error(I(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(An(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(st),null;case 4:return xl(),null;case 10:return ta(t.type),null;case 22:case 23:return An(t),Wb(),e!==null&&$t(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(mt),null;case 25:return null;default:return null}}function gj(e,t){switch(Kb(t),t.tag){case 3:ta(mt),xl();break;case 26:case 27:case 5:id(t);break;case 4:xl();break;case 31:t.memoizedState!==null&&An(t);break;case 13:An(t);break;case 19:$t(st);break;case 10:ta(t.type);break;case 22:case 23:An(t),Wb(),e!==null&&$t(Yi);break;case 24:ta(mt)}}function Pc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,o=n.inst;r=i(),o.destroy=r}n=n.next}while(n!==a)}}catch(l){Me(t,t.return,l)}}function ui(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var o=r.inst,l=o.destroy;if(l!==void 0){o.destroy=void 0,a=t;var u=n,s=l;try{s()}catch(f){Me(a,u,f)}}}r=r.next}while(r!==i)}}catch(f){Me(t,t.return,f)}}function bj(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jT(t,n)}catch(r){Me(e,e.return,r)}}}function xj(e,t,n){n.props=ro(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Me(e,t,r)}}function fs(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){Me(e,t,a)}}function Sr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Me(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){Me(e,t,a)}else n.current=null}function Sj(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){Me(e,e.return,a)}}function By(e,t,n){try{var r=e.stateNode;ND(r,e.type,n,t),r[yn]=t}catch(a){Me(e,e.return,a)}}function Oj(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fi(e.type)||e.tag===4}function Uy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oj(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&&fi(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 yv(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=Qr));else if(r!==4&&(r===27&&fi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(yv(e,t,n),e=e.sibling;e!==null;)yv(e,t,n),e=e.sibling}function bd(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&&fi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(bd(e,t,n),e=e.sibling;e!==null;)bd(e,t,n),e=e.sibling}function wj(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);qt(t,r,n),t[Bt]=e,t[yn]=n}catch(i){Me(e,e.return,i)}}var Vr=!1,yt=!1,zy=!1,Z1=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function cD(e,t){if(e=e.containerInfo,Ov=Md,e=cT(e),Ib(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||a!==0&&c.nodeType!==3||(l=o+a),c!==i||r!==0&&c.nodeType!==3||(u=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++s===a&&(l=o),d===i&&++f===r&&(u=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(wv={focusedElem:e,selectionRange:n},Md=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){switch(t=Mt,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var b=ro(n.type,a);e=r.getSnapshotBeforeUpdate(b,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){Me(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ev(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ev(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,Mt=e;break}Mt=t.return}}function Aj(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Br(e,n),r&4&&Pc(5,n);break;case 1:if(Br(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){Me(n,n.return,o)}else{var a=ro(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Me(n,n.return,o)}}r&64&&bj(n),r&512&&fs(n,n.return);break;case 3:if(Br(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{jT(e,t)}catch(o){Me(n,n.return,o)}}break;case 27:t===null&&r&4&&wj(n);case 26:case 5:Br(e,n),t===null&&r&4&&Sj(n),r&512&&fs(n,n.return);break;case 12:Br(e,n);break;case 31:Br(e,n),r&4&&Tj(e,n);break;case 13:Br(e,n),r&4&&jj(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=bD.bind(null,n),UD(e,n))));break;case 22:if(r=n.memoizedState!==null||Vr,!r){t=t!==null&&t.memoizedState!==null||yt,a=Vr;var i=yt;Vr=r,(yt=t)&&!i?zr(e,n,(n.subtreeFlags&8772)!==0):Br(e,n),Vr=a,yt=i}break;case 30:break;default:Br(e,n)}}function Ej(e){var t=e.alternate;t!==null&&(e.alternate=null,Ej(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Db(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 tt=null,cn=!1;function Lr(e,t,n){for(n=n.child;n!==null;)_j(e,t,n),n=n.sibling}function _j(e,t,n){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(Tc,n)}catch{}switch(n.tag){case 26:yt||Sr(n,t),Lr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:yt||Sr(n,t);var r=tt,a=cn;fi(n.type)&&(tt=n.stateNode,cn=!1),Lr(e,t,n),ys(n.stateNode),tt=r,cn=a;break;case 5:yt||Sr(n,t);case 6:if(r=tt,a=cn,tt=null,Lr(e,t,n),tt=r,cn=a,tt!==null)if(cn)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(n.stateNode)}catch(i){Me(n,t,i)}else try{tt.removeChild(n.stateNode)}catch(i){Me(n,t,i)}break;case 18:tt!==null&&(cn?(e=tt,fS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):fS(tt,n.stateNode));break;case 4:r=tt,a=cn,tt=n.stateNode.containerInfo,cn=!0,Lr(e,t,n),tt=r,cn=a;break;case 0:case 11:case 14:case 15:ui(2,n,t),yt||ui(4,n,t),Lr(e,t,n);break;case 1:yt||(Sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&xj(n,t,r)),Lr(e,t,n);break;case 21:Lr(e,t,n);break;case 22:yt=(r=yt)||n.memoizedState!==null,Lr(e,t,n),yt=r;break;default:Lr(e,t,n)}}function Tj(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ml(e)}catch(n){Me(t,t.return,n)}}}function jj(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ml(e)}catch(n){Me(t,t.return,n)}}function fD(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Z1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Z1),t;default:throw Error(I(435,e.tag))}}function df(e,t){var n=fD(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=xD.bind(null,e,r);r.then(a,a)}})}function on(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 27:if(fi(l.type)){tt=l.stateNode,cn=!1;break e}break;case 5:tt=l.stateNode,cn=!1;break e;case 3:case 4:tt=l.stateNode.containerInfo,cn=!0;break e}l=l.return}if(tt===null)throw Error(I(160));_j(i,o,a),tt=null,cn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cj(t,e),t=t.sibling}var or=null;function Cj(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:on(t,e),ln(e),r&4&&(ui(3,e,e.return),Pc(3,e),ui(5,e,e.return));break;case 1:on(t,e),ln(e),r&512&&(yt||n===null||Sr(n,n.return)),r&64&&Vr&&(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=or;if(on(t,e),ln(e),r&512&&(yt||n===null||Sr(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[Mc]||i[Bt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),qt(i,r,n),i[Bt]=e,Nt(i),r=i;break e;case"link":var o=gS("link","href",a).get(r+(n.href||""));if(o){for(var l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(r),qt(i,r,n),a.head.appendChild(i);break;case"meta":if(o=gS("meta","content",a).get(r+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(r),qt(i,r,n),a.head.appendChild(i);break;default:throw Error(I(468,r))}i[Bt]=e,Nt(i),r=i}e.stateNode=r}else bS(a,e.type,e.stateNode);else e.stateNode=vS(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?bS(a,e.type,e.stateNode):vS(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&By(e,e.memoizedProps,n.memoizedProps)}break;case 27:on(t,e),ln(e),r&512&&(yt||n===null||Sr(n,n.return)),n!==null&&r&4&&By(e,e.memoizedProps,n.memoizedProps);break;case 5:if(on(t,e),ln(e),r&512&&(yt||n===null||Sr(n,n.return)),e.flags&32){a=e.stateNode;try{Ol(a,"")}catch(b){Me(e,e.return,b)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,By(e,a,n!==null?n.memoizedProps:a)),r&1024&&(zy=!0);break;case 6:if(on(t,e),ln(e),r&4){if(e.stateNode===null)throw Error(I(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(b){Me(e,e.return,b)}}break;case 3:if(Kf=null,a=or,or=Td(t.containerInfo),on(t,e),or=a,ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(b){Me(e,e.return,b)}zy&&(zy=!1,Mj(e));break;case 4:r=or,or=Td(e.stateNode.containerInfo),on(t,e),ln(e),or=r;break;case 12:on(t,e),ln(e);break;case 31:on(t,e),ln(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,df(e,r)));break;case 13:on(t,e),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Jh=jn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,df(e,r)));break;case 22:a=e.memoizedState!==null;var u=n!==null&&n.memoizedState!==null,s=Vr,f=yt;if(Vr=s||a,yt=f||u,on(t,e),yt=f,Vr=s,ln(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||u||Vr||yt||Ei(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){u=n=t;try{if(i=u.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{l=u.stateNode;var c=u.memoizedProps.style,d=c!=null&&c.hasOwnProperty("display")?c.display:null;l.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(b){Me(u,u.return,b)}}}else if(t.tag===6){if(n===null){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(b){Me(u,u.return,b)}}}else if(t.tag===18){if(n===null){u=t;try{var h=u.stateNode;a?dS(h,!0):dS(u.stateNode,!1)}catch(b){Me(u,u.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,df(e,n))));break;case 19:on(t,e),ln(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,df(e,r)));break;case 30:break;case 21:break;default:on(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Oj(r)){n=r;break}r=r.return}if(n==null)throw Error(I(160));switch(n.tag){case 27:var a=n.stateNode,i=Uy(e);bd(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(Ol(o,""),n.flags&=-33);var l=Uy(e);bd(e,l,o);break;case 3:case 4:var u=n.stateNode.containerInfo,s=Uy(e);yv(e,s,u);break;default:throw Error(I(161))}}catch(f){Me(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mj(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Mj(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Br(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Aj(e,t.alternate,t),t=t.sibling}function Ei(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ui(4,t,t.return),Ei(t);break;case 1:Sr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&xj(t,t.return,n),Ei(t);break;case 27:ys(t.stateNode);case 26:case 5:Sr(t,t.return),Ei(t);break;case 22:t.memoizedState===null&&Ei(t);break;case 30:Ei(t);break;default:Ei(t)}e=e.sibling}}function zr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:zr(a,i,n),Pc(4,i);break;case 1:if(zr(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(s){Me(r,r.return,s)}if(r=i,a=r.updateQueue,a!==null){var l=r.stateNode;try{var u=a.shared.hiddenCallbacks;if(u!==null)for(a.shared.hiddenCallbacks=null,a=0;a<u.length;a++)TT(u[a],l)}catch(s){Me(r,r.return,s)}}n&&o&64&&bj(i),fs(i,i.return);break;case 27:wj(i);case 26:case 5:zr(a,i,n),n&&r===null&&o&4&&Sj(i),fs(i,i.return);break;case 12:zr(a,i,n);break;case 31:zr(a,i,n),n&&o&4&&Tj(a,i);break;case 13:zr(a,i,n),n&&o&4&&jj(a,i);break;case 22:i.memoizedState===null&&zr(a,i,n),fs(i,i.return);break;case 30:break;default:zr(a,i,n)}t=t.sibling}}function h0(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&&Rc(n))}function p0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Rc(e))}function rr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nj(e,t,n,r),t=t.sibling}function Nj(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:rr(e,t,n,r),a&2048&&Pc(9,t);break;case 1:rr(e,t,n,r);break;case 3:rr(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&&Rc(e)));break;case 12:if(a&2048){rr(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,l=i.onPostCommit;typeof l=="function"&&l(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){Me(t,t.return,u)}}else rr(e,t,n,r);break;case 31:rr(e,t,n,r);break;case 13:rr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?rr(e,t,n,r):ds(e,t):i._visibility&2?rr(e,t,n,r):(i._visibility|=2,Mo(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&h0(o,t);break;case 24:rr(e,t,n,r),a&2048&&p0(t.alternate,t);break;default:rr(e,t,n,r)}}function Mo(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,l=n,u=r,s=o.flags;switch(o.tag){case 0:case 11:case 15:Mo(i,o,l,u,a),Pc(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Mo(i,o,l,u,a):ds(i,o):(f._visibility|=2,Mo(i,o,l,u,a)),a&&s&2048&&h0(o.alternate,o);break;case 24:Mo(i,o,l,u,a),a&&s&2048&&p0(o.alternate,o);break;default:Mo(i,o,l,u,a)}t=t.sibling}}function ds(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:ds(n,r),a&2048&&h0(r.alternate,r);break;case 24:ds(n,r),a&2048&&p0(r.alternate,r);break;default:ds(n,r)}t=t.sibling}}var Ju=8192;function Ao(e,t,n){if(e.subtreeFlags&Ju)for(e=e.child;e!==null;)Rj(e,t,n),e=e.sibling}function Rj(e,t,n){switch(e.tag){case 26:Ao(e,t,n),e.flags&Ju&&e.memoizedState!==null&&WD(n,or,e.memoizedState,e.memoizedProps);break;case 5:Ao(e,t,n);break;case 3:case 4:var r=or;or=Td(e.stateNode.containerInfo),Ao(e,t,n),or=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ju,Ju=16777216,Ao(e,t,n),Ju=r):Ao(e,t,n));break;default:Ao(e,t,n)}}function $j(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 Du(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Mt=r,Dj(r,e)}$j(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pj(e),e=e.sibling}function Pj(e){switch(e.tag){case 0:case 11:case 15:Du(e),e.flags&2048&&ui(9,e,e.return);break;case 3:Du(e);break;case 12:Du(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ff(e)):Du(e);break;default:Du(e)}}function Ff(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Mt=r,Dj(r,e)}$j(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ui(8,t,t.return),Ff(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ff(t));break;default:Ff(t)}e=e.sibling}}function Dj(e,t){for(;Mt!==null;){var n=Mt;switch(n.tag){case 0:case 11:case 15:ui(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:Rc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Mt=r;else e:for(n=e;Mt!==null;){r=Mt;var a=r.sibling,i=r.return;if(Ej(r),r===n){Mt=null;break e}if(a!==null){a.return=i,Mt=a;break e}Mt=i}}}var dD={getCacheForType:function(e){var t=It(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return It(mt).controller.signal}},hD=typeof WeakMap=="function"?WeakMap:Map,Ae=0,ze=null,ge=null,be=0,Ce=0,xn=null,Fa=!1,uu=!1,y0=!1,fa=0,lt=0,si=0,Xi=0,m0=0,Tn=0,_l=0,hs=null,fn=null,mv=!1,Jh=0,kj=0,xd=1/0,Sd=null,Za=null,At=0,Ja=null,Tl=null,na=0,vv=0,gv=null,Lj=null,ps=0,bv=null;function Nn(){return Ae&2&&be!==0?be&-be:ae.T!==null?g0():K_()}function Bj(){if(Tn===0)if(!(be&536870912)||Se){var e=rf;rf<<=1,!(rf&3932160)&&(rf=262144),Tn=e}else Tn=536870912;return e=Pn.current,e!==null&&(e.flags|=32),Tn}function hn(e,t,n){(e===ze&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(jl(e,0),Ga(e,be,Tn,!1)),Cc(e,n),(!(Ae&2)||e!==ze)&&(e===ze&&(!(Ae&2)&&(Xi|=n),lt===4&&Ga(e,be,Tn,!1)),jr(e))}function Uj(e,t,n){if(Ae&6)throw Error(I(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||jc(e,t),a=r?mD(e,t):Iy(e,t,!0),i=r;do{if(a===0){uu&&!r&&Ga(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!pD(n)){a=Iy(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var l=e;a=hs;var u=l.current.memoizedState.isDehydrated;if(u&&(jl(l,o).flags|=256),o=Iy(l,o,!1),o!==2){if(y0&&!u){l.errorRecoveryDisabledLanes|=i,Xi|=i,a=4;break e}i=fn,fn=a,i!==null&&(fn===null?fn=i:fn.push.apply(fn,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){jl(e,0),Ga(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:Ga(r,t,Tn,!Fa);break e;case 2:fn=null;break;case 3:case 5:break;default:throw Error(I(329))}if((t&62914560)===t&&(a=Jh+300-jn(),10<a)){if(Ga(r,t,Tn,!Fa),Hh(r,0,!0)!==0)break e;na=t,r.timeoutHandle=iC(J1.bind(null,r,n,fn,Sd,mv,t,Tn,Xi,_l,Fa,i,"Throttled",-0,0),a);break e}J1(r,n,fn,Sd,mv,t,Tn,Xi,_l,Fa,i,null,-0,0)}}break}while(!0);jr(e)}function J1(e,t,n,r,a,i,o,l,u,s,f,c,d,h){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},Rj(t,i,c);var b=(i&62914560)===i?Jh-jn():(i&4194048)===i?kj-jn():0;if(b=ZD(c,b),b!==null){na=i,e.cancelPendingCommit=b(tS.bind(null,e,t,i,n,r,a,o,l,u,f,c,null,d,h)),Ga(e,i,o,!s);return}}tS(e,t,i,n,r,a,o,l,u)}function pD(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(!$n(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 Ga(e,t,n,r){t&=~m0,t&=~Xi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Mn(a),o=1<<i;r[i]=-1,a&=~o}n!==0&&q_(e,n,t)}function ep(){return Ae&6?!0:(Dc(0),!1)}function v0(){if(ge!==null){if(Ce===0)var e=ge.return;else e=ge,Wr=vo=null,n0(e),el=null,js=0,e=ge;for(;e!==null;)gj(e.alternate,e),e=e.return;ge=null}}function jl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,PD(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),na=0,v0(),ze=e,ge=n=ea(e.current,null),be=t,Ce=0,xn=null,Fa=!1,uu=jc(e,t),y0=!1,_l=Tn=m0=Xi=si=lt=0,fn=hs=null,mv=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Mn(r),i=1<<a;t|=e[a],r&=~i}return fa=t,Kh(),n}function zj(e,t){fe=null,ae.H=Ms,t===lu||t===Vh?(t=N1(),Ce=3):t===Xb?(t=N1(),Ce=4):Ce=t===f0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,xn=t,ge===null&&(lt=1,vd(e,Kn(t,e.current)))}function Ij(){var e=Pn.current;return e===null?!0:(be&4194048)===be?Qn===null:(be&62914560)===be||be&536870912?e===Qn:!1}function Hj(){var e=ae.H;return ae.H=Ms,e===null?Ms:e}function qj(){var e=ae.A;return ae.A=dD,e}function Od(){lt=4,Fa||(be&4194048)!==be&&Pn.current!==null||(uu=!0),!(si&134217727)&&!(Xi&134217727)||ze===null||Ga(ze,be,Tn,!1)}function Iy(e,t,n){var r=Ae;Ae|=2;var a=Hj(),i=qj();(ze!==e||be!==t)&&(Sd=null,jl(e,t)),t=!1;var o=lt;e:do try{if(Ce!==0&&ge!==null){var l=ge,u=xn;switch(Ce){case 8:v0(),o=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(t=!0);var s=Ce;if(Ce=0,xn=null,Fo(e,l,u,s),n&&uu){o=0;break e}break;default:s=Ce,Ce=0,xn=null,Fo(e,l,u,s)}}yD(),o=lt;break}catch(f){zj(e,f)}while(!0);return t&&e.shellSuspendCounter++,Wr=vo=null,Ae=r,ae.H=a,ae.A=i,ge===null&&(ze=null,be=0,Kh()),o}function yD(){for(;ge!==null;)Fj(ge)}function mD(e,t){var n=Ae;Ae|=2;var r=Hj(),a=qj();ze!==e||be!==t?(Sd=null,xd=jn()+500,jl(e,t)):uu=jc(e,t);e:do try{if(Ce!==0&&ge!==null){t=ge;var i=xn;t:switch(Ce){case 1:Ce=0,xn=null,Fo(e,t,i,1);break;case 2:case 9:if(M1(i)){Ce=0,xn=null,eS(t);break}t=function(){Ce!==2&&Ce!==9||ze!==e||(Ce=7),jr(e)},i.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:M1(i)?(Ce=0,xn=null,eS(t)):(Ce=0,xn=null,Fo(e,t,i,7));break;case 5:var o=null;switch(ge.tag){case 26:o=ge.memoizedState;case 5:case 27:var l=ge;if(o?cC(o):l.stateNode.complete){Ce=0,xn=null;var u=l.sibling;if(u!==null)ge=u;else{var s=l.return;s!==null?(ge=s,tp(s)):ge=null}break t}}Ce=0,xn=null,Fo(e,t,i,5);break;case 6:Ce=0,xn=null,Fo(e,t,i,6);break;case 8:v0(),lt=6;break e;default:throw Error(I(462))}}vD();break}catch(f){zj(e,f)}while(!0);return Wr=vo=null,ae.H=r,ae.A=a,Ae=n,ge!==null?0:(ze=null,be=0,Kh(),lt)}function vD(){for(;ge!==null&&!z$();)Fj(ge)}function Fj(e){var t=vj(e.alternate,e,fa);e.memoizedProps=e.pendingProps,t===null?tp(e):ge=t}function eS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Y1(n,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Y1(n,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:n0(t);default:gj(n,t),t=ge=gT(t,fa),t=vj(n,t,fa)}e.memoizedProps=e.pendingProps,t===null?tp(e):ge=t}function Fo(e,t,n,r){Wr=vo=null,n0(t),el=null,js=0;var a=t.return;try{if(iD(e,a,t,n,be)){lt=1,vd(e,Kn(n,e.current)),ge=null;return}}catch(i){if(a!==null)throw ge=a,i;lt=1,vd(e,Kn(n,e.current)),ge=null;return}t.flags&32768?(Se||r===1?e=!0:uu||be&536870912?e=!1:(Fa=e=!0,(r===2||r===9||r===3||r===6)&&(r=Pn.current,r!==null&&r.tag===13&&(r.flags|=16384))),Gj(t,e)):tp(t)}function tp(e){var t=e;do{if(t.flags&32768){Gj(t,Fa);return}e=t.return;var n=uD(t.alternate,t,fa);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);lt===0&&(lt=5)}function Gj(e,t){do{var n=sD(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);lt=6,ge=null}function tS(e,t,n,r,a,i,o,l,u){e.cancelPendingCommit=null;do np();while(At!==0);if(Ae&6)throw Error(I(327));if(t!==null){if(t===e.current)throw Error(I(177));if(i=t.lanes|t.childLanes,i|=Hb,Q$(e,n,i,o,l,u),e===ze&&(ge=ze=null,be=0),Tl=t,Ja=e,na=n,vv=i,gv=a,Lj=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,SD(od,function(){return Qj(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=ae.T,ae.T=null,a=Ee.p,Ee.p=2,o=Ae,Ae|=4;try{cD(e,t,n)}finally{Ae=o,Ee.p=a,ae.T=r}}At=1,Kj(),Yj(),Vj()}}function Kj(){if(At===1){At=0;var e=Ja,t=Tl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=ae.T,ae.T=null;var r=Ee.p;Ee.p=2;var a=Ae;Ae|=4;try{Cj(t,e);var i=wv,o=cT(e.containerInfo),l=i.focusedElem,u=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&sT(l.ownerDocument.documentElement,l)){if(u!==null&&Ib(l)){var s=u.start,f=u.end;if(f===void 0&&(f=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(f,l.value.length);else{var c=l.ownerDocument||document,d=c&&c.defaultView||window;if(d.getSelection){var h=d.getSelection(),b=l.textContent.length,v=Math.min(u.start,b),m=u.end===void 0?v:Math.min(u.end,b);!h.extend&&v>m&&(o=m,m=v,v=o);var p=w1(l,v),y=w1(l,m);if(p&&y&&(h.rangeCount!==1||h.anchorNode!==p.node||h.anchorOffset!==p.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var x=c.createRange();x.setStart(p.node,p.offset),h.removeAllRanges(),v>m?(h.addRange(x),h.extend(y.node,y.offset)):(x.setEnd(y.node,y.offset),h.addRange(x))}}}}for(c=[],h=l;h=h.parentNode;)h.nodeType===1&&c.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<c.length;l++){var w=c[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Md=!!Ov,wv=Ov=null}finally{Ae=a,Ee.p=r,ae.T=n}}e.current=t,At=2}}function Yj(){if(At===2){At=0;var e=Ja,t=Tl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=ae.T,ae.T=null;var r=Ee.p;Ee.p=2;var a=Ae;Ae|=4;try{Aj(e,t.alternate,t)}finally{Ae=a,Ee.p=r,ae.T=n}}At=3}}function Vj(){if(At===4||At===3){At=0,I$();var e=Ja,t=Tl,n=na,r=Lj;t.subtreeFlags&10256||t.flags&10256?At=5:(At=0,Tl=Ja=null,Xj(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Za=null),Pb(n),t=t.stateNode,Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(Tc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ae.T,a=Ee.p,Ee.p=2,ae.T=null;try{for(var i=e.onRecoverableError,o=0;o<r.length;o++){var l=r[o];i(l.value,{componentStack:l.stack})}}finally{ae.T=t,Ee.p=a}}na&3&&np(),jr(e),a=e.pendingLanes,n&261930&&a&42?e===bv?ps++:(ps=0,bv=e):ps=0,Dc(0)}}function Xj(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Rc(t)))}function np(){return Kj(),Yj(),Vj(),Qj()}function Qj(){if(At!==5)return!1;var e=Ja,t=vv;vv=0;var n=Pb(na),r=ae.T,a=Ee.p;try{Ee.p=32>n?32:n,ae.T=null,n=gv,gv=null;var i=Ja,o=na;if(At=0,Tl=Ja=null,na=0,Ae&6)throw Error(I(331));var l=Ae;if(Ae|=4,Pj(i.current),Nj(i,i.current,o,n),Ae=l,Dc(0,!1),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(Tc,i)}catch{}return!0}finally{Ee.p=a,ae.T=r,Xj(e,t)}}function nS(e,t,n){t=Kn(n,t),t=dv(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Cc(e,2),jr(e))}function Me(e,t,n){if(e.tag===3)nS(e,e,n);else for(;t!==null;){if(t.tag===3){nS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Za===null||!Za.has(r))){e=Kn(n,e),n=fj(2),r=Wa(t,n,2),r!==null&&(dj(n,r,t,e),Cc(r,2),jr(r));break}}t=t.return}}function Hy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new hD;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)||(y0=!0,a.add(n),e=gD.bind(null,e,t,n),t.then(e,e))}function gD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(be&n)===n&&(lt===4||lt===3&&(be&62914560)===be&&300>jn()-Jh?!(Ae&2)&&jl(e,0):m0|=n,_l===be&&(_l=0)),jr(e)}function Wj(e,t){t===0&&(t=H_()),e=mo(e,t),e!==null&&(Cc(e,t),jr(e))}function bD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wj(e,n)}function xD(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),Wj(e,n)}function SD(e,t){return Rb(e,t)}var wd=null,No=null,xv=!1,Ad=!1,qy=!1,Ka=0;function jr(e){e!==No&&e.next===null&&(No===null?wd=No=e:No=No.next=e),Ad=!0,xv||(xv=!0,wD())}function Dc(e,t){if(!qy&&Ad){qy=!0;do for(var n=!1,r=wd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var o=r.suspendedLanes,l=r.pingedLanes;i=(1<<31-Mn(42|e)+1)-1,i&=a&~(o&~l),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,rS(r,i))}else i=be,i=Hh(r,r===ze?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||jc(r,i)||(n=!0,rS(r,i));r=r.next}while(n);qy=!1}}function OD(){Zj()}function Zj(){Ad=xv=!1;var e=0;Ka!==0&&$D()&&(e=Ka);for(var t=jn(),n=null,r=wd;r!==null;){var a=r.next,i=Jj(r,t);i===0?(r.next=null,n===null?wd=a:n.next=a,a===null&&(No=n)):(n=r,(e!==0||i&3)&&(Ad=!0)),r=a}At!==0&&At!==5||Dc(e),Ka!==0&&(Ka=0)}function Jj(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Mn(i),l=1<<o,u=a[o];u===-1?(!(l&n)||l&r)&&(a[o]=X$(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}if(t=ze,n=be,n=Hh(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&vy(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||jc(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&vy(r),Pb(n)){case 2:case 8:n=z_;break;case 32:n=od;break;case 268435456:n=I_;break;default:n=od}return r=eC.bind(null,e),n=Rb(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&vy(r),e.callbackPriority=2,e.callbackNode=null,2}function eC(e,t){if(At!==0&&At!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(np()&&e.callbackNode!==n)return null;var r=be;return r=Hh(e,e===ze?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Uj(e,r,t),Jj(e,jn()),e.callbackNode!=null&&e.callbackNode===n?eC.bind(null,e):null)}function rS(e,t){if(np())return null;Uj(e,t,!0)}function wD(){DD(function(){Ae&6?Rb(U_,OD):Zj()})}function g0(){if(Ka===0){var e=wl;e===0&&(e=nf,nf<<=1,!(nf&261888)&&(nf=256)),Ka=e}return Ka}function aS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Df(""+e)}function iS(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 AD(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=aS((a[yn]||null).action),o=r.submitter;o&&(t=(t=o[yn]||null)?aS(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var l=new qh("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ka!==0){var u=o?iS(a,o):new FormData(a);cv(n,{pending:!0,data:u,method:a.method,action:i},null,u)}}else typeof i=="function"&&(l.preventDefault(),u=o?iS(a,o):new FormData(a),cv(n,{pending:!0,data:u,method:a.method,action:i},i,u))},currentTarget:a}]})}}for(var Fy=0;Fy<Zm.length;Fy++){var Gy=Zm[Fy],ED=Gy.toLowerCase(),_D=Gy[0].toUpperCase()+Gy.slice(1);dr(ED,"on"+_D)}dr(dT,"onAnimationEnd");dr(hT,"onAnimationIteration");dr(pT,"onAnimationStart");dr("dblclick","onDoubleClick");dr("focusin","onFocus");dr("focusout","onBlur");dr(HP,"onTransitionRun");dr(qP,"onTransitionStart");dr(FP,"onTransitionCancel");dr(yT,"onTransitionEnd");Sl("onMouseEnter",["mouseout","mouseover"]);Sl("onMouseLeave",["mouseout","mouseover"]);Sl("onPointerEnter",["pointerout","pointerover"]);Sl("onPointerLeave",["pointerout","pointerover"]);ho("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ho("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ho("onBeforeInput",["compositionend","keypress","textInput","paste"]);ho("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ho("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ho("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ns="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(" "),TD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ns));function tC(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&a.isPropagationStopped())break e;i=l,a.currentTarget=s;try{i(a)}catch(f){ud(f)}a.currentTarget=null,i=u}else for(o=0;o<r.length;o++){if(l=r[o],u=l.instance,s=l.currentTarget,l=l.listener,u!==i&&a.isPropagationStopped())break e;i=l,a.currentTarget=s;try{i(a)}catch(f){ud(f)}a.currentTarget=null,i=u}}}}function ve(e,t){var n=t[Fm];n===void 0&&(n=t[Fm]=new Set);var r=e+"__bubble";n.has(r)||(nC(t,e,2,!1),n.add(r))}function Ky(e,t,n){var r=0;t&&(r|=4),nC(n,e,r,t)}var hf="_reactListening"+Math.random().toString(36).slice(2);function b0(e){if(!e[hf]){e[hf]=!0,Y_.forEach(function(n){n!=="selectionchange"&&(TD.has(n)||Ky(n,!1,e),Ky(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hf]||(t[hf]=!0,Ky("selectionchange",!1,t))}}function nC(e,t,n,r){switch(yC(t)){case 2:var a=t3;break;case 8:a=n3;break;default:a=w0}n=a.bind(null,t,n,e),a=void 0,!Xm||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 Yy(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===a)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;l!==null;){if(o=Do(l),o===null)return;if(u=o.tag,u===5||u===6||u===26||u===27){r=i=o;continue e}l=l.parentNode}}r=r.return}tT(function(){var s=i,f=Lb(n),c=[];e:{var d=mT.get(e);if(d!==void 0){var h=qh,b=e;switch(e){case"keypress":if(Lf(n)===0)break e;case"keydown":case"keyup":h=xP;break;case"focusin":b="focus",h=Oy;break;case"focusout":b="blur",h=Oy;break;case"beforeblur":case"afterblur":h=Oy;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":h=h1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=uP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=wP;break;case dT:case hT:case pT:h=fP;break;case yT:h=EP;break;case"scroll":case"scrollend":h=oP;break;case"wheel":h=TP;break;case"copy":case"cut":case"paste":h=hP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=y1;break;case"toggle":case"beforetoggle":h=CP}var v=(t&4)!==0,m=!v&&(e==="scroll"||e==="scrollend"),p=v?d!==null?d+"Capture":null:d;v=[];for(var y=s,x;y!==null;){var w=y;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||p===null||(w=ws(y,p),w!=null&&v.push(Rs(y,w,x))),m)break;y=y.return}0<v.length&&(d=new h(d,b,null,n,f),c.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Vm&&(b=n.relatedTarget||n.fromElement)&&(Do(b)||b[au]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(b=n.relatedTarget||n.toElement,h=s,b=b?Do(b):null,b!==null&&(m=_c(b),v=b.tag,b!==m||v!==5&&v!==27&&v!==6)&&(b=null)):(h=null,b=s),h!==b)){if(v=h1,w="onMouseLeave",p="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=y1,w="onPointerLeave",p="onPointerEnter",y="pointer"),m=h==null?d:Wu(h),x=b==null?d:Wu(b),d=new v(w,y+"leave",h,n,f),d.target=m,d.relatedTarget=x,w=null,Do(f)===s&&(v=new v(p,y+"enter",b,n,f),v.target=x,v.relatedTarget=m,w=v),m=w,h&&b)t:{for(v=jD,p=h,y=b,x=0,w=p;w;w=v(w))x++;w=0;for(var S=y;S;S=v(S))w++;for(;0<x-w;)p=v(p),x--;for(;0<w-x;)y=v(y),w--;for(;x--;){if(p===y||y!==null&&p===y.alternate){v=p;break t}p=v(p),y=v(y)}v=null}else v=null;h!==null&&oS(c,d,h,v,!1),b!==null&&m!==null&&oS(c,m,b,v,!0)}}e:{if(d=s?Wu(s):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var O=b1;else if(g1(d))if(lT)O=UP;else{O=LP;var A=kP}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?s&&kb(s.elementType)&&(O=b1):O=BP;if(O&&(O=O(e,s))){oT(c,O,n,f);break e}A&&A(e,d,s),e==="focusout"&&s&&d.type==="number"&&s.memoizedProps.value!=null&&Ym(d,"number",d.value)}switch(A=s?Wu(s):window,e){case"focusin":(g1(A)||A.contentEditable==="true")&&(Bo=A,Qm=s,is=null);break;case"focusout":is=Qm=Bo=null;break;case"mousedown":Wm=!0;break;case"contextmenu":case"mouseup":case"dragend":Wm=!1,A1(c,n,f);break;case"selectionchange":if(IP)break;case"keydown":case"keyup":A1(c,n,f)}var E;if(zb)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Lo?aT(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(rT&&n.locale!=="ko"&&(Lo||T!=="onCompositionStart"?T==="onCompositionEnd"&&Lo&&(E=nT()):(qa=f,Bb="value"in qa?qa.value:qa.textContent,Lo=!0)),A=Ed(s,T),0<A.length&&(T=new p1(T,e,null,n,f),c.push({event:T,listeners:A}),E?T.data=E:(E=iT(n),E!==null&&(T.data=E)))),(E=NP?RP(e,n):$P(e,n))&&(T=Ed(s,"onBeforeInput"),0<T.length&&(A=new p1("onBeforeInput","beforeinput",null,n,f),c.push({event:A,listeners:T}),A.data=E)),AD(c,e,s,n,f)}tC(c,t)})}function Rs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(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=ws(e,n),a!=null&&r.unshift(Rs(e,a,i)),a=ws(e,t),a!=null&&r.push(Rs(e,a,i))),e.tag===3)return r;e=e.return}return[]}function jD(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function oS(e,t,n,r,a){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(l=l.tag,u!==null&&u===r)break;l!==5&&l!==26&&l!==27||s===null||(u=s,a?(s=ws(n,i),s!=null&&o.unshift(Rs(n,s,u))):a||(s=ws(n,i),s!=null&&o.push(Rs(n,s,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var CD=/\r\n?/g,MD=/\u0000|\uFFFD/g;function lS(e){return(typeof e=="string"?e:""+e).replace(CD,`
`).replace(MD,"")}function rC(e,t){return t=lS(t),lS(e)===t}function De(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ol(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ol(e,""+r);break;case"className":of(e,"class",r);break;case"tabIndex":of(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":of(e,n,r);break;case"style":eT(e,r,i);break;case"data":if(t!=="object"){of(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=Df(""+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"&&De(e,t,"name",a.name,a,null),De(e,t,"formEncType",a.formEncType,a,null),De(e,t,"formMethod",a.formMethod,a,null),De(e,t,"formTarget",a.formTarget,a,null)):(De(e,t,"encType",a.encType,a,null),De(e,t,"method",a.method,a,null),De(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Df(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Qr);break;case"onScroll":r!=null&&ve("scroll",e);break;case"onScrollEnd":r!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(I(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(I(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Df(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":ve("beforetoggle",e),ve("toggle",e),Pf(e,"popover",r);break;case"xlinkActuate":Dr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Dr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Dr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Dr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Dr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Dr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Pf(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=aP.get(n)||n,Pf(e,n,r))}}function Sv(e,t,n,r,a,i){switch(n){case"style":eT(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"?Ol(e,r):(typeof r=="number"||typeof r=="bigint")&&Ol(e,""+r);break;case"onScroll":r!=null&&ve("scroll",e);break;case"onScrollEnd":r!=null&&ve("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Qr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!V_.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[yn]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof r=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Pf(e,n,r)}}}function qt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var o=n[i];if(o!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:De(e,t,i,o,n,null)}}a&&De(e,t,"srcSet",n.srcSet,n,null),r&&De(e,t,"src",n.src,n,null);return;case"input":ve("invalid",e);var l=i=o=a=null,u=null,s=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":o=f;break;case"checked":u=f;break;case"defaultChecked":s=f;break;case"value":i=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(I(137,t));break;default:De(e,t,r,f,n,null)}}W_(e,i,l,u,s,o,a,!1);return;case"select":ve("invalid",e),r=o=i=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":i=l;break;case"defaultValue":o=l;break;case"multiple":r=l;default:De(e,t,a,l,n,null)}t=i,n=o,e.multiple=!!r,t!=null?Wo(e,!!r,t,!1):n!=null&&Wo(e,!!r,n,!0);return;case"textarea":ve("invalid",e),i=a=r=null;for(o in n)if(n.hasOwnProperty(o)&&(l=n[o],l!=null))switch(o){case"value":r=l;break;case"defaultValue":a=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(I(91));break;default:De(e,t,o,l,n,null)}J_(e,r,a,i);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:De(e,t,u,r,n,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(r=0;r<Ns.length;r++)ve(Ns[r],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in n)if(n.hasOwnProperty(s)&&(r=n[s],r!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(I(137,t));default:De(e,t,s,r,n,null)}return;default:if(kb(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&Sv(e,t,f,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&De(e,t,l,r,n,null))}function ND(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,l=null,u=null,s=null,f=null;for(h in n){var c=n[h];if(n.hasOwnProperty(h)&&c!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=c;default:r.hasOwnProperty(h)||De(e,t,h,null,r,c)}}for(var d in r){var h=r[d];if(c=n[d],r.hasOwnProperty(d)&&(h!=null||c!=null))switch(d){case"type":i=h;break;case"name":a=h;break;case"checked":s=h;break;case"defaultChecked":f=h;break;case"value":o=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(I(137,t));break;default:h!==c&&De(e,t,d,h,r,c)}}Km(e,o,l,u,s,f,i,a);return;case"select":h=o=l=d=null;for(i in n)if(u=n[i],n.hasOwnProperty(i)&&u!=null)switch(i){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(i)||De(e,t,i,null,r,u)}for(a in r)if(i=r[a],u=n[a],r.hasOwnProperty(a)&&(i!=null||u!=null))switch(a){case"value":d=i;break;case"defaultValue":l=i;break;case"multiple":o=i;default:i!==u&&De(e,t,a,i,r,u)}t=l,n=o,r=h,d!=null?Wo(e,!!n,d,!1):!!r!=!!n&&(t!=null?Wo(e,!!n,t,!0):Wo(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(l in n)if(a=n[l],n.hasOwnProperty(l)&&a!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:De(e,t,l,null,r,a)}for(o in r)if(a=r[o],i=n[o],r.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":d=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(I(91));break;default:a!==i&&De(e,t,o,a,r,i)}Z_(e,d,h);return;case"option":for(var b in n)if(d=n[b],n.hasOwnProperty(b)&&d!=null&&!r.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:De(e,t,b,null,r,d)}for(u in r)if(d=r[u],h=n[u],r.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:De(e,t,u,d,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)d=n[v],n.hasOwnProperty(v)&&d!=null&&!r.hasOwnProperty(v)&&De(e,t,v,null,r,d);for(s in r)if(d=r[s],h=n[s],r.hasOwnProperty(s)&&d!==h&&(d!=null||h!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(I(137,t));break;default:De(e,t,s,d,r,h)}return;default:if(kb(t)){for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!==void 0&&!r.hasOwnProperty(m)&&Sv(e,t,m,void 0,r,d);for(f in r)d=r[f],h=n[f],!r.hasOwnProperty(f)||d===h||d===void 0&&h===void 0||Sv(e,t,f,d,r,h);return}}for(var p in n)d=n[p],n.hasOwnProperty(p)&&d!=null&&!r.hasOwnProperty(p)&&De(e,t,p,null,r,d);for(c in r)d=r[c],h=n[c],!r.hasOwnProperty(c)||d===h||d==null&&h==null||De(e,t,c,d,r,h)}function uS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function RD(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,o=a.initiatorType,l=a.duration;if(i&&l&&uS(o)){for(o=0,l=a.responseEnd,r+=1;r<n.length;r++){var u=n[r],s=u.startTime;if(s>l)break;var f=u.transferSize,c=u.initiatorType;f&&uS(c)&&(u=u.responseEnd,o+=f*(u<l?1:(l-s)/(u-s)))}if(--r,t+=8*(i+o)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ov=null,wv=null;function _d(e){return e.nodeType===9?e:e.ownerDocument}function sS(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 aC(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 Av(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 Vy=null;function $D(){var e=window.event;return e&&e.type==="popstate"?e===Vy?!1:(Vy=e,!0):(Vy=null,!1)}var iC=typeof setTimeout=="function"?setTimeout:void 0,PD=typeof clearTimeout=="function"?clearTimeout:void 0,cS=typeof Promise=="function"?Promise:void 0,DD=typeof queueMicrotask=="function"?queueMicrotask:typeof cS<"u"?function(e){return cS.resolve(null).then(e).catch(kD)}:iC;function kD(e){setTimeout(function(){throw e})}function fi(e){return e==="head"}function fS(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),Ml(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")ys(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ys(n);for(var i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[Mc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}else n==="body"&&ys(e.ownerDocument.body);n=a}while(n);Ml(t)}function dS(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 Ev(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":Ev(n),Db(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function LD(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[Mc])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=Wn(e.nextSibling),e===null)break}return null}function BD(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Wn(e.nextSibling),e===null))return null;return e}function oC(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Wn(e.nextSibling),e===null))return null;return e}function _v(e){return e.data==="$?"||e.data==="$~"}function Tv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function UD(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 Wn(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 jv=null;function hS(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Wn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function pS(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 lC(e,t,n){switch(t=_d(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 ys(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Db(e)}var Jn=new Map,yS=new Set;function Td(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=Ee.d;Ee.d={f:zD,r:ID,D:HD,C:qD,L:FD,m:GD,X:YD,S:KD,M:VD};function zD(){var e=va.f(),t=ep();return e||t}function ID(e){var t=iu(e);t!==null&&t.tag===5&&t.type==="form"?ej(t):va.r(e)}var su=typeof document>"u"?null:document;function uC(e,t,n){var r=su;if(r&&typeof t=="string"&&t){var a=Gn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),yS.has(a)||(yS.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),qt(t,"link",e),Nt(t),r.head.appendChild(t)))}}function HD(e){va.D(e),uC("dns-prefetch",e,null)}function qD(e,t){va.C(e,t),uC("preconnect",e,t)}function FD(e,t,n){va.L(e,t,n);var r=su;if(r&&e&&t){var a='link[rel="preload"][as="'+Gn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Gn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Gn(n.imageSizes)+'"]')):a+='[href="'+Gn(e)+'"]';var i=a;switch(t){case"style":i=Cl(e);break;case"script":i=cu(e)}Jn.has(i)||(e=Je({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Jn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(kc(i))||t==="script"&&r.querySelector(Lc(i))||(t=r.createElement("link"),qt(t,"link",e),Nt(t),r.head.appendChild(t)))}}function GD(e,t){va.m(e,t);var n=su;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Gn(r)+'"][href="'+Gn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=cu(e)}if(!Jn.has(i)&&(e=Je({rel:"modulepreload",href:e},t),Jn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Lc(i)))return}r=n.createElement("link"),qt(r,"link",e),Nt(r),n.head.appendChild(r)}}}function KD(e,t,n){va.S(e,t,n);var r=su;if(r&&e){var a=Qo(r).hoistableStyles,i=Cl(e);t=t||"default";var o=a.get(i);if(!o){var l={loading:0,preload:null};if(o=r.querySelector(kc(i)))l.loading=5;else{e=Je({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Jn.get(i))&&x0(e,n);var u=o=r.createElement("link");Nt(u),qt(u,"link",e),u._p=new Promise(function(s,f){u.onload=s,u.onerror=f}),u.addEventListener("load",function(){l.loading|=1}),u.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Gf(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},a.set(i,o)}}}function YD(e,t){va.X(e,t);var n=su;if(n&&e){var r=Qo(n).hoistableScripts,a=cu(e),i=r.get(a);i||(i=n.querySelector(Lc(a)),i||(e=Je({src:e,async:!0},t),(t=Jn.get(a))&&S0(e,t),i=n.createElement("script"),Nt(i),qt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function VD(e,t){va.M(e,t);var n=su;if(n&&e){var r=Qo(n).hoistableScripts,a=cu(e),i=r.get(a);i||(i=n.querySelector(Lc(a)),i||(e=Je({src:e,async:!0,type:"module"},t),(t=Jn.get(a))&&S0(e,t),i=n.createElement("script"),Nt(i),qt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function mS(e,t,n,r){var a=(a=Va.current)?Td(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=Cl(n.href),n=Qo(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=Cl(n.href);var i=Qo(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector(kc(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Jn.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},Jn.set(e,n),i||XD(a,e,n,o.state))),t&&r===null)throw Error(I(528,""));return o}if(t&&r!==null)throw Error(I(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=cu(n),n=Qo(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 Cl(e){return'href="'+Gn(e)+'"'}function kc(e){return'link[rel="stylesheet"]['+e+"]"}function sC(e){return Je({},e,{"data-precedence":e.precedence,precedence:null})}function XD(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}),qt(t,"link",n),Nt(t),e.head.appendChild(t))}function cu(e){return'[src="'+Gn(e)+'"]'}function Lc(e){return"script[async]"+e}function vS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Gn(n.href)+'"]');if(r)return t.instance=r,Nt(r),r;var a=Je({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Nt(r),qt(r,"style",a),Gf(r,n.precedence,e),t.instance=r;case"stylesheet":a=Cl(n.href);var i=e.querySelector(kc(a));if(i)return t.state.loading|=4,t.instance=i,Nt(i),i;r=sC(n),(a=Jn.get(a))&&x0(r,a),i=(e.ownerDocument||e).createElement("link"),Nt(i);var o=i;return o._p=new Promise(function(l,u){o.onload=l,o.onerror=u}),qt(i,"link",r),t.state.loading|=4,Gf(i,n.precedence,e),t.instance=i;case"script":return i=cu(n.src),(a=e.querySelector(Lc(i)))?(t.instance=a,Nt(a),a):(r=n,(a=Jn.get(i))&&(r=Je({},n),S0(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Nt(a),qt(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,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,o=0;o<r.length;o++){var l=r[o];if(l.dataset.precedence===t)i=l;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function x0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function S0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Kf=null;function gS(e,t,n){if(Kf===null){var r=new Map,a=Kf=new Map;a.set(n,r)}else a=Kf,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[Mc]||i[Bt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var l=r.get(o);l?l.push(i):r.set(o,[i])}}return r}function bS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function QD(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 cC(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function WD(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=Cl(r.href),i=t.querySelector(kc(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Nt(i);return}i=t.ownerDocument||t,r=sC(r),(a=Jn.get(a))&&x0(r,a),i=i.createElement("link"),Nt(i);var o=i;o._p=new Promise(function(l,u){o.onload=l,o.onerror=u}),qt(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=jd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Xy=0;function ZD(e,t){return e.stylesheets&&e.count===0&&Yf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Yf(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Xy===0&&(Xy=62500*RD());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yf(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Xy?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function jd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cd=null;function Yf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cd=new Map,t.forEach(JD,e),Cd=null,jd.call(e))}function JD(e,t){if(!(t.state.loading&4)){var n=Cd.get(e);if(n)var r=n.get(null);else{n=new Map,Cd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}a=t.instance,o=a.getAttribute("data-precedence"),i=n.get(o)||r,i===r&&n.set(null,a),n.set(o,a),this.count++,r=jd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var $s={$$typeof:Xr,Provider:null,Consumer:null,_currentValue:Gi,_currentValue2:Gi,_threadCount:0};function e3(e,t,n,r,a,i,o,l,u){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=gy(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gy(0),this.hiddenUpdates=gy(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function fC(e,t,n,r,a,i,o,l,u,s,f,c){return e=new e3(e,t,n,o,u,s,f,c,l),t=1,i===!0&&(t|=24),i=En(3,null,null,t),e.current=i,i.stateNode=e,t=Yb(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},Qb(i),e}function dC(e){return e?(e=Io,e):Io}function hC(e,t,n,r,a,i){a=dC(a),r.context===null?r.context=a:r.pendingContext=a,r=Qa(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Wa(e,r,t),n!==null&&(hn(n,e,t),ls(n,e,t))}function xS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function O0(e,t){xS(e,t),(e=e.alternate)&&xS(e,t)}function pC(e){if(e.tag===13||e.tag===31){var t=mo(e,67108864);t!==null&&hn(t,e,67108864),O0(e,67108864)}}function SS(e){if(e.tag===13||e.tag===31){var t=Nn();t=$b(t);var n=mo(e,t);n!==null&&hn(n,e,t),O0(e,t)}}var Md=!0;function t3(e,t,n,r){var a=ae.T;ae.T=null;var i=Ee.p;try{Ee.p=2,w0(e,t,n,r)}finally{Ee.p=i,ae.T=a}}function n3(e,t,n,r){var a=ae.T;ae.T=null;var i=Ee.p;try{Ee.p=8,w0(e,t,n,r)}finally{Ee.p=i,ae.T=a}}function w0(e,t,n,r){if(Md){var a=Cv(r);if(a===null)Yy(e,t,r,Nd,n),OS(e,r);else if(a3(a,e,t,n,r))r.stopPropagation();else if(OS(e,r),t&4&&-1<r3.indexOf(e)){for(;a!==null;){var i=iu(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=wi(i.pendingLanes);if(o!==0){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;o;){var u=1<<31-Mn(o);l.entanglements[1]|=u,o&=~u}jr(i),!(Ae&6)&&(xd=jn()+500,Dc(0))}}break;case 31:case 13:l=mo(i,2),l!==null&&hn(l,i,2),ep(),O0(i,2)}if(i=Cv(r),i===null&&Yy(e,t,r,Nd,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Yy(e,t,r,null,n)}}function Cv(e){return e=Lb(e),A0(e)}var Nd=null;function A0(e){if(Nd=null,e=Do(e),e!==null){var t=_c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=P_(t),e!==null)return e;e=null}else if(n===31){if(e=D_(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 Nd=e,null}function yC(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(H$()){case U_:return 2;case z_:return 8;case od:case q$:return 32;case I_:return 268435456;default:return 32}default:return 32}}var Mv=!1,ei=null,ti=null,ni=null,Ps=new Map,Ds=new Map,Ra=[],r3="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 OS(e,t){switch(e){case"focusin":case"focusout":ei=null;break;case"dragenter":case"dragleave":ti=null;break;case"mouseover":case"mouseout":ni=null;break;case"pointerover":case"pointerout":Ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ds.delete(t.pointerId)}}function ku(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=iu(t),t!==null&&pC(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function a3(e,t,n,r,a){switch(t){case"focusin":return ei=ku(ei,e,t,n,r,a),!0;case"dragenter":return ti=ku(ti,e,t,n,r,a),!0;case"mouseover":return ni=ku(ni,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Ps.set(i,ku(Ps.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Ds.set(i,ku(Ds.get(i)||null,e,t,n,r,a)),!0}return!1}function mC(e){var t=Do(e.target);if(t!==null){var n=_c(t);if(n!==null){if(t=n.tag,t===13){if(t=P_(n),t!==null){e.blockedOn=t,o1(e.priority,function(){SS(n)});return}}else if(t===31){if(t=D_(n),t!==null){e.blockedOn=t,o1(e.priority,function(){SS(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 Vf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Vm=r,n.target.dispatchEvent(r),Vm=null}else return t=iu(n),t!==null&&pC(t),e.blockedOn=n,!1;t.shift()}return!0}function wS(e,t,n){Vf(e)&&n.delete(t)}function i3(){Mv=!1,ei!==null&&Vf(ei)&&(ei=null),ti!==null&&Vf(ti)&&(ti=null),ni!==null&&Vf(ni)&&(ni=null),Ps.forEach(wS),Ds.forEach(wS)}function pf(e,t){e.blockedOn===t&&(e.blockedOn=null,Mv||(Mv=!0,_t.unstable_scheduleCallback(_t.unstable_NormalPriority,i3)))}var yf=null;function AS(e){yf!==e&&(yf=e,_t.unstable_scheduleCallback(_t.unstable_NormalPriority,function(){yf===e&&(yf=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(A0(r||n)===null)continue;break}var i=iu(n);i!==null&&(e.splice(t,3),t-=3,cv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Ml(e){function t(u){return pf(u,e)}ei!==null&&pf(ei,e),ti!==null&&pf(ti,e),ni!==null&&pf(ni,e),Ps.forEach(t),Ds.forEach(t);for(var n=0;n<Ra.length;n++){var r=Ra[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ra.length&&(n=Ra[0],n.blockedOn===null);)mC(n),n.blockedOn===null&&Ra.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],o=a[yn]||null;if(typeof i=="function")o||AS(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[yn]||null)l=o.formAction;else if(A0(a)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),AS(n)}}}function vC(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function E0(e){this._internalRoot=e}rp.prototype.render=E0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));var n=t.current,r=Nn();hC(n,r,e,t,null,null)};rp.prototype.unmount=E0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hC(e.current,2,null,e,null,null),ep(),t[au]=null}};function rp(e){this._internalRoot=e}rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=K_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ra.length&&t!==0&&t<Ra[n].priority;n++);Ra.splice(n,0,e),n===0&&mC(e)}};var ES=R_.version;if(ES!=="19.2.7")throw Error(I(527,ES,"19.2.7"));Ee.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=D$(t),e=e!==null?k_(e):null,e=e===null?null:e.stateNode,e};var o3={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:ae,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mf.isDisabled&&mf.supportsFiber)try{Tc=mf.inject(o3),Cn=mf}catch{}}zh.createRoot=function(e,t){if(!$_(e))throw Error(I(299));var n=!1,r="",a=uj,i=sj,o=cj;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=fC(e,1,!1,null,null,n,r,null,a,i,o,vC),e[au]=t.current,b0(e),new E0(t)};zh.hydrateRoot=function(e,t,n){if(!$_(e))throw Error(I(299));var r=!1,a="",i=uj,o=sj,l=cj,u=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=fC(e,1,!0,t,n??null,r,a,u,i,o,l,vC),t.context=dC(null),n=t.current,r=Nn(),r=$b(r),a=Qa(r),a.callback=null,Wa(n,a,r),n=r,t.current.lanes=n,Cc(t,n),jr(t),e[au]=t.current,b0(e),new rp(t)};zh.version="19.2.7";function gC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gC)}catch(e){console.error(e)}}gC(),__.exports=zh;var l3=__.exports;/**
 * react-router v7.18.1
 *
 * 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 _0=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,bC=/^[\\/]{2}/;function u3(e,t){return t+e.replace(/\\/g,"/")}var _S="popstate";function TS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function s3(e={}){function t(r,a){var s;let i=(s=a.state)==null?void 0:s.masked,{pathname:o,search:l,hash:u}=i||r.location;return Nv("",{pathname:o,search:l,hash:u},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:ks(a)}return f3(t,n,null,e)}function rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c3(){return Math.random().toString(36).substring(2,10)}function jS(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 Nv(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?fu(t):t,state:n,key:t&&t.key||r||c3(),mask:a}}function ks({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 fu(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 f3(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l="POP",u=null,s=f();s==null&&(s=0,o.replaceState({...o.state,idx:s},""));function f(){return(o.state||{idx:null}).idx}function c(){l="POP";let m=f(),p=m==null?null:m-s;s=m,u&&u({action:l,location:v.location,delta:p})}function d(m,p){l="PUSH";let y=TS(m)?m:Nv(v.location,m,p);s=f()+1;let x=jS(y,s),w=v.createHref(y.mask||y);try{o.pushState(x,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(w)}i&&u&&u({action:l,location:v.location,delta:1})}function h(m,p){l="REPLACE";let y=TS(m)?m:Nv(v.location,m,p);s=f();let x=jS(y,s),w=v.createHref(y.mask||y);o.replaceState(x,"",w),i&&u&&u({action:l,location:v.location,delta:0})}function b(m){return d3(a,m)}let v={get action(){return l},get location(){return e(a,o)},listen(m){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(_S,c),u=m,()=>{a.removeEventListener(_S,c),u=null}},createHref(m){return t(a,m)},createURL:b,encodeLocation(m){let p=b(m);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:h,go(m){return o.go(m)}};return v}function d3(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),rt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:ks(t);return a=a.replace(/ $/,"%20"),!n&&bC.test(a)&&(a=r+a),new URL(a,r)}function xC(e,t,n="/"){return h3(e,t,n,!1)}function h3(e,t,n,r,a){let i=typeof t=="string"?fu(t):t,o=da(i.pathname||"/",n);if(o==null)return null;let l=p3(e),u=null,s=E3(o);for(let f=0;u==null&&f<l.length;++f)u=A3(l[f],s,r);return u}function p3(e){let t=SC(e);return y3(t),t}function SC(e,t=[],n=[],r="",a=!1){let i=(o,l,u=a,s)=>{let f={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&u)return;rt(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let c=cr([r,f.relativePath]),d=n.concat(f);o.children&&o.children.length>0&&(rt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),SC(o.children,t,d,c,u)),!(o.path==null&&!o.index)&&t.push({path:c,score:O3(c,o.index),routesMeta:d.map((h,b)=>{let[v,m]=AC(h.relativePath,h.caseSensitive,b===d.length-1);return{...h,matcher:v,compiledParams:m}})})};return e.forEach((o,l)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))i(o,l);else for(let s of OC(o.path))i(o,l,!0,s)}),t}function OC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=OC(r.join("/")),l=[];return l.push(...o.map(u=>u===""?i:[i,u].join("/"))),a&&l.push(...o),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function y3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:w3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var m3=/^:[\w-]+$/,v3=3,g3=2,b3=1,x3=10,S3=-2,CS=e=>e==="*";function O3(e,t){let n=e.split("/"),r=n.length;return n.some(CS)&&(r+=S3),t&&(r+=g3),n.filter(a=>!CS(a)).reduce((a,i)=>a+(m3.test(i)?v3:i===""?b3:x3),r)}function w3(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 A3(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l<r.length;++l){let u=r[l],s=l===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",c={path:u.relativePath,caseSensitive:u.caseSensitive,end:s},d=u.matcher&&u.compiledParams?wC(c,f,u.matcher,u.compiledParams):Rd(c,f),h=u.route;if(!d&&s&&n&&!r[r.length-1].route.index&&(d=Rd({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!d)return null;Object.assign(a,d.params),o.push({params:a,pathname:cr([i,d.pathname]),pathnameBase:j3(cr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=cr([i,d.pathnameBase]))}return o}function Rd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=AC(e.path,e.caseSensitive,e.end);return wC(e,t,n,r)}function wC(e,t,n,r){let a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((s,{paramName:f,isOptional:c},d)=>{if(f==="*"){let b=l[d]||"";o=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const h=l[d];return c&&!h?s[f]=void 0:s[f]=(h||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:o,pattern:e}}function AC(e,t=!1,n=!0){fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,u,s,f)=>{if(r.push({paramName:l,isOptional:u!=null}),u){let c=f.charAt(s+o.length);return c&&c!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function E3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fr(!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 da(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 _3(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?fu(e):e,i;return n?(n=EC(n),n.startsWith("/")?i=MS(n.substring(1),"/"):i=MS(n,t)):i=t,{pathname:i,search:C3(r),hash:M3(a)}}function MS(e,t){let n=$d(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Qy(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 T3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function T0(e){let t=T3(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ap(e,t,n,r=!1){let a;typeof e=="string"?a=fu(e):(a={...e},rt(!a.pathname||!a.pathname.includes("?"),Qy("?","pathname","search",a)),rt(!a.pathname||!a.pathname.includes("#"),Qy("#","pathname","hash",a)),rt(!a.search||!a.search.includes("#"),Qy("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),c-=1;a.pathname=d.join("/")}l=c>=0?t[c]:"/"}let u=_3(a,l),s=o&&o!=="/"&&o.endsWith("/"),f=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||f)&&(u.pathname+="/"),u}var EC=e=>e.replace(/[\\/]{2,}/g,"/"),cr=e=>EC(e.join("/")),$d=e=>e.replace(/\/+$/,""),j3=e=>$d(e).replace(/^\/*/,"/"),C3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,M3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,N3=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 R3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $3(e){let t=e.map(n=>n.route.path).filter(Boolean);return cr(t)||"/"}var _C=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function TC(e,t){let n=e;if(typeof n!="string"||!_0.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(_C)try{let i=new URL(window.location.href),o=bC.test(n)?new URL(u3(n,i.protocol)):new URL(n),l=da(o.pathname,t);o.origin===i.origin&&l!=null?n=l+o.search+o.hash:a=!0}catch{fr(!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 jC=["POST","PUT","PATCH","DELETE"];new Set(jC);var P3=["GET",...jC];new Set(P3);var D3=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function k3(e){try{return D3.includes(new URL(e).protocol)}catch{return!1}}var du=_.createContext(null);du.displayName="DataRouter";var ip=_.createContext(null);ip.displayName="DataRouterState";var CC=_.createContext(!1);function L3(){return _.useContext(CC)}var MC=_.createContext({isTransitioning:!1});MC.displayName="ViewTransition";var B3=_.createContext(new Map);B3.displayName="Fetchers";var U3=_.createContext(null);U3.displayName="Await";var kn=_.createContext(null);kn.displayName="Navigation";var Bc=_.createContext(null);Bc.displayName="Location";var hr=_.createContext({outlet:null,matches:[],isDataRoute:!1});hr.displayName="Route";var j0=_.createContext(null);j0.displayName="RouteError";var NC="REACT_ROUTER_ERROR",z3="REDIRECT",I3="ROUTE_ERROR_RESPONSE";function H3(e){if(e.startsWith(`${NC}:${z3}:{`))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 q3(e){if(e.startsWith(`${NC}:${I3}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new N3(t.status,t.statusText,t.data)}catch{}}function F3(e,{relative:t}={}){rt(hu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=_.useContext(kn),{hash:a,pathname:i,search:o}=Uc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:cr([n,i])),r.createHref({pathname:l,search:o,hash:a})}function hu(){return _.useContext(Bc)!=null}function Cr(){return rt(hu(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Bc).location}var RC="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $C(e){_.useContext(kn).static||_.useLayoutEffect(e)}function op(){let{isDataRoute:e}=_.useContext(hr);return e?ik():G3()}function G3(){rt(hu(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(du),{basename:t,navigator:n}=_.useContext(kn),{matches:r}=_.useContext(hr),{pathname:a}=Cr(),i=JSON.stringify(T0(r)),o=_.useRef(!1);return $C(()=>{o.current=!0}),_.useCallback((u,s={})=>{if(fr(o.current,RC),!o.current)return;if(typeof u=="number"){n.go(u);return}let f=ap(u,JSON.parse(i),a,s.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:cr([t,f.pathname])),(s.replace?n.replace:n.push)(f,s.state,s)},[t,n,i,a,e])}var K3=_.createContext(null);function Y3(e){let t=_.useContext(hr).outlet;return _.useMemo(()=>t&&_.createElement(K3.Provider,{value:e},t),[t,e])}function Uc(e,{relative:t}={}){let{matches:n}=_.useContext(hr),{pathname:r}=Cr(),a=JSON.stringify(T0(n));return _.useMemo(()=>ap(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function V3(e,t){return PC(e,t)}function PC(e,t,n){var m;rt(hu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=_.useContext(kn),{matches:a}=_.useContext(hr),i=a[a.length-1],o=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",s=i&&i.route;{let p=s&&s.path||"";kC(l,!s||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${p}">) 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="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let f=Cr(),c;if(t){let p=typeof t=="string"?fu(t):t;rt(u==="/"||((m=p.pathname)==null?void 0:m.startsWith(u)),`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 "${u}" but pathname "${p.pathname}" was given in the \`location\` prop.`),c=p}else c=f;let d=c.pathname||"/",h=d;if(u!=="/"){let p=u.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(p.length).join("/")}let b=n&&n.state.matches.length?n.state.matches.map(p=>Object.assign(p,{route:n.manifest[p.route.id]||p.route})):xC(e,{pathname:h});fr(s||b!=null,`No routes matched location "${c.pathname}${c.search}${c.hash}" `),fr(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${c.pathname}${c.search}${c.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=J3(b&&b.map(p=>Object.assign({},p,{params:Object.assign({},o,p.params),pathname:cr([u,r.encodeLocation?r.encodeLocation(p.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?u:cr([u,r.encodeLocation?r.encodeLocation(p.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),a,n);return t&&v?_.createElement(Bc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...c},navigationType:"POP"}},v):v}function X3(){let e=ak(),t=R3(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:i},"ErrorBoundary")," or"," ",_.createElement("code",{style:i},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:a},n):null,o)}var Q3=_.createElement(X3,null),DC=class extends _.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=q3(e.digest);n&&(e=n)}let t=e!==void 0?_.createElement(hr.Provider,{value:this.props.routeContext},_.createElement(j0.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?_.createElement(W3,{error:e},t):t}};DC.contextType=CC;var Wy=new WeakMap;function W3({children:e,error:t}){let{basename:n}=_.useContext(kn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=H3(t.digest);if(r){let a=Wy.get(t);if(a)throw a;let i=TC(r.location,n),o=i.absoluteURL||i.to;if(k3(o))throw new Error("Invalid redirect location");if(_C&&!Wy.get(t))if(i.isExternal||r.reloadDocument)window.location.href=o;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Wy.set(t,l),l}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o}`})}}return e}function Z3({routeContext:e,match:t,children:n}){let r=_.useContext(du);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(hr.Provider,{value:e},n)}function J3(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let f=a.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);rt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let f=0;f<a.length;f++){let c=a[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=f),c.route.id){let{loaderData:d,errors:h}=r,b=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!h||h[c.route.id]===void 0);if(c.route.lazy||b){n.isStatic&&(o=!0),l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}}let u=n==null?void 0:n.onError,s=r&&u?(f,c)=>{var d,h;u(f,{location:r.location,params:((h=(d=r.matches)==null?void 0:d[0])==null?void 0:h.params)??{},pattern:$3(r.matches),errorInfo:c})}:void 0;return a.reduceRight((f,c,d)=>{let h,b=!1,v=null,m=null;r&&(h=i&&c.route.id?i[c.route.id]:void 0,v=c.route.errorElement||Q3,o&&(l<0&&d===0?(kC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,m=null):l===d&&(b=!0,m=c.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,d+1)),y=()=>{let x;return h?x=v:b?x=m:c.route.Component?x=_.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,_.createElement(Z3,{match:c,routeContext:{outlet:f,matches:p,isDataRoute:r!=null},children:x})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?_.createElement(DC,{location:r.location,revalidation:r.revalidation,component:v,error:h,children:y(),routeContext:{outlet:null,matches:p,isDataRoute:!0},onError:s}):y()},null)}function C0(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ek(e){let t=_.useContext(du);return rt(t,C0(e)),t}function tk(e){let t=_.useContext(ip);return rt(t,C0(e)),t}function nk(e){let t=_.useContext(hr);return rt(t,C0(e)),t}function M0(e){let t=nk(e),n=t.matches[t.matches.length-1];return rt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rk(){return M0("useRouteId")}function ak(){var r;let e=_.useContext(j0),t=tk("useRouteError"),n=M0("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function ik(){let{router:e}=ek("useNavigate"),t=M0("useNavigate"),n=_.useRef(!1);return $C(()=>{n.current=!0}),_.useCallback(async(a,i={})=>{fr(n.current,RC),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var NS={};function kC(e,t,n){!t&&!NS[e]&&(NS[e]=!0,fr(!1,n))}_.memo(ok);function ok({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return PC(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function LC({to:e,replace:t,state:n,relative:r}){rt(hu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=_.useContext(kn);fr(!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}=_.useContext(hr),{pathname:o}=Cr(),l=op(),u=ap(e,T0(i),o,r==="path"),s=JSON.stringify(u);return _.useEffect(()=>{l(JSON.parse(s),{replace:t,state:n,relative:r})},[l,s,r,t,n]),null}function lk(e){return Y3(e.context)}function et(e){rt(!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 uk({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:o}){rt(!hu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=_.useMemo(()=>({basename:l,navigator:a,static:i,useTransitions:o,future:{}}),[l,a,i,o]);typeof n=="string"&&(n=fu(n));let{pathname:s="/",search:f="",hash:c="",state:d=null,key:h="default",mask:b}=n,v=_.useMemo(()=>{let m=da(s,l);return m==null?null:{location:{pathname:m,search:f,hash:c,state:d,key:h,mask:b},navigationType:r}},[l,s,f,c,d,h,r,b]);return fr(v!=null,`<Router basename="${l}"> is not able to match the URL "${s}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:_.createElement(kn.Provider,{value:u},_.createElement(Bc.Provider,{children:t,value:v}))}function sk({children:e,location:t}){return V3(Rv(e),t)}function Rv(e,t=[]){let n=[];return _.Children.forEach(e,(r,a)=>{if(!_.isValidElement(r))return;let i=[...t,a];if(r.type===_.Fragment){n.push.apply(n,Rv(r.props.children,i));return}rt(r.type===et,`[${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>`),rt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Rv(r.props.children,i)),n.push(o)}),n}var Xf="get",Qf="application/x-www-form-urlencoded";function lp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ck(e){return lp(e)&&e.tagName.toLowerCase()==="button"}function fk(e){return lp(e)&&e.tagName.toLowerCase()==="form"}function dk(e){return lp(e)&&e.tagName.toLowerCase()==="input"}function hk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pk(e,t){return e.button===0&&(!t||t==="_self")&&!hk(e)}var vf=null;function yk(){if(vf===null)try{new FormData(document.createElement("form"),0),vf=!1}catch{vf=!0}return vf}var mk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zy(e){return e!=null&&!mk.has(e)?(fr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qf}"`),null):e}function vk(e,t){let n,r,a,i,o;if(fk(e)){let l=e.getAttribute("action");r=l?da(l,t):null,n=e.getAttribute("method")||Xf,a=Zy(e.getAttribute("enctype"))||Qf,i=new FormData(e)}else if(ck(e)||dk(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?da(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Xf,a=Zy(e.getAttribute("formenctype"))||Zy(l.getAttribute("enctype"))||Qf,i=new FormData(l,e),!yk()){let{name:s,type:f,value:c}=e;if(f==="image"){let d=s?`${s}.`:"";i.append(`${d}x`,"0"),i.append(`${d}y`,"0")}else s&&i.append(s,c)}}else{if(lp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xf,r=null,a=Qf,o=e}return i&&a==="text/plain"&&(o=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function N0(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function BC(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&&da(a.pathname,t)==="/"?a.pathname=`${$d(t)}/_root.${r}`:a.pathname=`${$d(a.pathname)}.${r}`,a}async function gk(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 bk(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 xk(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await gk(i,n);return o.links?o.links():[]}return[]}));return Ak(r.flat(1).filter(bk).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function RS(e,t,n,r,a,i){let o=(u,s)=>n[s]?u.route.id!==n[s].route.id:!0,l=(u,s)=>{var f;return n[s].pathname!==u.pathname||((f=n[s].route.path)==null?void 0:f.endsWith("*"))&&n[s].params["*"]!==u.params["*"]};return i==="assets"?t.filter((u,s)=>o(u,s)||l(u,s)):i==="data"?t.filter((u,s)=>{var c;let f=r.routes[u.route.id];if(!f||!f.hasLoader)return!1;if(o(u,s)||l(u,s))return!0;if(u.route.shouldRevalidate){let d=u.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function Sk(e,t,{includeHydrateFallback:n}={}){return Ok(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 Ok(e){return[...new Set(e)]}function wk(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ak(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(wk(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function R0(){let e=_.useContext(du);return N0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ek(){let e=_.useContext(ip);return N0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $0=_.createContext(void 0);$0.displayName="FrameworkContext";function up(){let e=_.useContext($0);return N0(e,"You must render this element inside a <HydratedRouter> element"),e}function _k(e,t){let n=_.useContext($0),[r,a]=_.useState(!1),[i,o]=_.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:s,onMouseLeave:f,onTouchStart:c}=t,d=_.useRef(null);_.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let v=p=>{p.forEach(y=>{o(y.isIntersecting)})},m=new IntersectionObserver(v,{threshold:.5});return d.current&&m.observe(d.current),()=>{m.disconnect()}}},[e]),_.useEffect(()=>{if(r){let v=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(v)}}},[r]);let h=()=>{a(!0)},b=()=>{a(!1),o(!1)};return n?e!=="intent"?[i,d,{}]:[i,d,{onFocus:Lu(l,h),onBlur:Lu(u,b),onMouseEnter:Lu(s,h),onMouseLeave:Lu(f,b),onTouchStart:Lu(c,h)}]:[!1,d,{}]}function Lu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Tk({page:e,...t}){let n=L3(),{nonce:r}=up(),{router:a}=R0(),i=_.useMemo(()=>xC(a.routes,e,a.basename),[a.routes,e,a.basename]);return i?(t.nonce==null&&r&&(t={...t,nonce:r}),n?_.createElement(Ck,{page:e,matches:i,...t}):_.createElement(Mk,{page:e,matches:i,...t})):null}function jk(e){let{manifest:t,routeModules:n}=up(),[r,a]=_.useState([]);return _.useEffect(()=>{let i=!1;return xk(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function Ck({page:e,matches:t,...n}){let r=Cr(),{future:a}=up(),{basename:i}=R0(),o=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=BC(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),u=!1,s=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?u=!0:s.push(f.route.id);return u&&s.length>0&&l.searchParams.set("_routes",s.join(",")),[l.pathname+l.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return _.createElement(_.Fragment,null,o.map(l=>_.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function Mk({page:e,matches:t,...n}){let r=Cr(),{future:a,manifest:i,routeModules:o}=up(),{basename:l}=R0(),{loaderData:u,matches:s}=Ek(),f=_.useMemo(()=>RS(e,t,s,i,r,"data"),[e,t,s,i,r]),c=_.useMemo(()=>RS(e,t,s,i,r,"assets"),[e,t,s,i,r]),d=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,m=!1;if(t.forEach(y=>{var w;let x=i.routes[y.route.id];!x||!x.hasLoader||(!f.some(S=>S.route.id===y.route.id)&&y.route.id in u&&((w=o[y.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?m=!0:v.add(y.route.id))}),v.size===0)return[];let p=BC(e,l,a.v8_trailingSlashAwareDataRequests,"data");return m&&v.size>0&&p.searchParams.set("_routes",t.filter(y=>v.has(y.route.id)).map(y=>y.route.id).join(",")),[p.pathname+p.search]},[l,a.v8_trailingSlashAwareDataRequests,u,r,i,f,t,e,o]),h=_.useMemo(()=>Sk(c,i),[c,i]),b=jk(c);return _.createElement(_.Fragment,null,d.map(v=>_.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),h.map(v=>_.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),b.map(({key:v,link:m})=>_.createElement("link",{key:v,nonce:n.nonce,...m,crossOrigin:m.crossOrigin??n.crossOrigin})))}function Nk(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Rk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rk&&(window.__reactRouterVersion="7.18.1")}catch{}function $k({basename:e,children:t,useTransitions:n,window:r}){let a=_.useRef();a.current==null&&(a.current=s3({window:r,v5Compat:!0}));let i=a.current,[o,l]=_.useState({action:i.action,location:i.location}),u=_.useCallback(s=>{n===!1?l(s):_.startTransition(()=>l(s))},[n]);return _.useLayoutEffect(()=>i.listen(u),[i,u]),_.createElement(uk,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var UC=_.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,mask:l,state:u,target:s,to:f,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:h,...b},v){let{basename:m,navigator:p,useTransitions:y}=_.useContext(kn),x=typeof f=="string"&&_0.test(f),w=TC(f,m);f=w.to;let S=F3(f,{relative:a}),O=Cr(),A=null;if(l){let P=ap(l,[],O.mask?O.mask.pathname:"/",!0);m!=="/"&&(P.pathname=P.pathname==="/"?m:cr([m,P.pathname])),A=p.createHref(P)}let[E,T,C]=_k(r,b),D=kk(f,{replace:o,mask:l,state:u,target:s,preventScrollReset:c,relative:a,viewTransition:d,defaultShouldRevalidate:h,useTransitions:y});function R(P){t&&t(P),P.defaultPrevented||D(P)}let U=!(w.isExternal||i),k=_.createElement("a",{...b,...C,href:(U?A:void 0)||w.absoluteURL||S,onClick:U?R:t,ref:Nk(v,T),target:s,"data-discover":!x&&n==="render"?"true":void 0});return E&&!x?_.createElement(_.Fragment,null,k,_.createElement(Tk,{page:S})):k});UC.displayName="Link";var zC=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:l,children:u,...s},f){let c=Uc(o,{relative:s.relative}),d=Cr(),h=_.useContext(ip),{navigator:b,basename:v}=_.useContext(kn),m=h!=null&&Ik(c)&&l===!0,p=b.encodeLocation?b.encodeLocation(c).pathname:c.pathname,y=d.pathname,x=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(y=y.toLowerCase(),x=x?x.toLowerCase():null,p=p.toLowerCase()),x&&v&&(x=da(x,v)||x);const w=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let S=y===p||!a&&y.startsWith(p)&&y.charAt(w)==="/",O=x!=null&&(x===p||!a&&x.startsWith(p)&&x.charAt(p.length)==="/"),A={isActive:S,isPending:O,isTransitioning:m},E=S?t:void 0,T;typeof r=="function"?T=r(A):T=[r,S?"active":null,O?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let C=typeof i=="function"?i(A):i;return _.createElement(UC,{...s,"aria-current":E,className:T,ref:f,style:C,to:o,viewTransition:l},typeof u=="function"?u(A):u)});zC.displayName="NavLink";var Pk=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=Xf,action:l,onSubmit:u,relative:s,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:d,...h},b)=>{let{useTransitions:v}=_.useContext(kn),m=Uk(),p=zk(l,{relative:s}),y=o.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&_0.test(l),w=S=>{if(u&&u(S),S.defaultPrevented)return;S.preventDefault();let O=S.nativeEvent.submitter,A=(O==null?void 0:O.getAttribute("formmethod"))||o,E=()=>m(O||S.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:s,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:d});v&&n!==!1?_.startTransition(()=>E()):E()};return _.createElement("form",{ref:b,method:y,action:p,onSubmit:r?u:w,...h,"data-discover":!x&&e==="render"?"true":void 0})});Pk.displayName="Form";function Dk(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function IC(e){let t=_.useContext(du);return rt(t,Dk(e)),t}function kk(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:u,useTransitions:s}={}){let f=op(),c=Cr(),d=Uc(e,{relative:o});return _.useCallback(h=>{if(pk(h,t)){h.preventDefault();let b=n!==void 0?n:ks(c)===ks(d),v=()=>f(e,{replace:b,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:u});s?_.startTransition(()=>v()):v()}},[c,f,d,n,r,a,t,e,i,o,l,u,s])}var Lk=0,Bk=()=>`__${String(++Lk)}__`;function Uk(){let{router:e}=IC("useSubmit"),{basename:t}=_.useContext(kn),n=rk(),r=e.fetch,a=e.navigate;return _.useCallback(async(i,o={})=>{let{action:l,method:u,encType:s,formData:f,body:c}=vk(i,t);if(o.navigate===!1){let d=o.fetcherKey||Bk();await r(d,n,o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:c,formMethod:o.method||u,formEncType:o.encType||s,flushSync:o.flushSync})}else await a(o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:c,formMethod:o.method||u,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,a,t,n])}function zk(e,{relative:t}={}){let{basename:n}=_.useContext(kn),r=_.useContext(hr);rt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Uc(e||".",{relative:t})},o=Cr();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),u=l.getAll("index");if(u.some(f=>f==="")){l.delete("index"),u.filter(c=>c).forEach(c=>l.append("index",c));let f=l.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:cr([n,i.pathname])),ks(i)}function Ik(e,{relative:t}={}){let n=_.useContext(MC);rt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=IC("useViewTransitionState"),a=Uc(e,{relative:t});if(!n.isTransitioning)return!1;let i=da(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=da(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Rd(a.pathname,o)!=null||Rd(a.pathname,i)!=null}var pu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ki,$a,ll,o_,Hk=(o_=class extends pu{constructor(){super();te(this,ki);te(this,$a);te(this,ll);X(this,ll,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,$a)||this.setEventListener(j(this,ll))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,$a))==null||t.call(this),X(this,$a,void 0))}setEventListener(t){var n;X(this,ll,t),(n=j(this,$a))==null||n.call(this),X(this,$a,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){j(this,ki)!==t&&(X(this,ki,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,ki)=="boolean"?j(this,ki):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ki=new WeakMap,$a=new WeakMap,ll=new WeakMap,o_),P0=new Hk,qk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Pa,Ab,l_,Fk=(l_=class{constructor(){te(this,Pa,qk);te(this,Ab,!1)}setTimeoutProvider(e){X(this,Pa,e)}setTimeout(e,t){return j(this,Pa).setTimeout(e,t)}clearTimeout(e){j(this,Pa).clearTimeout(e)}setInterval(e,t){return j(this,Pa).setInterval(e,t)}clearInterval(e){j(this,Pa).clearInterval(e)}},Pa=new WeakMap,Ab=new WeakMap,l_),Mi=new Fk;function Gk(e){setTimeout(e,0)}var Kk=typeof window>"u"||"Deno"in globalThis;function Zt(){}function Yk(e,t){return typeof e=="function"?e(t):e}function $v(e){return typeof e=="number"&&e>=0&&e!==1/0}function HC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ri(e,t){return typeof e=="function"?e(t):e}function wn(e,t){return typeof e=="function"?e(t):e}function $S(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==D0(o,t.options))return!1}else if(!Ls(t.queryKey,o))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function PS(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ao(t.options.mutationKey)!==ao(i))return!1}else if(!Ls(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function D0(e,t){return((t==null?void 0:t.queryKeyHashFn)||ao)(e)}function ao(e){return JSON.stringify(e,(t,n)=>Pv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Ls(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ls(e[n],t[n])):!1}var Vk=Object.prototype.hasOwnProperty;function qC(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=DS(e)&&DS(t);if(!r&&!(Pv(e)&&Pv(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),l=o.length,u=r?new Array(l):{};let s=0;for(let f=0;f<l;f++){const c=r?f:o[f],d=e[c],h=t[c];if(d===h){u[c]=d,(r?f<i:Vk.call(e,c))&&s++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){u[c]=h;continue}const b=qC(d,h,n+1);u[c]=b,b===d&&s++}return i===l&&s===i?e:u}function Pd(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function DS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pv(e){if(!kS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!kS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function kS(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xk(e){return new Promise(t=>{Mi.setTimeout(t,e)})}function Dv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qC(e,t):t}function Qk(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Wk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var k0=Symbol();function FC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===k0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function L0(e,t){return typeof e=="function"?e(...t):!!e}function Zk(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Bs=(()=>{let e=()=>Kk;return{isServer(){return e()},setIsServer(t){e=t}}})();function kv(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var Jk=Gk;function e4(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=Jk;const i=l=>{t?e.push(l):a(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||o()}return u},batchCalls:l=>(...u)=>{i(()=>{l(...u)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var Ot=e4(),ul,Da,sl,u_,t4=(u_=class extends pu{constructor(){super();te(this,ul,!0);te(this,Da);te(this,sl);X(this,sl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){j(this,Da)||this.setEventListener(j(this,sl))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Da))==null||t.call(this),X(this,Da,void 0))}setEventListener(t){var n;X(this,sl,t),(n=j(this,Da))==null||n.call(this),X(this,Da,t(this.setOnline.bind(this)))}setOnline(t){j(this,ul)!==t&&(X(this,ul,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return j(this,ul)}},ul=new WeakMap,Da=new WeakMap,sl=new WeakMap,u_),Dd=new t4;function n4(e){return Math.min(1e3*2**e,3e4)}function GC(e){return(e??"online")==="online"?Dd.isOnline():!0}var Lv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function KC(e){let t=!1,n=0,r;const a=kv(),i=()=>a.status!=="pending",o=v=>{var m;if(!i()){const p=new Lv(v);d(p),(m=e.onCancel)==null||m.call(e,p)}},l=()=>{t=!0},u=()=>{t=!1},s=()=>P0.isFocused()&&(e.networkMode==="always"||Dd.isOnline())&&e.canRun(),f=()=>GC(e.networkMode)&&e.canRun(),c=v=>{i()||(r==null||r(),a.resolve(v))},d=v=>{i()||(r==null||r(),a.reject(v))},h=()=>new Promise(v=>{var m;r=p=>{(i()||s())&&v(p)},(m=e.onPause)==null||m.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(i())return;let v;const m=n===0?e.initialPromise:void 0;try{v=m??e.fn()}catch(p){v=Promise.reject(p)}Promise.resolve(v).then(c).catch(p=>{var O;if(i())return;const y=e.retry??(Bs.isServer()?0:3),x=e.retryDelay??n4,w=typeof x=="function"?x(n,p):x,S=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,p);if(t||!S){d(p);return}n++,(O=e.onFail)==null||O.call(e,n,p),Xk(w).then(()=>s()?void 0:h()).then(()=>{t?d(p):b()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(r==null||r(),a),cancelRetry:l,continueRetry:u,canStart:f,start:()=>(f()?b():h().then(b),a)}}var Li,s_,YC=(s_=class{constructor(){te(this,Li)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$v(this.gcTime)&&X(this,Li,Mi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Bs.isServer()?1/0:5*60*1e3))}clearGcTimeout(){j(this,Li)!==void 0&&(Mi.clearTimeout(j(this,Li)),X(this,Li,void 0))}},Li=new WeakMap,s_);function r4(e){return{onFetch:(t,n)=>{var f,c,d,h,b;const r=t.options,a=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},u=0;const s=async()=>{let v=!1;const m=x=>{Zk(x,()=>t.signal,()=>v=!0)},p=FC(t.options,t.fetchOptions),y=async(x,w,S)=>{if(v)return Promise.reject(t.signal.reason);if(w==null&&x.pages.length)return Promise.resolve(x);const A=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return m(D),D})(),E=await p(A),{maxPages:T}=t.options,C=S?Wk:Qk;return{pages:C(x.pages,E,T),pageParams:C(x.pageParams,w,T)}};if(a&&i.length){const x=a==="backward",w=x?a4:LS,S={pages:i,pageParams:o},O=w(r,S);l=await y(S,O,x)}else{const x=e??i.length;do{const w=u===0?o[0]??r.initialPageParam:LS(r,l);if(u>0&&w==null)break;l=await y(l,w),u++}while(u<x)}return l};t.options.persister?t.fetchFn=()=>{var v,m;return(m=(v=t.options).persister)==null?void 0:m.call(v,s,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=s}}}function LS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function a4(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var cl,Bi,fl,zn,Ui,jt,Sc,zi,On,VC,Ir,c_,i4=(c_=class extends YC{constructor(t){super();te(this,On);te(this,cl);te(this,Bi);te(this,fl);te(this,zn);te(this,Ui);te(this,jt);te(this,Sc);te(this,zi);X(this,zi,!1),X(this,Sc,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,Ui,t.client),X(this,zn,j(this,Ui).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,Bi,US(this.options)),this.state=t.state??j(this,Bi),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return j(this,cl)}get promise(){var t;return(t=j(this,jt))==null?void 0:t.promise}setOptions(t){if(this.options={...j(this,Sc),...t},t!=null&&t._type&&X(this,cl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=US(this.options);n.data!==void 0&&(this.setState(BS(n.data,n.dataUpdatedAt)),X(this,Bi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,zn).remove(this)}setData(t,n){const r=Dv(this.state.data,t,this.options);return de(this,On,Ir).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){de(this,On,Ir).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=j(this,jt))==null?void 0:r.promise;return(a=j(this,jt))==null||a.cancel(t),n?n.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return j(this,Bi)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>wn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===k0||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ri(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!HC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,jt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,jt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,zn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,jt)&&(j(this,zi)||de(this,On,VC).call(this)?j(this,jt).cancel({revert:!0}):j(this,jt).cancelRetry()),this.scheduleGc()),j(this,zn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,On,Ir).call(this,{type:"invalidate"})}async fetch(t,n){var s,f,c,d,h,b,v,m,p,y,x;if(this.state.fetchStatus!=="idle"&&((s=j(this,jt))==null?void 0:s.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,jt))return j(this,jt).continueRetry(),j(this,jt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(S=>S.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(X(this,zi,!0),r.signal)})},i=()=>{const w=FC(this.options,n),O=(()=>{const A={client:j(this,Ui),queryKey:this.queryKey,meta:this.meta};return a(A),A})();return X(this,zi,!1),this.options.persister?this.options.persister(w,O,this):w(O)},l=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,Ui),state:this.state,fetchFn:i};return a(w),w})(),u=j(this,cl)==="infinite"?r4(this.options.pages):this.options.behavior;u==null||u.onFetch(l,this),X(this,fl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&de(this,On,Ir).call(this,{type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta}),X(this,jt,KC({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:w=>{w instanceof Lv&&w.revert&&this.setState({...j(this,fl),fetchStatus:"idle"}),r.abort()},onFail:(w,S)=>{de(this,On,Ir).call(this,{type:"failed",failureCount:w,error:S})},onPause:()=>{de(this,On,Ir).call(this,{type:"pause"})},onContinue:()=>{de(this,On,Ir).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await j(this,jt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(h=(d=j(this,zn).config).onSuccess)==null||h.call(d,w,this),(v=(b=j(this,zn).config).onSettled)==null||v.call(b,w,this.state.error,this),w}catch(w){if(w instanceof Lv){if(w.silent)return j(this,jt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw de(this,On,Ir).call(this,{type:"error",error:w}),(p=(m=j(this,zn).config).onError)==null||p.call(m,w,this),(x=(y=j(this,zn).config).onSettled)==null||x.call(y,this.state.data,w,this),w}finally{this.scheduleGc()}}},cl=new WeakMap,Bi=new WeakMap,fl=new WeakMap,zn=new WeakMap,Ui=new WeakMap,jt=new WeakMap,Sc=new WeakMap,zi=new WeakMap,On=new WeakSet,VC=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ir=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...XC(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...BS(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,fl,t.manual?a:void 0),a;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ot.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,zn).notify({query:this,type:"updated",action:t})})},c_);function XC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:GC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function BS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function US(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var un,xe,Oc,Qt,Ii,dl,Fr,ka,wc,hl,pl,Hi,qi,La,yl,Te,es,Bv,Uv,zv,Iv,Hv,qv,Fv,QC,f_,o4=(f_=class extends pu{constructor(t,n){super();te(this,Te);te(this,un);te(this,xe);te(this,Oc);te(this,Qt);te(this,Ii);te(this,dl);te(this,Fr);te(this,ka);te(this,wc);te(this,hl);te(this,pl);te(this,Hi);te(this,qi);te(this,La);te(this,yl,new Set);this.options=n,X(this,un,t),X(this,ka,null),X(this,Fr,kv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,xe).addObserver(this),zS(j(this,xe),this.options)?de(this,Te,es).call(this):this.updateResult(),de(this,Te,Iv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Gv(j(this,xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Gv(j(this,xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,Te,Hv).call(this),de(this,Te,qv).call(this),j(this,xe).removeObserver(this)}setOptions(t){const n=this.options,r=j(this,xe);if(this.options=j(this,un).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,j(this,xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,Te,Fv).call(this),j(this,xe).setOptions(this.options),n._defaulted&&!Pd(this.options,n)&&j(this,un).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,xe),observer:this});const a=this.hasListeners();a&&IS(j(this,xe),r,this.options,n)&&de(this,Te,es).call(this),this.updateResult(),a&&(j(this,xe)!==r||wn(this.options.enabled,j(this,xe))!==wn(n.enabled,j(this,xe))||ri(this.options.staleTime,j(this,xe))!==ri(n.staleTime,j(this,xe)))&&de(this,Te,Bv).call(this);const i=de(this,Te,Uv).call(this);a&&(j(this,xe)!==r||wn(this.options.enabled,j(this,xe))!==wn(n.enabled,j(this,xe))||i!==j(this,La))&&de(this,Te,zv).call(this,i)}getOptimisticResult(t){const n=j(this,un).getQueryCache().build(j(this,un),t),r=this.createResult(n,t);return u4(this,r)&&(X(this,Qt,r),X(this,dl,this.options),X(this,Ii,j(this,xe).state)),r}getCurrentResult(){return j(this,Qt)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&j(this,Fr).status==="pending"&&j(this,Fr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){j(this,yl).add(t)}getCurrentQuery(){return j(this,xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=j(this,un).defaultQueryOptions(t),r=j(this,un).getQueryCache().build(j(this,un),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return de(this,Te,es).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,Qt)))}createResult(t,n){var T;const r=j(this,xe),a=this.options,i=j(this,Qt),o=j(this,Ii),l=j(this,dl),s=t!==r?t.state:j(this,Oc),{state:f}=t;let c={...f},d=!1,h;if(n._optimisticResults){const C=this.hasListeners(),D=!C&&zS(t,n),R=C&&IS(t,r,n,a);(D||R)&&(c={...c,...XC(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:m}=c;h=c.data;let p=!1;if(n.placeholderData!==void 0&&h===void 0&&m==="pending"){let C;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(C=i.data,p=!0):C=typeof n.placeholderData=="function"?n.placeholderData((T=j(this,pl))==null?void 0:T.state.data,j(this,pl)):n.placeholderData,C!==void 0&&(m="success",h=Dv(i==null?void 0:i.data,C,n),d=!0)}if(n.select&&h!==void 0&&!p)if(i&&h===(o==null?void 0:o.data)&&n.select===j(this,wc))h=j(this,hl);else try{X(this,wc,n.select),h=n.select(h),h=Dv(i==null?void 0:i.data,h,n),X(this,hl,h),X(this,ka,null)}catch(C){X(this,ka,C)}j(this,ka)&&(b=j(this,ka),h=j(this,hl),v=Date.now(),m="error");const y=c.fetchStatus==="fetching",x=m==="pending",w=m==="error",S=x&&y,O=h!==void 0,E={status:m,fetchStatus:c.fetchStatus,isPending:x,isSuccess:m==="success",isError:w,isInitialLoading:S,isLoading:S,data:h,dataUpdatedAt:c.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>s.dataUpdateCount||c.errorUpdateCount>s.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:w&&!O,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&O,isStale:B0(t,n),refetch:this.refetch,promise:j(this,Fr),isEnabled:wn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const C=E.data!==void 0,D=E.status==="error"&&!C,R=P=>{D?P.reject(E.error):C&&P.resolve(E.data)},U=()=>{const P=X(this,Fr,E.promise=kv());R(P)},k=j(this,Fr);switch(k.status){case"pending":t.queryHash===r.queryHash&&R(k);break;case"fulfilled":(D||E.data!==k.value)&&U();break;case"rejected":(!D||E.error!==k.reason)&&U();break}}return E}updateResult(){const t=j(this,Qt),n=this.createResult(j(this,xe),this.options);if(X(this,Ii,j(this,xe).state),X(this,dl,this.options),j(this,Ii).data!==void 0&&X(this,pl,j(this,xe)),Pd(n,t))return;X(this,Qt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!j(this,yl).size)return!0;const o=new Set(i??j(this,yl));return this.options.throwOnError&&o.add("error"),Object.keys(j(this,Qt)).some(l=>{const u=l;return j(this,Qt)[u]!==t[u]&&o.has(u)})};de(this,Te,QC).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,Te,Iv).call(this)}},un=new WeakMap,xe=new WeakMap,Oc=new WeakMap,Qt=new WeakMap,Ii=new WeakMap,dl=new WeakMap,Fr=new WeakMap,ka=new WeakMap,wc=new WeakMap,hl=new WeakMap,pl=new WeakMap,Hi=new WeakMap,qi=new WeakMap,La=new WeakMap,yl=new WeakMap,Te=new WeakSet,es=function(t){de(this,Te,Fv).call(this);let n=j(this,xe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Zt)),n},Bv=function(){de(this,Te,Hv).call(this);const t=ri(this.options.staleTime,j(this,xe));if(Bs.isServer()||j(this,Qt).isStale||!$v(t))return;const r=HC(j(this,Qt).dataUpdatedAt,t)+1;X(this,Hi,Mi.setTimeout(()=>{j(this,Qt).isStale||this.updateResult()},r))},Uv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,xe)):this.options.refetchInterval)??!1},zv=function(t){de(this,Te,qv).call(this),X(this,La,t),!(Bs.isServer()||wn(this.options.enabled,j(this,xe))===!1||!$v(j(this,La))||j(this,La)===0)&&X(this,qi,Mi.setInterval(()=>{(this.options.refetchIntervalInBackground||P0.isFocused())&&de(this,Te,es).call(this)},j(this,La)))},Iv=function(){de(this,Te,Bv).call(this),de(this,Te,zv).call(this,de(this,Te,Uv).call(this))},Hv=function(){j(this,Hi)!==void 0&&(Mi.clearTimeout(j(this,Hi)),X(this,Hi,void 0))},qv=function(){j(this,qi)!==void 0&&(Mi.clearInterval(j(this,qi)),X(this,qi,void 0))},Fv=function(){const t=j(this,un).getQueryCache().build(j(this,un),this.options);if(t===j(this,xe))return;const n=j(this,xe);X(this,xe,t),X(this,Oc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},QC=function(t){Ot.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(j(this,Qt))}),j(this,un).getQueryCache().notify({query:j(this,xe),type:"observerResultsUpdated"})})},f_);function l4(e,t){return wn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&wn(t.retryOnMount,e)===!1)}function zS(e,t){return l4(e,t)||e.state.data!==void 0&&Gv(e,t,t.refetchOnMount)}function Gv(e,t,n){if(wn(t.enabled,e)!==!1&&ri(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&B0(e,t)}return!1}function IS(e,t,n,r){return(e!==t||wn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&B0(e,n)}function B0(e,t){return wn(t.enabled,e)!==!1&&e.isStaleByTime(ri(t.staleTime,e))}function u4(e,t){return!Pd(e.getCurrentResult(),t)}var Ac,mr,Gt,Fi,vr,Aa,d_,s4=(d_=class extends YC{constructor(t){super();te(this,vr);te(this,Ac);te(this,mr);te(this,Gt);te(this,Fi);X(this,Ac,t.client),this.mutationId=t.mutationId,X(this,Gt,t.mutationCache),X(this,mr,[]),this.state=t.state||WC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,mr).includes(t)||(j(this,mr).push(t),this.clearGcTimeout(),j(this,Gt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,mr,j(this,mr).filter(n=>n!==t)),this.scheduleGc(),j(this,Gt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,mr).length||(this.state.status==="pending"?this.scheduleGc():j(this,Gt).remove(this))}continue(){var t;return((t=j(this,Fi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,u,s,f,c,d,h,b,v,m,p,y,x,w,S,O,A;const n=()=>{de(this,vr,Aa).call(this,{type:"continue"})},r={client:j(this,Ac),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,Fi,KC({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,T)=>{de(this,vr,Aa).call(this,{type:"failed",failureCount:E,error:T})},onPause:()=>{de(this,vr,Aa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,Gt).canRun(this)}));const a=this.state.status==="pending",i=!j(this,Fi).canStart();try{if(a)n();else{de(this,vr,Aa).call(this,{type:"pending",variables:t,isPaused:i}),j(this,Gt).config.onMutate&&await j(this,Gt).config.onMutate(t,this,r);const T=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,r));T!==this.state.context&&de(this,vr,Aa).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const E=await j(this,Fi).start();return await((s=(u=j(this,Gt).config).onSuccess)==null?void 0:s.call(u,E,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,E,t,this.state.context,r)),await((h=(d=j(this,Gt).config).onSettled)==null?void 0:h.call(d,E,null,this.state.variables,this.state.context,this,r)),await((v=(b=this.options).onSettled)==null?void 0:v.call(b,E,null,t,this.state.context,r)),de(this,vr,Aa).call(this,{type:"success",data:E}),E}catch(E){try{await((p=(m=j(this,Gt).config).onError)==null?void 0:p.call(m,E,t,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((x=(y=this.options).onError)==null?void 0:x.call(y,E,t,this.state.context,r))}catch(T){Promise.reject(T)}try{await((S=(w=j(this,Gt).config).onSettled)==null?void 0:S.call(w,void 0,E,this.state.variables,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((A=(O=this.options).onSettled)==null?void 0:A.call(O,void 0,E,t,this.state.context,r))}catch(T){Promise.reject(T)}throw de(this,vr,Aa).call(this,{type:"error",error:E}),E}finally{j(this,Gt).runNext(this)}}},Ac=new WeakMap,mr=new WeakMap,Gt=new WeakMap,Fi=new WeakMap,vr=new WeakSet,Aa=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ot.batch(()=>{j(this,mr).forEach(r=>{r.onMutationUpdate(t)}),j(this,Gt).notify({mutation:this,type:"updated",action:t})})},d_);function WC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gr,ir,Ec,h_,c4=(h_=class extends pu{constructor(t={}){super();te(this,Gr);te(this,ir);te(this,Ec);this.config=t,X(this,Gr,new Set),X(this,ir,new Map),X(this,Ec,0)}build(t,n,r){const a=new s4({client:t,mutationCache:this,mutationId:++Zc(this,Ec)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){j(this,Gr).add(t);const n=gf(t);if(typeof n=="string"){const r=j(this,ir).get(n);r?r.push(t):j(this,ir).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,Gr).delete(t)){const n=gf(t);if(typeof n=="string"){const r=j(this,ir).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&j(this,ir).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=gf(t);if(typeof n=="string"){const r=j(this,ir).get(n),a=r==null?void 0:r.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=gf(t);if(typeof n=="string"){const a=(r=j(this,ir).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ot.batch(()=>{j(this,Gr).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,Gr).clear(),j(this,ir).clear()})}getAll(){return Array.from(j(this,Gr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>PS(n,r))}findAll(t={}){return this.getAll().filter(n=>PS(t,n))}notify(t){Ot.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ot.batch(()=>Promise.all(t.map(n=>n.continue().catch(Zt))))}},Gr=new WeakMap,ir=new WeakMap,Ec=new WeakMap,h_);function gf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Kr,Ba,sn,Yr,oa,Wf,Kv,p_,f4=(p_=class extends pu{constructor(n,r){super();te(this,oa);te(this,Kr);te(this,Ba);te(this,sn);te(this,Yr);X(this,Kr,n),this.setOptions(r),this.bindMethods(),de(this,oa,Wf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const r=this.options;this.options=j(this,Kr).defaultMutationOptions(n),Pd(this.options,r)||j(this,Kr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:j(this,sn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ao(r.mutationKey)!==ao(this.options.mutationKey)?this.reset():((a=j(this,sn))==null?void 0:a.state.status)==="pending"&&j(this,sn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=j(this,sn))==null||n.removeObserver(this)}onMutationUpdate(n){de(this,oa,Wf).call(this),de(this,oa,Kv).call(this,n)}getCurrentResult(){return j(this,Ba)}reset(){var n;(n=j(this,sn))==null||n.removeObserver(this),X(this,sn,void 0),de(this,oa,Wf).call(this),de(this,oa,Kv).call(this)}mutate(n,r){var a;return X(this,Yr,r),(a=j(this,sn))==null||a.removeObserver(this),X(this,sn,j(this,Kr).getMutationCache().build(j(this,Kr),this.options)),j(this,sn).addObserver(this),j(this,sn).execute(n)}},Kr=new WeakMap,Ba=new WeakMap,sn=new WeakMap,Yr=new WeakMap,oa=new WeakSet,Wf=function(){var r;const n=((r=j(this,sn))==null?void 0:r.state)??WC();X(this,Ba,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Kv=function(n){Ot.batch(()=>{var r,a,i,o,l,u,s,f;if(j(this,Yr)&&this.hasListeners()){const c=j(this,Ba).variables,d=j(this,Ba).context,h={client:j(this,Kr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=j(this,Yr)).onSuccess)==null||a.call(r,n.data,c,d,h)}catch(b){Promise.reject(b)}try{(o=(i=j(this,Yr)).onSettled)==null||o.call(i,n.data,null,c,d,h)}catch(b){Promise.reject(b)}}else if((n==null?void 0:n.type)==="error"){try{(u=(l=j(this,Yr)).onError)==null||u.call(l,n.error,c,d,h)}catch(b){Promise.reject(b)}try{(f=(s=j(this,Yr)).onSettled)==null||f.call(s,void 0,n.error,c,d,h)}catch(b){Promise.reject(b)}}}this.listeners.forEach(c=>{c(j(this,Ba))})})},p_),gr,y_,d4=(y_=class extends pu{constructor(t={}){super();te(this,gr);this.config=t,X(this,gr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??D0(a,n);let o=this.get(i);return o||(o=new i4({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){j(this,gr).has(t.queryHash)||(j(this,gr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,gr).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,gr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ot.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,gr).get(t)}getAll(){return[...j(this,gr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$S(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>$S(t,r)):n}notify(t){Ot.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},gr=new WeakMap,y_),it,Ua,za,ml,vl,Ia,gl,bl,m_,h4=(m_=class{constructor(e={}){te(this,it);te(this,Ua);te(this,za);te(this,ml);te(this,vl);te(this,Ia);te(this,gl);te(this,bl);X(this,it,e.queryCache||new d4),X(this,Ua,e.mutationCache||new c4),X(this,za,e.defaultOptions||{}),X(this,ml,new Map),X(this,vl,new Map),X(this,Ia,0)}mount(){Zc(this,Ia)._++,j(this,Ia)===1&&(X(this,gl,P0.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,it).onFocus())})),X(this,bl,Dd.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,it).onOnline())})))}unmount(){var e,t;Zc(this,Ia)._--,j(this,Ia)===0&&((e=j(this,gl))==null||e.call(this),X(this,gl,void 0),(t=j(this,bl))==null||t.call(this),X(this,bl,void 0))}isFetching(e){return j(this,it).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,Ua).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,it).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,it).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ri(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return j(this,it).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=j(this,it).get(r.queryHash),i=a==null?void 0:a.state.data,o=Yk(t,i);if(o!==void 0)return j(this,it).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ot.batch(()=>j(this,it).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,it).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,it);Ot.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,it);return Ot.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ot.batch(()=>j(this,it).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Zt).catch(Zt)}invalidateQueries(e,t={}){return Ot.batch(()=>(j(this,it).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ot.batch(()=>j(this,it).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Zt)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,it).build(this,t);return n.isStaleByTime(ri(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zt).catch(Zt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zt).catch(Zt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Dd.isOnline()?j(this,Ua).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,it)}getMutationCache(){return j(this,Ua)}getDefaultOptions(){return j(this,za)}setDefaultOptions(e){X(this,za,e)}setQueryDefaults(e,t){j(this,ml).set(ao(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,ml).values()],n={};return t.forEach(r=>{Ls(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){j(this,vl).set(ao(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,vl).values()],n={};return t.forEach(r=>{Ls(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,za).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=D0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===k0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,za).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,it).clear(),j(this,Ua).clear()}},it=new WeakMap,Ua=new WeakMap,za=new WeakMap,ml=new WeakMap,vl=new WeakMap,Ia=new WeakMap,gl=new WeakMap,bl=new WeakMap,m_),ZC=_.createContext(void 0),Mr=e=>{const t=_.useContext(ZC);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},p4=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(ZC.Provider,{value:e,children:t})),JC=_.createContext(!1),y4=()=>_.useContext(JC);JC.Provider;function m4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var v4=_.createContext(m4()),g4=()=>_.useContext(v4),b4=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?L0(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},x4=e=>{_.useEffect(()=>{e.clearReset()},[e])},S4=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||L0(n,[e.error,r])),O4=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},w4=(e,t)=>e.isLoading&&e.isFetching&&!t,A4=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,HS=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function E4(e,t,n){var h,b,v,m;const r=y4(),a=g4(),i=Mr(),o=i.defaultQueryOptions(e);(b=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||b.call(h,o);const l=i.getQueryCache().get(o.queryHash),u=e.subscribed!==!1;o._optimisticResults=r?"isRestoring":u?"optimistic":void 0,O4(o),b4(o,a,l),x4(a);const s=!i.getQueryCache().get(o.queryHash),[f]=_.useState(()=>new t(i,o)),c=f.getOptimisticResult(o),d=!r&&u;if(_.useSyncExternalStore(_.useCallback(p=>{const y=d?f.subscribe(Ot.batchCalls(p)):Zt;return f.updateResult(),y},[f,d]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),_.useEffect(()=>{f.setOptions(o)},[o,f]),A4(o,c))throw HS(o,f,a);if(S4({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw c.error;if((m=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||m.call(v,o,c),o.experimental_prefetchInRender&&!Bs.isServer()&&w4(c,r)){const p=s?HS(o,f,a):l==null?void 0:l.promise;p==null||p.catch(Zt).finally(()=>{f.updateResult()})}return o.notifyOnChangeProps?c:f.trackResult(c)}function Dn(e,t){return E4(e,o4)}function ut(e,t){const n=Mr(),[r]=_.useState(()=>new f4(n,e));_.useEffect(()=>{r.setOptions(e)},[r,e]);const a=_.useSyncExternalStore(_.useCallback(o=>r.subscribe(Ot.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=_.useCallback((o,l)=>{r.mutate(o,l).catch(Zt)},[r]);if(a.error&&L0(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}const _4={dashboard:'<rect x="3" y="3" width="7" height="9"/><rect x="14" y="3" width="7" height="5"/><rect x="14" y="12" width="7" height="9"/><rect x="3" y="16" width="7" height="5"/>',region:'<path d="M12 21s-7-6.3-7-11a7 7 0 0 1 14 0c0 4.7-7 11-7 11z"/><circle cx="12" cy="10" r="2.5"/>',store:'<path d="M3 9l1.5-5h15L21 9"/><path d="M4 9v10h16V9"/><path d="M3 9h18"/><path d="M9 19v-6h6v6"/>',group:'<rect x="3" y="3" width="8" height="8" rx="1"/><rect x="13" y="3" width="8" height="8" rx="1"/><rect x="3" y="13" width="8" height="8" rx="1"/><rect x="13" y="13" width="8" height="8" rx="1"/>',users:'<circle cx="9" cy="8" r="3"/><path d="M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6"/><path d="M16 5.5a3 3 0 0 1 0 5.8"/><path d="M18 20c0-2.4-1-4.5-2.6-5.6"/>',tenant:'<rect x="4" y="3" width="16" height="18" rx="1"/><path d="M8 7h2M8 11h2M8 15h2M14 7h2M14 11h2M14 15h2"/>',gateway:'<rect x="3" y="9" width="18" height="6" rx="1"/><circle cx="7" cy="12" r="1"/><path d="M12 9V5M12 19v-4"/><path d="M9 5h6M9 19h6"/>',signboard:'<rect x="3" y="4" width="18" height="12" rx="1"/><path d="M12 16v4M8 20h8"/><path d="M7 8h6M7 11h4"/>',template:'<rect x="4" y="3" width="16" height="18" rx="1"/><path d="M8 7h8M8 11h8M8 15h5"/>',editor:'<path d="M4 4h10"/><path d="M4 4v16h16v-8"/><path d="M14.5 6.5l3.5-3.5 2 2-3.5 3.5-2.5.5z"/><path d="M8 12h6M8 16h4"/>',templateGroup:'<rect x="3" y="4" width="12" height="14" rx="1"/><path d="M9 8h4M9 11h4"/><path d="M18 8v12H8"/>',deploy:'<path d="M12 3v12"/><path d="M8 7l4-4 4 4"/><rect x="4" y="15" width="16" height="6" rx="1"/>',firmware:'<rect x="7" y="7" width="10" height="10" rx="1"/><path d="M10 3v4M14 3v4M10 17v4M14 17v4M3 10h4M3 14h4M17 10h4M17 14h4"/>',backup:'<ellipse cx="12" cy="6" rx="7" ry="3"/><path d="M5 6v6c0 1.7 3.1 3 7 3s7-1.3 7-3V6"/><path d="M5 12v6c0 1.7 3.1 3 7 3s7-1.3 7-3v-6"/>',ad:'<path d="M3 10v4h4l5 4V6l-5 4H3z"/><path d="M16 9a3 3 0 0 1 0 6"/><path d="M18.5 7a6 6 0 0 1 0 10"/>',alarm:'<path d="M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.7 21a2 2 0 0 1-3.4 0"/>',audit:'<path d="M8 3h8l4 4v14H4V3z"/><path d="M8 12h8M8 16h5M9 7h3"/>',settings:'<circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1l2.1-2.1M17 7l2.1-2.1"/>',cpu:'<rect x="7" y="7" width="10" height="10" rx="1"/><path d="M10 3v4M14 3v4M10 17v4M14 17v4M3 10h4M3 14h4M17 10h4M17 14h4"/>',ai:'<path d="M12 3a4 4 0 0 1 4 4 4 4 0 0 1 0 8 4 4 0 0 1-8 0 4 4 0 0 1 0-8 4 4 0 0 1 4-4z"/><path d="M12 8v8M9 12h6"/>',chat:'<path d="M4 5h16v11H8l-4 4V5z"/><path d="M8 9h8M8 12h5"/>',plus:'<path d="M12 5v14M5 12h14"/>',edit:'<path d="M4 20h4l10-10-4-4L4 16v4z"/><path d="M13.5 6.5l4 4"/>',trash:'<path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13"/>',close:'<path d="M6 6l12 12M18 6L6 18"/>',search:'<circle cx="11" cy="11" r="7"/><path d="M21 21l-4-4"/>',logout:'<path d="M15 4h4v16h-4"/><path d="M10 8l-4 4 4 4"/><path d="M6 12h9"/>',user:'<circle cx="12" cy="8" r="4"/><path d="M4 20c0-4.4 3.6-8 8-8s8 3.6 8 8"/>',save:'<path d="M5 3h11l3 3v15H5z"/><path d="M8 3v5h7V3M8 21v-6h8v6"/>',key:'<circle cx="8" cy="14" r="4"/><path d="M11 11l9-9M17 5l2 2M14 8l2 2"/>',plug:'<path d="M12 2v6M8 8h8v3a4 4 0 0 1-8 0V8z"/><path d="M12 15v7"/>',warn:'<path d="M12 3l9 16H3z"/><path d="M12 9v5M12 17h.01"/>',refresh:'<path d="M4 12a8 8 0 0 1 13.7-5.7L20 8"/><path d="M20 4v4h-4"/><path d="M20 12a8 8 0 0 1-13.7 5.7L4 16"/><path d="M4 20v-4h4"/>',send:'<path d="M4 12l16-8-6 16-4-6-6-2z"/>',check:'<path d="M4 12l5 5L20 6"/>',preview:'<path d="M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7z"/><circle cx="12" cy="12" r="3"/>',phone:'<path d="M5 3h4l2 5-3 2a12 12 0 0 0 5 5l2-3 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z"/>',grid:'<rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/>'};function We({name:e,size:t=16,className:n,style:r}){return g.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",className:n,style:r,"aria-hidden":"true",dangerouslySetInnerHTML:{__html:_4[e]}})}const T4=[{title:"관제",items:[{to:"/dashboard",icon:"dashboard",label:"대시보드"},{to:"/gateways",icon:"gateway",label:"게이트웨이"},{to:"/signboards",icon:"signboard",label:"간판 패널(ESB)"},{to:"/alarms",icon:"alarm",label:"알람/장애"}]},{title:"매장 · 조직",items:[{to:"/regions",icon:"region",label:"지역 관리"},{to:"/stores",icon:"store",label:"매장 관리"},{to:"/store-groups",icon:"group",label:"매장 그룹"},{to:"/tenants",icon:"tenant",label:"테넌트"},{to:"/users",icon:"users",label:"사용자 계정"}]},{title:"간판 콘텐츠",items:[{to:"/templates",icon:"template",label:"템플릿"},{to:"/sign-editor",icon:"editor",label:"간판 이미지 에디터"},{to:"/template-groups",icon:"templateGroup",label:"템플릿 그룹·배포"},{to:"/ad-schedules",icon:"ad",label:"광고 스케줄"}]},{title:"배포 · 운영",items:[{to:"/deploys",icon:"deploy",label:"간판정보 배포"},{to:"/firmware",icon:"firmware",label:"펌웨어 배포"},{to:"/backups",icon:"backup",label:"백업/복구"}]},{title:"AI · 시스템",items:[{to:"/ai",icon:"ai",label:"AI 어시스턴트"},{to:"/ai-platform",icon:"cpu",label:"AI 플랫폼 설정"},{to:"/audit",icon:"audit",label:"감사 로그"},{to:"/settings",icon:"settings",label:"시스템 설정"}]}];function j4(){return g.jsxs("aside",{className:"w-56 bg-panel flex flex-col border-r border-edge flex-shrink-0",children:[g.jsxs("div",{className:"h-14 flex items-center px-4 border-b border-edge",children:[g.jsx(We,{name:"signboard",size:18,className:"text-brand"}),g.jsx("span",{className:"ml-2 text-brand font-bold text-sm tracking-wide",children:"GUARDiA"}),g.jsx("span",{className:"ml-1.5 text-xs text-gray-400",children:"Signage"})]}),g.jsx("nav",{className:"flex-1 overflow-y-auto py-2",children:T4.map(e=>g.jsxs("div",{className:"mb-1",children:[g.jsx("div",{className:"px-4 pt-3 pb-1 text-[10px] font-semibold tracking-wide text-gray-500 uppercase",children:e.title}),e.items.map(({to:t,icon:n,label:r})=>g.jsxs(zC,{to:t,className:({isActive:a})=>`flex items-center gap-3 px-4 py-2 text-sm transition-colors ${a?"bg-brand/15 text-brand border-r-2 border-brand":"text-gray-400 hover:text-white hover:bg-edge/50"}`,children:[g.jsx(We,{name:n,size:16}),r]},t))]},e.title))}),g.jsx("div",{className:"p-4 border-t border-edge text-xs text-gray-500",children:"e-SignBoard · v1.0"})]})}function C4(){const e=op(),t=localStorage.getItem("sgn_user")||"admin",n=localStorage.getItem("sgn_role")||"ADMIN",r=localStorage.getItem("sgn_tenant")||"ALL";function a(){["sgn_token","sgn_role","sgn_user","sgn_tenant"].forEach(i=>localStorage.removeItem(i)),e("/login")}return g.jsxs("header",{className:"h-14 bg-panel border-b border-edge flex items-center px-6 gap-4 flex-shrink-0",children:[g.jsx("div",{className:"flex-1"}),g.jsxs("span",{className:"text-xs text-gray-400",children:["테넌트: ",g.jsx("span",{className:"text-brand",children:r})]}),g.jsx("span",{className:"text-xs text-gray-500",children:"|"}),g.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[g.jsx(We,{name:"user",size:14}),g.jsx("span",{children:t}),g.jsx("span",{className:"text-xs text-brand bg-brand/10 px-2 py-0.5 rounded",children:n})]}),g.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-gray-400 hover:text-white text-sm",children:[g.jsx(We,{name:"logout",size:14})," 로그아웃"]})]})}function e2(e,t){return function(){return e.apply(t,arguments)}}const{toString:M4}=Object.prototype,{getPrototypeOf:Nl}=Object,{iterator:zc,toStringTag:t2}=Symbol,kd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Us=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),kd(n,t))return!0;n=Nl(n)}return!1},N4=(e,t)=>e!=null&&Us(e,t)?e[t]:void 0,U0=(e=>t=>{const n=M4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pr=e=>(e=e.toLowerCase(),t=>U0(t)===e),sp=e=>t=>typeof t===e,{isArray:io}=Array,Rl=sp("undefined");function yu(e){return e!==null&&!Rl(e)&&e.constructor!==null&&!Rl(e.constructor)&&pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n2=pr("ArrayBuffer");function R4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n2(e.buffer),t}const $4=sp("string"),pn=sp("function"),r2=sp("number"),mu=e=>e!==null&&typeof e=="object",P4=e=>e===!0||e===!1,Zf=e=>{if(!mu(e))return!1;const t=Nl(e);return(t===null||t===Object.prototype||Nl(t)===null)&&!Us(e,t2)&&!Us(e,zc)},D4=e=>{if(!mu(e)||yu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},k4=pr("Date"),L4=pr("File"),B4=e=>!!(e&&typeof e.uri<"u"),U4=e=>e&&typeof e.getParts<"u",z4=pr("Blob"),I4=pr("FileList"),H4=e=>mu(e)&&pn(e.pipe);function q4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const qS=q4(),FS=typeof qS.FormData<"u"?qS.FormData:void 0,F4=e=>{if(!e)return!1;if(FS&&e instanceof FS)return!0;const t=Nl(e);if(!t||t===Object.prototype||!pn(e.append))return!1;const n=U0(e);return n==="formdata"||n==="object"&&pn(e.toString)&&e.toString()==="[object FormData]"},G4=pr("URLSearchParams"),[K4,Y4,V4,X4]=["ReadableStream","Request","Response","Headers"].map(pr),Q4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ic(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),io(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(yu(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(r=0;r<o;r++)l=i[r],t.call(null,e[l],l,e)}}function a2(e,t){if(yu(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 Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,i2=e=>!Rl(e)&&e!==Ni;function Yv(...e){const{caseless:t,skipUndefined:n}=i2(this)&&this||{},r={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&a2(r,o)||o,u=kd(r,l)?r[l]:void 0;Zf(u)&&Zf(i)?r[l]=Yv(u,i):Zf(i)?r[l]=Yv({},i):io(i)?r[l]=i.slice():(!n||!Rl(i))&&(r[l]=i)};for(let i=0,o=e.length;i<o;i++){const l=e[i];if(!l||yu(l)||(Ic(l,a),typeof l!="object"||io(l)))continue;const u=Object.getOwnPropertySymbols(l);for(let s=0;s<u.length;s++){const f=u[s];uL.call(l,f)&&a(l[f],f)}}return r}const W4=(e,t,n,{allOwnKeys:r}={})=>(Ic(t,(a,i)=>{n&&pn(a)?Object.defineProperty(e,i,{__proto__:null,value:e2(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),Z4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),J4=(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)},eL=(e,t,n,r)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&Nl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tL=(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},nL=e=>{if(!e)return null;if(io(e))return e;let t=e.length;if(!r2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nl(Uint8Array)),aL=(e,t)=>{const r=(e&&e[zc]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},iL=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oL=pr("HTMLFormElement"),lL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:uL}=Object.prototype,sL=pr("RegExp"),o2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ic(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},cL=e=>{o2(e,(t,n)=>{if(pn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(pn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fL=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return io(e)?r(e):r(String(e).split(t)),n},dL=()=>{},hL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pL(e){return!!(e&&pn(e.append)&&e[t2]==="FormData"&&e[zc])}const yL=e=>{const t=new WeakSet,n=r=>{if(mu(r)){if(t.has(r))return;if(yu(r))return r;if(!("toJSON"in r)){t.add(r);const a=io(r)?[]:{};return Ic(r,(i,o)=>{const l=n(i);!Rl(l)&&(a[o]=l)}),t.delete(r),a}}return r};return n(e)},mL=pr("AsyncFunction"),vL=e=>e&&(mu(e)||pn(e))&&pn(e.then)&&pn(e.catch),l2=((e,t)=>e?setImmediate:t?((n,r)=>(Ni.addEventListener("message",({source:a,data:i})=>{a===Ni&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ni.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pn(Ni.postMessage)),gL=typeof queueMicrotask<"u"?queueMicrotask.bind(Ni):typeof process<"u"&&process.nextTick||l2,u2=e=>e!=null&&pn(e[zc]),bL=e=>e!=null&&Us(e,zc)&&u2(e),M={isArray:io,isArrayBuffer:n2,isBuffer:yu,isFormData:F4,isArrayBufferView:R4,isString:$4,isNumber:r2,isBoolean:P4,isObject:mu,isPlainObject:Zf,isEmptyObject:D4,isReadableStream:K4,isRequest:Y4,isResponse:V4,isHeaders:X4,isUndefined:Rl,isDate:k4,isFile:L4,isReactNativeBlob:B4,isReactNative:U4,isBlob:z4,isRegExp:sL,isFunction:pn,isStream:H4,isURLSearchParams:G4,isTypedArray:rL,isFileList:I4,forEach:Ic,merge:Yv,extend:W4,trim:Q4,stripBOM:Z4,inherits:J4,toFlatObject:eL,kindOf:U0,kindOfTest:pr,endsWith:tL,toArray:nL,forEachEntry:aL,matchAll:iL,isHTMLForm:oL,hasOwnProperty:kd,hasOwnProp:kd,hasOwnInPrototypeChain:Us,getSafeProp:N4,reduceDescriptors:o2,freezeMethods:cL,toObjectSet:fL,toCamelCase:lL,noop:dL,toFiniteNumber:hL,findKey:a2,global:Ni,isContextDefined:i2,isSpecCompliantForm:pL,toJSONObject:yL,isAsyncFn:mL,isThenable:vL,setImmediate:l2,asap:gL,isIterable:u2,isSafeIterable:bL},xL=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),SL=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&xL[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function OL(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 wL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),AL=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function z0(e,t){return M.isArray(e)?e.map(n=>z0(n,t)):OL(String(e).replace(t,""))}const EL=e=>z0(e,wL),_L=e=>z0(e,AL);function s2(e){const t=Object.create(null);return M.forEach(e.toJSON(),(n,r)=>{t[r]=_L(n)}),t}const GS=Symbol("internals");function Bu(e){return e&&String(e).trim().toLowerCase()}function Jf(e){return e===!1||e==null?e:M.isArray(e)?e.map(Jf):EL(String(e))}function TL(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 jL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jy(e,t,n,r,a){if(M.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function CL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ML(e,t){const n=M.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}let Xt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,u,s){const f=Bu(u);if(!f)return;const c=M.findKey(a,f);(!c||a[c]===void 0||s===!0||s===void 0&&a[c]!==!1)&&(a[c||u]=Jf(l))}const o=(l,u)=>M.forEach(l,(s,f)=>i(s,f,u));if(M.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(M.isString(t)&&(t=t.trim())&&!jL(t))o(SL(t),n);else if(M.isObject(t)&&M.isSafeIterable(t)){let l=Object.create(null),u,s;for(const f of t){if(!M.isArray(f))throw new TypeError("Object iterator must return a key-value pair");s=f[0],M.hasOwnProp(l,s)?(u=l[s],l[s]=M.isArray(u)?[...u,f[1]]:[u,f[1]]):l[s]=f[1]}o(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Bu(t),t){const r=M.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return TL(a);if(M.isFunction(n))return n.call(this,a,r);if(M.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bu(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Jy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Bu(o),o){const l=M.findKey(r,o);l&&(!n||Jy(r,r[l],l,n))&&(delete r[l],a=!0)}}return M.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Jy(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return M.forEach(this,(a,i)=>{const o=M.findKey(r,i);if(o){n[o]=Jf(a),delete n[i];return}const l=t?CL(i):String(i).trim();l!==i&&delete n[i],n[l]=Jf(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&M.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[GS]=this[GS]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=Bu(o);r[l]||(ML(a,o),r[l]=!0)}return M.isArray(t)?t.forEach(i):i(t),this}};Xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(Xt);const NL="[REDACTED ****]";function RL(e){if(M.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(M.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function $L(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||M.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Xt&&(i=i.toJSON()),r.push(i);let o;if(M.isArray(i))o=[],i.forEach((l,u)=>{const s=a(l);M.isUndefined(s)||(o[u]=s)});else{if(!M.isPlainObject(i)&&RL(i))return r.pop(),i;o=Object.create(null);for(const[l,u]of Object.entries(i)){const s=n.has(l.toLowerCase())?NL:a(u);M.isUndefined(s)||(o[l]=s)}}return r.pop(),o};return a(e)}let Y=class c2 extends Error{static from(t,n,r,a,i,o){const l=new c2(t.message,n||t.code,r,a,i);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),o&&Object.assign(l,o),l}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&M.hasOwnProp(t,"redact")?t.redact:void 0,r=M.isArray(n)&&n.length>0?$L(t,n):M.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Y.ERR_BAD_OPTION="ERR_BAD_OPTION";Y.ECONNABORTED="ECONNABORTED";Y.ETIMEDOUT="ETIMEDOUT";Y.ECONNREFUSED="ECONNREFUSED";Y.ERR_NETWORK="ERR_NETWORK";Y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Y.ERR_DEPRECATED="ERR_DEPRECATED";Y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Y.ERR_CANCELED="ERR_CANCELED";Y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Y.ERR_INVALID_URL="ERR_INVALID_URL";Y.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const PL=null,f2=100;function Vv(e){return M.isPlainObject(e)||M.isArray(e)}function d2(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function em(e,t,n){return e?e.concat(t).map(function(a,i){return a=d2(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function DL(e){return M.isArray(e)&&!e.some(Vv)}const kL=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function cp(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!M.isUndefined(x[y])});const r=n.metaTokens,a=n.visitor||b,i=n.dots,o=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?f2:n.maxDepth,s=l&&M.isSpecCompliantForm(t),f=[];if(!M.isFunction(a))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(M.isDate(p))return p.toISOString();if(M.isBoolean(p))return p.toString();if(!s&&M.isBlob(p))throw new Y("Blob is not supported. Use a Buffer instead.");if(M.isArrayBuffer(p)||M.isTypedArray(p)){if(s&&typeof l=="function")return new l([p]);if(typeof Buffer<"u")return Buffer.from(p);throw new Y("Blob is not supported. Use a Buffer instead.",Y.ERR_NOT_SUPPORT)}return p}function d(p){if(p>u)throw new Y("Object is too deeply nested ("+p+" levels). Max depth: "+u,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(p,y){if(u===1/0)return JSON.stringify(p);const x=[];return JSON.stringify(p,function(S,O){if(!M.isObject(O))return O;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(O),d(y+x.length-1),O})}function b(p,y,x){let w=p;if(M.isReactNative(t)&&M.isReactNativeBlob(p))return t.append(em(x,y,i),c(p)),!1;if(p&&!x&&typeof p=="object"){if(M.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=h(p,1);else if(M.isArray(p)&&DL(p)||(M.isFileList(p)||M.endsWith(y,"[]"))&&(w=M.toArray(p)))return y=d2(y),w.forEach(function(O,A){!(M.isUndefined(O)||O===null)&&t.append(o===!0?em([y],A,i):o===null?y:y+"[]",c(O))}),!1}return Vv(p)?!0:(t.append(em(x,y,i),c(p)),!1)}const v=Object.assign(kL,{defaultVisitor:b,convertValue:c,isVisitable:Vv});function m(p,y,x=0){if(!M.isUndefined(p)){if(d(x),f.indexOf(p)!==-1)throw new Error("Circular reference detected in "+y.join("."));f.push(p),M.forEach(p,function(S,O){(!(M.isUndefined(S)||S===null)&&a.call(t,S,M.isString(O)?O.trim():O,y,v))===!0&&m(S,y?y.concat(O):[O],x+1)}),f.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return m(e),t}function KS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function I0(e,t){this._pairs=[],e&&cp(e,this,t)}const h2=I0.prototype;h2.append=function(t,n){this._pairs.push([t,n])};h2.toString=function(t){const n=t?r=>t.call(this,r,KS):KS;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function LL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function p2(e,t,n){if(!t)return e;e=e||"";const r=M.isFunction(n)?{serialize:n}:n,a=M.getSafeProp(r,"encode")||LL,i=M.getSafeProp(r,"serialize");let o;if(i?o=i(t,r):o=M.isURLSearchParams(t)?t.toString():new I0(t,r).toString(a),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class YS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const H0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},BL=typeof URLSearchParams<"u"?URLSearchParams:I0,UL=typeof FormData<"u"?FormData:null,zL=typeof Blob<"u"?Blob:null,IL={isBrowser:!0,classes:{URLSearchParams:BL,FormData:UL,Blob:zL},protocols:["http","https","file","blob","url","data"]},q0=typeof window<"u"&&typeof document<"u",Xv=typeof navigator=="object"&&navigator||void 0,HL=q0&&(!Xv||["ReactNative","NativeScript","NS"].indexOf(Xv.product)<0),qL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",FL=q0&&window.location.href||"http://localhost",GL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:q0,hasStandardBrowserEnv:HL,hasStandardBrowserWebWorkerEnv:qL,navigator:Xv,origin:FL},Symbol.toStringTag,{value:"Module"})),zt={...GL,...IL};function KL(e,t){return cp(e,new zt.classes.URLSearchParams,{visitor:function(n,r,a,i){return zt.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const VS=f2;function y2(e){if(e>VS)throw new Y("FormData field is too deeply nested ("+e+" levels). Max depth: "+VS,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function YL(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)y2(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function VL(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 m2(e){function t(n,r,a,i){y2(i);let o=n[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=i>=n.length;return o=!o&&M.isArray(a)?a.length:o,u?(M.hasOwnProp(a,o)?a[o]=M.isArray(a[o])?a[o].concat(r):[a[o],r]:a[o]=r,!l):((!M.hasOwnProp(a,o)||!M.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&M.isArray(a[o])&&(a[o]=VL(a[o])),!l)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,a)=>{t(YL(r),a,n,0)}),n}return null}const Eo=(e,t)=>e!=null&&M.hasOwnProp(e,t)?e[t]:void 0;function XL(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Hc={transitional:H0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=M.isObject(t);if(i&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return a?JSON.stringify(m2(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const u=Eo(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return KL(t,u).toString();if((l=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=Eo(this,"env"),f=s&&s.FormData;return cp(l?{"files[]":t}:t,f&&new f,u)}}return i||a?(n.setContentType("application/json",!1),XL(t)):t}],transformResponse:[function(t){const n=Eo(this,"transitional")||Hc.transitional,r=n&&n.forcedJSONParsing,a=Eo(this,"responseType"),i=a==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(r&&!a||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Eo(this,"parseReviver"))}catch(u){if(l)throw u.name==="SyntaxError"?Y.from(u,Y.ERR_BAD_RESPONSE,this,null,Eo(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch","query"],e=>{Hc.headers[e]={}});function tm(e,t){const n=this||Hc,r=t||n,a=Xt.from(r.headers);let i=r.data;return M.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function v2(e){return!!(e&&e.__CANCEL__)}let qc=class extends Y{constructor(t,n,r){super(t??"canceled",Y.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function g2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Y("Request failed with status code "+n.status,n.status>=400&&n.status<500?Y.ERR_BAD_REQUEST:Y.ERR_BAD_RESPONSE,n.config,n.request,n))}function QL(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function WL(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const s=Date.now(),f=r[i];o||(o=s),n[a]=u,r[a]=s;let c=i,d=0;for(;c!==a;)d+=n[c++],c=c%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),s-o<t)return;const h=f&&s-f;return h?Math.round(d*1e3/h):void 0}}function ZL(e,t){let n=0,r=1e3/t,a,i;const o=(s,f=Date.now())=>{n=f,a=null,i&&(clearTimeout(i),i=null),e(...s)};return[(...s)=>{const f=Date.now(),c=f-n;c>=r?o(s,f):(a=s,i||(i=setTimeout(()=>{i=null,o(a)},r-c)))},()=>a&&o(a)]}const Ld=(e,t,n=3)=>{let r=0;const a=WL(50,250);return ZL(i=>{if(!i||typeof i.loaded!="number")return;const o=i.loaded,l=i.lengthComputable?i.total:void 0,u=l!=null?Math.min(o,l):o,s=Math.max(0,u-r),f=a(s);r=Math.max(r,u);const c={loaded:u,total:l,progress:l?u/l:void 0,bytes:s,rate:f||void 0,estimated:f&&l?(l-u)/f:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(c)},n)},XS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},QS=e=>(...t)=>M.asap(()=>e(...t)),JL=zt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,zt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(zt.origin),zt.navigator&&/(msie|trident)/i.test(zt.navigator.userAgent)):()=>!0,eB=zt.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];M.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),M.isString(r)&&l.push(`path=${r}`),M.isString(a)&&l.push(`domain=${a}`),i===!0&&l.push("secure"),M.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)try{return decodeURIComponent(r.slice(a+1))}catch{return r.slice(a+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function tB(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const rB=/^https?:(?!\/\/)/i,aB=/[\t\n\r]/g;function iB(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function oB(e){return iB(e).replace(aB,"")}function WS(e,t){if(typeof e=="string"&&rB.test(oB(e)))throw new Y('Invalid URL: missing "//" after protocol',Y.ERR_INVALID_URL,t)}function b2(e,t,n,r){WS(t,r);let a=!tB(t);return e&&(a||n===!1)?(WS(e,r),nB(e,t)):t}const ZS=e=>e instanceof Xt?{...e}:e;function oo(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,c,d,h){return M.isPlainObject(f)&&M.isPlainObject(c)?M.merge.call({caseless:h},f,c):M.isPlainObject(c)?M.merge({},c):M.isArray(c)?c.slice():c}function a(f,c,d,h){if(M.isUndefined(c)){if(!M.isUndefined(f))return r(void 0,f,d,h)}else return r(f,c,d,h)}function i(f,c){if(!M.isUndefined(c))return r(void 0,c)}function o(f,c){if(M.isUndefined(c)){if(!M.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function l(f){const c=M.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!M.isUndefined(c))if(M.isPlainObject(c)){if(M.hasOwnProp(c,f))return c[f]}else return;const d=M.hasOwnProp(e,"transitional")?e.transitional:void 0;if(M.isPlainObject(d)&&M.hasOwnProp(d,f))return d[f]}function u(f,c,d){if(M.hasOwnProp(t,d))return r(f,c);if(M.hasOwnProp(e,d))return r(void 0,f)}const s={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:u,headers:(f,c,d)=>a(ZS(f),ZS(c),d,!0)};return M.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const d=M.hasOwnProp(s,c)?s[c]:a,h=M.hasOwnProp(e,c)?e[c]:void 0,b=M.hasOwnProp(t,c)?t[c]:void 0,v=d(h,b,c);M.isUndefined(v)&&d!==u||(n[c]=v)}),M.hasOwnProp(t,"validateStatus")&&M.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(M.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const lB=["content-type","content-length"];function uB(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,a])=>{lB.includes(r.toLowerCase())&&e.set(r,a)})}const sB=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function x2(e){const t=oo({},e),n=d=>M.hasOwnProp(t,d)?t[d]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),o=n("xsrfCookieName");let l=n("headers");const u=n("auth"),s=n("baseURL"),f=n("allowAbsoluteUrls"),c=n("url");if(t.headers=l=Xt.from(l),t.url=p2(b2(s,c,f,t),n("params"),n("paramsSerializer")),u){const d=M.getSafeProp(u,"username")||"",h=M.getSafeProp(u,"password")||"";try{l.set("Authorization","Basic "+btoa(d+":"+(h?sB(h):"")))}catch(b){throw Y.from(b,Y.ERR_BAD_OPTION_VALUE,e)}}if(M.isFormData(r)&&(zt.hasStandardBrowserEnv||zt.hasStandardBrowserWebWorkerEnv||M.isReactNative(r)?l.setContentType(void 0):M.isFunction(r.getHeaders)&&uB(l,r.getHeaders(),n("formDataHeaderPolicy"))),zt.hasStandardBrowserEnv&&(M.isFunction(a)&&(a=a(t)),a===!0||a==null&&JL(t.url))){const h=i&&o&&eB.read(o);h&&l.set(i,h)}return t}const cB=typeof XMLHttpRequest<"u",fB=cB&&function(e){return new Promise(function(n,r){const a=x2(e);let i=a.data;const o=Xt.from(a.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:s}=a,f,c,d,h,b;function v(){h&&h(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function p(){if(!m)return;const x=Xt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:x,config:e,request:m};g2(function(A){n(A),v()},function(A){r(A),v()},S),m=null}"onloadend"in m?m.onloadend=p:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(p)},m.onabort=function(){m&&(r(new Y("Request aborted",Y.ECONNABORTED,e,m)),v(),m=null)},m.onerror=function(w){const S=w&&w.message?w.message:"Network Error",O=new Y(S,Y.ERR_NETWORK,e,m);O.event=w||null,r(O),v(),m=null},m.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||H0;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new Y(w,S.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,m)),v(),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&M.forEach(s2(o),function(w,S){m.setRequestHeader(S,w)}),M.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),l&&l!=="json"&&(m.responseType=a.responseType),s&&([d,b]=Ld(s,!0),m.addEventListener("progress",d)),u&&m.upload&&([c,h]=Ld(u),m.upload.addEventListener("progress",c),m.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(f=x=>{m&&(r(!x||x.type?new qc(null,e,m):x),m.abort(),v(),m=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const y=QL(a.url);if(y&&!zt.protocols.includes(y)){r(new Y("Unsupported protocol "+y+":",Y.ERR_BAD_REQUEST,e)),v();return}m.send(i||null)})},dB=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(u){if(!r){r=!0,o();const s=u instanceof Error?u:this.reason;n.abort(s instanceof Y?s:new qc(s instanceof Error?s.message:s))}};let i=t&&setTimeout(()=>{i=null,a(new Y(`timeout of ${t}ms exceeded`,Y.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a,{once:!0}));const{signal:l}=n;return l.unsubscribe=()=>M.asap(o),l},hB=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},pB=async function*(e,t){for await(const n of yB(e))yield*hB(n,t)},yB=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()}},JS=(e,t,n,r)=>{const a=pB(e,t);let i=0,o,l=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:s,value:f}=await a.next();if(s){l(),u.close();return}let c=f.byteLength;if(n){let d=i+=c;n(d)}u.enqueue(new Uint8Array(f))}catch(s){throw l(s),s}},cancel(u){return l(u),a.return()}},{highWaterMark:2})},Bd=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,mB=(e,t,n)=>t+2<n&&Bd(e.charCodeAt(t+1))&&Bd(e.charCodeAt(t+2));function vB(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const l=r.length;for(let h=0;h<l;h++)if(r.charCodeAt(h)===37&&h+2<l){const b=r.charCodeAt(h+1),v=r.charCodeAt(h+2);Bd(b)&&Bd(v)&&(o-=2,h+=2)}let u=0,s=l-1;const f=h=>h>=2&&r.charCodeAt(h-2)===37&&r.charCodeAt(h-1)===51&&(r.charCodeAt(h)===68||r.charCodeAt(h)===100);s>=0&&(r.charCodeAt(s)===61?(u++,s--):f(s)&&(u++,s-=3)),u===1&&s>=0&&(r.charCodeAt(s)===61||f(s))&&u++;const d=Math.floor(o/4)*3-(u||0);return d>0?d:0}let i=0;for(let o=0,l=r.length;o<l;o++){const u=r.charCodeAt(o);if(u===37&&mB(r,o,l))i+=1,o+=2;else if(u<128)i+=1;else if(u<2048)i+=2;else if(u>=55296&&u<=56319&&o+1<l){const s=r.charCodeAt(o+1);s>=56320&&s<=57343?(i+=4,o++):i+=3}else i+=3}return i}const F0="1.18.1",eO=64*1024,{isFunction:bf}=M,gB=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),tO=e=>{if(!M.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},nO=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bB=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},xB=e=>{const t=M.global!==void 0&&M.global!==null?M.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=M.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,l=a?bf(a):typeof fetch=="function",u=bf(i),s=bf(o);if(!l)return!1;const f=l&&bf(n),c=l&&(typeof r=="function"?(p=>y=>p.encode(y))(new r):async p=>new Uint8Array(await new i(p).arrayBuffer())),d=u&&f&&nO(()=>{let p=!1;const y=new i(zt.origin,{body:new n,method:"POST",get duplex(){return p=!0,"half"}}),x=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),p&&!x}),h=s&&f&&nO(()=>M.isReadableStream(new o("").body)),b={stream:h&&(p=>p.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!b[p]&&(b[p]=(y,x)=>{let w=y&&y[p];if(w)return w.call(y);throw new Y(`Response type '${p}' is not supported`,Y.ERR_NOT_SUPPORT,x)})});const v=async p=>{if(p==null)return 0;if(M.isBlob(p))return p.size;if(M.isSpecCompliantForm(p))return(await new i(zt.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(M.isArrayBufferView(p)||M.isArrayBuffer(p))return p.byteLength;if(M.isURLSearchParams(p)&&(p=p+""),M.isString(p))return(await c(p)).byteLength},m=async(p,y)=>{const x=M.toFiniteNumber(p.getContentLength());return x??v(y)};return async p=>{let{url:y,method:x,data:w,signal:S,cancelToken:O,timeout:A,onDownloadProgress:E,onUploadProgress:T,responseType:C,headers:D,withCredentials:R="same-origin",fetchOptions:U,maxContentLength:k,maxBodyLength:P}=x2(p);const $=M.isNumber(k)&&k>-1,L=M.isNumber(P)&&P>-1,z=se=>M.hasOwnProp(p,se)?p[se]:void 0;let q=a||fetch;C=C?(C+"").toLowerCase():"text";let F=dB([S,O&&O.toAbortSignal()],A),W=null;const G=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let ee,he=null;const $e=()=>new Y("Request body larger than maxBodyLength limit",Y.ERR_BAD_REQUEST,p,W);try{let se;const dt=z("auth");if(dt){const J=M.getSafeProp(dt,"username")||"",Pe=M.getSafeProp(dt,"password")||"";se={username:J,password:Pe}}if(bB(y)){const J=new URL(y,zt.origin);if(!se&&(J.username||J.password)){const Pe=tO(J.username),Dt=tO(J.password);se={username:Pe,password:Dt}}(J.username||J.password)&&(J.username="",J.password="",y=J.href)}if(se&&(D.delete("authorization"),D.set("Authorization","Basic "+btoa(gB((se.username||"")+":"+(se.password||""))))),$&&typeof y=="string"&&y.startsWith("data:")&&vB(y)>k)throw new Y("maxContentLength size of "+k+" exceeded",Y.ERR_BAD_RESPONSE,p,W);if(L&&x!=="get"&&x!=="head"){const J=await v(w);if(typeof J=="number"&&isFinite(J)&&(ee=J,J>P))throw $e()}const bt=L&&(M.isReadableStream(w)||M.isStream(w)),Q=(J,Pe,Dt)=>JS(J,eO,an=>{if(L&&an>P)throw he=$e();Pe&&Pe(an)},Dt);if(d&&x!=="get"&&x!=="head"&&(T||bt)){if(ee=ee??await m(D,w),ee!==0||bt){let J=new i(y,{method:"POST",body:w,duplex:"half"}),Pe;if(M.isFormData(w)&&(Pe=J.headers.get("content-type"))&&D.setContentType(Pe),J.body){const[Dt,an]=T&&XS(ee,Ld(QS(T)))||[];w=Q(J.body,Dt,an)}}}else if(bt&&!u&&f&&x!=="get"&&x!=="head")w=Q(w);else if(bt&&u&&!d&&x!=="get"&&x!=="head")throw new Y("Stream request bodies are not supported by the current fetch implementation",Y.ERR_NOT_SUPPORT,p,W);M.isString(R)||(R=R?"include":"omit");const oe=u&&"credentials"in i.prototype;if(M.isFormData(w)){const J=D.getContentType();J&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&D.delete("content-type")}D.set("User-Agent","axios/"+F0,!1);const ce={...U,signal:F,method:x.toUpperCase(),headers:s2(D.normalize()),body:w,duplex:"half",credentials:oe?R:void 0};W=u&&new i(y,ce);let H=await(u?q(W,U):q(y,ce));const Ke=Xt.from(H.headers);if($){const J=M.toFiniteNumber(Ke.getContentLength());if(J!=null&&J>k)throw new Y("maxContentLength size of "+k+" exceeded",Y.ERR_BAD_RESPONSE,p,W)}const me=h&&(C==="stream"||C==="response");if(h&&H.body&&(E||$||me&&G)){const J={};["status","statusText","headers"].forEach(gn=>{J[gn]=H[gn]});const Pe=M.toFiniteNumber(Ke.getContentLength()),[Dt,an]=E&&XS(Pe,Ld(QS(E),!0))||[];let vi=0;const Pr=gn=>{if($&&(vi=gn,vi>k))throw new Y("maxContentLength size of "+k+" exceeded",Y.ERR_BAD_RESPONSE,p,W);Dt&&Dt(gn)};H=new o(JS(H.body,eO,Pr,()=>{an&&an(),G&&G()}),J)}C=C||"text";let je=await b[M.findKey(b,C)||"text"](H,p);if($&&!h&&!me){let J;if(je!=null&&(typeof je.byteLength=="number"?J=je.byteLength:typeof je.size=="number"?J=je.size:typeof je=="string"&&(J=typeof r=="function"?new r().encode(je).byteLength:je.length)),typeof J=="number"&&J>k)throw new Y("maxContentLength size of "+k+" exceeded",Y.ERR_BAD_RESPONSE,p,W)}return!me&&G&&G(),await new Promise((J,Pe)=>{g2(J,Pe,{data:je,headers:Xt.from(H.headers),status:H.status,statusText:H.statusText,config:p,request:W})})}catch(se){if(G&&G(),F&&F.aborted&&F.reason instanceof Y){const dt=F.reason;throw dt.config=p,W&&(dt.request=W),se!==dt&&Object.defineProperty(dt,"cause",{__proto__:null,value:se,writable:!0,enumerable:!1,configurable:!0}),dt}if(he)throw W&&!he.request&&(he.request=W),he;if(se instanceof Y)throw W&&!se.request&&(se.request=W),se;if(se&&se.name==="TypeError"&&/Load failed|fetch/i.test(se.message)){const dt=new Y("Network Error",Y.ERR_NETWORK,p,W,se&&se.response);throw Object.defineProperty(dt,"cause",{__proto__:null,value:se.cause||se,writable:!0,enumerable:!1,configurable:!0}),dt}throw Y.from(se,se&&se.code,p,W,se&&se.response)}}},SB=new Map,S2=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let o=i.length,l=o,u,s,f=SB;for(;l--;)u=i[l],s=f.get(u),s===void 0&&f.set(u,s=l?new Map:xB(t)),f=s;return s};S2();const G0={http:PL,xhr:fB,fetch:{get:S2}};M.forEach(G0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const rO=e=>`- ${e}`,OB=e=>M.isFunction(e)||e===null||e===!1;function wB(e,t){e=M.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let o=0;o<n;o++){r=e[o];let l;if(a=r,!OB(r)&&(a=G0[(l=String(r)).toLowerCase()],a===void 0))throw new Y(`Unknown adapter '${l}'`);if(a&&(M.isFunction(a)||(a=a.get(t))))break;i[l||"#"+o]=a}if(!a){const o=Object.entries(i).map(([u,s])=>`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
`+o.map(rO).join(`
`):" "+rO(o[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+l,Y.ERR_NOT_SUPPORT)}return a}const O2={getAdapter:wB,adapters:G0};function nm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qc(null,e)}function aO(e){return nm(e),e.headers=Xt.from(e.headers),e.data=tm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),O2.getAdapter(e.adapter||Hc.adapter,e)(e).then(function(r){nm(e),e.response=r;try{r.data=tm.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Xt.from(r.headers),r},function(r){if(!v2(r)&&(nm(e),r&&r.response)){e.response=r.response;try{r.response.data=tm.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Xt.from(r.response.headers)}return Promise.reject(r)})}const fp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const iO={};fp.transitional=function(t,n,r){function a(i,o){return"[Axios v"+F0+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new Y(a(o," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!iO[o]&&(iO[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};fp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function AB(e,t,n){if(typeof e!="object"||e===null)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const l=e[i],u=l===void 0||o(l,i,e);if(u!==!0)throw new Y("option "+i+" must be "+u,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}}const ed={assertOptions:AB,validators:fp},Ft=ed.validators;let Qi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new YS,response:new YS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const o=a.stack.indexOf(`
`);return o===-1?"":a.stack.slice(o+1)})();try{if(!r.stack)r.stack=i;else if(i){const o=i.indexOf(`
`),l=o===-1?-1:i.indexOf(`
`,o+1),u=l===-1?"":i.slice(l+1);String(r.stack).endsWith(u)||(r.stack+=`
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=oo(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&ed.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean),legacyInterceptorReqResOrdering:Ft.transitional(Ft.boolean),advertiseZstdAcceptEncoding:Ft.transitional(Ft.boolean),validateStatusUndefinedResolves:Ft.transitional(Ft.boolean)},!1),a!=null&&(M.isFunction(a)?n.paramsSerializer={serialize:a}:ed.assertOptions(a,{encode:Ft.function,serialize:Ft.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ed.assertOptions(n,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&M.merge(i.common,i[n.method]);i&&M.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete i[b]}),n.headers=Xt.concat(o,i);const l=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;u=u&&v.synchronous;const m=n.transitional||H0;m&&m.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let f,c=0,d;if(!u){const b=[aO.bind(this),void 0];for(b.unshift(...l),b.push(...s),d=b.length,f=Promise.resolve(n);c<d;)f=f.then(b[c++],b[c++]);return f}d=l.length;let h=n;for(;c<d;){const b=l[c++],v=l[c++];try{h=b(h)}catch(m){v.call(this,m);break}}try{f=aO.call(this,h)}catch(b){return Promise.reject(b)}for(c=0,d=s.length;c<d;)f=f.then(s[c++],s[c++]);return f}getUri(t){t=oo(this.defaults,t);const n=b2(t.baseURL,t.url,t.allowAbsoluteUrls,t);return p2(n,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){Qi.prototype[t]=function(n,r){return this.request(oo(r||{},{method:t,url:n,data:r&&M.hasOwnProp(r,"data")?r.data:void 0}))}});M.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,o,l){return this.request(oo(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Qi.prototype[t]=n(),t!=="query"&&(Qi.prototype[t+"Form"]=n(!0))});let EB=class w2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new qc(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new w2(function(a){t=a}),cancel:t}}};function _B(e){return function(n){return e.apply(null,n)}}function TB(e){return M.isObject(e)&&e.isAxiosError===!0}const Qv={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(Qv).forEach(([e,t])=>{Qv[t]=e});function A2(e){const t=new Qi(e),n=e2(Qi.prototype.request,t);return M.extend(n,Qi.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return A2(oo(e,a))},n}const ft=A2(Hc);ft.Axios=Qi;ft.CanceledError=qc;ft.CancelToken=EB;ft.isCancel=v2;ft.VERSION=F0;ft.toFormData=cp;ft.AxiosError=Y;ft.Cancel=ft.CanceledError;ft.all=function(t){return Promise.all(t)};ft.spread=_B;ft.isAxiosError=TB;ft.mergeConfig=oo;ft.AxiosHeaders=Xt;ft.formToJSON=e=>m2(M.isHTMLForm(e)?new FormData(e):e);ft.getAdapter=O2.getAdapter;ft.HttpStatusCode=Qv;ft.default=ft;const{Axios:Ise,AxiosError:Hse,CanceledError:qse,isCancel:Fse,CancelToken:Gse,VERSION:Kse,all:Yse,Cancel:Vse,isAxiosError:Xse,spread:Qse,toFormData:Wse,AxiosHeaders:Zse,HttpStatusCode:Jse,formToJSON:ece,getAdapter:tce,mergeConfig:nce,create:rce}=ft,V=ft.create({baseURL:""});V.interceptors.request.use(e=>{const t=localStorage.getItem("sgn_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});V.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("sgn_token"),location.pathname!=="/login"&&(location.href="/login")),Promise.reject(e)});const ne=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),jB=(e,t)=>V.post("/api/auth/login",{username:e,password:t}),CB=(e,t)=>V.post("/api/auth/verify",{verifyToken:e,code:t}),MB=()=>V.get("/api/auth/me"),NB=e=>ne(V.get("/api/dashboard",{params:e?{tenantCode:e}:{}})),RB=()=>ne(V.get("/api/tenants")),$B=e=>ne(V.post("/api/tenants",e)),PB=(e,t)=>ne(V.put(`/api/tenants/${e}`,t)),DB=e=>V.delete(`/api/tenants/${e}`),kB=e=>ne(V.get("/api/regions",{params:e})),LB=e=>ne(V.post("/api/regions",e)),BB=(e,t)=>ne(V.put(`/api/regions/${e}`,t)),UB=e=>V.delete(`/api/regions/${e}`),dp=e=>ne(V.get("/api/stores",{params:e})),zB=e=>ne(V.post("/api/stores",e)),IB=(e,t)=>ne(V.put(`/api/stores/${e}`,t)),HB=e=>V.delete(`/api/stores/${e}`),qB=e=>ne(V.get("/api/store-groups",{params:{tenantCode:e}})),FB=e=>ne(V.post("/api/store-groups",e)),GB=(e,t)=>ne(V.put(`/api/store-groups/${e}`,t)),KB=e=>V.delete(`/api/store-groups/${e}`),YB=e=>ne(V.get("/api/users",{params:e})),VB=e=>ne(V.post("/api/users",e)),XB=(e,t)=>ne(V.put(`/api/users/${e}`,t)),QB=(e,t)=>ne(V.put(`/api/users/${e}/active`,{active:t})),WB=e=>V.delete(`/api/users/${e}`),ZB=e=>ne(V.get("/api/gateways",{params:e})),JB=e=>ne(V.post("/api/gateways",e)),e5=(e,t)=>ne(V.put(`/api/gateways/${e}`,t)),t5=e=>V.delete(`/api/gateways/${e}`),n5=e=>ne(V.get("/api/signboards",{params:e})),r5=e=>ne(V.post("/api/signboards",e)),a5=(e,t)=>ne(V.put(`/api/signboards/${e}`,t)),i5=e=>V.put(`/api/signboards/${e}/unbind`),E2=e=>ne(V.get("/api/templates",{params:e})),o5=e=>ne(V.post("/api/templates",e)),l5=(e,t)=>ne(V.put(`/api/templates/${e}`,t)),u5=e=>V.delete(`/api/templates/${e}`),s5=e=>ne(V.get("/api/template-groups",{params:e})),c5=e=>ne(V.post("/api/template-groups",e)),f5=(e,t)=>ne(V.put(`/api/template-groups/${e}`,t)),d5=e=>V.delete(`/api/template-groups/${e}`),h5=e=>ne(V.get("/api/sign-images",{params:e})),p5=e=>ne(V.post("/api/sign-images",e)),y5=(e,t)=>ne(V.put(`/api/sign-images/${e}`,t)),m5=e=>V.delete(`/api/sign-images/${e}`),v5=e=>ne(V.get("/api/sign-deploys",{params:e})),_2=e=>ne(V.post("/api/sign-deploys",e)),g5=(e,t)=>ne(V.put(`/api/sign-deploys/${e}`,t)),b5=e=>V.delete(`/api/sign-deploys/${e}`),x5=e=>ne(V.get("/api/firmware",{params:e})),S5=e=>ne(V.post("/api/firmware",e)),O5=e=>V.delete(`/api/firmware/${e}`),w5=e=>ne(V.get("/api/backups",{params:e})),A5=e=>ne(V.post("/api/backups",e)),oO=(e,t)=>ne(V.put(`/api/backups/${e}`,t)),E5=e=>V.delete(`/api/backups/${e}`),_5=e=>ne(V.get("/api/ad-schedules",{params:e})),T5=e=>ne(V.post("/api/ad-schedules",e)),j5=(e,t)=>ne(V.put(`/api/ad-schedules/${e}`,t)),C5=e=>V.delete(`/api/ad-schedules/${e}`),M5=e=>ne(V.get("/api/alarms",{params:e})),N5=(e,t)=>V.put(`/api/alarms/${e}/resolve`,{resolution:t}),R5=e=>V.delete(`/api/alarms/${e}`),$5=e=>ne(V.get("/api/admin/audit",{params:e})),P5=e=>ne(V.get("/api/admin/settings",{params:e?{category:e}:{}})),D5=(e,t)=>ne(V.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t})),k5=e=>ne(V.post("/api/ai/analyze-alarm",e)),T2=e=>ne(V.post("/api/ai/generate-sign-text",e)),L5=e=>ne(V.post("/api/ai/recommend-ad",e)),B5=e=>ne(V.post("/api/ai/chat",{message:e}));function U5(){const e=localStorage.getItem("sgn_token");return _.useEffect(()=>{e&&MB().then(t=>{var r;const n=((r=t.data)==null?void 0:r.data)||{};n.role&&localStorage.setItem("sgn_role",n.role),n.username&&localStorage.setItem("sgn_user",n.username),n.tenant&&localStorage.setItem("sgn_tenant",n.tenant)}).catch(()=>{})},[e]),e?g.jsxs("div",{className:"flex h-screen bg-ink",children:[g.jsx(j4,{}),g.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[g.jsx(C4,{}),g.jsx("main",{className:"flex-1 overflow-auto p-6",children:g.jsx(lk,{})})]})]}):g.jsx(LC,{to:"/login",replace:!0})}function z5(){const e=op(),[t,n]=_.useState(""),[r,a]=_.useState(""),[i,o]=_.useState("login"),[l,u]=_.useState(""),[s,f]=_.useState(""),[c,d]=_.useState(""),[h,b]=_.useState(""),[v,m]=_.useState(!1);function p(w){localStorage.setItem("sgn_token",w),localStorage.setItem("sgn_user",t),e("/dashboard")}async function y(w){var S;w.preventDefault(),m(!0),b("");try{const A=(S=(await jB(t,r)).data)==null?void 0:S.data;if((A==null?void 0:A.twofa)==="true")u(A.verifyToken),f(A.maskedEmail||""),o("verify");else{if(!(A!=null&&A.token))throw new Error("no token");p(A.token)}}catch{b("아이디/비밀번호가 올바르지 않거나 계정이 잠겼습니다.")}finally{m(!1)}}async function x(w){var S,O;w.preventDefault(),m(!0),b("");try{const E=(O=(S=(await CB(l,c)).data)==null?void 0:S.data)==null?void 0:O.token;if(!E)throw new Error("no token");p(E)}catch{b("인증코드가 올바르지 않습니다.")}finally{m(!1)}}return g.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center p-4",children:g.jsxs("div",{className:"w-full max-w-sm",children:[g.jsxs("div",{className:"flex items-center justify-center gap-2 mb-8",children:[g.jsx(We,{name:"signboard",size:28,className:"text-brand"}),g.jsxs("div",{children:[g.jsx("div",{className:"text-white font-bold text-lg leading-tight",children:"GUARDiA Signage"}),g.jsx("div",{className:"text-gray-400 text-xs",children:"전자간판 중앙관제 플랫폼"})]})]}),g.jsx("div",{className:"bg-card border border-edge rounded-xl p-6",children:i==="login"?g.jsxs("form",{onSubmit:y,className:"space-y-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),g.jsx("input",{value:t,onChange:w=>n(w.target.value),autoFocus:!0,className:"w-full bg-ink border border-edge rounded px-3 py-2 text-sm text-white outline-none focus:border-brand"})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호"}),g.jsx("input",{type:"password",value:r,onChange:w=>a(w.target.value),className:"w-full bg-ink border border-edge rounded px-3 py-2 text-sm text-white outline-none focus:border-brand"})]}),h&&g.jsx("p",{className:"text-red-400 text-xs",children:h}),g.jsx("button",{type:"submit",disabled:v,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium disabled:opacity-50",children:v?"로그인 중...":"로그인"})]}):g.jsxs("form",{onSubmit:x,className:"space-y-4",children:[g.jsx("p",{className:"text-sm text-gray-300",children:"2차 인증 코드를 입력하세요."}),s&&g.jsxs("p",{className:"text-xs text-gray-500",children:[s," 로 전송됨"]}),g.jsx("input",{value:c,onChange:w=>d(w.target.value),autoFocus:!0,placeholder:"인증코드",className:"w-full bg-ink border border-edge rounded px-3 py-2 text-sm text-white tracking-widest outline-none focus:border-brand"}),h&&g.jsx("p",{className:"text-red-400 text-xs",children:h}),g.jsx("button",{type:"submit",disabled:v,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium disabled:opacity-50",children:v?"확인 중...":"인증 확인"}),g.jsx("button",{type:"button",onClick:()=>{o("login"),b("")},className:"w-full text-gray-400 hover:text-white text-xs",children:"← 돌아가기"})]})}),g.jsx("p",{className:"text-center text-gray-600 text-xs mt-6",children:"© GUARDiA · e-SignBoard 중앙관제"})]})})}function j2(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=j2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pe(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=j2(e))&&(r&&(r+=" "),r+=t);return r}var I5=Array.isArray,vn=I5,H5=typeof Jc=="object"&&Jc&&Jc.Object===Object&&Jc,C2=H5,q5=C2,F5=typeof self=="object"&&self&&self.Object===Object&&self,G5=q5||F5||Function("return this")(),Nr=G5,K5=Nr,Y5=K5.Symbol,Fc=Y5,lO=Fc,M2=Object.prototype,V5=M2.hasOwnProperty,X5=M2.toString,Uu=lO?lO.toStringTag:void 0;function Q5(e){var t=V5.call(e,Uu),n=e[Uu];try{e[Uu]=void 0;var r=!0}catch{}var a=X5.call(e);return r&&(t?e[Uu]=n:delete e[Uu]),a}var W5=Q5,Z5=Object.prototype,J5=Z5.toString;function eU(e){return J5.call(e)}var tU=eU,uO=Fc,nU=W5,rU=tU,aU="[object Null]",iU="[object Undefined]",sO=uO?uO.toStringTag:void 0;function oU(e){return e==null?e===void 0?iU:aU:sO&&sO in Object(e)?nU(e):rU(e)}var ga=oU;function lU(e){return e!=null&&typeof e=="object"}var ba=lU,uU=ga,sU=ba,cU="[object Symbol]";function fU(e){return typeof e=="symbol"||sU(e)&&uU(e)==cU}var vu=fU,dU=vn,hU=vu,pU=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yU=/^\w*$/;function mU(e,t){if(dU(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||hU(e)?!0:yU.test(e)||!pU.test(e)||t!=null&&e in Object(t)}var K0=mU;function vU(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var di=vU;const gu=Be(di);var gU=ga,bU=di,xU="[object AsyncFunction]",SU="[object Function]",OU="[object GeneratorFunction]",wU="[object Proxy]";function AU(e){if(!bU(e))return!1;var t=gU(e);return t==SU||t==OU||t==xU||t==wU}var Y0=AU;const le=Be(Y0);var EU=Nr,_U=EU["__core-js_shared__"],TU=_U,rm=TU,cO=function(){var e=/[^.]+$/.exec(rm&&rm.keys&&rm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jU(e){return!!cO&&cO in e}var CU=jU,MU=Function.prototype,NU=MU.toString;function RU(e){if(e!=null){try{return NU.call(e)}catch{}try{return e+""}catch{}}return""}var N2=RU,$U=Y0,PU=CU,DU=di,kU=N2,LU=/[\\^$.*+?()[\]{}|]/g,BU=/^\[object .+?Constructor\]$/,UU=Function.prototype,zU=Object.prototype,IU=UU.toString,HU=zU.hasOwnProperty,qU=RegExp("^"+IU.call(HU).replace(LU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FU(e){if(!DU(e)||PU(e))return!1;var t=$U(e)?qU:BU;return t.test(kU(e))}var GU=FU;function KU(e,t){return e==null?void 0:e[t]}var YU=KU,VU=GU,XU=YU;function QU(e,t){var n=XU(e,t);return VU(n)?n:void 0}var go=QU,WU=go,ZU=WU(Object,"create"),hp=ZU,fO=hp;function JU(){this.__data__=fO?fO(null):{},this.size=0}var ez=JU;function tz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nz=tz,rz=hp,az="__lodash_hash_undefined__",iz=Object.prototype,oz=iz.hasOwnProperty;function lz(e){var t=this.__data__;if(rz){var n=t[e];return n===az?void 0:n}return oz.call(t,e)?t[e]:void 0}var uz=lz,sz=hp,cz=Object.prototype,fz=cz.hasOwnProperty;function dz(e){var t=this.__data__;return sz?t[e]!==void 0:fz.call(t,e)}var hz=dz,pz=hp,yz="__lodash_hash_undefined__";function mz(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pz&&t===void 0?yz:t,this}var vz=mz,gz=ez,bz=nz,xz=uz,Sz=hz,Oz=vz;function bu(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])}}bu.prototype.clear=gz;bu.prototype.delete=bz;bu.prototype.get=xz;bu.prototype.has=Sz;bu.prototype.set=Oz;var wz=bu;function Az(){this.__data__=[],this.size=0}var Ez=Az;function _z(e,t){return e===t||e!==e&&t!==t}var V0=_z,Tz=V0;function jz(e,t){for(var n=e.length;n--;)if(Tz(e[n][0],t))return n;return-1}var pp=jz,Cz=pp,Mz=Array.prototype,Nz=Mz.splice;function Rz(e){var t=this.__data__,n=Cz(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Nz.call(t,n,1),--this.size,!0}var $z=Rz,Pz=pp;function Dz(e){var t=this.__data__,n=Pz(t,e);return n<0?void 0:t[n][1]}var kz=Dz,Lz=pp;function Bz(e){return Lz(this.__data__,e)>-1}var Uz=Bz,zz=pp;function Iz(e,t){var n=this.__data__,r=zz(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Hz=Iz,qz=Ez,Fz=$z,Gz=kz,Kz=Uz,Yz=Hz;function xu(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])}}xu.prototype.clear=qz;xu.prototype.delete=Fz;xu.prototype.get=Gz;xu.prototype.has=Kz;xu.prototype.set=Yz;var yp=xu,Vz=go,Xz=Nr,Qz=Vz(Xz,"Map"),X0=Qz,dO=wz,Wz=yp,Zz=X0;function Jz(){this.size=0,this.__data__={hash:new dO,map:new(Zz||Wz),string:new dO}}var e8=Jz;function t8(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var n8=t8,r8=n8;function a8(e,t){var n=e.__data__;return r8(t)?n[typeof t=="string"?"string":"hash"]:n.map}var mp=a8,i8=mp;function o8(e){var t=i8(this,e).delete(e);return this.size-=t?1:0,t}var l8=o8,u8=mp;function s8(e){return u8(this,e).get(e)}var c8=s8,f8=mp;function d8(e){return f8(this,e).has(e)}var h8=d8,p8=mp;function y8(e,t){var n=p8(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var m8=y8,v8=e8,g8=l8,b8=c8,x8=h8,S8=m8;function Su(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])}}Su.prototype.clear=v8;Su.prototype.delete=g8;Su.prototype.get=b8;Su.prototype.has=x8;Su.prototype.set=S8;var Q0=Su,R2=Q0,O8="Expected a function";function W0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O8);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(W0.Cache||R2),n}W0.Cache=R2;var $2=W0;const w8=Be($2);var A8=$2,E8=500;function _8(e){var t=A8(e,function(r){return n.size===E8&&n.clear(),r}),n=t.cache;return t}var T8=_8,j8=T8,C8=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M8=/\\(\\)?/g,N8=j8(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(C8,function(n,r,a,i){t.push(a?i.replace(M8,"$1"):r||n)}),t}),R8=N8;function $8(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 Z0=$8,hO=Fc,P8=Z0,D8=vn,k8=vu,pO=hO?hO.prototype:void 0,yO=pO?pO.toString:void 0;function P2(e){if(typeof e=="string")return e;if(D8(e))return P8(e,P2)+"";if(k8(e))return yO?yO.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var L8=P2,B8=L8;function U8(e){return e==null?"":B8(e)}var D2=U8,z8=vn,I8=K0,H8=R8,q8=D2;function F8(e,t){return z8(e)?e:I8(e,t)?[e]:H8(q8(e))}var k2=F8,G8=vu;function K8(e){if(typeof e=="string"||G8(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var vp=K8,Y8=k2,V8=vp;function X8(e,t){t=Y8(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[V8(t[n++])];return n&&n==r?e:void 0}var J0=X8,Q8=J0;function W8(e,t,n){var r=e==null?void 0:Q8(e,t);return r===void 0?n:r}var L2=W8;const Rn=Be(L2);function Z8(e){return e==null}var J8=Z8;const ye=Be(J8);var e6=ga,t6=vn,n6=ba,r6="[object String]";function a6(e){return typeof e=="string"||!t6(e)&&n6(e)&&e6(e)==r6}var i6=a6;const lo=Be(i6);var B2={exports:{}},Re={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ex=Symbol.for("react.element"),tx=Symbol.for("react.portal"),gp=Symbol.for("react.fragment"),bp=Symbol.for("react.strict_mode"),xp=Symbol.for("react.profiler"),Sp=Symbol.for("react.provider"),Op=Symbol.for("react.context"),o6=Symbol.for("react.server_context"),wp=Symbol.for("react.forward_ref"),Ap=Symbol.for("react.suspense"),Ep=Symbol.for("react.suspense_list"),_p=Symbol.for("react.memo"),Tp=Symbol.for("react.lazy"),l6=Symbol.for("react.offscreen"),U2;U2=Symbol.for("react.module.reference");function tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ex:switch(e=e.type,e){case gp:case xp:case bp:case Ap:case Ep:return e;default:switch(e=e&&e.$$typeof,e){case o6:case Op:case wp:case Tp:case _p:case Sp:return e;default:return t}}case tx:return t}}}Re.ContextConsumer=Op;Re.ContextProvider=Sp;Re.Element=ex;Re.ForwardRef=wp;Re.Fragment=gp;Re.Lazy=Tp;Re.Memo=_p;Re.Portal=tx;Re.Profiler=xp;Re.StrictMode=bp;Re.Suspense=Ap;Re.SuspenseList=Ep;Re.isAsyncMode=function(){return!1};Re.isConcurrentMode=function(){return!1};Re.isContextConsumer=function(e){return tr(e)===Op};Re.isContextProvider=function(e){return tr(e)===Sp};Re.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ex};Re.isForwardRef=function(e){return tr(e)===wp};Re.isFragment=function(e){return tr(e)===gp};Re.isLazy=function(e){return tr(e)===Tp};Re.isMemo=function(e){return tr(e)===_p};Re.isPortal=function(e){return tr(e)===tx};Re.isProfiler=function(e){return tr(e)===xp};Re.isStrictMode=function(e){return tr(e)===bp};Re.isSuspense=function(e){return tr(e)===Ap};Re.isSuspenseList=function(e){return tr(e)===Ep};Re.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gp||e===xp||e===bp||e===Ap||e===Ep||e===l6||typeof e=="object"&&e!==null&&(e.$$typeof===Tp||e.$$typeof===_p||e.$$typeof===Sp||e.$$typeof===Op||e.$$typeof===wp||e.$$typeof===U2||e.getModuleId!==void 0)};Re.typeOf=tr;B2.exports=Re;var u6=B2.exports,s6=ga,c6=ba,f6="[object Number]";function d6(e){return typeof e=="number"||c6(e)&&s6(e)==f6}var z2=d6;const h6=Be(z2);var p6=z2;function y6(e){return p6(e)&&e!=+e}var m6=y6;const Gc=Be(m6);var en=function(t){return t===0?0:t>0?1:-1},Ri=function(t){return lo(t)&&t.indexOf("%")===t.length-1},K=function(t){return h6(t)&&!Gc(t)},v6=function(t){return ye(t)},Et=function(t){return K(t)||lo(t)},g6=0,Kc=function(t){var n=++g6;return"".concat(t||"").concat(n)},tn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!lo(t))return r;var i;if(Ri(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return Gc(i)&&(i=r),a&&i>n&&(i=n),i},Ro=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},b6=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},Ta=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function Wv(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Rn(r,t))===n})}var x6=function(t,n){return K(t)&&K(n)?t-n:lo(t)&&lo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function rl(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 Zv(e){"@babel/helpers - typeof";return Zv=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},Zv(e)}var S6=["viewBox","children"],O6=["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"],mO=["points","pathLength"],am={svg:S6,polygon:mO,polyline:mO},nx=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ud=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!gu(r))return null;var a={};return Object.keys(r).forEach(function(i){nx.includes(i)&&(a[i]=n||function(o){return r[i](r,o)})}),a},w6=function(t,n,r){return function(a){return t(n,r,a),null}},uo=function(t,n,r){if(!gu(t)||Zv(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];nx.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=w6(o,n,r))}),a},A6=["children"],E6=["children"];function vO(e,t){if(e==null)return{};var n=_6(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 _6(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 gO={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"},ra=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},bO=null,im=null,rx=function e(t){if(t===bO&&Array.isArray(im))return im;var n=[];return _.Children.forEach(t,function(r){ye(r)||(u6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),im=n,bO=t,n};function Zn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return ra(a)}):r=[ra(t)],rx(e).forEach(function(a){var i=Rn(a,"type.displayName")||Rn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Sn(e,t){var n=Zn(e,t);return n&&n[0]}var xO=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!K(r)||r<=0||!K(a)||a<=0)},T6=["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"],j6=function(t){return t&&t.type&&lo(t.type)&&T6.indexOf(t.type)>=0},C6=function(t,n,r,a){var i,o=(i=am==null?void 0:am[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!le(t)&&(a&&o.includes(n)||O6.includes(n))||r&&nx.includes(n)},ie=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(_.isValidElement(t)&&(a=t.props),!gu(a))return null;var i={};return Object.keys(a).forEach(function(o){var l;C6((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},Jv=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return SO(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],o=n[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!SO(i,o))return!1}return!0},SO=function(t,n){if(ye(t)&&ye(n))return!0;if(!ye(t)&&!ye(n)){var r=t.props||{},a=r.children,i=vO(r,A6),o=n.props||{},l=o.children,u=vO(o,E6);return a&&l?rl(i,u)&&Jv(a,l):!a&&!l?rl(i,u):!1}return!1},OO=function(t,n){var r=[],a={};return rx(t).forEach(function(i,o){if(j6(i))r.push(i);else if(i){var l=ra(i.type),u=n[l]||{},s=u.handler,f=u.once;if(s&&(!f||!a[l])){var c=s(i,l,o);r.push(c),a[l]=!0}}}),r},M6=function(t){var n=t&&t.type;return n&&gO[n]?gO[n]:null},N6=function(t,n){return rx(n).indexOf(t)},R6=["children","width","height","viewBox","className","style","title","desc"];function eg(){return eg=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},eg.apply(this,arguments)}function $6(e,t){if(e==null)return{};var n=P6(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 P6(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 tg(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,l=e.title,u=e.desc,s=$6(e,R6),f=a||{width:n,height:r,x:0,y:0},c=pe("recharts-surface",i);return N.createElement("svg",eg({},ie(s,!0,"svg"),{className:c,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),N.createElement("title",null,l),N.createElement("desc",null,u),t)}var D6=["children","className"];function ng(){return ng=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},ng.apply(this,arguments)}function k6(e,t){if(e==null)return{};var n=L6(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 L6(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 Ne=N.forwardRef(function(e,t){var n=e.children,r=e.className,a=k6(e,D6),i=pe("recharts-layer",r);return N.createElement("g",ng({className:i},ie(a,!0),{ref:t}),n)}),aa=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 B6(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 U6=B6,z6=U6;function I6(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:z6(e,t,n)}var H6=I6,q6="\\ud800-\\udfff",F6="\\u0300-\\u036f",G6="\\ufe20-\\ufe2f",K6="\\u20d0-\\u20ff",Y6=F6+G6+K6,V6="\\ufe0e\\ufe0f",X6="\\u200d",Q6=RegExp("["+X6+q6+Y6+V6+"]");function W6(e){return Q6.test(e)}var I2=W6;function Z6(e){return e.split("")}var J6=Z6,H2="\\ud800-\\udfff",eI="\\u0300-\\u036f",tI="\\ufe20-\\ufe2f",nI="\\u20d0-\\u20ff",rI=eI+tI+nI,aI="\\ufe0e\\ufe0f",iI="["+H2+"]",rg="["+rI+"]",ag="\\ud83c[\\udffb-\\udfff]",oI="(?:"+rg+"|"+ag+")",q2="[^"+H2+"]",F2="(?:\\ud83c[\\udde6-\\uddff]){2}",G2="[\\ud800-\\udbff][\\udc00-\\udfff]",lI="\\u200d",K2=oI+"?",Y2="["+aI+"]?",uI="(?:"+lI+"(?:"+[q2,F2,G2].join("|")+")"+Y2+K2+")*",sI=Y2+K2+uI,cI="(?:"+[q2+rg+"?",rg,F2,G2,iI].join("|")+")",fI=RegExp(ag+"(?="+ag+")|"+cI+sI,"g");function dI(e){return e.match(fI)||[]}var hI=dI,pI=J6,yI=I2,mI=hI;function vI(e){return yI(e)?mI(e):pI(e)}var gI=vI,bI=H6,xI=I2,SI=gI,OI=D2;function wI(e){return function(t){t=OI(t);var n=xI(t)?SI(t):void 0,r=n?n[0]:t.charAt(0),a=n?bI(n,1).join(""):t.slice(1);return r[e]()+a}}var AI=wI,EI=AI,_I=EI("toUpperCase"),TI=_I;const jp=Be(TI);function qe(e){return function(){return e}}const V2=Math.cos,zd=Math.sin,yr=Math.sqrt,Id=Math.PI,Cp=2*Id,ig=Math.PI,og=2*ig,_i=1e-6,jI=og-_i;function X2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function CI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return X2;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 MI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?X2:CI(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,u=r-t,s=a-n,f=o-t,c=l-n,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>_i)if(!(Math.abs(c*u-s*f)>_i)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,b=a-l,v=u*u+s*s,m=h*h+b*b,p=Math.sqrt(v),y=Math.sqrt(d),x=i*Math.tan((ig-Math.acos((v+d-m)/(2*p*y)))/2),w=x/y,S=x/p;Math.abs(w-1)>_i&&this._append`L${t+w*f},${n+w*c}`,this._append`A${i},${i},0,0,${+(c*h>f*b)},${this._x1=t+S*u},${this._y1=n+S*s}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),u=r*Math.sin(a),s=t+l,f=n+u,c=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>_i||Math.abs(this._y1-f)>_i)&&this._append`L${s},${f}`,r&&(d<0&&(d=d%og+og),d>jI?this._append`A${r},${r},0,1,${c},${t-l},${n-u}A${r},${r},0,1,${c},${this._x1=s},${this._y1=f}`:d>_i&&this._append`A${r},${r},0,${+(d>=ig)},${c},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function ax(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new MI(t)}function ix(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Q2(e){this._context=e}Q2.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 Mp(e){return new Q2(e)}function W2(e){return e[0]}function Z2(e){return e[1]}function J2(e,t){var n=qe(!0),r=null,a=Mp,i=null,o=ax(l);e=typeof e=="function"?e:e===void 0?W2:qe(e),t=typeof t=="function"?t:t===void 0?Z2:qe(t);function l(u){var s,f=(u=ix(u)).length,c,d=!1,h;for(r==null&&(i=a(h=o())),s=0;s<=f;++s)!(s<f&&n(c=u[s],s,u))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(c,s,u),+t(c,s,u));if(h)return i=null,h+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:qe(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:qe(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:qe(!!u),l):n},l.curve=function(u){return arguments.length?(a=u,r!=null&&(i=a(r)),l):a},l.context=function(u){return arguments.length?(u==null?r=i=null:i=a(r=u),l):r},l}function xf(e,t,n){var r=null,a=qe(!0),i=null,o=Mp,l=null,u=ax(s);e=typeof e=="function"?e:e===void 0?W2:qe(+e),t=typeof t=="function"?t:qe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Z2:qe(+n);function s(c){var d,h,b,v=(c=ix(c)).length,m,p=!1,y,x=new Array(v),w=new Array(v);for(i==null&&(l=o(y=u())),d=0;d<=v;++d){if(!(d<v&&a(m=c[d],d,c))===p)if(p=!p)h=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=d-1;b>=h;--b)l.point(x[b],w[b]);l.lineEnd(),l.areaEnd()}p&&(x[d]=+e(m,d,c),w[d]=+t(m,d,c),l.point(r?+r(m,d,c):x[d],n?+n(m,d,c):w[d]))}if(y)return l=null,y+""||null}function f(){return J2().defined(a).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:qe(+c),r=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:qe(+c),s):e},s.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:qe(+c),s):r},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:qe(+c),n=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:qe(+c),s):t},s.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:qe(+c),s):n},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(n)},s.lineX1=function(){return f().x(r).y(t)},s.defined=function(c){return arguments.length?(a=typeof c=="function"?c:qe(!!c),s):a},s.curve=function(c){return arguments.length?(o=c,i!=null&&(l=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=l=null:l=o(i=c),s):i},s}class eM{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 NI(e){return new eM(e,!0)}function RI(e){return new eM(e,!1)}const ox={draw(e,t){const n=yr(t/Id);e.moveTo(n,0),e.arc(0,0,n,0,Cp)}},$I={draw(e,t){const n=yr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tM=yr(1/3),PI=tM*2,DI={draw(e,t){const n=yr(t/PI),r=n*tM;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},kI={draw(e,t){const n=yr(t),r=-n/2;e.rect(r,r,n,n)}},LI=.8908130915292852,nM=zd(Id/10)/zd(7*Id/10),BI=zd(Cp/10)*nM,UI=-V2(Cp/10)*nM,zI={draw(e,t){const n=yr(t*LI),r=BI*n,a=UI*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=Cp*i/5,l=V2(o),u=zd(o);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*a,u*r+l*a)}e.closePath()}},om=yr(3),II={draw(e,t){const n=-yr(t/(om*3));e.moveTo(0,n*2),e.lineTo(-om*n,-n),e.lineTo(om*n,-n),e.closePath()}},Ln=-.5,Bn=yr(3)/2,lg=1/yr(12),HI=(lg/2+1)*3,qI={draw(e,t){const n=yr(t/HI),r=n/2,a=n*lg,i=r,o=n*lg+n,l=-i,u=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,u),e.lineTo(Ln*r-Bn*a,Bn*r+Ln*a),e.lineTo(Ln*i-Bn*o,Bn*i+Ln*o),e.lineTo(Ln*l-Bn*u,Bn*l+Ln*u),e.lineTo(Ln*r+Bn*a,Ln*a-Bn*r),e.lineTo(Ln*i+Bn*o,Ln*o-Bn*i),e.lineTo(Ln*l+Bn*u,Ln*u-Bn*l),e.closePath()}};function FI(e,t){let n=null,r=ax(a);e=typeof e=="function"?e:qe(e||ox),t=typeof t=="function"?t:qe(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:qe(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:qe(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Hd(){}function qd(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 rM(e){this._context=e}rM.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:qd(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:qd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function GI(e){return new rM(e)}function aM(e){this._context=e}aM.prototype={areaStart:Hd,areaEnd:Hd,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:qd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function KI(e){return new aM(e)}function iM(e){this._context=e}iM.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:qd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function YI(e){return new iM(e)}function oM(e){this._context=e}oM.prototype={areaStart:Hd,areaEnd:Hd,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 VI(e){return new oM(e)}function wO(e){return e<0?-1:1}function AO(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(wO(i)+wO(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function EO(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function lm(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Fd(e){this._context=e}Fd.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:lm(this,this._t0,EO(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,lm(this,EO(this,n=AO(this,e,t)),n);break;default:lm(this,this._t0,n=AO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function lM(e){this._context=new uM(e)}(lM.prototype=Object.create(Fd.prototype)).point=function(e,t){Fd.prototype.point.call(this,t,e)};function uM(e){this._context=e}uM.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 XI(e){return new Fd(e)}function QI(e){return new lM(e)}function sM(e){this._context=e}sM.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=_O(e),a=_O(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function _O(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function WI(e){return new sM(e)}function Np(e,t){this._context=e,this._t=t}Np.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 ZI(e){return new Np(e,.5)}function JI(e){return new Np(e,0)}function eH(e){return new Np(e,1)}function $l(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<l;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function ug(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function tH(e,t){return e[t]}function nH(e){const t=[];return t.key=e,t}function rH(){var e=qe([]),t=ug,n=$l,r=tH;function a(i){var o=Array.from(e.apply(this,arguments),nH),l,u=o.length,s=-1,f;for(const c of i)for(l=0,++s;l<u;++l)(o[l][s]=[0,+r(c,o[l].key,s,i)]).data=c;for(l=0,f=ix(t(o));l<u;++l)o[f[l]].index=l;return n(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:qe(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:qe(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?ug:typeof i=="function"?i:qe(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??$l,a):n},a}function aH(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,o;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}$l(e,t)}}function iH(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var o=0,l=0;o<a;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}$l(e,t)}}function oH(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r<i;++r){for(var l=0,u=0,s=0;l<o;++l){for(var f=e[t[l]],c=f[r][1]||0,d=f[r-1][1]||0,h=(c-d)/2,b=0;b<l;++b){var v=e[t[b]],m=v[r][1]||0,p=v[r-1][1]||0;h+=m-p}u+=c,s+=h*c}a[r-1][1]+=a[r-1][0]=n,u&&(n-=s/u)}a[r-1][1]+=a[r-1][0]=n,$l(e,t)}}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)}var lH=["type","size","sizeType"];function sg(){return sg=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},sg.apply(this,arguments)}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 jO(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){uH(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 uH(e,t,n){return t=sH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sH(e){var t=cH(e,"string");return zs(t)=="symbol"?t:t+""}function cH(e,t){if(zs(e)!="object"||!e)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 fH(e,t){if(e==null)return{};var n=dH(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 dH(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 cM={symbolCircle:ox,symbolCross:$I,symbolDiamond:DI,symbolSquare:kI,symbolStar:zI,symbolTriangle:II,symbolWye:qI},hH=Math.PI/180,pH=function(t){var n="symbol".concat(jp(t));return cM[n]||ox},yH=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*hH;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}},mH=function(t,n){cM["symbol".concat(jp(t))]=n},lx=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,l=o===void 0?"area":o,u=fH(t,lH),s=jO(jO({},u),{},{type:r,size:i,sizeType:l}),f=function(){var m=pH(r),p=FI().type(m).size(yH(i,l,r));return p()},c=s.className,d=s.cx,h=s.cy,b=ie(s,!0);return d===+d&&h===+h&&i===+i?N.createElement("path",sg({},b,{className:pe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};lx.registerSymbol=mH;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 cg(){return cg=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},cg.apply(this,arguments)}function CO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(n),!0).forEach(function(r){Is(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bH(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,dM(r.key),r)}}function xH(e,t,n){return t&&bH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SH(e,t,n){return t=Gd(t),OH(e,fM()?Reflect.construct(t,n||[],Gd(e).constructor):t.apply(e,n))}function OH(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 wH(e)}function wH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fM=function(){return!!e})()}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gd(e)}function AH(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&&fg(e,t)}function fg(e,t){return fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},fg(e,t)}function Is(e,t,n){return t=dM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dM(e){var t=EH(e,"string");return Pl(t)=="symbol"?t:t+""}function EH(e,t){if(Pl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Un=32,ux=function(e){function t(){return gH(this,t),SH(this,t,arguments)}return AH(t,e),xH(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=Un/2,o=Un/6,l=Un/3,u=r.inactive?a:r.color;if(r.type==="plainline")return N.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:Un,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return N.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(i,"h").concat(l,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,`
            H`).concat(Un,"M").concat(2*l,",").concat(i,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return N.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(Un/8,"h").concat(Un,"v").concat(Un*3/4,"h").concat(-Un,"z"),className:"recharts-legend-icon"});if(N.isValidElement(r.legendIcon)){var s=vH({},r);return delete s.legendIcon,N.cloneElement(r.legendIcon,s)}return N.createElement(lx,{fill:u,cx:i,cy:i,size:Un,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,o=a.iconSize,l=a.layout,u=a.formatter,s=a.inactiveColor,f={x:0,y:0,width:Un,height:Un},c={display:l==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(h,b){var v=h.formatter||u,m=pe(Is(Is({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",h.inactive));if(h.type==="none")return null;var p=le(h.value)?null:h.value;aa(!le(h.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=h.inactive?s:h.color;return N.createElement("li",cg({className:m,style:c,key:"legend-item-".concat(b)},uo(r.props,h,b)),N.createElement(tg,{width:o,height:o,viewBox:f,style:d},r.renderIcon(h)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},v?v(p,h,b):p))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,o=r.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return N.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(_.PureComponent);Is(ux,"displayName","Legend");Is(ux,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var _H=yp;function TH(){this.__data__=new _H,this.size=0}var jH=TH;function CH(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var MH=CH;function NH(e){return this.__data__.get(e)}var RH=NH;function $H(e){return this.__data__.has(e)}var PH=$H,DH=yp,kH=X0,LH=Q0,BH=200;function UH(e,t){var n=this.__data__;if(n instanceof DH){var r=n.__data__;if(!kH||r.length<BH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new LH(r)}return n.set(e,t),this.size=n.size,this}var zH=UH,IH=yp,HH=jH,qH=MH,FH=RH,GH=PH,KH=zH;function Ou(e){var t=this.__data__=new IH(e);this.size=t.size}Ou.prototype.clear=HH;Ou.prototype.delete=qH;Ou.prototype.get=FH;Ou.prototype.has=GH;Ou.prototype.set=KH;var hM=Ou,YH="__lodash_hash_undefined__";function VH(e){return this.__data__.set(e,YH),this}var XH=VH;function QH(e){return this.__data__.has(e)}var WH=QH,ZH=Q0,JH=XH,eq=WH;function Kd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ZH;++t<n;)this.add(e[t])}Kd.prototype.add=Kd.prototype.push=JH;Kd.prototype.has=eq;var pM=Kd;function tq(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 yM=tq;function nq(e,t){return e.has(t)}var mM=nq,rq=pM,aq=yM,iq=mM,oq=1,lq=2;function uq(e,t,n,r,a,i){var o=n&oq,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var c=-1,d=!0,h=n&lq?new rq:void 0;for(i.set(e,t),i.set(t,e);++c<l;){var b=e[c],v=t[c];if(r)var m=o?r(v,b,c,t,e,i):r(b,v,c,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!aq(t,function(p,y){if(!iq(h,y)&&(b===p||a(b,p,n,r,i)))return h.push(y)})){d=!1;break}}else if(!(b===v||a(b,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}var vM=uq,sq=Nr,cq=sq.Uint8Array,fq=cq;function dq(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var hq=dq;function pq(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var sx=pq,MO=Fc,NO=fq,yq=V0,mq=vM,vq=hq,gq=sx,bq=1,xq=2,Sq="[object Boolean]",Oq="[object Date]",wq="[object Error]",Aq="[object Map]",Eq="[object Number]",_q="[object RegExp]",Tq="[object Set]",jq="[object String]",Cq="[object Symbol]",Mq="[object ArrayBuffer]",Nq="[object DataView]",RO=MO?MO.prototype:void 0,um=RO?RO.valueOf:void 0;function Rq(e,t,n,r,a,i,o){switch(n){case Nq:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Mq:return!(e.byteLength!=t.byteLength||!i(new NO(e),new NO(t)));case Sq:case Oq:case Eq:return yq(+e,+t);case wq:return e.name==t.name&&e.message==t.message;case _q:case jq:return e==t+"";case Aq:var l=vq;case Tq:var u=r&bq;if(l||(l=gq),e.size!=t.size&&!u)return!1;var s=o.get(e);if(s)return s==t;r|=xq,o.set(e,t);var f=mq(l(e),l(t),r,a,i,o);return o.delete(e),f;case Cq:if(um)return um.call(e)==um.call(t)}return!1}var $q=Rq;function Pq(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var gM=Pq,Dq=gM,kq=vn;function Lq(e,t,n){var r=t(e);return kq(e)?r:Dq(r,n(e))}var Bq=Lq;function Uq(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var zq=Uq;function Iq(){return[]}var Hq=Iq,qq=zq,Fq=Hq,Gq=Object.prototype,Kq=Gq.propertyIsEnumerable,$O=Object.getOwnPropertySymbols,Yq=$O?function(e){return e==null?[]:(e=Object(e),qq($O(e),function(t){return Kq.call(e,t)}))}:Fq,Vq=Yq;function Xq(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Qq=Xq,Wq=ga,Zq=ba,Jq="[object Arguments]";function e7(e){return Zq(e)&&Wq(e)==Jq}var t7=e7,PO=t7,n7=ba,bM=Object.prototype,r7=bM.hasOwnProperty,a7=bM.propertyIsEnumerable,i7=PO(function(){return arguments}())?PO:function(e){return n7(e)&&r7.call(e,"callee")&&!a7.call(e,"callee")},cx=i7,Yd={exports:{}};function o7(){return!1}var l7=o7;Yd.exports;(function(e,t){var n=Nr,r=l7,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,u=l?l.isBuffer:void 0,s=u||r;e.exports=s})(Yd,Yd.exports);var xM=Yd.exports,u7=9007199254740991,s7=/^(?:0|[1-9]\d*)$/;function c7(e,t){var n=typeof e;return t=t??u7,!!t&&(n=="number"||n!="symbol"&&s7.test(e))&&e>-1&&e%1==0&&e<t}var fx=c7,f7=9007199254740991;function d7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f7}var dx=d7,h7=ga,p7=dx,y7=ba,m7="[object Arguments]",v7="[object Array]",g7="[object Boolean]",b7="[object Date]",x7="[object Error]",S7="[object Function]",O7="[object Map]",w7="[object Number]",A7="[object Object]",E7="[object RegExp]",_7="[object Set]",T7="[object String]",j7="[object WeakMap]",C7="[object ArrayBuffer]",M7="[object DataView]",N7="[object Float32Array]",R7="[object Float64Array]",$7="[object Int8Array]",P7="[object Int16Array]",D7="[object Int32Array]",k7="[object Uint8Array]",L7="[object Uint8ClampedArray]",B7="[object Uint16Array]",U7="[object Uint32Array]",Ve={};Ve[N7]=Ve[R7]=Ve[$7]=Ve[P7]=Ve[D7]=Ve[k7]=Ve[L7]=Ve[B7]=Ve[U7]=!0;Ve[m7]=Ve[v7]=Ve[C7]=Ve[g7]=Ve[M7]=Ve[b7]=Ve[x7]=Ve[S7]=Ve[O7]=Ve[w7]=Ve[A7]=Ve[E7]=Ve[_7]=Ve[T7]=Ve[j7]=!1;function z7(e){return y7(e)&&p7(e.length)&&!!Ve[h7(e)]}var I7=z7;function H7(e){return function(t){return e(t)}}var SM=H7,Vd={exports:{}};Vd.exports;(function(e,t){var n=C2,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Vd,Vd.exports);var q7=Vd.exports,F7=I7,G7=SM,DO=q7,kO=DO&&DO.isTypedArray,K7=kO?G7(kO):F7,OM=K7,Y7=Qq,V7=cx,X7=vn,Q7=xM,W7=fx,Z7=OM,J7=Object.prototype,e9=J7.hasOwnProperty;function t9(e,t){var n=X7(e),r=!n&&V7(e),a=!n&&!r&&Q7(e),i=!n&&!r&&!a&&Z7(e),o=n||r||a||i,l=o?Y7(e.length,String):[],u=l.length;for(var s in e)(t||e9.call(e,s))&&!(o&&(s=="length"||a&&(s=="offset"||s=="parent")||i&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||W7(s,u)))&&l.push(s);return l}var n9=t9,r9=Object.prototype;function a9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||r9;return e===n}var i9=a9;function o9(e,t){return function(n){return e(t(n))}}var wM=o9,l9=wM,u9=l9(Object.keys,Object),s9=u9,c9=i9,f9=s9,d9=Object.prototype,h9=d9.hasOwnProperty;function p9(e){if(!c9(e))return f9(e);var t=[];for(var n in Object(e))h9.call(e,n)&&n!="constructor"&&t.push(n);return t}var y9=p9,m9=Y0,v9=dx;function g9(e){return e!=null&&v9(e.length)&&!m9(e)}var Rp=g9,b9=n9,x9=y9,S9=Rp;function O9(e){return S9(e)?b9(e):x9(e)}var hx=O9,w9=Bq,A9=Vq,E9=hx;function _9(e){return w9(e,E9,A9)}var T9=_9,LO=T9,j9=1,C9=Object.prototype,M9=C9.hasOwnProperty;function N9(e,t,n,r,a,i){var o=n&j9,l=LO(e),u=l.length,s=LO(t),f=s.length;if(u!=f&&!o)return!1;for(var c=u;c--;){var d=l[c];if(!(o?d in t:M9.call(t,d)))return!1}var h=i.get(e),b=i.get(t);if(h&&b)return h==t&&b==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=o;++c<u;){d=l[c];var p=e[d],y=t[d];if(r)var x=o?r(y,p,d,t,e,i):r(p,y,d,e,t,i);if(!(x===void 0?p===y||a(p,y,n,r,i):x)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(v=!1)}return i.delete(e),i.delete(t),v}var R9=N9,$9=go,P9=Nr,D9=$9(P9,"DataView"),k9=D9,L9=go,B9=Nr,U9=L9(B9,"Promise"),z9=U9,I9=go,H9=Nr,q9=I9(H9,"Set"),AM=q9,F9=go,G9=Nr,K9=F9(G9,"WeakMap"),Y9=K9,dg=k9,hg=X0,pg=z9,yg=AM,mg=Y9,EM=ga,wu=N2,BO="[object Map]",V9="[object Object]",UO="[object Promise]",zO="[object Set]",IO="[object WeakMap]",HO="[object DataView]",X9=wu(dg),Q9=wu(hg),W9=wu(pg),Z9=wu(yg),J9=wu(mg),Ti=EM;(dg&&Ti(new dg(new ArrayBuffer(1)))!=HO||hg&&Ti(new hg)!=BO||pg&&Ti(pg.resolve())!=UO||yg&&Ti(new yg)!=zO||mg&&Ti(new mg)!=IO)&&(Ti=function(e){var t=EM(e),n=t==V9?e.constructor:void 0,r=n?wu(n):"";if(r)switch(r){case X9:return HO;case Q9:return BO;case W9:return UO;case Z9:return zO;case J9:return IO}return t});var eF=Ti,sm=hM,tF=vM,nF=$q,rF=R9,qO=eF,FO=vn,GO=xM,aF=OM,iF=1,KO="[object Arguments]",YO="[object Array]",Sf="[object Object]",oF=Object.prototype,VO=oF.hasOwnProperty;function lF(e,t,n,r,a,i){var o=FO(e),l=FO(t),u=o?YO:qO(e),s=l?YO:qO(t);u=u==KO?Sf:u,s=s==KO?Sf:s;var f=u==Sf,c=s==Sf,d=u==s;if(d&&GO(e)){if(!GO(t))return!1;o=!0,f=!1}if(d&&!f)return i||(i=new sm),o||aF(e)?tF(e,t,n,r,a,i):nF(e,t,u,n,r,a,i);if(!(n&iF)){var h=f&&VO.call(e,"__wrapped__"),b=c&&VO.call(t,"__wrapped__");if(h||b){var v=h?e.value():e,m=b?t.value():t;return i||(i=new sm),a(v,m,n,r,i)}}return d?(i||(i=new sm),rF(e,t,n,r,a,i)):!1}var uF=lF,sF=uF,XO=ba;function _M(e,t,n,r,a){return e===t?!0:e==null||t==null||!XO(e)&&!XO(t)?e!==e&&t!==t:sF(e,t,n,r,_M,a)}var px=_M,cF=hM,fF=px,dF=1,hF=2;function pF(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=n[a];var u=l[0],s=e[u],f=l[1];if(o&&l[2]){if(s===void 0&&!(u in e))return!1}else{var c=new cF;if(r)var d=r(s,f,u,e,t,c);if(!(d===void 0?fF(f,s,dF|hF,r,c):d))return!1}}return!0}var yF=pF,mF=di;function vF(e){return e===e&&!mF(e)}var TM=vF,gF=TM,bF=hx;function xF(e){for(var t=bF(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,gF(a)]}return t}var SF=xF;function OF(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var jM=OF,wF=yF,AF=SF,EF=jM;function _F(e){var t=AF(e);return t.length==1&&t[0][2]?EF(t[0][0],t[0][1]):function(n){return n===e||wF(n,e,t)}}var TF=_F;function jF(e,t){return e!=null&&t in Object(e)}var CF=jF,MF=k2,NF=cx,RF=vn,$F=fx,PF=dx,DF=vp;function kF(e,t,n){t=MF(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=DF(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&PF(a)&&$F(o,a)&&(RF(e)||NF(e)))}var LF=kF,BF=CF,UF=LF;function zF(e,t){return e!=null&&UF(e,t,BF)}var IF=zF,HF=px,qF=L2,FF=IF,GF=K0,KF=TM,YF=jM,VF=vp,XF=1,QF=2;function WF(e,t){return GF(e)&&KF(t)?YF(VF(e),t):function(n){var r=qF(n,e);return r===void 0&&r===t?FF(n,e):HF(t,r,XF|QF)}}var ZF=WF;function JF(e){return e}var Au=JF;function eG(e){return function(t){return t==null?void 0:t[e]}}var tG=eG,nG=J0;function rG(e){return function(t){return nG(t,e)}}var aG=rG,iG=tG,oG=aG,lG=K0,uG=vp;function sG(e){return lG(e)?iG(uG(e)):oG(e)}var cG=sG,fG=TF,dG=ZF,hG=Au,pG=vn,yG=cG;function mG(e){return typeof e=="function"?e:e==null?hG:typeof e=="object"?pG(e)?dG(e[0],e[1]):fG(e):yG(e)}var hi=mG;function vG(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 gG=vG;function bG(e){return e!==e}var xG=bG;function SG(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var OG=SG,wG=gG,AG=xG,EG=OG;function _G(e,t,n){return t===t?EG(e,t,n):wG(e,AG,n)}var TG=_G,jG=TG;function CG(e,t){var n=e==null?0:e.length;return!!n&&jG(e,t,0)>-1}var MG=CG;function NG(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 RG=NG;function $G(){}var PG=$G,cm=AM,DG=PG,kG=sx,LG=1/0,BG=cm&&1/kG(new cm([,-0]))[1]==LG?function(e){return new cm(e)}:DG,UG=BG,zG=pM,IG=MG,HG=RG,qG=mM,FG=UG,GG=sx,KG=200;function YG(e,t,n){var r=-1,a=IG,i=e.length,o=!0,l=[],u=l;if(n)o=!1,a=HG;else if(i>=KG){var s=t?null:FG(e);if(s)return GG(s);o=!1,a=qG,u=new zG}else u=t?[]:l;e:for(;++r<i;){var f=e[r],c=t?t(f):f;if(f=n||f!==0?f:0,o&&c===c){for(var d=u.length;d--;)if(u[d]===c)continue e;t&&u.push(c),l.push(f)}else a(u,c,n)||(u!==l&&u.push(c),l.push(f))}return l}var VG=YG,XG=hi,QG=VG;function WG(e,t){return e&&e.length?QG(e,XG(t)):[]}var ZG=WG;const QO=Be(ZG);function CM(e,t,n){return t===!0?QO(e,n):le(t)?QO(e,t):e}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)}var JG=["ref"];function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(r){$p(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NM(r.key),r)}}function tK(e,t,n){return t&&ZO(e.prototype,t),n&&ZO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nK(e,t,n){return t=Xd(t),rK(e,MM()?Reflect.construct(t,n||[],Xd(e).constructor):t.apply(e,n))}function rK(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 aK(e)}function aK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MM=function(){return!!e})()}function Xd(e){return Xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xd(e)}function iK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vg(e,t)}function vg(e,t){return vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},vg(e,t)}function $p(e,t,n){return t=NM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NM(e){var t=oK(e,"string");return Dl(t)=="symbol"?t:t+""}function oK(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 String(e)}function lK(e,t){if(e==null)return{};var n=uK(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 uK(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 sK(e){return e.value}function cK(e,t){if(N.isValidElement(e))return N.cloneElement(e,t);if(typeof e=="function")return N.createElement(e,t);t.ref;var n=lK(t,JG);return N.createElement(ux,n)}var JO=1,al=function(e){function t(){var n;eK(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=nK(this,t,[].concat(a)),$p(n,"lastBoundingBox",{width:-1,height:-1}),n}return iK(t,e),tK(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)>JO||Math.abs(a.height-this.lastBoundingBox.height)>JO)&&(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?Ur({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,o=a.align,l=a.verticalAlign,u=a.margin,s=a.chartWidth,f=a.chartHeight,c,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();c={left:((s||0)-h.width)/2}}else c=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();d={top:((f||0)-b.height)/2}}else d=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Ur(Ur({},c),d)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,o=a.width,l=a.height,u=a.wrapperStyle,s=a.payloadUniqBy,f=a.payload,c=Ur(Ur({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return N.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){r.wrapperNode=h}},cK(i,Ur(Ur({},this.props),{},{payload:CM(f,s,sK)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Ur(Ur({},this.defaultProps),r.props),o=i.layout;return o==="vertical"&&K(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||a}:null}}])}(_.PureComponent);$p(al,"displayName","Legend");$p(al,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ew=Fc,fK=cx,dK=vn,tw=ew?ew.isConcatSpreadable:void 0;function hK(e){return dK(e)||fK(e)||!!(tw&&e&&e[tw])}var pK=hK,yK=gM,mK=pK;function RM(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=mK),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?RM(l,t-1,n,r,a):yK(a,l):r||(a[a.length]=l)}return a}var $M=RM;function vK(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),l=o.length;l--;){var u=o[e?l:++a];if(n(i[u],u,i)===!1)break}return t}}var gK=vK,bK=gK,xK=bK(),SK=xK,OK=SK,wK=hx;function AK(e,t){return e&&OK(e,t,wK)}var PM=AK,EK=Rp;function _K(e,t){return function(n,r){if(n==null)return n;if(!EK(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var TK=_K,jK=PM,CK=TK,MK=CK(jK),yx=MK,NK=yx,RK=Rp;function $K(e,t){var n=-1,r=RK(e)?Array(e.length):[];return NK(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var DM=$K;function PK(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var DK=PK,nw=vu;function kK(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=nw(e),o=t!==void 0,l=t===null,u=t===t,s=nw(t);if(!l&&!s&&!i&&e>t||i&&o&&u&&!l&&!s||r&&o&&u||!n&&u||!a)return 1;if(!r&&!i&&!s&&e<t||s&&n&&a&&!r&&!i||l&&n&&a||!o&&a||!u)return-1}return 0}var LK=kK,BK=LK;function UK(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var u=BK(a[r],i[r]);if(u){if(r>=l)return u;var s=n[r];return u*(s=="desc"?-1:1)}}return e.index-t.index}var zK=UK,fm=Z0,IK=J0,HK=hi,qK=DM,FK=DK,GK=SM,KK=zK,YK=Au,VK=vn;function XK(e,t,n){t.length?t=fm(t,function(i){return VK(i)?function(o){return IK(o,i.length===1?i[0]:i)}:i}):t=[YK];var r=-1;t=fm(t,GK(HK));var a=qK(e,function(i,o,l){var u=fm(t,function(s){return s(i)});return{criteria:u,index:++r,value:i}});return FK(a,function(i,o){return KK(i,o,n)})}var QK=XK;function WK(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 ZK=WK,JK=ZK,rw=Math.max;function eY(e,t,n){return t=rw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=rw(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),JK(e,this,l)}}var tY=eY;function nY(e){return function(){return e}}var rY=nY,aY=go,iY=function(){try{var e=aY(Object,"defineProperty");return e({},"",{}),e}catch{}}(),kM=iY,oY=rY,aw=kM,lY=Au,uY=aw?function(e,t){return aw(e,"toString",{configurable:!0,enumerable:!1,value:oY(t),writable:!0})}:lY,sY=uY,cY=800,fY=16,dY=Date.now;function hY(e){var t=0,n=0;return function(){var r=dY(),a=fY-(r-n);if(n=r,a>0){if(++t>=cY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pY=hY,yY=sY,mY=pY,vY=mY(yY),gY=vY,bY=Au,xY=tY,SY=gY;function OY(e,t){return SY(xY(e,t,bY),e+"")}var wY=OY,AY=V0,EY=Rp,_Y=fx,TY=di;function jY(e,t,n){if(!TY(n))return!1;var r=typeof t;return(r=="number"?EY(n)&&_Y(t,n.length):r=="string"&&t in n)?AY(n[t],e):!1}var Pp=jY,CY=$M,MY=QK,NY=wY,iw=Pp,RY=NY(function(e,t){if(e==null)return[];var n=t.length;return n>1&&iw(e,t[0],t[1])?t=[]:n>2&&iw(t[0],t[1],t[2])&&(t=[t[0]]),MY(e,CY(t,1),[])}),$Y=RY;const mx=Be($Y);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 gg(){return gg=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},gg.apply(this,arguments)}function PY(e,t){return BY(e)||LY(e,t)||kY(e,t)||DY()}function DY(){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 kY(e,t){if(e){if(typeof e=="string")return ow(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 ow(e,t)}}function ow(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 LY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function BY(e){if(Array.isArray(e))return e}function lw(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 dm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lw(Object(n),!0).forEach(function(r){UY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UY(e,t,n){return t=zY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zY(e){var t=IY(e,"string");return Hs(t)=="symbol"?t:t+""}function IY(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)}function HY(e){return Array.isArray(e)&&Et(e[0])&&Et(e[1])?e.join(" ~ "):e}var qY=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,l=o===void 0?{}:o,u=t.labelStyle,s=u===void 0?{}:u,f=t.payload,c=t.formatter,d=t.itemSorter,h=t.wrapperClassName,b=t.labelClassName,v=t.label,m=t.labelFormatter,p=t.accessibilityLayer,y=p===void 0?!1:p,x=function(){if(f&&f.length){var R={padding:0,margin:0},U=(d?mx(f,d):f).map(function(k,P){if(k.type==="none")return null;var $=dm({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},l),L=k.formatter||c||HY,z=k.value,q=k.name,F=z,W=q;if(L&&F!=null&&W!=null){var G=L(z,q,k,P,f);if(Array.isArray(G)){var ee=PY(G,2);F=ee[0],W=ee[1]}else F=G}return N.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(P),style:$},Et(W)?N.createElement("span",{className:"recharts-tooltip-item-name"},W):null,Et(W)?N.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,N.createElement("span",{className:"recharts-tooltip-item-value"},F),N.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return N.createElement("ul",{className:"recharts-tooltip-item-list",style:R},U)}return null},w=dm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=dm({margin:0},s),O=!ye(v),A=O?v:"",E=pe("recharts-default-tooltip",h),T=pe("recharts-tooltip-label",b);O&&m&&f!==void 0&&f!==null&&(A=m(v,f));var C=y?{role:"status","aria-live":"assertive"}:{};return N.createElement("div",gg({className:E,style:w},C),N.createElement("p",{className:T,style:S},N.isValidElement(A)?A:"".concat(A)),x())};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 Of(e,t,n){return t=FY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FY(e){var t=GY(e,"string");return qs(t)=="symbol"?t:t+""}function GY(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 zu="recharts-tooltip-wrapper",KY={visibility:"hidden"};function YY(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return pe(zu,Of(Of(Of(Of({},"".concat(zu,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(zu,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(zu,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(zu,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function uw(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,s=e.viewBoxDimension;if(i&&K(i[r]))return i[r];var f=n[r]-l-a,c=n[r]+a;if(t[r])return o[r]?f:c;if(o[r]){var d=f,h=u[r];return d<h?Math.max(c,u[r]):Math.max(f,u[r])}var b=c+l,v=u[r]+s;return b>v?Math.max(f,u[r]):Math.max(c,u[r])}function VY(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 XY(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,s,f,c;return o.height>0&&o.width>0&&n?(f=uw({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),c=uw({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),s=VY({translateX:f,translateY:c,useTranslate3d:l})):s=KY,{cssProperties:s,cssClasses:YY({translateX:f,translateY:c,coordinate:n})}}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 sw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sw(Object(n),!0).forEach(function(r){xg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WY(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,BM(r.key),r)}}function ZY(e,t,n){return t&&WY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JY(e,t,n){return t=Qd(t),eV(e,LM()?Reflect.construct(t,n||[],Qd(e).constructor):t.apply(e,n))}function eV(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 tV(e)}function tV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qd(e)}function nV(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&&bg(e,t)}function bg(e,t){return bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},bg(e,t)}function xg(e,t,n){return t=BM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BM(e){var t=rV(e,"string");return kl(t)=="symbol"?t:t+""}function rV(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 fw=1,aV=function(e){function t(){var n;QY(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=JY(this,t,[].concat(a)),xg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),xg(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,u,s,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(u=n.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&l!==void 0?l:0,y:(s=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),n}return nV(t,e),ZY(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>fw||Math.abs(r.height-this.state.lastBoundingBox.height)>fw)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,u=a.animationEasing,s=a.children,f=a.coordinate,c=a.hasPayload,d=a.isAnimationActive,h=a.offset,b=a.position,v=a.reverseDirection,m=a.useTranslate3d,p=a.viewBox,y=a.wrapperStyle,x=XY({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:b,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:p}),w=x.cssClasses,S=x.cssProperties,O=cw(cw({transition:d&&i?"transform ".concat(l,"ms ").concat(u):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return N.createElement("div",{tabIndex:-1,className:w,style:O,ref:function(E){r.wrapperNode=E}},s)}}])}(_.PureComponent),iV=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Eu={isSsr:iV()};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 dw(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 hw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dw(Object(n),!0).forEach(function(r){vx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lV(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,zM(r.key),r)}}function uV(e,t,n){return t&&lV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sV(e,t,n){return t=Wd(t),cV(e,UM()?Reflect.construct(t,n||[],Wd(e).constructor):t.apply(e,n))}function cV(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 fV(e)}function fV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UM=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wd(e)}function dV(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&&Sg(e,t)}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Sg(e,t)}function vx(e,t,n){return t=zM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zM(e){var t=hV(e,"string");return Ll(t)=="symbol"?t:t+""}function hV(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)}function pV(e){return e.dataKey}function yV(e,t){return N.isValidElement(e)?N.cloneElement(e,t):typeof e=="function"?N.createElement(e,t):N.createElement(qY,t)}var lr=function(e){function t(){return oV(this,t),sV(this,t,arguments)}return dV(t,e),uV(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,u=a.animationEasing,s=a.content,f=a.coordinate,c=a.filterNull,d=a.isAnimationActive,h=a.offset,b=a.payload,v=a.payloadUniqBy,m=a.position,p=a.reverseDirection,y=a.useTranslate3d,x=a.viewBox,w=a.wrapperStyle,S=b??[];c&&S.length&&(S=CM(b.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),v,pV));var O=S.length>0;return N.createElement(aV,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:d,active:i,coordinate:f,hasPayload:O,offset:h,position:m,reverseDirection:p,useTranslate3d:y,viewBox:x,wrapperStyle:w},yV(s,hw(hw({},this.props),{},{payload:S})))}}])}(_.PureComponent);vx(lr,"displayName","Tooltip");vx(lr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Eu.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 mV=Nr,vV=function(){return mV.Date.now()},gV=vV,bV=/\s/;function xV(e){for(var t=e.length;t--&&bV.test(e.charAt(t)););return t}var SV=xV,OV=SV,wV=/^\s+/;function AV(e){return e&&e.slice(0,OV(e)+1).replace(wV,"")}var EV=AV,_V=EV,pw=di,TV=vu,yw=NaN,jV=/^[-+]0x[0-9a-f]+$/i,CV=/^0b[01]+$/i,MV=/^0o[0-7]+$/i,NV=parseInt;function RV(e){if(typeof e=="number")return e;if(TV(e))return yw;if(pw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_V(e);var n=CV.test(e);return n||MV.test(e)?NV(e.slice(2),n?2:8):jV.test(e)?yw:+e}var IM=RV,$V=di,hm=gV,mw=IM,PV="Expected a function",DV=Math.max,kV=Math.min;function LV(e,t,n){var r,a,i,o,l,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(PV);t=mw(t)||0,$V(n)&&(f=!!n.leading,c="maxWait"in n,i=c?DV(mw(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(O){var A=r,E=a;return r=a=void 0,s=O,o=e.apply(E,A),o}function b(O){return s=O,l=setTimeout(p,t),f?h(O):o}function v(O){var A=O-u,E=O-s,T=t-A;return c?kV(T,i-E):T}function m(O){var A=O-u,E=O-s;return u===void 0||A>=t||A<0||c&&E>=i}function p(){var O=hm();if(m(O))return y(O);l=setTimeout(p,v(O))}function y(O){return l=void 0,d&&r?h(O):(r=a=void 0,o)}function x(){l!==void 0&&clearTimeout(l),s=0,r=u=a=l=void 0}function w(){return l===void 0?o:y(hm())}function S(){var O=hm(),A=m(O);if(r=arguments,a=this,u=O,A){if(l===void 0)return b(u);if(c)return clearTimeout(l),l=setTimeout(p,t),h(u)}return l===void 0&&(l=setTimeout(p,t)),o}return S.cancel=x,S.flush=w,S}var BV=LV,UV=BV,zV=di,IV="Expected a function";function HV(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(IV);return zV(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),UV(e,t,{leading:r,maxWait:t,trailing:a})}var qV=HV;const HM=Be(qV);function Fs(e){"@babel/helpers - typeof";return Fs=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},Fs(e)}function vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vw(Object(n),!0).forEach(function(r){FV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FV(e,t,n){return t=GV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GV(e){var t=KV(e,"string");return Fs(t)=="symbol"?t:t+""}function KV(e,t){if(Fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YV(e,t){return WV(e)||QV(e,t)||XV(e,t)||VV()}function VV(){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 XV(e,t){if(e){if(typeof e=="string")return gw(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 gw(e,t)}}function gw(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 QV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function WV(e){if(Array.isArray(e))return e}var bw=_.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,o=i===void 0?"100%":i,l=e.height,u=l===void 0?"100%":l,s=e.minWidth,f=s===void 0?0:s,c=e.minHeight,d=e.maxHeight,h=e.children,b=e.debounce,v=b===void 0?0:b,m=e.id,p=e.className,y=e.onResize,x=e.style,w=x===void 0?{}:x,S=_.useRef(null),O=_.useRef();O.current=y,_.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var A=_.useState({containerWidth:a.width,containerHeight:a.height}),E=YV(A,2),T=E[0],C=E[1],D=_.useCallback(function(U,k){C(function(P){var $=Math.round(U),L=Math.round(k);return P.containerWidth===$&&P.containerHeight===L?P:{containerWidth:$,containerHeight:L}})},[]);_.useEffect(function(){var U=function(q){var F,W=q[0].contentRect,G=W.width,ee=W.height;D(G,ee),(F=O.current)===null||F===void 0||F.call(O,G,ee)};v>0&&(U=HM(U,v,{trailing:!0,leading:!1}));var k=new ResizeObserver(U),P=S.current.getBoundingClientRect(),$=P.width,L=P.height;return D($,L),k.observe(S.current),function(){k.disconnect()}},[D,v]);var R=_.useMemo(function(){var U=T.containerWidth,k=T.containerHeight;if(U<0||k<0)return null;aa(Ri(o)||Ri(u),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,u),aa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var P=Ri(o)?U:o,$=Ri(u)?k:u;n&&n>0&&(P?$=P/n:$&&(P=$*n),d&&$>d&&($=d)),aa(P>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.`,P,$,o,u,f,c,n);var L=!Array.isArray(h)&&ra(h.type).endsWith("Chart");return N.Children.map(h,function(z){return N.isValidElement(z)?_.cloneElement(z,wf({width:P,height:$},L?{style:wf({height:"100%",width:"100%",maxHeight:$,maxWidth:P},z.props.style)}:{})):z})},[n,h,u,d,c,f,T,o]);return N.createElement("div",{id:m?"".concat(m):void 0,className:pe("recharts-responsive-container",p),style:wf(wf({},w),{},{width:o,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:S},R)}),Dp=function(t){return null};Dp.displayName="Cell";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 xw(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 Og(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xw(Object(n),!0).forEach(function(r){ZV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZV(e,t,n){return t=JV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JV(e){var t=eX(e,"string");return Gs(t)=="symbol"?t:t+""}function eX(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)}var _o={widthCache:{},cacheCount:0},tX=2e3,nX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Sw="recharts_measurement_span";function rX(e){var t=Og({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var ms=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Eu.isSsr)return{width:0,height:0};var r=rX(n),a=JSON.stringify({text:t,copyStyle:r});if(_o.widthCache[a])return _o.widthCache[a];try{var i=document.getElementById(Sw);i||(i=document.createElement("span"),i.setAttribute("id",Sw),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Og(Og({},nX),r);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),u={width:l.width,height:l.height};return _o.widthCache[a]=u,++_o.cacheCount>tX&&(_o.cacheCount=0,_o.widthCache={}),u}catch{return{width:0,height:0}}},aX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Zd(e,t){return uX(e)||lX(e,t)||oX(e,t)||iX()}function iX(){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 oX(e,t){if(e){if(typeof e=="string")return Ow(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 Ow(e,t)}}function Ow(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 lX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function uX(e){if(Array.isArray(e))return e}function sX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ww(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,fX(r.key),r)}}function cX(e,t,n){return t&&ww(e.prototype,t),n&&ww(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fX(e){var t=dX(e,"string");return Ks(t)=="symbol"?t:t+""}function dX(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 String(e)}var Aw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ew=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,pX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,qM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},yX=Object.keys(qM),Go="NaN";function mX(e,t){return e*qM[t]}var Af=function(){function e(t,n){sX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!hX.test(n)&&(this.num=NaN,this.unit=""),yX.includes(n)&&(this.num=mX(t,n),this.unit="px")}return cX(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=pX.exec(n))!==null&&r!==void 0?r:[],i=Zd(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function FM(e){if(e.includes(Go))return Go;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=Aw.exec(t))!==null&&n!==void 0?n:[],a=Zd(r,4),i=a[1],o=a[2],l=a[3],u=Af.parse(i??""),s=Af.parse(l??""),f=o==="*"?u.multiply(s):u.divide(s);if(f.isNaN())return Go;t=t.replace(Aw,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=Ew.exec(t))!==null&&c!==void 0?c:[],h=Zd(d,4),b=h[1],v=h[2],m=h[3],p=Af.parse(b??""),y=Af.parse(m??""),x=v==="+"?p.add(y):p.subtract(y);if(x.isNaN())return Go;t=t.replace(Ew,x.toString())}return t}var _w=/\(([^()]*)\)/;function vX(e){for(var t=e;t.includes("(");){var n=_w.exec(t),r=Zd(n,2),a=r[1];t=t.replace(_w,FM(a))}return t}function gX(e){var t=e.replace(/\s+/g,"");return t=vX(t),t=FM(t),t}function bX(e){try{return gX(e)}catch{return Go}}function pm(e){var t=bX(e.slice(5,-1));return t===Go?"":t}var xX=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],SX=["dx","dy","angle","className","breakAll"];function wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wg.apply(this,arguments)}function Tw(e,t){if(e==null)return{};var n=OX(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 OX(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 jw(e,t){return _X(e)||EX(e,t)||AX(e,t)||wX()}function wX(){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 AX(e,t){if(e){if(typeof e=="string")return Cw(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 Cw(e,t)}}function Cw(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 EX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function _X(e){if(Array.isArray(e))return e}var GM=/[ \f\n\r\t\v\u2028\u2029]+/,KM=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];ye(n)||(r?i=n.toString().split(""):i=n.toString().split(GM));var o=i.map(function(u){return{word:u,width:ms(u,a).width}}),l=r?0:ms(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},TX=function(t,n,r,a,i){var o=t.maxLines,l=t.children,u=t.style,s=t.breakAll,f=K(o),c=l,d=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return P.reduce(function($,L){var z=L.word,q=L.width,F=$[$.length-1];if(F&&(a==null||i||F.width+q+r<Number(a)))F.words.push(z),F.width+=q+r;else{var W={words:[z],width:q};$.push(W)}return $},[])},h=d(n),b=function(P){return P.reduce(function($,L){return $.width>L.width?$:L})};if(!f)return h;for(var v="…",m=function(P){var $=c.slice(0,P),L=KM({breakAll:s,style:u,children:$+v}).wordsWithComputedWidth,z=d(L),q=z.length>o||b(z).width>Number(a);return[q,z]},p=0,y=c.length-1,x=0,w;p<=y&&x<=c.length-1;){var S=Math.floor((p+y)/2),O=S-1,A=m(O),E=jw(A,2),T=E[0],C=E[1],D=m(S),R=jw(D,1),U=R[0];if(!T&&!U&&(p=S+1),T&&U&&(y=S-1),!T&&U){w=C;break}x++}return w||h},Mw=function(t){var n=ye(t)?[]:t.toString().split(GM);return[{words:n}]},jX=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!Eu.isSsr){var u,s,f=KM({breakAll:o,children:a,style:i});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,s=d}else return Mw(a);return TX({breakAll:o,children:a,maxLines:l,style:i},u,s,n,r)}return Mw(a)},Nw="#808080",so=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,l=o===void 0?"1em":o,u=t.capHeight,s=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,b=t.verticalAnchor,v=b===void 0?"end":b,m=t.fill,p=m===void 0?Nw:m,y=Tw(t,xX),x=_.useMemo(function(){return jX({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:c,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,c,y.style,y.width]),w=y.dx,S=y.dy,O=y.angle,A=y.className,E=y.breakAll,T=Tw(y,SX);if(!Et(r)||!Et(i))return null;var C=r+(K(w)?w:0),D=i+(K(S)?S:0),R;switch(v){case"start":R=pm("calc(".concat(s,")"));break;case"middle":R=pm("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:R=pm("calc(".concat(x.length-1," * -").concat(l,")"));break}var U=[];if(c){var k=x[0].width,P=y.width;U.push("scale(".concat((K(P)?P/k:1)/k,")"))}return O&&U.push("rotate(".concat(O,", ").concat(C,", ").concat(D,")")),U.length&&(T.transform=U.join(" ")),N.createElement("text",wg({},ie(T,!0),{x:C,y:D,className:pe("recharts-text",A),textAnchor:h,fill:p.includes("url")?Nw:p}),x.map(function($,L){var z=$.words.join(E?"":" ");return N.createElement("tspan",{x:C,dy:L===0?R:l,key:"".concat(z,"-").concat(L)},z)}))};function ai(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function CX(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gx(e){let t,n,r;e.length!==2?(t=ai,n=(l,u)=>ai(e(l),u),r=(l,u)=>e(l)-u):(t=e===ai||e===CX?e:MX,n=e,r=e);function a(l,u,s=0,f=l.length){if(s<f){if(t(u,u)!==0)return f;do{const c=s+f>>>1;n(l[c],u)<0?s=c+1:f=c}while(s<f)}return s}function i(l,u,s=0,f=l.length){if(s<f){if(t(u,u)!==0)return f;do{const c=s+f>>>1;n(l[c],u)<=0?s=c+1:f=c}while(s<f)}return s}function o(l,u,s=0,f=l.length){const c=a(l,u,s,f-1);return c>s&&r(l[c-1],u)>-r(l[c],u)?c-1:c}return{left:a,center:o,right:i}}function MX(){return 0}function YM(e){return e===null?NaN:+e}function*NX(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const RX=gx(ai),Yc=RX.right;gx(YM).center;class Rw extends Map{constructor(t,n=DX){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($w(this,t))}has(t){return super.has($w(this,t))}set(t,n){return super.set($X(this,t),n)}delete(t){return super.delete(PX(this,t))}}function $w({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function $X({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function PX({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function DX(e){return e!==null&&typeof e=="object"?e.valueOf():e}function kX(e=ai){if(e===ai)return VM;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function VM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const LX=Math.sqrt(50),BX=Math.sqrt(10),UX=Math.sqrt(2);function Jd(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=LX?10:i>=BX?5:i>=UX?2:1;let l,u,s;return a<0?(s=Math.pow(10,-a)/o,l=Math.round(e*s),u=Math.round(t*s),l/s<e&&++l,u/s>t&&--u,s=-s):(s=Math.pow(10,a)*o,l=Math.round(e/s),u=Math.round(t/s),l*s<e&&++l,u*s>t&&--u),u<l&&.5<=n&&n<2?Jd(e,t,n*2):[l,u,s]}function Ag(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?Jd(t,e,n):Jd(e,t,n);if(!(i>=a))return[];const l=i-a+1,u=new Array(l);if(r)if(o<0)for(let s=0;s<l;++s)u[s]=(i-s)/-o;else for(let s=0;s<l;++s)u[s]=(i-s)*o;else if(o<0)for(let s=0;s<l;++s)u[s]=(a+s)/-o;else for(let s=0;s<l;++s)u[s]=(a+s)*o;return u}function Eg(e,t,n){return t=+t,e=+e,n=+n,Jd(e,t,n)[2]}function _g(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Eg(t,e,n):Eg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function Pw(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Dw(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function XM(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?VM:kX(a);r>n;){if(r-n>600){const u=r-n+1,s=t-n+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),h=Math.max(n,Math.floor(t-s*c/u+d)),b=Math.min(r,Math.floor(t+(u-s)*c/u+d));XM(e,t,h,b,a)}const i=e[t];let o=n,l=r;for(Iu(e,n,t),a(e[r],i)>0&&Iu(e,n,r);o<l;){for(Iu(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Iu(e,n,l):(++l,Iu(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Iu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function zX(e,t,n){if(e=Float64Array.from(NX(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Dw(e);if(t>=1)return Pw(e);var r,a=(r-1)*t,i=Math.floor(a),o=Pw(XM(e,i).subarray(0,i+1)),l=Dw(e.subarray(i+1));return o+(l-o)*(a-i)}}function IX(e,t,n=YM){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function HX(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function nr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xa(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 Tg=Symbol("implicit");function bx(){var e=new Rw,t=[],n=[],r=Tg;function a(i){let o=e.get(i);if(o===void 0){if(r!==Tg)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new Rw;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return bx(t,n).unknown(r)},nr.apply(a,arguments),a}function Ys(){var e=bx().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,l=!1,u=0,s=0,f=.5;delete e.unknown;function c(){var d=t().length,h=a<r,b=h?a:r,v=h?r:a;i=(v-b)/Math.max(1,d-u+s*2),l&&(i=Math.floor(i)),b+=(v-b-i*(d-u))*f,o=i*(1-u),l&&(b=Math.round(b),o=Math.round(o));var m=HX(d).map(function(p){return b+i*p});return n(h?m.reverse():m)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([r,a]=d,r=+r,a=+a,c()):[r,a]},e.rangeRound=function(d){return[r,a]=d,r=+r,a=+a,l=!0,c()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(d){return arguments.length?(l=!!d,c()):l},e.padding=function(d){return arguments.length?(u=Math.min(1,s=+d),c()):u},e.paddingInner=function(d){return arguments.length?(u=Math.min(1,d),c()):u},e.paddingOuter=function(d){return arguments.length?(s=+d,c()):s},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return Ys(t(),[r,a]).round(l).paddingInner(u).paddingOuter(s).align(f)},nr.apply(c(),arguments)}function QM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return QM(t())},e}function vs(){return QM(Ys.apply(null,arguments).paddingInner(1))}function xx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function WM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Vc(){}var Vs=.7,eh=1/Vs,il="\\s*([+-]?\\d+)\\s*",Xs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ar="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qX=/^#([0-9a-f]{3,8})$/,FX=new RegExp(`^rgb\\(${il},${il},${il}\\)$`),GX=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),KX=new RegExp(`^rgba\\(${il},${il},${il},${Xs}\\)$`),YX=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Xs}\\)$`),VX=new RegExp(`^hsl\\(${Xs},${Ar},${Ar}\\)$`),XX=new RegExp(`^hsla\\(${Xs},${Ar},${Ar},${Xs}\\)$`),kw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};xx(Vc,Qs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lw,formatHex:Lw,formatHex8:QX,formatHsl:WX,formatRgb:Bw,toString:Bw});function Lw(){return this.rgb().formatHex()}function QX(){return this.rgb().formatHex8()}function WX(){return ZM(this).formatHsl()}function Bw(){return this.rgb().formatRgb()}function Qs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qX.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Uw(t):n===3?new dn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ef(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ef(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=FX.exec(e))?new dn(t[1],t[2],t[3],1):(t=GX.exec(e))?new dn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KX.exec(e))?Ef(t[1],t[2],t[3],t[4]):(t=YX.exec(e))?Ef(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VX.exec(e))?Hw(t[1],t[2]/100,t[3]/100,1):(t=XX.exec(e))?Hw(t[1],t[2]/100,t[3]/100,t[4]):kw.hasOwnProperty(e)?Uw(kw[e]):e==="transparent"?new dn(NaN,NaN,NaN,0):null}function Uw(e){return new dn(e>>16&255,e>>8&255,e&255,1)}function Ef(e,t,n,r){return r<=0&&(e=t=n=NaN),new dn(e,t,n,r)}function ZX(e){return e instanceof Vc||(e=Qs(e)),e?(e=e.rgb(),new dn(e.r,e.g,e.b,e.opacity)):new dn}function jg(e,t,n,r){return arguments.length===1?ZX(e):new dn(e,t,n,r??1)}function dn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}xx(dn,jg,WM(Vc,{brighter(e){return e=e==null?eh:Math.pow(eh,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vs:Math.pow(Vs,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dn(Wi(this.r),Wi(this.g),Wi(this.b),th(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:zw,formatHex:zw,formatHex8:JX,formatRgb:Iw,toString:Iw}));function zw(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}`}function JX(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}${$i((isNaN(this.opacity)?1:this.opacity)*255)}`}function Iw(){const e=th(this.opacity);return`${e===1?"rgb(":"rgba("}${Wi(this.r)}, ${Wi(this.g)}, ${Wi(this.b)}${e===1?")":`, ${e})`}`}function th(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $i(e){return e=Wi(e),(e<16?"0":"")+e.toString(16)}function Hw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sr(e,t,n,r)}function ZM(e){if(e instanceof sr)return new sr(e.h,e.s,e.l,e.opacity);if(e instanceof Vc||(e=Qs(e)),!e)return new sr;if(e instanceof sr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,u=(i+a)/2;return l?(t===i?o=(n-r)/l+(n<r)*6:n===i?o=(r-t)/l+2:o=(t-n)/l+4,l/=u<.5?i+a:2-i-a,o*=60):l=u>0&&u<1?0:o,new sr(o,l,u,e.opacity)}function eQ(e,t,n,r){return arguments.length===1?ZM(e):new sr(e,t,n,r??1)}function sr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}xx(sr,eQ,WM(Vc,{brighter(e){return e=e==null?eh:Math.pow(eh,e),new sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vs:Math.pow(Vs,e),new sr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new dn(ym(e>=240?e-240:e+120,a,r),ym(e,a,r),ym(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new sr(qw(this.h),_f(this.s),_f(this.l),th(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=th(this.opacity);return`${e===1?"hsl(":"hsla("}${qw(this.h)}, ${_f(this.s)*100}%, ${_f(this.l)*100}%${e===1?")":`, ${e})`}`}}));function qw(e){return e=(e||0)%360,e<0?e+360:e}function _f(e){return Math.max(0,Math.min(1,e||0))}function ym(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Sx=e=>()=>e;function tQ(e,t){return function(n){return e+n*t}}function nQ(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 rQ(e){return(e=+e)==1?JM:function(t,n){return n-t?nQ(t,n,e):Sx(isNaN(t)?n:t)}}function JM(e,t){var n=t-e;return n?tQ(e,n):Sx(isNaN(e)?t:e)}const Fw=function e(t){var n=rQ(t);function r(a,i){var o=n((a=jg(a)).r,(i=jg(i)).r),l=n(a.g,i.g),u=n(a.b,i.b),s=JM(a.opacity,i.opacity);return function(f){return a.r=o(f),a.g=l(f),a.b=u(f),a.opacity=s(f),a+""}}return r.gamma=e,r}(1);function aQ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function iQ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oQ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=_u(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(l){for(o=0;o<r;++o)i[o]=a[o](l);return i}}function lQ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function nh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function uQ(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]=_u(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Cg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mm=new RegExp(Cg.source,"g");function sQ(e){return function(){return e}}function cQ(e){return function(t){return e(t)+""}}function fQ(e,t){var n=Cg.lastIndex=mm.lastIndex=0,r,a,i,o=-1,l=[],u=[];for(e=e+"",t=t+"";(r=Cg.exec(e))&&(a=mm.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,u.push({i:o,x:nh(r,a)})),n=mm.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?u[0]?cQ(u[0].x):sQ(t):(t=u.length,function(s){for(var f=0,c;f<t;++f)l[(c=u[f]).i]=c.x(s);return l.join("")})}function _u(e,t){var n=typeof t,r;return t==null||n==="boolean"?Sx(t):(n==="number"?nh:n==="string"?(r=Qs(t))?(t=r,Fw):fQ:t instanceof Qs?Fw:t instanceof Date?lQ:iQ(t)?aQ:Array.isArray(t)?oQ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?uQ:nh)(e,t)}function Ox(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function dQ(e,t){t===void 0&&(t=e,e=_u);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return i[l](o-l)}}function hQ(e){return function(){return e}}function rh(e){return+e}var Gw=[0,1];function nn(e){return e}function Mg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:hQ(isNaN(t)?NaN:.5)}function pQ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function yQ(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Mg(a,r),i=n(o,i)):(r=Mg(r,a),i=n(i,o)),function(l){return i(r(l))}}function mQ(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=Mg(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var u=Yc(e,l,1,r)-1;return i[u](a[u](l))}}function Xc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function kp(){var e=Gw,t=Gw,n=_u,r,a,i,o=nn,l,u,s;function f(){var d=Math.min(e.length,t.length);return o!==nn&&(o=pQ(e[0],e[d-1])),l=d>2?mQ:yQ,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?i:(u||(u=l(e.map(r),t,n)))(r(o(d)))}return c.invert=function(d){return o(a((s||(s=l(t,e.map(r),nh)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,rh),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),n=Ox,f()},c.clamp=function(d){return arguments.length?(o=d?!0:nn,f()):o!==nn},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(i=d,c):i},function(d,h){return r=d,a=h,f()}}function wx(){return kp()(nn,nn)}function vQ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ah(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 Bl(e){return e=ah(Math.abs(e)),e?e[1]:NaN}function gQ(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],u=0;a>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(n.substring(a-=l,a+l)),!((u+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function bQ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var xQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ws(e){if(!(t=xQ.exec(e)))throw new Error("invalid format: "+e);var t;return new Ax({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ws.prototype=Ax.prototype;function Ax(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ax.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function SQ(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 ih;function OQ(e,t){var n=ah(e,t);if(!n)return ih=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(ih=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ah(e,Math.max(0,t+i-1))[0]}function Kw(e,t){var n=ah(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 Yw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:vQ,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)=>Kw(e*100,t),r:Kw,s:OQ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Vw(e){return e}var Xw=Array.prototype.map,Qw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wQ(e){var t=e.grouping===void 0||e.thousands===void 0?Vw:gQ(Xw.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?Vw:bQ(Xw.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c,d){c=Ws(c);var h=c.fill,b=c.align,v=c.sign,m=c.symbol,p=c.zero,y=c.width,x=c.comma,w=c.precision,S=c.trim,O=c.type;O==="n"?(x=!0,O="g"):Yw[O]||(w===void 0&&(w=12),S=!0,O="g"),(p||h==="0"&&b==="=")&&(p=!0,h="0",b="=");var A=(d&&d.prefix!==void 0?d.prefix:"")+(m==="$"?n:m==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),E=(m==="$"?r:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),T=Yw[O],C=/[defgprs%]/.test(O);w=w===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function D(R){var U=A,k=E,P,$,L;if(O==="c")k=T(R)+k,R="";else{R=+R;var z=R<0||1/R<0;if(R=isNaN(R)?u:T(Math.abs(R),w),S&&(R=SQ(R)),z&&+R==0&&v!=="+"&&(z=!1),U=(z?v==="("?v:l:v==="-"||v==="("?"":v)+U,k=(O==="s"&&!isNaN(R)&&ih!==void 0?Qw[8+ih/3]:"")+k+(z&&v==="("?")":""),C){for(P=-1,$=R.length;++P<$;)if(L=R.charCodeAt(P),48>L||L>57){k=(L===46?a+R.slice(P+1):R.slice(P))+k,R=R.slice(0,P);break}}}x&&!p&&(R=t(R,1/0));var q=U.length+R.length+k.length,F=q<y?new Array(y-q+1).join(h):"";switch(x&&p&&(R=t(F+R,F.length?y-k.length:1/0),F=""),b){case"<":R=U+R+k+F;break;case"=":R=U+F+R+k;break;case"^":R=F.slice(0,q=F.length>>1)+U+R+k+F.slice(q);break;default:R=F+U+R+k;break}return i(R)}return D.toString=function(){return c+""},D}function f(c,d){var h=Math.max(-8,Math.min(8,Math.floor(Bl(d)/3)))*3,b=Math.pow(10,-h),v=s((c=Ws(c),c.type="f",c),{suffix:Qw[8+h/3]});return function(m){return v(b*m)}}return{format:s,formatPrefix:f}}var Tf,Ex,eN;AQ({thousands:",",grouping:[3],currency:["$",""]});function AQ(e){return Tf=wQ(e),Ex=Tf.format,eN=Tf.formatPrefix,Tf}function EQ(e){return Math.max(0,-Bl(Math.abs(e)))}function _Q(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Bl(t)/3)))*3-Bl(Math.abs(e)))}function TQ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Bl(t)-Bl(e))+1}function tN(e,t,n,r){var a=_g(e,t,n),i;switch(r=Ws(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=_Q(a,o))&&(r.precision=i),eN(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=TQ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=EQ(a))&&(r.precision=i-(r.type==="%")*2);break}}return Ex(r)}function pi(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ag(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return tN(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],u,s,f=10;for(l<o&&(s=o,o=l,l=s,s=a,a=i,i=s);f-- >0;){if(s=Eg(o,l,n),s===u)return r[a]=o,r[i]=l,t(r);if(s>0)o=Math.floor(o/s)*s,l=Math.ceil(l/s)*s;else if(s<0)o=Math.ceil(o*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function oh(){var e=wx();return e.copy=function(){return Xc(e,oh())},nr.apply(e,arguments),pi(e)}function nN(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,rh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return nN(e).unknown(t)},e=arguments.length?Array.from(e,rh):[0,1],pi(n)}function rN(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function Ww(e){return Math.log(e)}function Zw(e){return Math.exp(e)}function jQ(e){return-Math.log(-e)}function CQ(e){return-Math.exp(-e)}function MQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function NQ(e){return e===10?MQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function RQ(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 Jw(e){return(t,n)=>-e(-t,n)}function _x(e){const t=e(Ww,Zw),n=t.domain;let r=10,a,i;function o(){return a=RQ(r),i=NQ(r),n()[0]<0?(a=Jw(a),i=Jw(i),e(jQ,CQ)):e(Ww,Zw),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const u=n();let s=u[0],f=u[u.length-1];const c=f<s;c&&([s,f]=[f,s]);let d=a(s),h=a(f),b,v;const m=l==null?10:+l;let p=[];if(!(r%1)&&h-d<m){if(d=Math.floor(d),h=Math.ceil(h),s>0){for(;d<=h;++d)for(b=1;b<r;++b)if(v=d<0?b/i(-d):b*i(d),!(v<s)){if(v>f)break;p.push(v)}}else for(;d<=h;++d)for(b=r-1;b>=1;--b)if(v=d>0?b/i(-d):b*i(d),!(v<s)){if(v>f)break;p.push(v)}p.length*2<m&&(p=Ag(s,f,m))}else p=Ag(d,h,Math.min(h-d,m)).map(i);return c?p.reverse():p},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Ws(u)).precision==null&&(u.trim=!0),u=Ex(u)),l===1/0)return u;const s=Math.max(1,r*l/t.ticks().length);return f=>{let c=f/i(Math.round(a(f)));return c*r<r-.5&&(c*=r),c<=s?u(f):""}},t.nice=()=>n(rN(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function aN(){const e=_x(kp()).domain([1,10]);return e.copy=()=>Xc(e,aN()).base(e.base()),nr.apply(e,arguments),e}function eA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function tA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Tx(e){var t=1,n=e(eA(t),tA(t));return n.constant=function(r){return arguments.length?e(eA(t=+r),tA(t)):t},pi(n)}function iN(){var e=Tx(kp());return e.copy=function(){return Xc(e,iN()).constant(e.constant())},nr.apply(e,arguments)}function nA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $Q(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function PQ(e){return e<0?-e*e:e*e}function jx(e){var t=e(nn,nn),n=1;function r(){return n===1?e(nn,nn):n===.5?e($Q,PQ):e(nA(n),nA(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},pi(t)}function Cx(){var e=jx(kp());return e.copy=function(){return Xc(e,Cx()).exponent(e.exponent())},nr.apply(e,arguments),e}function DQ(){return Cx.apply(null,arguments).exponent(.5)}function rA(e){return Math.sign(e)*e*e}function kQ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function oN(){var e=wx(),t=[0,1],n=!1,r;function a(i){var o=kQ(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(rA(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,rh)).map(rA)),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 oN(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},nr.apply(a,arguments),pi(a)}function lN(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=IX(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[Yc(n,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ai),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return lN().domain(e).range(t).unknown(r)},nr.apply(i,arguments)}function uN(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(u){return u!=null&&u<=u?a[Yc(r,u,0,n)]:i}function l(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(n=(a=Array.from(u)).length-1,l()):a.slice()},o.invertExtent=function(u){var s=a.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,r[0]]:s>=n?[r[n-1],t]:[r[s-1],r[s]]},o.unknown=function(u){return arguments.length&&(i=u),o},o.thresholds=function(){return r.slice()},o.copy=function(){return uN().domain([e,t]).range(a).unknown(i)},nr.apply(pi(o),arguments)}function sN(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Yc(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return sN().domain(e).range(t).unknown(n)},nr.apply(a,arguments)}const vm=new Date,gm=new Date;function Tt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o<l-i?o:l},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const u=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return u;let s;do u.push(s=new Date(+i)),t(i,l),e(i);while(s<i&&i<o);return u},a.filter=i=>Tt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(vm.setTime(+i),gm.setTime(+o),e(vm),e(gm),Math.floor(n(vm,gm))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const lh=Tt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);lh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Tt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):lh);lh.range;const Zr=1e3,Xn=Zr*60,Jr=Xn*60,ha=Jr*24,Mx=ha*7,aA=ha*30,bm=ha*365,Pi=Tt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCSeconds());Pi.range;const Nx=Tt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zr)},(e,t)=>{e.setTime(+e+t*Xn)},(e,t)=>(t-e)/Xn,e=>e.getMinutes());Nx.range;const Rx=Tt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xn)},(e,t)=>(t-e)/Xn,e=>e.getUTCMinutes());Rx.range;const $x=Tt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zr-e.getMinutes()*Xn)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getHours());$x.range;const Px=Tt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCHours());Px.range;const Qc=Tt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xn)/ha,e=>e.getDate()-1);Qc.range;const Lp=Tt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>e.getUTCDate()-1);Lp.range;const cN=Tt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>Math.floor(e/ha));cN.range;function bo(e){return Tt(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())*Xn)/Mx)}const Bp=bo(0),uh=bo(1),LQ=bo(2),BQ=bo(3),Ul=bo(4),UQ=bo(5),zQ=bo(6);Bp.range;uh.range;LQ.range;BQ.range;Ul.range;UQ.range;zQ.range;function xo(e){return Tt(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)/Mx)}const Up=xo(0),sh=xo(1),IQ=xo(2),HQ=xo(3),zl=xo(4),qQ=xo(5),FQ=xo(6);Up.range;sh.range;IQ.range;HQ.range;zl.range;qQ.range;FQ.range;const Dx=Tt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Dx.range;const kx=Tt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());kx.range;const pa=Tt(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());pa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tt(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)});pa.range;const ya=Tt(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());ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tt(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)});ya.range;function fN(e,t,n,r,a,i){const o=[[Pi,1,Zr],[Pi,5,5*Zr],[Pi,15,15*Zr],[Pi,30,30*Zr],[i,1,Xn],[i,5,5*Xn],[i,15,15*Xn],[i,30,30*Xn],[a,1,Jr],[a,3,3*Jr],[a,6,6*Jr],[a,12,12*Jr],[r,1,ha],[r,2,2*ha],[n,1,Mx],[t,1,aA],[t,3,3*aA],[e,1,bm]];function l(s,f,c){const d=f<s;d&&([s,f]=[f,s]);const h=c&&typeof c.range=="function"?c:u(s,f,c),b=h?h.range(s,+f+1):[];return d?b.reverse():b}function u(s,f,c){const d=Math.abs(f-s)/c,h=gx(([,,m])=>m).right(o,d);if(h===o.length)return e.every(_g(s/bm,f/bm,c));if(h===0)return lh.every(Math.max(_g(s,f,c),1));const[b,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return b.every(v)}return[l,u]}const[GQ,KQ]=fN(ya,kx,Up,cN,Px,Rx),[YQ,VQ]=fN(pa,Dx,Bp,Qc,$x,Nx);function xm(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 Sm(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 Hu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function XQ(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,u=e.shortMonths,s=qu(a),f=Fu(a),c=qu(i),d=Fu(i),h=qu(o),b=Fu(o),v=qu(l),m=Fu(l),p=qu(u),y=Fu(u),x={a:L,A:z,b:q,B:F,c:null,d:cA,e:cA,f:gW,g:jW,G:MW,H:yW,I:mW,j:vW,L:dN,m:bW,M:xW,p:W,q:G,Q:hA,s:pA,S:SW,u:OW,U:wW,V:AW,w:EW,W:_W,x:null,X:null,y:TW,Y:CW,Z:NW,"%":dA},w={a:ee,A:he,b:$e,B:se,c:null,d:fA,e:fA,f:DW,g:GW,G:YW,H:RW,I:$W,j:PW,L:pN,m:kW,M:LW,p:dt,q:bt,Q:hA,s:pA,S:BW,u:UW,U:zW,V:IW,w:HW,W:qW,x:null,X:null,y:FW,Y:KW,Z:VW,"%":dA},S={a:C,A:D,b:R,B:U,c:k,d:uA,e:uA,f:fW,g:lA,G:oA,H:sA,I:sA,j:lW,L:cW,m:oW,M:uW,p:T,q:iW,Q:hW,s:pW,S:sW,u:eW,U:tW,V:nW,w:JQ,W:rW,x:P,X:$,y:lA,Y:oA,Z:aW,"%":dW};x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),w.x=O(n,w),w.X=O(r,w),w.c=O(t,w);function O(Q,oe){return function(ce){var H=[],Ke=-1,me=0,je=Q.length,J,Pe,Dt;for(ce instanceof Date||(ce=new Date(+ce));++Ke<je;)Q.charCodeAt(Ke)===37&&(H.push(Q.slice(me,Ke)),(Pe=iA[J=Q.charAt(++Ke)])!=null?J=Q.charAt(++Ke):Pe=J==="e"?" ":"0",(Dt=oe[J])&&(J=Dt(ce,Pe)),H.push(J),me=Ke+1);return H.push(Q.slice(me,Ke)),H.join("")}}function A(Q,oe){return function(ce){var H=Hu(1900,void 0,1),Ke=E(H,Q,ce+="",0),me,je;if(Ke!=ce.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(oe&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(me=Sm(Hu(H.y,0,1)),je=me.getUTCDay(),me=je>4||je===0?sh.ceil(me):sh(me),me=Lp.offset(me,(H.V-1)*7),H.y=me.getUTCFullYear(),H.m=me.getUTCMonth(),H.d=me.getUTCDate()+(H.w+6)%7):(me=xm(Hu(H.y,0,1)),je=me.getDay(),me=je>4||je===0?uh.ceil(me):uh(me),me=Qc.offset(me,(H.V-1)*7),H.y=me.getFullYear(),H.m=me.getMonth(),H.d=me.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),je="Z"in H?Sm(Hu(H.y,0,1)).getUTCDay():xm(Hu(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(je+5)%7:H.w+H.U*7-(je+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,Sm(H)):xm(H)}}function E(Q,oe,ce,H){for(var Ke=0,me=oe.length,je=ce.length,J,Pe;Ke<me;){if(H>=je)return-1;if(J=oe.charCodeAt(Ke++),J===37){if(J=oe.charAt(Ke++),Pe=S[J in iA?oe.charAt(Ke++):J],!Pe||(H=Pe(Q,ce,H))<0)return-1}else if(J!=ce.charCodeAt(H++))return-1}return H}function T(Q,oe,ce){var H=s.exec(oe.slice(ce));return H?(Q.p=f.get(H[0].toLowerCase()),ce+H[0].length):-1}function C(Q,oe,ce){var H=h.exec(oe.slice(ce));return H?(Q.w=b.get(H[0].toLowerCase()),ce+H[0].length):-1}function D(Q,oe,ce){var H=c.exec(oe.slice(ce));return H?(Q.w=d.get(H[0].toLowerCase()),ce+H[0].length):-1}function R(Q,oe,ce){var H=p.exec(oe.slice(ce));return H?(Q.m=y.get(H[0].toLowerCase()),ce+H[0].length):-1}function U(Q,oe,ce){var H=v.exec(oe.slice(ce));return H?(Q.m=m.get(H[0].toLowerCase()),ce+H[0].length):-1}function k(Q,oe,ce){return E(Q,t,oe,ce)}function P(Q,oe,ce){return E(Q,n,oe,ce)}function $(Q,oe,ce){return E(Q,r,oe,ce)}function L(Q){return o[Q.getDay()]}function z(Q){return i[Q.getDay()]}function q(Q){return u[Q.getMonth()]}function F(Q){return l[Q.getMonth()]}function W(Q){return a[+(Q.getHours()>=12)]}function G(Q){return 1+~~(Q.getMonth()/3)}function ee(Q){return o[Q.getUTCDay()]}function he(Q){return i[Q.getUTCDay()]}function $e(Q){return u[Q.getUTCMonth()]}function se(Q){return l[Q.getUTCMonth()]}function dt(Q){return a[+(Q.getUTCHours()>=12)]}function bt(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var oe=O(Q+="",x);return oe.toString=function(){return Q},oe},parse:function(Q){var oe=A(Q+="",!1);return oe.toString=function(){return Q},oe},utcFormat:function(Q){var oe=O(Q+="",w);return oe.toString=function(){return Q},oe},utcParse:function(Q){var oe=A(Q+="",!0);return oe.toString=function(){return Q},oe}}}var iA={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,QQ=/^%/,WQ=/[\\^$*+?|[\]().{}]/g;function we(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function ZQ(e){return e.replace(WQ,"\\$&")}function qu(e){return new RegExp("^(?:"+e.map(ZQ).join("|")+")","i")}function Fu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function JQ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function eW(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function tW(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function nW(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function rW(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function oA(e,t,n){var r=Pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lA(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function aW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function iW(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function oW(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function uA(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lW(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sA(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function uW(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function sW(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cW(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fW(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dW(e,t,n){var r=QQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hW(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pW(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function cA(e,t){return we(e.getDate(),t,2)}function yW(e,t){return we(e.getHours(),t,2)}function mW(e,t){return we(e.getHours()%12||12,t,2)}function vW(e,t){return we(1+Qc.count(pa(e),e),t,3)}function dN(e,t){return we(e.getMilliseconds(),t,3)}function gW(e,t){return dN(e,t)+"000"}function bW(e,t){return we(e.getMonth()+1,t,2)}function xW(e,t){return we(e.getMinutes(),t,2)}function SW(e,t){return we(e.getSeconds(),t,2)}function OW(e){var t=e.getDay();return t===0?7:t}function wW(e,t){return we(Bp.count(pa(e)-1,e),t,2)}function hN(e){var t=e.getDay();return t>=4||t===0?Ul(e):Ul.ceil(e)}function AW(e,t){return e=hN(e),we(Ul.count(pa(e),e)+(pa(e).getDay()===4),t,2)}function EW(e){return e.getDay()}function _W(e,t){return we(uh.count(pa(e)-1,e),t,2)}function TW(e,t){return we(e.getFullYear()%100,t,2)}function jW(e,t){return e=hN(e),we(e.getFullYear()%100,t,2)}function CW(e,t){return we(e.getFullYear()%1e4,t,4)}function MW(e,t){var n=e.getDay();return e=n>=4||n===0?Ul(e):Ul.ceil(e),we(e.getFullYear()%1e4,t,4)}function NW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+we(t/60|0,"0",2)+we(t%60,"0",2)}function fA(e,t){return we(e.getUTCDate(),t,2)}function RW(e,t){return we(e.getUTCHours(),t,2)}function $W(e,t){return we(e.getUTCHours()%12||12,t,2)}function PW(e,t){return we(1+Lp.count(ya(e),e),t,3)}function pN(e,t){return we(e.getUTCMilliseconds(),t,3)}function DW(e,t){return pN(e,t)+"000"}function kW(e,t){return we(e.getUTCMonth()+1,t,2)}function LW(e,t){return we(e.getUTCMinutes(),t,2)}function BW(e,t){return we(e.getUTCSeconds(),t,2)}function UW(e){var t=e.getUTCDay();return t===0?7:t}function zW(e,t){return we(Up.count(ya(e)-1,e),t,2)}function yN(e){var t=e.getUTCDay();return t>=4||t===0?zl(e):zl.ceil(e)}function IW(e,t){return e=yN(e),we(zl.count(ya(e),e)+(ya(e).getUTCDay()===4),t,2)}function HW(e){return e.getUTCDay()}function qW(e,t){return we(sh.count(ya(e)-1,e),t,2)}function FW(e,t){return we(e.getUTCFullYear()%100,t,2)}function GW(e,t){return e=yN(e),we(e.getUTCFullYear()%100,t,2)}function KW(e,t){return we(e.getUTCFullYear()%1e4,t,4)}function YW(e,t){var n=e.getUTCDay();return e=n>=4||n===0?zl(e):zl.ceil(e),we(e.getUTCFullYear()%1e4,t,4)}function VW(){return"+0000"}function dA(){return"%"}function hA(e){return+e}function pA(e){return Math.floor(+e/1e3)}var To,mN,vN;XW({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 XW(e){return To=XQ(e),mN=To.format,To.parse,vN=To.utcFormat,To.utcParse,To}function QW(e){return new Date(e)}function WW(e){return e instanceof Date?+e:+new Date(+e)}function Lx(e,t,n,r,a,i,o,l,u,s){var f=wx(),c=f.invert,d=f.domain,h=s(".%L"),b=s(":%S"),v=s("%I:%M"),m=s("%I %p"),p=s("%a %d"),y=s("%b %d"),x=s("%B"),w=s("%Y");function S(O){return(u(O)<O?h:l(O)<O?b:o(O)<O?v:i(O)<O?m:r(O)<O?a(O)<O?p:y:n(O)<O?x:w)(O)}return f.invert=function(O){return new Date(c(O))},f.domain=function(O){return arguments.length?d(Array.from(O,WW)):d().map(QW)},f.ticks=function(O){var A=d();return e(A[0],A[A.length-1],O??10)},f.tickFormat=function(O,A){return A==null?S:s(A)},f.nice=function(O){var A=d();return(!O||typeof O.range!="function")&&(O=t(A[0],A[A.length-1],O??10)),O?d(rN(A,O)):f},f.copy=function(){return Xc(f,Lx(e,t,n,r,a,i,o,l,u,s))},f}function ZW(){return nr.apply(Lx(YQ,VQ,pa,Dx,Bp,Qc,$x,Nx,Pi,mN).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function JW(){return nr.apply(Lx(GQ,KQ,ya,kx,Up,Lp,Px,Rx,Pi,vN).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zp(){var e=0,t=1,n,r,a,i,o=nn,l=!1,u;function s(c){return c==null||isNaN(c=+c)?u:o(a===0?.5:(c=(i(c)-n)*a,l?Math.max(0,Math.min(1,c)):c))}s.domain=function(c){return arguments.length?([e,t]=c,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),s):[e,t]},s.clamp=function(c){return arguments.length?(l=!!c,s):l},s.interpolator=function(c){return arguments.length?(o=c,s):o};function f(c){return function(d){var h,b;return arguments.length?([h,b]=d,o=c(h,b),s):[o(0),o(1)]}}return s.range=f(_u),s.rangeRound=f(Ox),s.unknown=function(c){return arguments.length?(u=c,s):u},function(c){return i=c,n=c(e),r=c(t),a=n===r?0:1/(r-n),s}}function yi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gN(){var e=pi(zp()(nn));return e.copy=function(){return yi(e,gN())},xa.apply(e,arguments)}function bN(){var e=_x(zp()).domain([1,10]);return e.copy=function(){return yi(e,bN()).base(e.base())},xa.apply(e,arguments)}function xN(){var e=Tx(zp());return e.copy=function(){return yi(e,xN()).constant(e.constant())},xa.apply(e,arguments)}function Bx(){var e=jx(zp());return e.copy=function(){return yi(e,Bx()).exponent(e.exponent())},xa.apply(e,arguments)}function eZ(){return Bx.apply(null,arguments).exponent(.5)}function SN(){var e=[],t=nn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Yc(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(ai),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)=>zX(e,i/r))},n.copy=function(){return SN(t).domain(e)},xa.apply(n,arguments)}function Ip(){var e=0,t=.5,n=1,r=1,a,i,o,l,u,s=nn,f,c=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-i)*(r*v<r*i?l:u),s(c?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,n]=v,a=f(e=+e),i=f(t=+t),o=f(n=+n),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),r=i<a?-1:1,h):[e,t,n]},h.clamp=function(v){return arguments.length?(c=!!v,h):c},h.interpolator=function(v){return arguments.length?(s=v,h):s};function b(v){return function(m){var p,y,x;return arguments.length?([p,y,x]=m,s=dQ(v,[p,y,x]),h):[s(0),s(.5),s(1)]}}return h.range=b(_u),h.rangeRound=b(Ox),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return f=v,a=v(e),i=v(t),o=v(n),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),r=i<a?-1:1,h}}function ON(){var e=pi(Ip()(nn));return e.copy=function(){return yi(e,ON())},xa.apply(e,arguments)}function wN(){var e=_x(Ip()).domain([.1,1,10]);return e.copy=function(){return yi(e,wN()).base(e.base())},xa.apply(e,arguments)}function AN(){var e=Tx(Ip());return e.copy=function(){return yi(e,AN()).constant(e.constant())},xa.apply(e,arguments)}function Ux(){var e=jx(Ip());return e.copy=function(){return yi(e,Ux()).exponent(e.exponent())},xa.apply(e,arguments)}function tZ(){return Ux.apply(null,arguments).exponent(.5)}const yA=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ys,scaleDiverging:ON,scaleDivergingLog:wN,scaleDivergingPow:Ux,scaleDivergingSqrt:tZ,scaleDivergingSymlog:AN,scaleIdentity:nN,scaleImplicit:Tg,scaleLinear:oh,scaleLog:aN,scaleOrdinal:bx,scalePoint:vs,scalePow:Cx,scaleQuantile:lN,scaleQuantize:uN,scaleRadial:oN,scaleSequential:gN,scaleSequentialLog:bN,scaleSequentialPow:Bx,scaleSequentialQuantile:SN,scaleSequentialSqrt:eZ,scaleSequentialSymlog:xN,scaleSqrt:DQ,scaleSymlog:iN,scaleThreshold:sN,scaleTime:ZW,scaleUtc:JW,tickFormat:tN},Symbol.toStringTag,{value:"Module"}));var nZ=vu;function rZ(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],o=t(i);if(o!=null&&(l===void 0?o===o&&!nZ(o):n(o,l)))var l=o,u=i}return u}var Hp=rZ;function aZ(e,t){return e>t}var EN=aZ,iZ=Hp,oZ=EN,lZ=Au;function uZ(e){return e&&e.length?iZ(e,lZ,oZ):void 0}var sZ=uZ;const qp=Be(sZ);function cZ(e,t){return e<t}var _N=cZ,fZ=Hp,dZ=_N,hZ=Au;function pZ(e){return e&&e.length?fZ(e,hZ,dZ):void 0}var yZ=pZ;const Fp=Be(yZ);var mZ=Z0,vZ=hi,gZ=DM,bZ=vn;function xZ(e,t){var n=bZ(e)?mZ:gZ;return n(e,vZ(t))}var SZ=xZ,OZ=$M,wZ=SZ;function AZ(e,t){return OZ(wZ(e,t),1)}var EZ=AZ;const _Z=Be(EZ);var TZ=px;function jZ(e,t){return TZ(e,t)}var CZ=jZ;const Gp=Be(CZ);var Tu=1e9,MZ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ix,nt=!0,er="[DecimalError] ",Zi=er+"Invalid argument: ",zx=er+"Exponent out of range: ",ju=Math.floor,ji=Math.pow,NZ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_n,Ct=1e7,Xe=7,TN=9007199254740991,ch=ju(TN/Xe),Z={};Z.absoluteValue=Z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Z.comparedTo=Z.cmp=function(e){var t,n,r,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};Z.decimalPlaces=Z.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Xe;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Z.dividedBy=Z.div=function(e){return ia(this,new this.constructor(e))};Z.dividedToIntegerBy=Z.idiv=function(e){var t=this,n=t.constructor;return Ue(ia(t,new n(e),0,1),n.precision)};Z.equals=Z.eq=function(e){return!this.cmp(e)};Z.exponent=function(){return gt(this)};Z.greaterThan=Z.gt=function(e){return this.cmp(e)>0};Z.greaterThanOrEqualTo=Z.gte=function(e){return this.cmp(e)>=0};Z.isInteger=Z.isint=function(){return this.e>this.d.length-2};Z.isNegative=Z.isneg=function(){return this.s<0};Z.isPositive=Z.ispos=function(){return this.s>0};Z.isZero=function(){return this.s===0};Z.lessThan=Z.lt=function(e){return this.cmp(e)<0};Z.lessThanOrEqualTo=Z.lte=function(e){return this.cmp(e)<1};Z.logarithm=Z.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(_n))throw Error(er+"NaN");if(n.s<1)throw Error(er+(n.s?"NaN":"-Infinity"));return n.eq(_n)?new r(0):(nt=!1,t=ia(Zs(n,i),Zs(e,i),i),nt=!0,Ue(t,a))};Z.minus=Z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MN(t,e):jN(t,(e.s=-e.s,e))};Z.modulo=Z.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(er+"NaN");return n.s?(nt=!1,t=ia(n,e,0,1).times(e),nt=!0,n.minus(t)):Ue(new r(n),a)};Z.naturalExponential=Z.exp=function(){return CN(this)};Z.naturalLogarithm=Z.ln=function(){return Zs(this)};Z.negated=Z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Z.plus=Z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?jN(t,e):MN(t,(e.s=-e.s,e))};Z.precision=Z.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Zi+e);if(t=gt(a)+1,r=a.d.length-1,n=r*Xe+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Z.squareRoot=Z.sqrt=function(){var e,t,n,r,a,i,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(er+"NaN")}for(e=gt(l),nt=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=Or(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=ju((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 u(t)):r=new u(a.toString()),n=u.precision,a=o=n+3;;)if(i=r,r=i.plus(ia(l,i,o+2)).times(.5),Or(i.d).slice(0,o)===(t=Or(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Ue(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if(t!="9999")break;o+=4}return nt=!0,Ue(r,n)};Z.times=Z.mul=function(e){var t,n,r,a,i,o,l,u,s,f=this,c=f.constructor,d=f.d,h=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,u=d.length,s=h.length,u<s&&(i=d,d=h,h=i,o=u,u=s,s=o),i=[],o=u+s,r=o;r--;)i.push(0);for(r=s;--r>=0;){for(t=0,a=u+r;a>r;)l=i[a]+h[r]*d[a-r-1]+t,i[a--]=l%Ct|0,t=l/Ct|0;i[a]=(i[a]+t)%Ct|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,nt?Ue(e,c.precision):e};Z.toDecimalPlaces=Z.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(_r(e,0,Tu),t===void 0?t=r.rounding:_r(t,0,8),Ue(n,e+gt(n)+1,t))};Z.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=co(r,!0):(_r(e,0,Tu),t===void 0?t=a.rounding:_r(t,0,8),r=Ue(new a(r),e+1,t),n=co(r,!0,e+1)),n};Z.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?co(a):(_r(e,0,Tu),t===void 0?t=i.rounding:_r(t,0,8),r=Ue(new i(a),e+gt(a)+1,t),n=co(r.abs(),!1,e+gt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};Z.toInteger=Z.toint=function(){var e=this,t=e.constructor;return Ue(new t(e),gt(e)+1,t.rounding)};Z.toNumber=function(){return+this};Z.toPower=Z.pow=function(e){var t,n,r,a,i,o,l=this,u=l.constructor,s=12,f=+(e=new u(e));if(!e.s)return new u(_n);if(l=new u(l),!l.s){if(e.s<1)throw Error(er+"Infinity");return l}if(l.eq(_n))return l;if(r=u.precision,e.eq(_n))return Ue(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=l.s,o){if((n=f<0?-f:f)<=TN){for(a=new u(_n),t=Math.ceil(r/Xe+4),nt=!1;n%2&&(a=a.times(l),vA(a.d,t)),n=ju(n/2),n!==0;)l=l.times(l),vA(l.d,t);return nt=!0,e.s<0?new u(_n).div(a):Ue(a,r)}}else if(i<0)throw Error(er+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,nt=!1,a=e.times(Zs(l,r+s)),nt=!0,a=CN(a),a.s=i,a};Z.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=gt(a),r=co(a,n<=i.toExpNeg||n>=i.toExpPos)):(_r(e,1,Tu),t===void 0?t=i.rounding:_r(t,0,8),a=Ue(new i(a),e,t),n=gt(a),r=co(a,e<=n||n<=i.toExpNeg,e)),r};Z.toSignificantDigits=Z.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(_r(e,1,Tu),t===void 0?t=r.rounding:_r(t,0,8)),Ue(new r(n),e,t)};Z.toString=Z.valueOf=Z.val=Z.toJSON=Z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=gt(e),n=e.constructor;return co(e,t<=n.toExpNeg||t>=n.toExpPos)};function jN(e,t){var n,r,a,i,o,l,u,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),nt?Ue(t,c):t;if(u=e.d,s=t.d,o=e.e,a=t.e,u=u.slice(),i=o-a,i){for(i<0?(r=u,i=-i,l=s.length):(r=s,a=o,l=u.length),o=Math.ceil(c/Xe),l=o>l?o+1:l+1,i>l&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(l=u.length,i=s.length,l-i<0&&(i=l,r=s,s=u,u=r),n=0;i;)n=(u[--i]=u[i]+s[i]+n)/Ct|0,u[i]%=Ct;for(n&&(u.unshift(n),++a),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=a,nt?Ue(t,c):t}function _r(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Zi+e)}function Or(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)r=e[t]+"",n=Xe-r.length,n&&(i+=ja(n)),i+=r;o=e[t],r=o+"",n=Xe-r.length,n&&(i+=ja(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var ia=function(){function e(r,a){var i,o=0,l=r.length;for(r=r.slice();l--;)i=r[l]*a+o,r[l]=i%Ct|0,o=i/Ct|0;return o&&r.unshift(o),r}function t(r,a,i,o){var l,u;if(i!=o)u=i>o?1:-1;else for(l=u=0;l<i;l++)if(r[l]!=a[l]){u=r[l]>a[l]?1:-1;break}return u}function n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]<a[i]?1:0,r[i]=o*Ct+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,o){var l,u,s,f,c,d,h,b,v,m,p,y,x,w,S,O,A,E,T=r.constructor,C=r.s==a.s?1:-1,D=r.d,R=a.d;if(!r.s)return new T(r);if(!a.s)throw Error(er+"Division by zero");for(u=r.e-a.e,A=R.length,S=D.length,h=new T(C),b=h.d=[],s=0;R[s]==(D[s]||0);)++s;if(R[s]>(D[s]||0)&&--u,i==null?y=i=T.precision:o?y=i+(gt(r)-gt(a))+1:y=i,y<0)return new T(0);if(y=y/Xe+2|0,s=0,A==1)for(f=0,R=R[0],y++;(s<S||f)&&y--;s++)x=f*Ct+(D[s]||0),b[s]=x/R|0,f=x%R|0;else{for(f=Ct/(R[0]+1)|0,f>1&&(R=e(R,f),D=e(D,f),A=R.length,S=D.length),w=A,v=D.slice(0,A),m=v.length;m<A;)v[m++]=0;E=R.slice(),E.unshift(0),O=R[0],R[1]>=Ct/2&&++O;do f=0,l=t(R,v,A,m),l<0?(p=v[0],A!=m&&(p=p*Ct+(v[1]||0)),f=p/O|0,f>1?(f>=Ct&&(f=Ct-1),c=e(R,f),d=c.length,m=v.length,l=t(c,v,d,m),l==1&&(f--,n(c,A<d?E:R,d))):(f==0&&(l=f=1),c=R.slice()),d=c.length,d<m&&c.unshift(0),n(v,c,m),l==-1&&(m=v.length,l=t(R,v,A,m),l<1&&(f++,n(v,A<m?E:R,m))),m=v.length):l===0&&(f++,v=[0]),b[s++]=f,l&&v[0]?v[m++]=D[w]||0:(v=[D[w]],m=1);while((w++<S||v[0]!==void 0)&&y--)}return b[0]||b.shift(),h.e=u,Ue(h,o?i+gt(h)+1:i)}}();function CN(e,t){var n,r,a,i,o,l,u=0,s=0,f=e.constructor,c=f.precision;if(gt(e)>16)throw Error(zx+gt(e));if(!e.s)return new f(_n);for(nt=!1,l=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(r=Math.log(ji(2,s))/Math.LN10*2+5|0,l+=r,n=a=i=new f(_n),f.precision=l;;){if(a=Ue(a.times(e),l),n=n.times(++u),o=i.plus(ia(a,n,l)),Or(o.d).slice(0,l)===Or(i.d).slice(0,l)){for(;s--;)i=Ue(i.times(i),l);return f.precision=c,t==null?(nt=!0,Ue(i,c)):i}i=o}}function gt(e){for(var t=e.e*Xe,n=e.d[0];n>=10;n/=10)t++;return t}function Om(e,t,n){if(t>e.LN10.sd())throw nt=!0,n&&(e.precision=n),Error(er+"LN10 precision limit exceeded");return Ue(new e(e.LN10),t)}function ja(e){for(var t="";e--;)t+="0";return t}function Zs(e,t){var n,r,a,i,o,l,u,s,f,c=1,d=10,h=e,b=h.d,v=h.constructor,m=v.precision;if(h.s<1)throw Error(er+(h.s?"NaN":"-Infinity"));if(h.eq(_n))return new v(0);if(t==null?(nt=!1,s=m):s=t,h.eq(10))return t==null&&(nt=!0),Om(v,s);if(s+=d,v.precision=s,n=Or(b),r=n.charAt(0),i=gt(h),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=Or(h.d),r=n.charAt(0),c++;i=gt(h),r>1?(h=new v("0."+n),i++):h=new v(r+"."+n.slice(1))}else return u=Om(v,s+2,m).times(i+""),h=Zs(new v(r+"."+n.slice(1)),s-d).plus(u),v.precision=m,t==null?(nt=!0,Ue(h,m)):h;for(l=o=h=ia(h.minus(_n),h.plus(_n),s),f=Ue(h.times(h),s),a=3;;){if(o=Ue(o.times(f),s),u=l.plus(ia(o,new v(a),s)),Or(u.d).slice(0,s)===Or(l.d).slice(0,s))return l=l.times(2),i!==0&&(l=l.plus(Om(v,s+2,m).times(i+""))),l=ia(l,new v(c),s),v.precision=m,t==null?(nt=!0,Ue(l,m)):l;l=u,a+=2}}function mA(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=ju(n/Xe),e.d=[],r=(n+1)%Xe,n<0&&(r+=Xe),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Xe;r<a;)e.d.push(+t.slice(r,r+=Xe));t=t.slice(r),r=Xe-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),nt&&(e.e>ch||e.e<-ch))throw Error(zx+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ue(e,t,n){var r,a,i,o,l,u,s,f,c=e.d;for(o=1,i=c[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=Xe,a=t,s=c[f=0];else{if(f=Math.ceil((r+1)/Xe),i=c.length,f>=i)return e;for(s=i=c[f],o=1;i>=10;i/=10)o++;r%=Xe,a=r-Xe+o}if(n!==void 0&&(i=ji(10,o-a-1),l=s/i%10|0,u=t<0||c[f+1]!==void 0||s%i,u=n<4?(l||u)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||u||n==6&&(r>0?a>0?s/ji(10,o-a):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return u?(i=gt(e),c.length=1,t=t-i-1,c[0]=ji(10,(Xe-t%Xe)%Xe),e.e=ju(-t/Xe)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,i=1,f--):(c.length=f+1,i=ji(10,Xe-r),c[f]=a>0?(s/ji(10,o-a)%ji(10,a)|0)*i:0),u)for(;;)if(f==0){(c[0]+=i)==Ct&&(c[0]=1,++e.e);break}else{if(c[f]+=i,c[f]!=Ct)break;c[f--]=0,i=1}for(r=c.length;c[--r]===0;)c.pop();if(nt&&(e.e>ch||e.e<-ch))throw Error(zx+gt(e));return e}function MN(e,t){var n,r,a,i,o,l,u,s,f,c,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),nt?Ue(t,h):t;if(u=e.d,c=t.d,r=t.e,s=e.e,u=u.slice(),o=s-r,o){for(f=o<0,f?(n=u,o=-o,l=c.length):(n=c,r=s,l=u.length),a=Math.max(Math.ceil(h/Xe),l)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=u.length,l=c.length,f=a<l,f&&(l=a),a=0;a<l;a++)if(u[a]!=c[a]){f=u[a]<c[a];break}o=0}for(f&&(n=u,u=c,c=n,t.s=-t.s),l=u.length,a=c.length-l;a>0;--a)u[l++]=0;for(a=c.length;a>o;){if(u[--a]<c[a]){for(i=a;i&&u[--i]===0;)u[i]=Ct-1;--u[i],u[a]+=Ct}u[a]-=c[a]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(t.d=u,t.e=r,nt?Ue(t,h):t):new d(0)}function co(e,t,n){var r,a=gt(e),i=Or(e.d),o=i.length;return t?(n&&(r=n-o)>0?i=i.charAt(0)+"."+i.slice(1)+ja(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+ja(-a-1)+i,n&&(r=n-o)>0&&(i+=ja(r))):a>=o?(i+=ja(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+ja(r))):((r=a+1)<o&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(i+="."),i+=ja(r))),e.s<0?"-"+i:i}function vA(e,t){if(e.length>t)return e.length=t,!0}function NN(e){var t,n,r;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Zi+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return mA(o,i.toString())}else if(typeof i!="string")throw Error(Zi+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,NZ.test(i))mA(o,i);else throw Error(Zi+i)}if(a.prototype=Z,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=NN,a.config=a.set=RZ,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 RZ(e){if(!e||typeof e!="object")throw Error(er+"Object expected");var t,n,r,a=["precision",1,Tu,"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(ju(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Zi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Zi+n+": "+r);return this}var Ix=NN(MZ);_n=new Ix(1);const ke=Ix;function $Z(e){return LZ(e)||kZ(e)||DZ(e)||PZ()}function PZ(){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 DZ(e,t){if(e){if(typeof e=="string")return Ng(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 Ng(e,t)}}function kZ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function LZ(e){if(Array.isArray(e))return Ng(e)}function Ng(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 BZ=function(t){return t},RN={},$N=function(t){return t===RN},gA=function(t){return function n(){return arguments.length===0||arguments.length===1&&$N(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},UZ=function e(t,n){return t===1?n:gA(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=a.filter(function(l){return l!==RN}).length;return o>=t?n.apply(void 0,a):e(t-o,gA(function(){for(var l=arguments.length,u=new Array(l),s=0;s<l;s++)u[s]=arguments[s];var f=a.map(function(c){return $N(c)?u.shift():c});return n.apply(void 0,$Z(f).concat(u))}))})},Kp=function(t){return UZ(t.length,t)},Rg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},zZ=Kp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),IZ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return BZ;var a=n.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(l,u){return u(l)},i.apply(void 0,arguments))}},$g=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},PN=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n&&i.every(function(l,u){return l===n[u]})||(n=i,r=t.apply(void 0,i)),r}};function HZ(e){var t;return e===0?t=1:t=Math.floor(new ke(e).abs().log(10).toNumber())+1,t}function qZ(e,t,n){for(var r=new ke(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var FZ=Kp(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),GZ=Kp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),KZ=Kp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Yp={rangeStep:qZ,getDigitCount:HZ,interpolateNumber:FZ,uninterpolateNumber:GZ,uninterpolateTruncation:KZ};function Pg(e){return XZ(e)||VZ(e)||DN(e)||YZ()}function YZ(){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 VZ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function XZ(e){if(Array.isArray(e))return Dg(e)}function Js(e,t){return ZZ(e)||WZ(e,t)||DN(e,t)||QZ()}function QZ(){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 DN(e,t){if(e){if(typeof e=="string")return Dg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dg(e,t)}}function Dg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WZ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(u){a=!0,i=u}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function ZZ(e){if(Array.isArray(e))return e}function kN(e){var t=Js(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function LN(e,t,n){if(e.lte(0))return new ke(0);var r=Yp.getDigitCount(e.toNumber()),a=new ke(10).pow(r),i=e.div(a),o=r!==1?.05:.1,l=new ke(Math.ceil(i.div(o).toNumber())).add(n).mul(o),u=l.mul(a);return t?u:new ke(Math.ceil(u))}function JZ(e,t,n){var r=1,a=new ke(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new ke(10).pow(Yp.getDigitCount(e)-1),a=new ke(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new ke(Math.floor(e)))}else e===0?a=new ke(Math.floor((t-1)/2)):n||(a=new ke(Math.floor(e)));var o=Math.floor((t-1)/2),l=IZ(zZ(function(u){return a.add(new ke(u-o).mul(r)).toNumber()}),Rg);return l(0,t)}function BN(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 ke(0),tickMin:new ke(0),tickMax:new ke(0)};var i=LN(new ke(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new ke(0):(o=new ke(e).add(t).div(2),o=o.sub(new ke(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),u=Math.ceil(new ke(t).sub(o).div(i).toNumber()),s=l+u+1;return s>n?BN(e,t,n,r,a+1):(s<n&&(u=t>0?u+(n-s):u,l=t>0?l:l+(n-s)),{step:i,tickMin:o.sub(new ke(l).mul(i)),tickMax:o.add(new ke(u).mul(i))})}function eJ(e){var t=Js(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=kN([n,r]),u=Js(l,2),s=u[0],f=u[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(Pg(Rg(0,a-1).map(function(){return 1/0}))):[].concat(Pg(Rg(0,a-1).map(function(){return-1/0})),[f]);return n>r?$g(c):c}if(s===f)return JZ(s,a,i);var d=BN(s,f,o,i),h=d.step,b=d.tickMin,v=d.tickMax,m=Yp.rangeStep(b,v.add(new ke(.1).mul(h)),h);return n>r?$g(m):m}function tJ(e,t){var n=Js(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=kN([r,a]),l=Js(o,2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[r,a];if(u===s)return[u];var f=Math.max(t,2),c=LN(new ke(s).sub(u).div(f-1),i,0),d=[].concat(Pg(Yp.rangeStep(new ke(u),new ke(s).sub(new ke(.99).mul(c)),c)),[s]);return r>a?$g(d):d}var nJ=PN(eJ),rJ=PN(tJ),aJ="Invariant failed";function fo(e,t){throw new Error(aJ)}var iJ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 fh(){return fh=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},fh.apply(this,arguments)}function oJ(e,t){return cJ(e)||sJ(e,t)||uJ(e,t)||lJ()}function lJ(){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 uJ(e,t){if(e){if(typeof e=="string")return bA(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 bA(e,t)}}function bA(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=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function cJ(e){if(Array.isArray(e))return e}function fJ(e,t){if(e==null)return{};var n=dJ(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 dJ(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,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,IN(r.key),r)}}function yJ(e,t,n){return t&&pJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mJ(e,t,n){return t=dh(t),vJ(e,UN()?Reflect.construct(t,n||[],dh(e).constructor):t.apply(e,n))}function vJ(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 gJ(e)}function gJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UN=function(){return!!e})()}function dh(e){return dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dh(e)}function bJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kg(e,t)}function zN(e,t,n){return t=IN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e){var t=xJ(e,"string");return Il(t)=="symbol"?t:t+""}function xJ(e,t){if(Il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vp=function(e){function t(){return hJ(this,t),mJ(this,t,arguments)}return bJ(t,e),yJ(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,o=r.width,l=r.dataKey,u=r.data,s=r.dataPointFormatter,f=r.xAxis,c=r.yAxis,d=fJ(r,iJ),h=ie(d,!1);this.props.direction==="x"&&f.type!=="number"&&fo();var b=u.map(function(v){var m=s(v,l),p=m.x,y=m.y,x=m.value,w=m.errorVal;if(!w)return null;var S=[],O,A;if(Array.isArray(w)){var E=oJ(w,2);O=E[0],A=E[1]}else O=A=w;if(i==="vertical"){var T=f.scale,C=y+a,D=C+o,R=C-o,U=T(x-O),k=T(x+A);S.push({x1:k,y1:D,x2:k,y2:R}),S.push({x1:U,y1:C,x2:k,y2:C}),S.push({x1:U,y1:D,x2:U,y2:R})}else if(i==="horizontal"){var P=c.scale,$=p+a,L=$-o,z=$+o,q=P(x-O),F=P(x+A);S.push({x1:L,y1:F,x2:z,y2:F}),S.push({x1:$,y1:q,x2:$,y2:F}),S.push({x1:L,y1:q,x2:z,y2:q})}return N.createElement(Ne,fh({className:"recharts-errorBar",key:"bar-".concat(S.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},h),S.map(function(W){return N.createElement("line",fh({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return N.createElement(Ne,{className:"recharts-errorBars"},b)}}])}(N.Component);zN(Vp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});zN(Vp,"displayName","ErrorBar");function ec(e){"@babel/helpers - typeof";return ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ec(e)}function xA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xA(Object(n),!0).forEach(function(r){SJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SJ(e,t,n){return t=OJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OJ(e){var t=wJ(e,"string");return ec(t)=="symbol"?t:t+""}function wJ(e,t){if(ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HN=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=Sn(n,al);if(!o)return null;var l=al.defaultProps,u=l!==void 0?bi(bi({},l),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:i==="children"?s=(r||[]).reduce(function(f,c){var d=c.item,h=c.props,b=h.sectors||h.data||[];return f.concat(b.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(r||[]).map(function(f){var c=f.item,d=c.type.defaultProps,h=d!==void 0?bi(bi({},d),c.props):{},b=h.dataKey,v=h.name,m=h.legendType,p=h.hide;return{inactive:p,dataKey:b,type:u.iconType||m||"square",color:Hx(c),value:v||b,payload:h}}),bi(bi(bi({},u),al.getWithHeight(o,a)),{},{payload:s,item:o})};function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}function SA(e){return TJ(e)||_J(e)||EJ(e)||AJ()}function AJ(){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 EJ(e,t){if(e){if(typeof e=="string")return Lg(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 Lg(e,t)}}function _J(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TJ(e){if(Array.isArray(e))return Lg(e)}function Lg(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 OA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OA(Object(n),!0).forEach(function(r){ol(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ol(e,t,n){return t=jJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jJ(e){var t=CJ(e,"string");return tc(t)=="symbol"?t:t+""}function CJ(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yt(e,t,n){return ye(e)||ye(t)?n:Et(t)?Rn(e,t,n):le(t)?t(e):n}function gs(e,t,n,r){var a=_Z(e,function(l){return Yt(l,t)});if(n==="number"){var i=a.filter(function(l){return K(l)||parseFloat(l)});return i.length?[Fp(i),qp(i)]:[1/0,-1/0]}var o=r?a.filter(function(l){return!ye(l)}):a;return o.map(function(l){return Et(l)||l instanceof Date?l:""})}var MJ=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var u=i.range,s=0;s<l;s++){var f=s>0?a[s-1].coordinate:a[l-1].coordinate,c=a[s].coordinate,d=s>=l-1?a[0].coordinate:a[s+1].coordinate,h=void 0;if(en(c-f)!==en(d-c)){var b=[];if(en(d-c)===en(u[1]-u[0])){h=d;var v=c+u[1]-u[0];b[0]=Math.min(v,(v+f)/2),b[1]=Math.max(v,(v+f)/2)}else{h=f;var m=d+u[1]-u[0];b[0]=Math.min(c,(m+c)/2),b[1]=Math.max(c,(m+c)/2)}var p=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>p[0]&&t<=p[1]||t>=b[0]&&t<=b[1]){o=a[s].index;break}}else{var y=Math.min(f,d),x=Math.max(f,d);if(t>(y+c)/2&&t<=(x+c)/2){o=a[s].index;break}}}else for(var w=0;w<l;w++)if(w===0&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<l-1&&t>(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===l-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){o=r[w].index;break}return o},Hx=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,u;switch(a){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},NJ=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},l=Object.keys(i),u=0,s=l.length;u<s;u++)for(var f=i[l[u]].stackGroups,c=Object.keys(f),d=0,h=c.length;d<h;d++){var b=f[c[d]],v=b.items,m=b.cateAxisId,p=v.filter(function(A){return ra(A.type).indexOf("Bar")>=0});if(p&&p.length){var y=p[0].type.defaultProps,x=y!==void 0?ot(ot({},y),p[0].props):p[0].props,w=x.barSize,S=x[m];o[S]||(o[S]=[]);var O=ye(w)?n:w;o[S].push({item:p[0],stackList:p.slice(1),barSize:ye(O)?void 0:tn(O,r,0)})}}return o},RJ=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,u=o.length;if(u<1)return null;var s=tn(n,a,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=a/u,b=o.reduce(function(w,S){return w+S.barSize||0},0);b+=(u-1)*s,b>=a&&(b-=(u-1)*s,s=0),b>=a&&h>0&&(d=!0,h*=.9,b=u*h);var v=(a-b)/2>>0,m={offset:v-s,size:0};f=o.reduce(function(w,S){var O={item:S.item,position:{offset:m.offset+m.size+s,size:d?h:S.barSize}},A=[].concat(SA(w),[O]);return m=A[A.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){A.push({item:E,position:m})}),A},c)}else{var p=tn(r,a,0,!0);a-2*p-(u-1)*s<=0&&(s=0);var y=(a-2*p-(u-1)*s)/u;y>1&&(y>>=0);var x=l===+l?Math.min(y,l):y;f=o.reduce(function(w,S,O){var A=[].concat(SA(w),[{item:S.item,position:{offset:p+(y+s)*O+(y-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){A.push({item:E,position:A[A.length-1].position})}),A},c)}return f},$J=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,u=o-(l.left||0)-(l.right||0),s=HN({children:i,legendWidth:u});if(s){var f=a||{},c=f.width,d=f.height,h=s.align,b=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&b==="middle")&&h!=="center"&&K(t[h]))return ot(ot({},t),{},ol({},h,t[h]+(c||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&b!=="middle"&&K(t[b]))return ot(ot({},t),{},ol({},b,t[b]+(d||0)))}return t},PJ=function(t,n,r){return ye(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},qN=function(t,n,r,a,i){var o=n.props.children,l=Zn(o,Vp).filter(function(s){return PJ(a,i,s.props.direction)});if(l&&l.length){var u=l.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=Yt(f,r);if(ye(c))return s;var d=Array.isArray(c)?[Fp(c),qp(c)]:[c,c],h=u.reduce(function(b,v){var m=Yt(f,v,0),p=d[0]-Math.abs(Array.isArray(m)?m[0]:m),y=d[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(p,b[0]),Math.max(y,b[1])]},[1/0,-1/0]);return[Math.min(h[0],s[0]),Math.max(h[1],s[1])]},[1/0,-1/0])}return null},DJ=function(t,n,r,a,i){var o=n.map(function(l){return qN(t,l,r,i,a)}).filter(function(l){return!ye(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},FN=function(t,n,r,a,i){var o=n.map(function(u){var s=u.props.dataKey;return r==="number"&&s&&qN(t,u,s,a)||gs(t,s,r,i)});if(r==="number")return o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,s){for(var f=0,c=s.length;f<c;f++)l[s[f]]||(l[s[f]]=!0,u.push(s[f]));return u},[])},GN=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Di=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,u=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,s=(n||r)&&o==="category"&&a.bandwidth?a.bandwidth()/u:0;if(s=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?en(l[0]-l[1])*2*s:s,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=i?i.indexOf(c):c;return{coordinate:a(d)+s,value:c,offset:s}});return f.filter(function(c){return!Gc(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:a(c)+s,value:c,index:d,offset:s}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(c){return{coordinate:a(c)+s,value:c,offset:s}}):a.domain().map(function(c,d){return{coordinate:a(c)+s,value:i?i[c]:c,index:d,offset:s}})},wm=new WeakMap,jf=function(t,n){if(typeof n!="function")return t;wm.has(t)||wm.set(t,new WeakMap);var r=wm.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},KN=function(t,n,r){var a=t.scale,i=t.type,o=t.layout,l=t.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Ys(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:oh(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:vs(),realScaleType:"point"}:i==="category"?{scale:Ys(),realScaleType:"band"}:{scale:oh(),realScaleType:"linear"};if(lo(a)){var u="scale".concat(jp(a));return{scale:(yA[u]||vs)(),realScaleType:yA[u]?u:"point"}}return le(a)?{scale:a}:{scale:vs(),realScaleType:"point"}},wA=1e-4,YN=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])-wA,o=Math.max(a[0],a[1])+wA,l=t(n[0]),u=t(n[r-1]);(l<i||l>o||u<i||u>o)&&t.domain([n[0],n[r-1]])}},kJ=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},LJ=function(t,n){if(!n||n.length!==2||!K(n[0])||!K(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!K(t[0])||t[0]<r)&&(i[0]=r),(!K(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},BJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0,l=0;l<n;++l){var u=Gc(t[l][r][1])?t[l][r][0]:t[l][r][1];u>=0?(t[l][r][0]=i,t[l][r][1]=i+u,i=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+u,o=t[l][r][1])}},UJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0;o<n;++o){var l=Gc(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=i,t[o][r][1]=i+l,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},zJ={sign:BJ,expand:aH,none:$l,silhouette:iH,wiggle:oH,positive:UJ},IJ=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=zJ[r],o=rH().keys(a).value(function(l,u){return+Yt(l,u,0)}).order(ug).offset(i);return o(t)},HJ=function(t,n,r,a,i,o){if(!t)return null;var l=o?n.reverse():n,u={},s=l.reduce(function(c,d){var h,b=(h=d.type)!==null&&h!==void 0&&h.defaultProps?ot(ot({},d.type.defaultProps),d.props):d.props,v=b.stackId,m=b.hide;if(m)return c;var p=b[r],y=c[p]||{hasStack:!1,stackGroups:{}};if(Et(v)){var x=y.stackGroups[v]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(d),y.hasStack=!0,y.stackGroups[v]=x}else y.stackGroups[Kc("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[d]};return ot(ot({},c),{},ol({},p,y))},u),f={};return Object.keys(s).reduce(function(c,d){var h=s[d];if(h.hasStack){var b={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,m){var p=h.stackGroups[m];return ot(ot({},v),{},ol({},m,{numericAxisId:r,cateAxisId:a,items:p.items,stackedData:IJ(t,p.items,i)}))},b)}return ot(ot({},c),{},ol({},d,h))},f)},VN=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,o=n.originalDomain,l=n.allowDecimals,u=r||n.scale;if(u!=="auto"&&u!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=nJ(s,i,l);return t.domain([Fp(f),qp(f)]),{niceTicks:f}}if(i&&a==="number"){var c=t.domain(),d=rJ(c,i,l);return{niceTicks:d}}return null},AA=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+a:null;var u=Yt(o,n.dataKey,n.domain[l]);return ye(u)?null:n.scale(u)-i/2+a},qJ=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]},FJ=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Et(i)){var o=n[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},GJ=function(t){return t.reduce(function(n,r){return[Fp(r.concat([n[0]]).filter(K)),qp(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},XN=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,u=l.reduce(function(s,f){var c=GJ(f.slice(n,r+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],a[0]),Math.max(u[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},EA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_A=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Bg=function(t,n,r){if(le(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(K(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(EA.test(t[0])){var i=+EA.exec(t[0])[1];a[0]=n[0]-i}else le(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(K(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(_A.test(t[1])){var o=+_A.exec(t[1])[1];a[1]=n[1]+o}else le(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},hh=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=mx(n,function(c){return c.coordinate}),o=1/0,l=1,u=i.length;l<u;l++){var s=i[l],f=i[l-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},TA=function(t,n,r){return!t||!t.length||Gp(t,Rn(r,"type.defaultProps.domain"))?n:t},QN=function(t,n){var r=t.type.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,o=r.unit,l=r.formatter,u=r.tooltipType,s=r.chartType,f=r.hide;return ot(ot({},ie(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:Hx(t),value:Yt(n,a),type:u,payload:n,chartType:s,hide:f})};function nc(e){"@babel/helpers - typeof";return nc=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},nc(e)}function jA(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 Hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(n),!0).forEach(function(r){WN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WN(e,t,n){return t=KJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KJ(e){var t=YJ(e,"string");return nc(t)=="symbol"?t:t+""}function YJ(e,t){if(nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VJ(e,t){return ZJ(e)||WJ(e,t)||QJ(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 QJ(e,t){if(e){if(typeof e=="string")return CA(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 CA(e,t)}}function CA(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,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function ZJ(e){if(Array.isArray(e))return e}var ph=Math.PI/180,JJ=function(t){return t*180/Math.PI},Ge=function(t,n,r,a){return{x:t+Math.cos(-ph*a)*r,y:n+Math.sin(-ph*a)*r}},ZN=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},eee=function(t,n,r,a,i){var o=t.width,l=t.height,u=t.startAngle,s=t.endAngle,f=tn(t.cx,o,o/2),c=tn(t.cy,l,l/2),d=ZN(o,l,r),h=tn(t.innerRadius,d,0),b=tn(t.outerRadius,d,d*.8),v=Object.keys(n);return v.reduce(function(m,p){var y=n[p],x=y.domain,w=y.reversed,S;if(ye(y.range))a==="angleAxis"?S=[u,s]:a==="radiusAxis"&&(S=[h,b]),w&&(S=[S[1],S[0]]);else{S=y.range;var O=S,A=VJ(O,2);u=A[0],s=A[1]}var E=KN(y,i),T=E.realScaleType,C=E.scale;C.domain(x).range(S),YN(C);var D=VN(C,Hr(Hr({},y),{},{realScaleType:T})),R=Hr(Hr(Hr({},y),D),{},{range:S,radius:b,realScaleType:T,scale:C,cx:f,cy:c,innerRadius:h,outerRadius:b,startAngle:u,endAngle:s});return Hr(Hr({},m),{},WN({},p,R))},{})},tee=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-o,2))},nee=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=tee({x:r,y:a},{x:i,y:o});if(l<=0)return{radius:l};var u=(r-i)/l,s=Math.acos(u);return a>o&&(s=2*Math.PI-s),{radius:l,angle:JJ(s),angleInRadian:s}},ree=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),o=Math.min(a,i);return{startAngle:n-o*360,endAngle:r-o*360}},aee=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),o=Math.floor(a/360),l=Math.min(i,o);return t+l*360},MA=function(t,n){var r=t.x,a=t.y,i=nee({x:r,y:a},n),o=i.radius,l=i.angle,u=n.innerRadius,s=n.outerRadius;if(o<u||o>s)return!1;if(o===0)return!0;var f=ree(n),c=f.startAngle,d=f.endAngle,h=l,b;if(c<=d){for(;h>d;)h-=360;for(;h<c;)h+=360;b=h>=c&&h<=d}else{for(;h>c;)h-=360;for(;h<d;)h+=360;b=h>=d&&h<=c}return b?Hr(Hr({},n),{},{radius:o,angle:aee(h,n)}):null},JN=function(t){return!_.isValidElement(t)&&!le(t)&&typeof t!="boolean"?t.className:""};function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}var iee=["offset"];function oee(e){return cee(e)||see(e)||uee(e)||lee()}function lee(){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 uee(e,t){if(e){if(typeof e=="string")return Ug(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 Ug(e,t)}}function see(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cee(e){if(Array.isArray(e))return Ug(e)}function Ug(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 fee(e,t){if(e==null)return{};var n=dee(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 dee(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 NA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NA(Object(n),!0).forEach(function(r){hee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hee(e,t,n){return t=pee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pee(e){var t=yee(e,"string");return rc(t)=="symbol"?t:t+""}function yee(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ac(){return ac=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},ac.apply(this,arguments)}var mee=function(t){var n=t.value,r=t.formatter,a=ye(t.children)?n:t.children;return le(r)?r(a):a},vee=function(t,n){var r=en(n-t),a=Math.min(Math.abs(n-t),360);return r*a},gee=function(t,n,r){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,u=i,s=u.cx,f=u.cy,c=u.innerRadius,d=u.outerRadius,h=u.startAngle,b=u.endAngle,v=u.clockWise,m=(c+d)/2,p=vee(h,b),y=p>=0?1:-1,x,w;a==="insideStart"?(x=h+y*o,w=v):a==="insideEnd"?(x=b-y*o,w=!v):a==="end"&&(x=b+y*o,w=v),w=p<=0?w:!w;var S=Ge(s,f,m,x),O=Ge(s,f,m,x+(w?1:-1)*359),A="M".concat(S.x,",").concat(S.y,`
    A`).concat(m,",").concat(m,",0,1,").concat(w?0:1,`,
    `).concat(O.x,",").concat(O.y),E=ye(t.id)?Kc("recharts-radial-line-"):t.id;return N.createElement("text",ac({},r,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",l)}),N.createElement("defs",null,N.createElement("path",{id:E,d:A})),N.createElement("textPath",{xlinkHref:"#".concat(E)},n))},bee=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,o=i.cx,l=i.cy,u=i.innerRadius,s=i.outerRadius,f=i.startAngle,c=i.endAngle,d=(f+c)/2;if(a==="outside"){var h=Ge(o,l,s+r,d),b=h.x,v=h.y;return{x:b,y:v,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var m=(u+s)/2,p=Ge(o,l,m,d),y=p.x,x=p.y;return{x:y,y:x,textAnchor:"middle",verticalAnchor:"middle"}},xee=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,o=n,l=o.x,u=o.y,s=o.width,f=o.height,c=f>=0?1:-1,d=c*a,h=c>0?"end":"start",b=c>0?"start":"end",v=s>=0?1:-1,m=v*a,p=v>0?"end":"start",y=v>0?"start":"end";if(i==="top"){var x={x:l+s/2,y:u-c*a,textAnchor:"middle",verticalAnchor:h};return St(St({},x),r?{height:Math.max(u-r.y,0),width:s}:{})}if(i==="bottom"){var w={x:l+s/2,y:u+f+d,textAnchor:"middle",verticalAnchor:b};return St(St({},w),r?{height:Math.max(r.y+r.height-(u+f),0),width:s}:{})}if(i==="left"){var S={x:l-m,y:u+f/2,textAnchor:p,verticalAnchor:"middle"};return St(St({},S),r?{width:Math.max(S.x-r.x,0),height:f}:{})}if(i==="right"){var O={x:l+s+m,y:u+f/2,textAnchor:y,verticalAnchor:"middle"};return St(St({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:f}:{})}var A=r?{width:s,height:f}:{};return i==="insideLeft"?St({x:l+m,y:u+f/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideRight"?St({x:l+s-m,y:u+f/2,textAnchor:p,verticalAnchor:"middle"},A):i==="insideTop"?St({x:l+s/2,y:u+d,textAnchor:"middle",verticalAnchor:b},A):i==="insideBottom"?St({x:l+s/2,y:u+f-d,textAnchor:"middle",verticalAnchor:h},A):i==="insideTopLeft"?St({x:l+m,y:u+d,textAnchor:y,verticalAnchor:b},A):i==="insideTopRight"?St({x:l+s-m,y:u+d,textAnchor:p,verticalAnchor:b},A):i==="insideBottomLeft"?St({x:l+m,y:u+f-d,textAnchor:y,verticalAnchor:h},A):i==="insideBottomRight"?St({x:l+s-m,y:u+f-d,textAnchor:p,verticalAnchor:h},A):gu(i)&&(K(i.x)||Ri(i.x))&&(K(i.y)||Ri(i.y))?St({x:l+tn(i.x,s),y:u+tn(i.y,f),textAnchor:"end",verticalAnchor:"end"},A):St({x:l+s/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},See=function(t){return"cx"in t&&K(t.cx)};function Rt(e){var t=e.offset,n=t===void 0?5:t,r=fee(e,iee),a=St({offset:n},r),i=a.viewBox,o=a.position,l=a.value,u=a.children,s=a.content,f=a.className,c=f===void 0?"":f,d=a.textBreakAll;if(!i||ye(l)&&ye(u)&&!_.isValidElement(s)&&!le(s))return null;if(_.isValidElement(s))return _.cloneElement(s,a);var h;if(le(s)){if(h=_.createElement(s,a),_.isValidElement(h))return h}else h=mee(a);var b=See(i),v=ie(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return gee(a,h,v);var m=b?bee(a):xee(a);return N.createElement(so,ac({className:pe("recharts-label",c)},v,m,{breakAll:d}),h)}Rt.displayName="Label";var eR=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,u=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,h=t.top,b=t.left,v=t.width,m=t.height,p=t.clockWise,y=t.labelViewBox;if(y)return y;if(K(v)&&K(m)){if(K(c)&&K(d))return{x:c,y:d,width:v,height:m};if(K(h)&&K(b))return{x:h,y:b,width:v,height:m}}return K(c)&&K(d)?{x:c,y:d,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:s||0,outerRadius:f||u||l||0,clockWise:p}:t.viewBox?t.viewBox:{}},Oee=function(t,n){return t?t===!0?N.createElement(Rt,{key:"label-implicit",viewBox:n}):Et(t)?N.createElement(Rt,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===Rt?_.cloneElement(t,{key:"label-implicit",viewBox:n}):N.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):le(t)?N.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):gu(t)?N.createElement(Rt,ac({viewBox:n},t,{key:"label-implicit"})):null:null},wee=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=eR(t),o=Zn(a,Rt).map(function(u,s){return _.cloneElement(u,{viewBox:n||i,key:"label-".concat(s)})});if(!r)return o;var l=Oee(t.label,n||i);return[l].concat(oee(o))};Rt.parseViewBox=eR;Rt.renderCallByParent=wee;function Aee(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Eee=Aee;const _ee=Be(Eee);function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}var Tee=["valueAccessor"],jee=["data","dataKey","clockWise","id","textBreakAll"];function Cee(e){return $ee(e)||Ree(e)||Nee(e)||Mee()}function Mee(){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 Nee(e,t){if(e){if(typeof e=="string")return zg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zg(e,t)}}function Ree(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ee(e){if(Array.isArray(e))return zg(e)}function zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yh(){return yh=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},yh.apply(this,arguments)}function RA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(n),!0).forEach(function(r){Pee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pee(e,t,n){return t=Dee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dee(e){var t=kee(e,"string");return ic(t)=="symbol"?t:t+""}function kee(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PA(e,t){if(e==null)return{};var n=Lee(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 Lee(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 Bee=function(t){return Array.isArray(t.value)?_ee(t.value):t.value};function ii(e){var t=e.valueAccessor,n=t===void 0?Bee:t,r=PA(e,Tee),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,u=r.textBreakAll,s=PA(r,jee);return!a||!a.length?null:N.createElement(Ne,{className:"recharts-label-list"},a.map(function(f,c){var d=ye(i)?n(f,c):Yt(f&&f.payload,i),h=ye(l)?{}:{id:"".concat(l,"-").concat(c)};return N.createElement(Rt,yh({},ie(f,!0),s,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:Rt.parseViewBox(ye(o)?f:$A($A({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}ii.displayName="LabelList";function Uee(e,t){return e?e===!0?N.createElement(ii,{key:"labelList-implicit",data:t}):N.isValidElement(e)||le(e)?N.createElement(ii,{key:"labelList-implicit",data:t,content:e}):gu(e)?N.createElement(ii,yh({data:t},e,{key:"labelList-implicit"})):null:null}function zee(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=Zn(r,ii).map(function(o,l){return _.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=Uee(e.label,t);return[i].concat(Cee(a))}ii.renderCallByParent=zee;function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ig.apply(this,arguments)}function DA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(n),!0).forEach(function(r){Iee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iee(e,t,n){return t=Hee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hee(e){var t=qee(e,"string");return oc(t)=="symbol"?t:t+""}function qee(e,t){if(oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fee=function(t,n){var r=en(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Cf=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,o=t.sign,l=t.isExternal,u=t.cornerRadius,s=t.cornerIsExternal,f=u*(l?1:-1)+a,c=Math.asin(u/f)/ph,d=s?i:i+o*c,h=Ge(n,r,f,d),b=Ge(n,r,a,d),v=s?i-o*c:i,m=Ge(n,r,f*Math.cos(c*ph),v);return{center:h,circleTangency:b,lineTangency:m,theta:c}},tR=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,u=Fee(o,l),s=o+u,f=Ge(n,r,i,o),c=Ge(n,r,i,s),d="M ".concat(f.x,",").concat(f.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(u)>180),",").concat(+(o>s),`,
    `).concat(c.x,",").concat(c.y,`
  `);if(a>0){var h=Ge(n,r,a,o),b=Ge(n,r,a,s);d+="L ".concat(b.x,",").concat(b.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(u)>180),",").concat(+(o<=s),`,
            `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},Gee=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=en(f-s),d=Cf({cx:n,cy:r,radius:i,angle:s,sign:c,cornerRadius:o,cornerIsExternal:u}),h=d.circleTangency,b=d.lineTangency,v=d.theta,m=Cf({cx:n,cy:r,radius:i,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:u}),p=m.circleTangency,y=m.lineTangency,x=m.theta,w=u?Math.abs(s-f):Math.abs(s-f)-v-x;if(w<0)return l?"M ".concat(b.x,",").concat(b.y,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):tR({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:s,endAngle:f});var S="M ".concat(b.x,",").concat(b.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
  `);if(a>0){var O=Cf({cx:n,cy:r,radius:a,angle:s,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),A=O.circleTangency,E=O.lineTangency,T=O.theta,C=Cf({cx:n,cy:r,radius:a,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),D=C.circleTangency,R=C.lineTangency,U=C.theta,k=u?Math.abs(s-f):Math.abs(s-f)-T-U;if(k<0&&o===0)return"".concat(S,"L").concat(n,",").concat(r,"Z");S+="L".concat(R.x,",").concat(R.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(D.x,",").concat(D.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(k>180),",").concat(+(c>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},Kee={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},nR=function(t){var n=kA(kA({},Kee),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,u=n.forceCornerRadius,s=n.cornerIsExternal,f=n.startAngle,c=n.endAngle,d=n.className;if(o<i||f===c)return null;var h=pe("recharts-sector",d),b=o-i,v=tn(l,b,0,!0),m;return v>0&&Math.abs(f-c)<360?m=Gee({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,b/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:f,endAngle:c}):m=tR({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:f,endAngle:c}),N.createElement("path",Ig({},ie(n,!0),{className:h,d:m,role:"img"}))};function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hg.apply(this,arguments)}function LA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function BA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(n),!0).forEach(function(r){Yee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yee(e,t,n){return t=Vee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vee(e){var t=Xee(e,"string");return lc(t)=="symbol"?t:t+""}function Xee(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UA={curveBasisClosed:KI,curveBasisOpen:YI,curveBasis:GI,curveBumpX:NI,curveBumpY:RI,curveLinearClosed:VI,curveLinear:Mp,curveMonotoneX:XI,curveMonotoneY:QI,curveNatural:WI,curveStep:ZI,curveStepAfter:eH,curveStepBefore:JI},Mf=function(t){return t.x===+t.x&&t.y===+t.y},Gu=function(t){return t.x},Ku=function(t){return t.y},Qee=function(t,n){if(le(t))return t;var r="curve".concat(jp(t));return(r==="curveMonotone"||r==="curveBump")&&n?UA["".concat(r).concat(n==="vertical"?"Y":"X")]:UA[r]||Mp},Wee=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,o=t.baseLine,l=t.layout,u=t.connectNulls,s=u===void 0?!1:u,f=Qee(r,l),c=s?i.filter(function(v){return Mf(v)}):i,d;if(Array.isArray(o)){var h=s?o.filter(function(v){return Mf(v)}):o,b=c.map(function(v,m){return BA(BA({},v),{},{base:h[m]})});return l==="vertical"?d=xf().y(Ku).x1(Gu).x0(function(v){return v.base.x}):d=xf().x(Gu).y1(Ku).y0(function(v){return v.base.y}),d.defined(Mf).curve(f),d(b)}return l==="vertical"&&K(o)?d=xf().y(Ku).x1(Gu).x0(o):K(o)?d=xf().x(Gu).y1(Ku).y0(o):d=J2().x(Gu).y(Ku),d.defined(Mf).curve(f),d(c)},qg=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var o=r&&r.length?Wee(t):a;return _.createElement("path",Hg({},ie(t,!1),Ud(t),{className:pe("recharts-curve",n),d:o,ref:i}))},rR={exports:{}},Zee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Jee=Zee,ete=Jee;function aR(){}function iR(){}iR.resetWarningCache=aR;var tte=function(){function e(r,a,i,o,l,u){if(u!==ete){var s=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 s.name="Invariant Violation",s}}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:iR,resetWarningCache:aR};return n.PropTypes=n,n};rR.exports=tte();var nte=rR.exports;const _e=Be(nte),{getOwnPropertyNames:rte,getOwnPropertySymbols:ate}=Object,{hasOwnProperty:ite}=Object.prototype;function Am(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Nf(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,o=i.get(n),l=i.get(r);if(o&&l)return o===r&&l===n;i.set(n,r),i.set(r,n);const u=e(n,r,a);return i.delete(n),i.delete(r),u}}function ote(e){return e!=null?e[Symbol.toStringTag]:void 0}function zA(e){return rte(e).concat(ate(e))}const lte=Object.hasOwn||((e,t)=>ite.call(e,t));function So(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const ute="__v",ste="__o",cte="_owner",{getOwnPropertyDescriptor:IA,keys:HA}=Object;function fte(e,t){return e.byteLength===t.byteLength&&mh(new Uint8Array(e),new Uint8Array(t))}function dte(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 hte(e,t){return e.byteLength===t.byteLength&&mh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function pte(e,t){return So(e.getTime(),t.getTime())}function yte(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function mte(e,t){return e===t}function qA(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let o,l,u=0;for(;(o=i.next())&&!o.done;){const s=t.entries();let f=!1,c=0;for(;(l=s.next())&&!l.done;){if(a[c]){c++;continue}const d=o.value,h=l.value;if(n.equals(d[0],h[0],u,c,e,t,n)&&n.equals(d[1],h[1],d[0],h[0],e,t,n)){f=a[c]=!0;break}c++}if(!f)return!1;u++}return!0}const vte=So;function gte(e,t,n){const r=HA(e);let a=r.length;if(HA(t).length!==a)return!1;for(;a-- >0;)if(!oR(e,t,n,r[a]))return!1;return!0}function Yu(e,t,n){const r=zA(e);let a=r.length;if(zA(t).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=r[a],!oR(e,t,n,i)||(o=IA(e,i),l=IA(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function bte(e,t){return So(e.valueOf(),t.valueOf())}function xte(e,t){return e.source===t.source&&e.flags===t.flags}function FA(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let o,l;for(;(o=i.next())&&!o.done;){const u=t.values();let s=!1,f=0;for(;(l=u.next())&&!l.done;){if(!a[f]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){s=a[f]=!0;break}f++}if(!s)return!1}return!0}function mh(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 Ste(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 oR(e,t,n,r){return(r===cte||r===ste||r===ute)&&(e.$$typeof||t.$$typeof)?!0:lte(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Ote="[object ArrayBuffer]",wte="[object Arguments]",Ate="[object Boolean]",Ete="[object DataView]",_te="[object Date]",Tte="[object Error]",jte="[object Map]",Cte="[object Number]",Mte="[object Object]",Nte="[object RegExp]",Rte="[object Set]",$te="[object String]",Pte={"[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},Dte="[object URL]",kte=Object.prototype.toString;function Lte({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:b}){return function(m,p,y){if(m===p)return!0;if(m==null||p==null)return!1;const x=typeof m;if(x!==typeof p)return!1;if(x!=="object")return x==="number"?l(m,p,y):x==="function"?i(m,p,y):!1;const w=m.constructor;if(w!==p.constructor)return!1;if(w===Object)return u(m,p,y);if(Array.isArray(m))return t(m,p,y);if(w===Date)return r(m,p,y);if(w===RegExp)return f(m,p,y);if(w===Map)return o(m,p,y);if(w===Set)return c(m,p,y);const S=kte.call(m);if(S===_te)return r(m,p,y);if(S===Nte)return f(m,p,y);if(S===jte)return o(m,p,y);if(S===Rte)return c(m,p,y);if(S===Mte)return typeof m.then!="function"&&typeof p.then!="function"&&u(m,p,y);if(S===Dte)return h(m,p,y);if(S===Tte)return a(m,p,y);if(S===wte)return u(m,p,y);if(Pte[S])return d(m,p,y);if(S===Ote)return e(m,p,y);if(S===Ete)return n(m,p,y);if(S===Ate||S===Cte||S===$te)return s(m,p,y);if(b){let O=b[S];if(!O){const A=ote(m);A&&(O=b[A])}if(O)return O(m,p,y)}return!1}}function Bte({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:fte,areArraysEqual:n?Yu:dte,areDataViewsEqual:hte,areDatesEqual:pte,areErrorsEqual:yte,areFunctionsEqual:mte,areMapsEqual:n?Am(qA,Yu):qA,areNumbersEqual:vte,areObjectsEqual:n?Yu:gte,arePrimitiveWrappersEqual:bte,areRegExpsEqual:xte,areSetsEqual:n?Am(FA,Yu):FA,areTypedArraysEqual:n?Am(mh,Yu):mh,areUrlsEqual:Ste,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Nf(r.areArraysEqual),i=Nf(r.areMapsEqual),o=Nf(r.areObjectsEqual),l=Nf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return r}function Ute(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function zte({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(l,u){const{cache:s=e?new WeakMap:void 0,meta:f}=n();return t(l,u,{cache:s,equals:r,meta:f,strict:a})};if(e)return function(l,u){return t(l,u,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(l,u){return t(l,u,i)}}const Ite=mi();mi({strict:!0});mi({circular:!0});mi({circular:!0,strict:!0});mi({createInternalComparator:()=>So});mi({strict:!0,createInternalComparator:()=>So});mi({circular:!0,createInternalComparator:()=>So});mi({circular:!0,createInternalComparator:()=>So,strict:!0});function mi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=Bte(e),o=Lte(i),l=n?n(o):Ute(o);return zte({circular:t,comparator:o,createState:r,equals:l,strict:a})}function Hte(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function GA(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):Hte(a)};requestAnimationFrame(r)}function Fg(e){"@babel/helpers - typeof";return Fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fg(e)}function qte(e){return Yte(e)||Kte(e)||Gte(e)||Fte()}function Fte(){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 Gte(e,t){if(e){if(typeof e=="string")return KA(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 KA(e,t)}}function KA(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 Kte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yte(e){if(Array.isArray(e))return e}function Vte(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var o=i,l=qte(o),u=l[0],s=l.slice(1);if(typeof u=="number"){GA(a.bind(null,s),u);return}a(u),GA(a.bind(null,s));return}Fg(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 uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}function YA(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 VA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(n),!0).forEach(function(r){lR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lR(e,t,n){return t=Xte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xte(e){var t=Qte(e,"string");return uc(t)==="symbol"?t:String(t)}function Qte(e,t){if(uc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wte=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},Zte=function(t){return t},Jte=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},bs=function(t,n){return Object.keys(n).reduce(function(r,a){return VA(VA({},r),{},lR({},a,t(a,n[a])))},{})},XA=function(t,n,r){return t.map(function(a){return"".concat(Jte(a)," ").concat(n,"ms ").concat(r)}).join(",")};function ene(e,t){return rne(e)||nne(e,t)||uR(e,t)||tne()}function tne(){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 nne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function rne(e){if(Array.isArray(e))return e}function ane(e){return lne(e)||one(e)||uR(e)||ine()}function ine(){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 uR(e,t){if(e){if(typeof e=="string")return Gg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gg(e,t)}}function one(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lne(e){if(Array.isArray(e))return Gg(e)}function Gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vh=1e-4,sR=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},cR=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},QA=function(t,n){return function(r){var a=sR(t,n);return cR(a,r)}},une=function(t,n){return function(r){var a=sR(t,n),i=[].concat(ane(a.map(function(o,l){return o*l}).slice(1)),[0]);return cR(i,r)}},WA=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,o=1,l=1;break;case"ease":a=.25,i=.1,o=.25,l=1;break;case"ease-in":a=.42,i=0,o=1,l=1;break;case"ease-out":a=.42,i=0,o=.58,l=1;break;case"ease-in-out":a=0,i=0,o=.58,l=1;break;default:{var u=n[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var s=u[1].split(")")[0].split(",").map(function(m){return parseFloat(m)}),f=ene(s,4);a=f[0],i=f[1],o=f[2],l=f[3]}}}var c=QA(a,o),d=QA(i,l),h=une(a,o),b=function(p){return p>1?1:p<0?0:p},v=function(p){for(var y=p>1?1:p,x=y,w=0;w<8;++w){var S=c(x)-y,O=h(x);if(Math.abs(S-y)<vh||O<vh)return d(x);x=b(x-S/O)}return d(x)};return v.isStepper=!1,v},sne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,o=t.dt,l=o===void 0?17:o,u=function(f,c,d){var h=-(f-c)*r,b=d*i,v=d+(h-b)*l/1e3,m=d*l/1e3+f;return Math.abs(m-c)<vh&&Math.abs(v)<vh?[c,0]:[m,v]};return u.isStepper=!0,u.dt=l,u},cne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return WA(a);case"spring":return sne();default:if(a.split("(")[0]==="cubic-bezier")return WA(a)}return typeof a=="function"?a:null};function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(e)}function ZA(e){return hne(e)||dne(e)||fR(e)||fne()}function fne(){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 dne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hne(e){if(Array.isArray(e))return Yg(e)}function JA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JA(Object(n),!0).forEach(function(r){Kg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kg(e,t,n){return t=pne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pne(e){var t=yne(e,"string");return sc(t)==="symbol"?t:String(t)}function yne(e,t){if(sc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mne(e,t){return bne(e)||gne(e,t)||fR(e,t)||vne()}function vne(){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 fR(e,t){if(e){if(typeof e=="string")return Yg(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 Yg(e,t)}}function Yg(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 gne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function bne(e){if(Array.isArray(e))return e}var gh=function(t,n,r){return t+(n-t)*r},Vg=function(t){var n=t.from,r=t.to;return n!==r},xne=function e(t,n,r){var a=bs(function(i,o){if(Vg(o)){var l=t(o.from,o.to,o.velocity),u=mne(l,2),s=u[0],f=u[1];return kt(kt({},o),{},{from:s,velocity:f})}return o},n);return r<1?bs(function(i,o){return Vg(o)?kt(kt({},o),{},{velocity:gh(o.velocity,a[i].velocity,r),from:gh(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const Sne=function(e,t,n,r,a){var i=Wte(e,t),o=i.reduce(function(m,p){return kt(kt({},m),{},Kg({},p,[e[p],t[p]]))},{}),l=i.reduce(function(m,p){return kt(kt({},m),{},Kg({},p,{from:e[p],velocity:0,to:t[p]}))},{}),u=-1,s,f,c=function(){return null},d=function(){return bs(function(p,y){return y.from},l)},h=function(){return!Object.values(l).filter(Vg).length},b=function(p){s||(s=p);var y=p-s,x=y/n.dt;l=xne(n,l,x),a(kt(kt(kt({},e),t),d())),s=p,h()||(u=requestAnimationFrame(c))},v=function(p){f||(f=p);var y=(p-f)/r,x=bs(function(S,O){return gh.apply(void 0,ZA(O).concat([n(y)]))},o);if(a(kt(kt(kt({},e),t),x)),y<1)u=requestAnimationFrame(c);else{var w=bs(function(S,O){return gh.apply(void 0,ZA(O).concat([n(1)]))},o);a(kt(kt(kt({},e),t),w))}};return c=n.isStepper?b:v,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(u)}}};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)}var One=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function wne(e,t){if(e==null)return{};var n=Ane(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 Ane(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 Em(e){return jne(e)||Tne(e)||_ne(e)||Ene()}function Ene(){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 _ne(e,t){if(e){if(typeof e=="string")return Xg(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 Xg(e,t)}}function Tne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jne(e){if(Array.isArray(e))return Xg(e)}function Xg(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 eE(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 ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eE(Object(n),!0).forEach(function(r){ts(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ts(e,t,n){return t=dR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dR(r.key),r)}}function Nne(e,t,n){return t&&Mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dR(e){var t=Rne(e,"string");return Hl(t)==="symbol"?t:String(t)}function Rne(e,t){if(Hl(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function $ne(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&&Qg(e,t)}function Qg(e,t){return Qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Qg(e,t)}function Pne(e){var t=Dne();return function(){var r=bh(e),a;if(t){var i=bh(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Wg(this,a)}}function Wg(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 Zg(e)}function Zg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dne(){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 bh(e){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bh(e)}var ma=function(e){$ne(n,e);var t=Pne(n);function n(r,a){var i;Cne(this,n),i=t.call(this,r,a);var o=i.props,l=o.isActive,u=o.attributeName,s=o.from,f=o.to,c=o.steps,d=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(Zg(i)),i.changeStyle=i.changeStyle.bind(Zg(i)),!l||h<=0)return i.state={style:{}},typeof d=="function"&&(i.state={style:f}),Wg(i);if(c&&c.length)i.state={style:c[0].style};else if(s){if(typeof d=="function")return i.state={style:s},Wg(i);i.state={style:u?ts({},u,s):s}}else i.state={style:{}};return i}return Nne(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,l=i.canBegin,u=i.attributeName,s=i.shouldReAnimate,f=i.to,c=i.from,d=this.state.style;if(l){if(!o){var h={style:u?ts({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(h);return}if(!(Ite(a.to,f)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=b||s?c:a.to;if(this.state&&d){var m={style:u?ts({},u,v):v};(u&&d[u]!==v||!u&&d!==v)&&this.setState(m)}this.runAnimation(ar(ar({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,u=a.duration,s=a.easing,f=a.begin,c=a.onAnimationEnd,d=a.onAnimationStart,h=Sne(o,l,cne(s),u,this.changeStyle),b=function(){i.stopJSAnimation=h()};this.manager.start([d,f,b,u,c])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,u=a.onAnimationStart,s=o[0],f=s.style,c=s.duration,d=c===void 0?0:c,h=function(v,m,p){if(p===0)return v;var y=m.duration,x=m.easing,w=x===void 0?"ease":x,S=m.style,O=m.properties,A=m.onAnimationEnd,E=p>0?o[p-1]:m,T=O||Object.keys(S);if(typeof w=="function"||w==="spring")return[].concat(Em(v),[i.runJSAnimation.bind(i,{from:E.style,to:S,duration:y,easing:w}),y]);var C=XA(T,y,w),D=ar(ar(ar({},E.style),S),{},{transition:C});return[].concat(Em(v),[D,y,A]).filter(Zte)};return this.manager.start([u].concat(Em(o.reduce(h,[f,Math.max(d,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Vte());var i=a.begin,o=a.duration,l=a.attributeName,u=a.to,s=a.easing,f=a.onAnimationStart,c=a.onAnimationEnd,d=a.steps,h=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof s=="function"||typeof h=="function"||s==="spring"){this.runJSAnimation(a);return}if(d.length>1){this.runStepAnimation(a);return}var v=l?ts({},l,u):u,m=XA(Object.keys(v),o,s);b.start([f,i,ar(ar({},v),{},{transition:m}),o,c])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var u=wne(a,One),s=_.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!l||s===0||o<=0)return i;var c=function(h){var b=h.props,v=b.style,m=v===void 0?{}:v,p=b.className,y=_.cloneElement(h,ar(ar({},u),{},{style:ar(ar({},m),f),className:p}));return y};return s===1?c(_.Children.only(i)):N.createElement("div",null,_.Children.map(i,function(d){return c(d)}))}}]),n}(_.PureComponent);ma.displayName="Animate";ma.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ma.propTypes={from:_e.oneOfType([_e.object,_e.string]),to:_e.oneOfType([_e.object,_e.string]),attributeName:_e.string,duration:_e.number,begin:_e.number,easing:_e.oneOfType([_e.string,_e.func]),steps:_e.arrayOf(_e.shape({duration:_e.number.isRequired,style:_e.object.isRequired,easing:_e.oneOfType([_e.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),_e.func]),properties:_e.arrayOf("string"),onAnimationEnd:_e.func})),children:_e.oneOfType([_e.node,_e.func]),isActive:_e.bool,canBegin:_e.bool,onAnimationEnd:_e.func,shouldReAnimate:_e.bool,onAnimationStart:_e.func,onAnimationReStart:_e.func};function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function xh(){return xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xh.apply(this,arguments)}function kne(e,t){return zne(e)||Une(e,t)||Bne(e,t)||Lne()}function Lne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bne(e,t){if(e){if(typeof e=="string")return tE(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 tE(e,t)}}function tE(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 Une(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function zne(e){if(Array.isArray(e))return e}function nE(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 rE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nE(Object(n),!0).forEach(function(r){Ine(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ine(e,t,n){return t=Hne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hne(e){var t=qne(e,"string");return cc(t)=="symbol"?t:t+""}function qne(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aE=function(t,n,r,a,i){var o=Math.min(Math.abs(r)/2,Math.abs(a)/2),l=a>=0?1:-1,u=r>=0?1:-1,s=a>=0&&r>=0||a<0&&r<0?1:0,f;if(o>0&&i instanceof Array){for(var c=[0,0,0,0],d=0,h=4;d<h;d++)c[d]=i[d]>o?o:i[d];f="M".concat(t,",").concat(n+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+u*c[0],",").concat(n)),f+="L ".concat(t+r-u*c[1],",").concat(n),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`,
        `).concat(t+r,",").concat(n+l*c[1])),f+="L ".concat(t+r,",").concat(n+a-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`,
        `).concat(t+r-u*c[2],",").concat(n+a)),f+="L ".concat(t+u*c[3],",").concat(n+a),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`,
        `).concat(t,",").concat(n+a-l*c[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);f="M ".concat(t,",").concat(n+l*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(s,",").concat(t+u*b,",").concat(n,`
            L `).concat(t+r-u*b,",").concat(n,`
            A `).concat(b,",").concat(b,",0,0,").concat(s,",").concat(t+r,",").concat(n+l*b,`
            L `).concat(t+r,",").concat(n+a-l*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(s,",").concat(t+r-u*b,",").concat(n+a,`
            L `).concat(t+u*b,",").concat(n+a,`
            A `).concat(b,",").concat(b,",0,0,").concat(s,",").concat(t,",").concat(n+a-l*b," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},Fne=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,o=n.y,l=n.width,u=n.height;if(Math.abs(l)>0&&Math.abs(u)>0){var s=Math.min(i,i+l),f=Math.max(i,i+l),c=Math.min(o,o+u),d=Math.max(o,o+u);return r>=s&&r<=f&&a>=c&&a<=d}return!1},Gne={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qx=function(t){var n=rE(rE({},Gne),t),r=_.useRef(),a=_.useState(-1),i=kne(a,2),o=i[0],l=i[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&l(w)}catch{}},[]);var u=n.x,s=n.y,f=n.width,c=n.height,d=n.radius,h=n.className,b=n.animationEasing,v=n.animationDuration,m=n.animationBegin,p=n.isAnimationActive,y=n.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var x=pe("recharts-rectangle",h);return y?N.createElement(ma,{canBegin:o>0,from:{width:f,height:c,x:u,y:s},to:{width:f,height:c,x:u,y:s},duration:v,animationEasing:b,isActive:y},function(w){var S=w.width,O=w.height,A=w.x,E=w.y;return N.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,isActive:p,easing:b},N.createElement("path",xh({},ie(n,!0),{className:x,d:aE(A,E,S,O,d),ref:r})))}):N.createElement("path",xh({},ie(n,!0),{className:x,d:aE(u,s,f,c,d)}))},Kne=["points","className","baseLinePoints","connectNulls"];function Ko(){return Ko=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},Ko.apply(this,arguments)}function Yne(e,t){if(e==null)return{};var n=Vne(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 Vne(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 iE(e){return Zne(e)||Wne(e)||Qne(e)||Xne()}function Xne(){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 Qne(e,t){if(e){if(typeof e=="string")return Jg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jg(e,t)}}function Wne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zne(e){if(Array.isArray(e))return Jg(e)}function Jg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oE=function(t){return t&&t.x===+t.x&&t.y===+t.y},Jne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){oE(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),oE(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},xs=function(t,n){var r=Jne(t);n&&(r=[r.reduce(function(i,o){return[].concat(iE(i),iE(o))},[])]);var a=r.map(function(i){return i.reduce(function(o,l,u){return"".concat(o).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},ere=function(t,n,r){var a=xs(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(xs(n.reverse(),r).slice(1))},tre=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,o=Yne(t,Kne);if(!n||!n.length)return null;var l=pe("recharts-polygon",r);if(a&&a.length){var u=o.stroke&&o.stroke!=="none",s=ere(n,a,i);return N.createElement("g",{className:l},N.createElement("path",Ko({},ie(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),u?N.createElement("path",Ko({},ie(o,!0),{fill:"none",d:xs(n,i)})):null,u?N.createElement("path",Ko({},ie(o,!0),{fill:"none",d:xs(a,i)})):null)}var f=xs(n,i);return N.createElement("path",Ko({},ie(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:l,d:f}))};function eb(){return eb=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},eb.apply(this,arguments)}var Fx=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,o=pe("recharts-dot",i);return n===+n&&r===+r&&a===+a?_.createElement("circle",eb({},ie(t,!1),Ud(t),{className:o,cx:n,cy:r,r:a})):null};function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}var nre=["x","y","top","left","width","height","className"];function tb(){return tb=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},tb.apply(this,arguments)}function lE(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 rre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lE(Object(n),!0).forEach(function(r){are(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function are(e,t,n){return t=ire(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ire(e){var t=ore(e,"string");return fc(t)=="symbol"?t:t+""}function ore(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lre(e,t){if(e==null)return{};var n=ure(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 ure(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 sre=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},cre=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,l=o===void 0?0:o,u=t.left,s=u===void 0?0:u,f=t.width,c=f===void 0?0:f,d=t.height,h=d===void 0?0:d,b=t.className,v=lre(t,nre),m=rre({x:r,y:i,top:l,left:s,width:c,height:h},v);return!K(r)||!K(i)||!K(c)||!K(h)||!K(l)||!K(s)?null:N.createElement("path",tb({},ie(m,!0),{className:pe("recharts-cross",b),d:sre(r,i,c,h,l,s)}))},fre=Hp,dre=EN,hre=hi;function pre(e,t){return e&&e.length?fre(e,hre(t),dre):void 0}var yre=pre;const mre=Be(yre);var vre=Hp,gre=hi,bre=_N;function xre(e,t){return e&&e.length?vre(e,gre(t),bre):void 0}var Sre=xre;const Ore=Be(Sre);var wre=["cx","cy","angle","ticks","axisLine"],Are=["ticks","tick","angle","tickFormatter","stroke"];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 Ss(){return Ss=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},Ss.apply(this,arguments)}function uE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uE(Object(n),!0).forEach(function(r){Xp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sE(e,t){if(e==null)return{};var n=Ere(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 Ere(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 _re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pR(r.key),r)}}function Tre(e,t,n){return t&&cE(e.prototype,t),n&&cE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jre(e,t,n){return t=Sh(t),Cre(e,hR()?Reflect.construct(t,n||[],Sh(e).constructor):t.apply(e,n))}function Cre(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 Mre(e)}function Mre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hR=function(){return!!e})()}function Sh(e){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sh(e)}function Nre(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&&nb(e,t)}function nb(e,t){return nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},nb(e,t)}function Xp(e,t,n){return t=pR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pR(e){var t=Rre(e,"string");return ql(t)=="symbol"?t:t+""}function Rre(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(t==="string"?String:Number)(e)}var Qp=function(e){function t(){return _re(this,t),jre(this,t,arguments)}return Nre(t,e),Tre(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,o=i.angle,l=i.cx,u=i.cy;return Ge(l,u,a,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.angle,l=r.ticks,u=mre(l,function(f){return f.coordinate||0}),s=Ore(l,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:s.coordinate||0,outerRadius:u.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.angle,l=r.ticks,u=r.axisLine,s=sE(r,wre),f=l.reduce(function(b,v){return[Math.min(b[0],v.coordinate),Math.max(b[1],v.coordinate)]},[1/0,-1/0]),c=Ge(a,i,f[0],o),d=Ge(a,i,f[1],o),h=xi(xi(xi({},ie(s,!1)),{},{fill:"none"},ie(u,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return N.createElement("line",Ss({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,o=a.tick,l=a.angle,u=a.tickFormatter,s=a.stroke,f=sE(a,Are),c=this.getTickTextAnchor(),d=ie(f,!1),h=ie(o,!1),b=i.map(function(v,m){var p=r.getTickValueCoord(v),y=xi(xi(xi(xi({textAnchor:c,transform:"rotate(".concat(90-l,", ").concat(p.x,", ").concat(p.y,")")},d),{},{stroke:"none",fill:s},h),{},{index:m},p),{},{payload:v});return N.createElement(Ne,Ss({className:pe("recharts-polar-radius-axis-tick",JN(o)),key:"tick-".concat(v.coordinate)},uo(r.props,v,m)),t.renderTickItem(o,y,u?u(v.value,m):v.value))});return N.createElement(Ne,{className:"recharts-polar-radius-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,o=r.tick;return!a||!a.length?null:N.createElement(Ne,{className:pe("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Rt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var o;return N.isValidElement(r)?o=N.cloneElement(r,a):le(r)?o=r(a):o=N.createElement(so,Ss({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(_.PureComponent);Xp(Qp,"displayName","PolarRadiusAxis");Xp(Qp,"axisType","radiusAxis");Xp(Qp,"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 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 Ci(){return Ci=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},Ci.apply(this,arguments)}function fE(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 Si(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fE(Object(n),!0).forEach(function(r){Wp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dE(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,mR(r.key),r)}}function Pre(e,t,n){return t&&dE(e.prototype,t),n&&dE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dre(e,t,n){return t=Oh(t),kre(e,yR()?Reflect.construct(t,n||[],Oh(e).constructor):t.apply(e,n))}function kre(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 Lre(e)}function Lre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yR=function(){return!!e})()}function Oh(e){return Oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Oh(e)}function Bre(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&&rb(e,t)}function rb(e,t){return rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},rb(e,t)}function Wp(e,t,n){return t=mR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mR(e){var t=Ure(e,"string");return Fl(t)=="symbol"?t:t+""}function Ure(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 zre=Math.PI/180,hE=1e-5,Zp=function(e){function t(){return $re(this,t),Dre(this,t,arguments)}return Bre(t,e),Pre(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,o=a.cy,l=a.radius,u=a.orientation,s=a.tickSize,f=s||8,c=Ge(i,o,l,r.coordinate),d=Ge(i,o,l+(u==="inner"?-1:1)*f,r.coordinate);return{x1:c.x,y1:c.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*zre),o;return i>hE?o=a==="outer"?"start":"end":i<-hE?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.radius,l=r.axisLine,u=r.axisLineType,s=Si(Si({},ie(this.props,!1)),{},{fill:"none"},ie(l,!1));if(u==="circle")return N.createElement(Fx,Ci({className:"recharts-polar-angle-axis-line"},s,{cx:a,cy:i,r:o}));var f=this.props.ticks,c=f.map(function(d){return Ge(a,i,o,d.coordinate)});return N.createElement(tre,Ci({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,o=a.tick,l=a.tickLine,u=a.tickFormatter,s=a.stroke,f=ie(this.props,!1),c=ie(o,!1),d=Si(Si({},f),{},{fill:"none"},ie(l,!1)),h=i.map(function(b,v){var m=r.getTickLineCoord(b),p=r.getTickTextAnchor(b),y=Si(Si(Si({textAnchor:p},f),{},{stroke:"none",fill:s},c),{},{index:v,payload:b,x:m.x2,y:m.y2});return N.createElement(Ne,Ci({className:pe("recharts-polar-angle-axis-tick",JN(o)),key:"tick-".concat(b.coordinate)},uo(r.props,b,v)),l&&N.createElement("line",Ci({className:"recharts-polar-angle-axis-tick-line"},d,m)),o&&t.renderTickItem(o,y,u?u(b.value,v):b.value))});return N.createElement(Ne,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,o=r.axisLine;return i<=0||!a||!a.length?null:N.createElement(Ne,{className:pe("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var o;return N.isValidElement(r)?o=N.cloneElement(r,a):le(r)?o=r(a):o=N.createElement(so,Ci({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(_.PureComponent);Wp(Zp,"displayName","PolarAngleAxis");Wp(Zp,"axisType","angleAxis");Wp(Zp,"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 Ire=wM,Hre=Ire(Object.getPrototypeOf,Object),qre=Hre,Fre=ga,Gre=qre,Kre=ba,Yre="[object Object]",Vre=Function.prototype,Xre=Object.prototype,vR=Vre.toString,Qre=Xre.hasOwnProperty,Wre=vR.call(Object);function Zre(e){if(!Kre(e)||Fre(e)!=Yre)return!1;var t=Gre(e);if(t===null)return!0;var n=Qre.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vR.call(n)==Wre}var Jre=Zre;const eae=Be(Jre);var tae=ga,nae=ba,rae="[object Boolean]";function aae(e){return e===!0||e===!1||nae(e)&&tae(e)==rae}var iae=aae;const oae=Be(iae);function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function wh(){return wh=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},wh.apply(this,arguments)}function lae(e,t){return fae(e)||cae(e,t)||sae(e,t)||uae()}function uae(){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 sae(e,t){if(e){if(typeof e=="string")return pE(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 pE(e,t)}}function pE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function fae(e){if(Array.isArray(e))return e}function yE(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 mE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yE(Object(n),!0).forEach(function(r){dae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dae(e,t,n){return t=hae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hae(e){var t=pae(e,"string");return dc(t)=="symbol"?t:t+""}function pae(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vE=function(t,n,r,a,i){var o=r-a,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+i),l+="L ".concat(t+r-o/2-a,",").concat(n+i),l+="L ".concat(t,",").concat(n," Z"),l},yae={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mae=function(t){var n=mE(mE({},yae),t),r=_.useRef(),a=_.useState(-1),i=lae(a,2),o=i[0],l=i[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var u=n.x,s=n.y,f=n.upperWidth,c=n.lowerWidth,d=n.height,h=n.className,b=n.animationEasing,v=n.animationDuration,m=n.animationBegin,p=n.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var y=pe("recharts-trapezoid",h);return p?N.createElement(ma,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:u,y:s},duration:v,animationEasing:b,isActive:p},function(x){var w=x.upperWidth,S=x.lowerWidth,O=x.height,A=x.x,E=x.y;return N.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,easing:b},N.createElement("path",wh({},ie(n,!0),{className:y,d:vE(A,E,w,S,O),ref:r})))}):N.createElement("g",null,N.createElement("path",wh({},ie(n,!0),{className:y,d:vE(u,s,f,c,d)})))},vae=["option","shapeType","propTransformer","activeClassName","isActive"];function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function gae(e,t){if(e==null)return{};var n=bae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gE(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 Ah(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gE(Object(n),!0).forEach(function(r){xae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xae(e,t,n){return t=Sae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sae(e){var t=Oae(e,"string");return hc(t)=="symbol"?t:t+""}function Oae(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wae(e,t){return Ah(Ah({},t),e)}function Aae(e,t){return e==="symbols"}function bE(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return N.createElement(qx,n);case"trapezoid":return N.createElement(mae,n);case"sector":return N.createElement(nR,n);case"symbols":if(Aae(t))return N.createElement(lx,n);break;default:return null}}function Eae(e){return _.isValidElement(e)?e.props:e}function gR(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?wae:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,u=gae(e,vae),s;if(_.isValidElement(t))s=_.cloneElement(t,Ah(Ah({},u),Eae(t)));else if(le(t))s=t(u);else if(eae(t)&&!oae(t)){var f=a(t,u);s=N.createElement(bE,{shapeType:n,elementProps:f})}else{var c=u;s=N.createElement(bE,{shapeType:n,elementProps:c})}return l?N.createElement(Ne,{className:o},s):s}function Jp(e,t){return t!=null&&"trapezoids"in e.props}function ey(e,t){return t!=null&&"sectors"in e.props}function pc(e,t){return t!=null&&"points"in e.props}function _ae(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 Tae(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function jae(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Cae(e,t){var n;return Jp(e,t)?n=_ae:ey(e,t)?n=Tae:pc(e,t)&&(n=jae),n}function Mae(e,t){var n;return Jp(e,t)?n="trapezoids":ey(e,t)?n="sectors":pc(e,t)&&(n="points"),n}function Nae(e,t){if(Jp(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(ey(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 pc(e,t)?t.payload:{}}function Rae(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Mae(n,t),i=Nae(n,t),o=r.filter(function(u,s){var f=Gp(i,u),c=n.props[a].filter(function(b){var v=Cae(n,t);return v(b,t)}),d=n.props[a].indexOf(c[c.length-1]),h=s===d;return f&&h}),l=r.indexOf(o[o.length-1]);return l}var td;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 Yo(){return Yo=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},Yo.apply(this,arguments)}function xE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xE(Object(n),!0).forEach(function(r){Vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xR(r.key),r)}}function Pae(e,t,n){return t&&SE(e.prototype,t),n&&SE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dae(e,t,n){return t=Eh(t),kae(e,bR()?Reflect.construct(t,n||[],Eh(e).constructor):t.apply(e,n))}function kae(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 Lae(e)}function Lae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bR=function(){return!!e})()}function Eh(e){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(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&&ab(e,t)}function ab(e,t){return ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ab(e,t)}function Vn(e,t,n){return t=xR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xR(e){var t=Uae(e,"string");return Gl(t)=="symbol"?t:t+""}function Uae(e,t){if(Gl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sa=function(e){function t(n){var r;return $ae(this,t),r=Dae(this,t,[n]),Vn(r,"pieRef",null),Vn(r,"sectorRefs",[]),Vn(r,"id",Kc("recharts-pie-")),Vn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),le(a)&&a()}),Vn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),le(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Bae(t,e),Pae(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,l=i.labelLine,u=i.dataKey,s=i.valueKey,f=ie(this.props,!1),c=ie(o,!1),d=ie(l,!1),h=o&&o.offsetRadius||20,b=r.map(function(v,m){var p=(v.startAngle+v.endAngle)/2,y=Ge(v.cx,v.cy,v.outerRadius+h,p),x=He(He(He(He({},f),v),{},{stroke:"none"},c),{},{index:m,textAnchor:t.getTextAnchor(y.x,v.cx)},y),w=He(He(He(He({},f),v),{},{fill:"none",stroke:v.fill},d),{},{index:m,points:[Ge(v.cx,v.cy,v.outerRadius,p),y]}),S=u;return ye(u)&&ye(s)?S="value":ye(u)&&(S=s),N.createElement(Ne,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(m)},l&&t.renderLabelLineItem(l,w,"line"),t.renderLabelItem(o,x,Yt(v,S)))});return N.createElement(Ne,{className:"recharts-pie-labels"},b)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,o=i.activeShape,l=i.blendStroke,u=i.inactiveShape;return r.map(function(s,f){if((s==null?void 0:s.startAngle)===0&&(s==null?void 0:s.endAngle)===0&&r.length!==1)return null;var c=a.isActiveIndex(f),d=u&&a.hasActiveIndex()?u:null,h=c?o:d,b=He(He({},s),{},{stroke:l?s.fill:s.stroke,tabIndex:-1});return N.createElement(Ne,Yo({ref:function(m){m&&!a.sectorRefs.includes(m)&&a.sectorRefs.push(m)},tabIndex:-1,className:"recharts-pie-sector"},uo(a.props,s,f),{key:"sector-".concat(s==null?void 0:s.startAngle,"-").concat(s==null?void 0:s.endAngle,"-").concat(s.midAngle,"-").concat(f)}),N.createElement(gR,Yo({option:h,isActive:c,shapeType:"sector"},b)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,o=a.isAnimationActive,l=a.animationBegin,u=a.animationDuration,s=a.animationEasing,f=a.animationId,c=this.state,d=c.prevSectors,h=c.prevIsAnimationActive;return N.createElement(ma,{begin:l,duration:u,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(b){var v=b.t,m=[],p=i&&i[0],y=p.startAngle;return i.forEach(function(x,w){var S=d&&d[w],O=w>0?Rn(x,"paddingAngle",0):0;if(S){var A=Ta(S.endAngle-S.startAngle,x.endAngle-x.startAngle),E=He(He({},x),{},{startAngle:y+O,endAngle:y+A(v)+O});m.push(E),y=E.endAngle}else{var T=x.endAngle,C=x.startAngle,D=Ta(0,T-C),R=D(v),U=He(He({},x),{},{startAngle:y+O,endAngle:y+R+O});m.push(U),y=U.endAngle}}),N.createElement(Ne,null,r.renderSectorsStatically(m))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,o=this.state.prevSectors;return i&&a&&a.length&&(!o||!Gp(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,i=a.hide,o=a.sectors,l=a.className,u=a.label,s=a.cx,f=a.cy,c=a.innerRadius,d=a.outerRadius,h=a.isAnimationActive,b=this.state.isAnimationFinished;if(i||!o||!o.length||!K(s)||!K(f)||!K(c)||!K(d))return null;var v=pe("recharts-pie",l);return N.createElement(Ne,{tabIndex:this.props.rootTabIndex,className:v,ref:function(p){r.pieRef=p}},this.renderSectors(),u&&this.renderLabels(o),Rt.renderCallByParent(this.props,null,!1),(!h||b)&&ii.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if(N.isValidElement(r))return N.cloneElement(r,a);if(le(r))return r(a);var o=pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return N.createElement(qg,Yo({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,a,i){if(N.isValidElement(r))return N.cloneElement(r,a);var o=i;if(le(r)&&(o=r(a),N.isValidElement(o)))return o;var l=pe("recharts-pie-label-text",typeof r!="boolean"&&!le(r)?r.className:"");return N.createElement(so,Yo({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(_.PureComponent);td=Sa;Vn(Sa,"displayName","Pie");Vn(Sa,"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:!Eu.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Vn(Sa,"parseDeltaAngle",function(e,t){var n=en(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Vn(Sa,"getRealPieData",function(e){var t=e.data,n=e.children,r=ie(e,!1),a=Zn(n,Dp);return t&&t.length?t.map(function(i,o){return He(He(He({payload:i},r),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return He(He({},r),i.props)}):[]});Vn(Sa,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=ZN(a,i),l=r+tn(e.cx,a,a/2),u=n+tn(e.cy,i,i/2),s=tn(e.innerRadius,o,0),f=tn(e.outerRadius,o,o*.8),c=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:u,innerRadius:s,outerRadius:f,maxRadius:c}});Vn(Sa,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?He(He({},t.type.defaultProps),t.props):t.props,a=td.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,l=r.endAngle,u=r.paddingAngle,s=r.dataKey,f=r.nameKey,c=r.valueKey,d=r.tooltipType,h=Math.abs(r.minAngle),b=td.parseCoordinateOfPie(r,n),v=td.parseDeltaAngle(o,l),m=Math.abs(v),p=s;ye(s)&&ye(c)?(aa(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),p="value"):ye(s)&&(aa(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),p=c);var y=a.filter(function(E){return Yt(E,p,0)!==0}).length,x=(m>=360?y:y-1)*u,w=m-y*h-x,S=a.reduce(function(E,T){var C=Yt(T,p,0);return E+(K(C)?C:0)},0),O;if(S>0){var A;O=a.map(function(E,T){var C=Yt(E,p,0),D=Yt(E,f,T),R=(K(C)?C:0)/S,U;T?U=A.endAngle+en(v)*u*(C!==0?1:0):U=o;var k=U+en(v)*((C!==0?h:0)+R*w),P=(U+k)/2,$=(b.innerRadius+b.outerRadius)/2,L=[{name:D,value:C,payload:E,dataKey:p,type:d}],z=Ge(b.cx,b.cy,$,P);return A=He(He(He({percent:R,cornerRadius:i,name:D,tooltipPayload:L,midAngle:P,middleRadius:$,tooltipPosition:z},E),b),{},{value:Yt(E,p),startAngle:U,endAngle:k,payload:E,paddingAngle:en(v)*u}),A})}return He(He({},b),{},{sectors:O,data:a})});var zae=Math.ceil,Iae=Math.max;function Hae(e,t,n,r){for(var a=-1,i=Iae(zae((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var qae=Hae,Fae=IM,OE=1/0,Gae=17976931348623157e292;function Kae(e){if(!e)return e===0?e:0;if(e=Fae(e),e===OE||e===-OE){var t=e<0?-1:1;return t*Gae}return e===e?e:0}var Yae=Kae,Vae=qae,Xae=Pp,_m=Yae;function Qae(e){return function(t,n,r){return r&&typeof r!="number"&&Xae(t,n,r)&&(n=r=void 0),t=_m(t),n===void 0?(n=t,t=0):n=_m(n),r=r===void 0?t<n?1:-1:_m(r),Vae(t,n,r,e)}}var Wae=Qae,Zae=Wae,Jae=Zae(),eie=Jae;const _h=Be(eie);function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}function wE(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 AE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wE(Object(n),!0).forEach(function(r){SR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SR(e,t,n){return t=tie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tie(e){var t=nie(e,"string");return yc(t)=="symbol"?t:t+""}function nie(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rie=["Webkit","Moz","O","ms"],aie=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=rie.reduce(function(i,o){return AE(AE({},i),{},SR({},o+r,n))},{});return a[t]=n,a};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 Th(){return Th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Th.apply(this,arguments)}function EE(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 Tm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EE(Object(n),!0).forEach(function(r){bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _E(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,wR(r.key),r)}}function oie(e,t,n){return t&&_E(e.prototype,t),n&&_E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lie(e,t,n){return t=jh(t),uie(e,OR()?Reflect.construct(t,n||[],jh(e).constructor):t.apply(e,n))}function uie(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 sie(e)}function sie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OR=function(){return!!e})()}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}function cie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ib(e,t)}function ib(e,t){return ib=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ib(e,t)}function bn(e,t,n){return t=wR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wR(e){var t=fie(e,"string");return Kl(t)=="symbol"?t:t+""}function fie(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 die=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var u=n.length,s=vs().domain(_h(0,u)).range([i,i+o-l]),f=s.domain().map(function(c){return s(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(r),endX:s(a),scale:s,scaleValues:f}},TE=function(t){return t.changedTouches&&!!t.changedTouches.length},Yl=function(e){function t(n){var r;return iie(this,t),r=lie(this,t,[n]),bn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),bn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),bn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:i,startIndex:l})}),r.detachDragEndListener()}),bn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),bn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),bn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),bn(r,"handleSlideDragStart",function(a){var i=TE(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return cie(t,e),oie(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,o=this.state.scaleValues,l=this.props,u=l.gap,s=l.data,f=s.length-1,c=Math.min(a,i),d=Math.max(a,i),h=t.getIndexInRange(o,c),b=t.getIndexInRange(o,d);return{startIndex:h-h%u,endIndex:b===f?f:b-b%u}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,u=Yt(i[r],l,r);return le(o)?o(u,r):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,i=a.slideMoveStartX,o=a.startX,l=a.endX,u=this.props,s=u.x,f=u.width,c=u.travellerWidth,d=u.startIndex,h=u.endIndex,b=u.onChange,v=r.pageX-i;v>0?v=Math.min(v,s+f-c-l,s+f-c-o):v<0&&(v=Math.max(v,s-o,s-l));var m=this.getIndex({startX:o+v,endX:l+v});(m.startIndex!==d||m.endIndex!==h)&&b&&b(m),this.setState({startX:o+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=TE(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,u=a.startX,s=this.state[o],f=this.props,c=f.x,d=f.width,h=f.travellerWidth,b=f.onChange,v=f.gap,m=f.data,p={startX:this.state.startX,endX:this.state.endX},y=r.pageX-i;y>0?y=Math.min(y,c+d-h-s):y<0&&(y=Math.max(y,c-s)),p[o]=s+y;var x=this.getIndex(p),w=x.startIndex,S=x.endIndex,O=function(){var E=m.length-1;return o==="startX"&&(l>u?w%v===0:S%v===0)||l<u&&S===E||o==="endX"&&(l>u?S%v===0:w%v===0)||l>u&&S===E};this.setState(bn(bn({},o,s+y),"brushMoveStartX",r.pageX),function(){b&&O()&&b(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,o=this.state,l=o.scaleValues,u=o.startX,s=o.endX,f=this.state[a],c=l.indexOf(f);if(c!==-1){var d=c+r;if(!(d===-1||d>=l.length)){var h=l[d];a==="startX"&&h>=s||a==="endX"&&h<=u||this.setState(bn({},a,h),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,u=r.fill,s=r.stroke;return N.createElement("rect",{stroke:s,fill:u,x:a,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,u=r.data,s=r.children,f=r.padding,c=_.Children.only(s);return c?N.cloneElement(c,{x:a,y:i,width:o,height:l,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,o,l=this,u=this.props,s=u.y,f=u.travellerWidth,c=u.height,d=u.traveller,h=u.ariaLabel,b=u.data,v=u.startIndex,m=u.endIndex,p=Math.max(r,this.props.x),y=Tm(Tm({},ie(this.props,!1)),{},{x:p,y:s,width:f,height:c}),x=h||"Min value: ".concat((i=b[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[m])===null||o===void 0?void 0:o.name);return N.createElement(Ne,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),l.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,u=i.stroke,s=i.travellerWidth,f=Math.min(r,a)+s,c=Math.max(Math.abs(a-r)-s,0);return N.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,o=r.y,l=r.height,u=r.travellerWidth,s=r.stroke,f=this.state,c=f.startX,d=f.endX,h=5,b={pointerEvents:"none",fill:s};return N.createElement(Ne,{className:"recharts-brush-texts"},N.createElement(so,Th({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-h,y:o+l/2},b),this.getTextOfTick(a)),N.createElement(so,Th({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+h,y:o+l/2},b),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,o=r.children,l=r.x,u=r.y,s=r.width,f=r.height,c=r.alwaysShowText,d=this.state,h=d.startX,b=d.endX,v=d.isTextActive,m=d.isSlideMoving,p=d.isTravellerMoving,y=d.isTravellerFocused;if(!a||!a.length||!K(l)||!K(u)||!K(s)||!K(f)||s<=0||f<=0)return null;var x=pe("recharts-brush",i),w=N.Children.count(o)===1,S=aie("userSelect","none");return N.createElement(Ne,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(h,b),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(b,"endX"),(v||m||p||y||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,o=r.width,l=r.height,u=r.stroke,s=Math.floor(i+l/2)-1;return N.createElement(N.Fragment,null,N.createElement("rect",{x:a,y:i,width:o,height:l,fill:u,stroke:"none"}),N.createElement("line",{x1:a+1,y1:s,x2:a+o-1,y2:s,fill:"none",stroke:"#fff"}),N.createElement("line",{x1:a+1,y1:s+2,x2:a+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return N.isValidElement(r)?i=N.cloneElement(r,a):le(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,o=r.width,l=r.x,u=r.travellerWidth,s=r.updateId,f=r.startIndex,c=r.endIndex;if(i!==a.prevData||s!==a.prevUpdateId)return Tm({prevData:i,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o},i&&i.length?die({data:i,width:o,x:l,travellerWidth:u,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([l,l+o-u]);var d=a.scale.domain().map(function(h){return a.scale(h)});return{prevData:i,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,o=0,l=i-1;l-o>1;){var u=Math.floor((o+l)/2);r[u]>a?l=u:o=u}return a>=r[l]?l:o}}])}(_.PureComponent);bn(Yl,"displayName","Brush");bn(Yl,"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 hie=yx;function pie(e,t){var n;return hie(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var yie=pie,mie=yM,vie=hi,gie=yie,bie=vn,xie=Pp;function Sie(e,t,n){var r=bie(e)?mie:gie;return n&&xie(e,t,n)&&(t=void 0),r(e,vie(t))}var Oie=Sie;const wie=Be(Oie);var Er=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},jE=kM;function Aie(e,t,n){t=="__proto__"&&jE?jE(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Eie=Aie,_ie=Eie,Tie=PM,jie=hi;function Cie(e,t){var n={};return t=jie(t),Tie(e,function(r,a,i){_ie(n,a,t(r,a,i))}),n}var Mie=Cie;const Nie=Be(Mie);function Rie(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 $ie=Rie,Pie=yx;function Die(e,t){var n=!0;return Pie(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var kie=Die,Lie=$ie,Bie=kie,Uie=hi,zie=vn,Iie=Pp;function Hie(e,t,n){var r=zie(e)?Lie:Bie;return n&&Iie(e,t,n)&&(t=void 0),r(e,Uie(t))}var qie=Hie;const Fie=Be(qie);var Gie=["x","y"];function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}function ob(){return ob=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},ob.apply(this,arguments)}function CE(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 Vu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CE(Object(n),!0).forEach(function(r){Kie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kie(e,t,n){return t=Yie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yie(e){var t=Vie(e,"string");return mc(t)=="symbol"?t:t+""}function Vie(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xie(e,t){if(e==null)return{};var n=Qie(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 Qie(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 Wie(e,t){var n=e.x,r=e.y,a=Xie(e,Gie),i="".concat(n),o=parseInt(i,10),l="".concat(r),u=parseInt(l,10),s="".concat(t.height||a.height),f=parseInt(s,10),c="".concat(t.width||a.width),d=parseInt(c,10);return Vu(Vu(Vu(Vu(Vu({},t),a),o?{x:o}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function ME(e){return N.createElement(gR,ob({shapeType:"rectangle",propTransformer:Wie,activeClassName:"recharts-active-bar"},e))}var Zie=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=K(r)||v6(r);return i?t(r,a):(i||fo(),n)}},Jie=["value","background"],AR;function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function eoe(e,t){if(e==null)return{};var n=toe(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 toe(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 Ch(){return Ch=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},Ch.apply(this,arguments)}function NE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NE(Object(n),!0).forEach(function(r){Ya(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function noe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RE(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,_R(r.key),r)}}function roe(e,t,n){return t&&RE(e.prototype,t),n&&RE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aoe(e,t,n){return t=Mh(t),ioe(e,ER()?Reflect.construct(t,n||[],Mh(e).constructor):t.apply(e,n))}function ioe(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ooe(e)}function ooe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ER(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ER=function(){return!!e})()}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(e)}function loe(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&&lb(e,t)}function lb(e,t){return lb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lb(e,t)}function Ya(e,t,n){return t=_R(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _R(e){var t=uoe(e,"string");return Vl(t)=="symbol"?t:t+""}function uoe(e,t){if(Vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Oo=function(e){function t(){var n;noe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=aoe(this,t,[].concat(a)),Ya(n,"state",{isAnimationFinished:!1}),Ya(n,"id",Kc("recharts-bar-")),Ya(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ya(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return loe(t,e),roe(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.dataKey,u=i.activeIndex,s=i.activeBar,f=ie(this.props,!1);return r&&r.map(function(c,d){var h=d===u,b=h?s:o,v=ht(ht(ht({},f),c),{},{isActive:h,option:b,index:d,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return N.createElement(Ne,Ch({className:"recharts-bar-rectangle"},uo(a.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),N.createElement(ME,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,u=a.animationBegin,s=a.animationDuration,f=a.animationEasing,c=a.animationId,d=this.state.prevData;return N.createElement(ma,{begin:u,duration:s,isActive:l,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var b=h.t,v=i.map(function(m,p){var y=d&&d[p];if(y){var x=Ta(y.x,m.x),w=Ta(y.y,m.y),S=Ta(y.width,m.width),O=Ta(y.height,m.height);return ht(ht({},m),{},{x:x(b),y:w(b),width:S(b),height:O(b)})}if(o==="horizontal"){var A=Ta(0,m.height),E=A(b);return ht(ht({},m),{},{y:m.y+m.height-E,height:E})}var T=Ta(0,m.width),C=T(b);return ht(ht({},m),{},{width:C})});return N.createElement(Ne,null,r.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Gp(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,o=a.dataKey,l=a.activeIndex,u=ie(this.props.background,!1);return i.map(function(s,f){s.value;var c=s.background,d=eoe(s,Jie);if(!c)return null;var h=ht(ht(ht(ht(ht({},d),{},{fill:"#eee"},c),u),uo(r.props,s,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return N.createElement(ME,Ch({key:"background-bar-".concat(f),option:r.props.background,isActive:f===l},h))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,u=i.yAxis,s=i.layout,f=i.children,c=Zn(f,Vp);if(!c)return null;var d=s==="vertical"?o[0].height/2:o[0].width/2,h=function(m,p){var y=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:y,errorVal:Yt(m,p)}},b={clipPath:r?"url(#clipPath-".concat(a,")"):null};return N.createElement(Ne,b,c.map(function(v){return N.cloneElement(v,{key:"error-bar-".concat(a,"-").concat(v.props.dataKey),data:o,xAxis:l,yAxis:u,layout:s,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,o=r.className,l=r.xAxis,u=r.yAxis,s=r.left,f=r.top,c=r.width,d=r.height,h=r.isAnimationActive,b=r.background,v=r.id;if(a||!i||!i.length)return null;var m=this.state.isAnimationFinished,p=pe("recharts-bar",o),y=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,w=y||x,S=ye(v)?this.id:v;return N.createElement(Ne,{className:p},y||x?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(S)},N.createElement("rect",{x:y?s:s-c/2,y:x?f:f-d/2,width:y?c:c*2,height:x?d:d*2}))):null,N.createElement(Ne,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(S,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,S),(!h||m)&&ii.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}}])}(_.PureComponent);AR=Oo;Ya(Oo,"displayName","Bar");Ya(Oo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Eu.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ya(Oo,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,h=kJ(r,n);if(!h)return null;var b=t.layout,v=n.type.defaultProps,m=v!==void 0?ht(ht({},v),n.props):n.props,p=m.dataKey,y=m.children,x=m.minPointSize,w=b==="horizontal"?o:i,S=s?w.scale.domain():null,O=qJ({numericAxis:w}),A=Zn(y,Dp),E=c.map(function(T,C){var D,R,U,k,P,$;s?D=LJ(s[f+C],S):(D=Yt(T,p),Array.isArray(D)||(D=[O,D]));var L=Zie(x,AR.defaultProps.minPointSize)(D[1],C);if(b==="horizontal"){var z,q=[o.scale(D[0]),o.scale(D[1])],F=q[0],W=q[1];R=AA({axis:i,ticks:l,bandSize:a,offset:h.offset,entry:T,index:C}),U=(z=W??F)!==null&&z!==void 0?z:void 0,k=h.size;var G=F-W;if(P=Number.isNaN(G)?0:G,$={x:R,y:o.y,width:k,height:o.height},Math.abs(L)>0&&Math.abs(P)<Math.abs(L)){var ee=en(P||L)*(Math.abs(L)-Math.abs(P));U-=ee,P+=ee}}else{var he=[i.scale(D[0]),i.scale(D[1])],$e=he[0],se=he[1];if(R=$e,U=AA({axis:o,ticks:u,bandSize:a,offset:h.offset,entry:T,index:C}),k=se-$e,P=h.size,$={x:i.x,y:U,width:i.width,height:P},Math.abs(L)>0&&Math.abs(k)<Math.abs(L)){var dt=en(k||L)*(Math.abs(L)-Math.abs(k));k+=dt}}return ht(ht(ht({},T),{},{x:R,y:U,width:k,height:P,value:s?D:D[1],payload:T,background:$},A&&A[C]&&A[C].props),{},{tooltipPayload:[QN(n,T)],tooltipPosition:{x:R+k/2,y:U+P/2}})});return ht({data:E,layout:b},d)});function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}function soe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TR(r.key),r)}}function coe(e,t,n){return t&&$E(e.prototype,t),n&&$E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function PE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PE(Object(n),!0).forEach(function(r){ty(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ty(e,t,n){return t=TR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TR(e){var t=foe(e,"string");return vc(t)=="symbol"?t:t+""}function foe(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var doe=function(t,n,r,a,i){var o=t.width,l=t.height,u=t.layout,s=t.children,f=Object.keys(n),c={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},d=!!Sn(s,Oo);return f.reduce(function(h,b){var v=n[b],m=v.orientation,p=v.domain,y=v.padding,x=y===void 0?{}:y,w=v.mirror,S=v.reversed,O="".concat(m).concat(w?"Mirror":""),A,E,T,C,D;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var R=p[1]-p[0],U=1/0,k=v.categoricalDomain.sort(x6);if(k.forEach(function(he,$e){$e>0&&(U=Math.min((he||0)-(k[$e-1]||0),U))}),Number.isFinite(U)){var P=U/R,$=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(A=P*$/2),v.padding==="no-gap"){var L=tn(t.barCategoryGap,P*$),z=P*$/2;A=z-L-(z-L)/$*L}}}a==="xAxis"?E=[r.left+(x.left||0)+(A||0),r.left+r.width-(x.right||0)-(A||0)]:a==="yAxis"?E=u==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(A||0),r.top+r.height-(x.bottom||0)-(A||0)]:E=v.range,S&&(E=[E[1],E[0]]);var q=KN(v,i,d),F=q.scale,W=q.realScaleType;F.domain(p).range(E),YN(F);var G=VN(F,ur(ur({},v),{},{realScaleType:W}));a==="xAxis"?(D=m==="top"&&!w||m==="bottom"&&w,T=r.left,C=c[O]-D*v.height):a==="yAxis"&&(D=m==="left"&&!w||m==="right"&&w,T=c[O]-D*v.width,C=r.top);var ee=ur(ur(ur({},v),G),{},{realScaleType:W,x:T,y:C,scale:F,width:a==="xAxis"?r.width:v.width,height:a==="yAxis"?r.height:v.height});return ee.bandSize=hh(ee,G),!v.hide&&a==="xAxis"?c[O]+=(D?-1:1)*ee.height:v.hide||(c[O]+=(D?-1:1)*ee.width),ur(ur({},h),{},ty({},b,ee))},{})},jR=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},hoe=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return jR({x:n,y:r},{x:a,y:i})},CR=function(){function e(t){soe(this,e),this.scale=t}return coe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(a){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+u}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)}}])}();ty(CR,"EPS",1e-4);var Gx=function(t){var n=Object.keys(t).reduce(function(r,a){return ur(ur({},r),{},ty({},a,CR.create(t[a])))},{});return ur(ur({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return Nie(a,function(u,s){return n[s].apply(u,{bandAware:o,position:l})})},isInRange:function(a){return Fie(a,function(i,o){return n[o].isInRange(i)})}})};function poe(e){return(e%180+180)%180}var yoe=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=poe(a),o=i*Math.PI/180,l=Math.atan(r/n),u=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(u)},moe=w8(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("")}),MR=_.createContext(void 0),NR=_.createContext(void 0),RR=_.createContext(void 0),voe=_.createContext({}),$R=_.createContext(void 0),PR=_.createContext(0),DR=_.createContext(0),DE=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,o=t.clipPathId,l=t.children,u=t.width,s=t.height,f=moe(i);return N.createElement(MR.Provider,{value:r},N.createElement(NR.Provider,{value:a},N.createElement(voe.Provider,{value:i},N.createElement(RR.Provider,{value:f},N.createElement($R.Provider,{value:o},N.createElement(PR.Provider,{value:s},N.createElement(DR.Provider,{value:u},l)))))))},goe=function(){return _.useContext($R)},kR=function(t){var n=_.useContext(MR);n==null&&fo();var r=n[t];return r==null&&fo(),r},LR=function(t){var n=_.useContext(NR);n==null&&fo();var r=n[t];return r==null&&fo(),r},boe=function(){var t=_.useContext(RR);return t},BR=function(){return _.useContext(DR)},UR=function(){return _.useContext(PR)};function Xl(e){"@babel/helpers - typeof";return Xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xl(e)}function xoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Soe(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,IR(r.key),r)}}function Ooe(e,t,n){return t&&Soe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function woe(e,t,n){return t=Nh(t),Aoe(e,zR()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function Aoe(e,t){if(t&&(Xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Eoe(e)}function Eoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zR=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function _oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ub(e,t)}function ub(e,t){return ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ub(e,t)}function kE(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?kE(Object(n),!0).forEach(function(r){Kx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kx(e,t,n){return t=IR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IR(e){var t=Toe(e,"string");return Xl(t)=="symbol"?t:t+""}function Toe(e,t){if(Xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function joe(e,t){return Roe(e)||Noe(e,t)||Moe(e,t)||Coe()}function Coe(){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 Moe(e,t){if(e){if(typeof e=="string")return BE(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 BE(e,t)}}function BE(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 Noe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function Roe(e){if(Array.isArray(e))return e}function sb(){return sb=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},sb.apply(this,arguments)}var $oe=function(t,n){var r;return N.isValidElement(t)?r=N.cloneElement(t,n):le(t)?r=t(n):r=N.createElement("line",sb({},n,{className:"recharts-reference-line-line"})),r},Poe=function(t,n,r,a,i,o,l,u,s){var f=i.x,c=i.y,d=i.width,h=i.height;if(r){var b=s.y,v=t.y.apply(b,{position:o});if(Er(s,"discard")&&!t.y.isInRange(v))return null;var m=[{x:f+d,y:v},{x:f,y:v}];return u==="left"?m.reverse():m}if(n){var p=s.x,y=t.x.apply(p,{position:o});if(Er(s,"discard")&&!t.x.isInRange(y))return null;var x=[{x:y,y:c+h},{x:y,y:c}];return l==="top"?x.reverse():x}if(a){var w=s.segment,S=w.map(function(O){return t.apply(O,{position:o})});return Er(s,"discard")&&wie(S,function(O){return!t.isInRange(O)})?null:S}return null};function Doe(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,u=e.alwaysShow,s=goe(),f=kR(a),c=LR(i),d=boe();if(!s||!d)return null;aa(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Gx({x:f.scale,y:c.scale}),b=Et(t),v=Et(n),m=r&&r.length===2,p=Poe(h,b,v,m,d,e.position,f.orientation,c.orientation,e);if(!p)return null;var y=joe(p,2),x=y[0],w=x.x,S=x.y,O=y[1],A=O.x,E=O.y,T=Er(e,"hidden")?"url(#".concat(s,")"):void 0,C=LE(LE({clipPath:T},ie(e,!0)),{},{x1:w,y1:S,x2:A,y2:E});return N.createElement(Ne,{className:pe("recharts-reference-line",l)},$oe(o,C),Rt.renderCallByParent(e,hoe({x1:w,y1:S,x2:A,y2:E})))}var Yx=function(e){function t(){return xoe(this,t),woe(this,t,arguments)}return _oe(t,e),Ooe(t,[{key:"render",value:function(){return N.createElement(Doe,this.props)}}])}(N.Component);Kx(Yx,"displayName","ReferenceLine");Kx(Yx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function cb(){return cb=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},cb.apply(this,arguments)}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 UE(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 zE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UE(Object(n),!0).forEach(function(r){ny(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Loe(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,qR(r.key),r)}}function Boe(e,t,n){return t&&Loe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uoe(e,t,n){return t=Rh(t),zoe(e,HR()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}function zoe(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 Ioe(e)}function Ioe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HR=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rh(e)}function Hoe(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&&fb(e,t)}function fb(e,t){return fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},fb(e,t)}function ny(e,t,n){return t=qR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qR(e){var t=qoe(e,"string");return Ql(t)=="symbol"?t:t+""}function qoe(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 Foe=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,o=Gx({x:a.scale,y:i.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Er(t,"discard")&&!o.isInRange(l)?null:l},ry=function(e){function t(){return koe(this,t),Uoe(this,t,arguments)}return Hoe(t,e),Boe(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,o=r.r,l=r.alwaysShow,u=r.clipPathId,s=Et(a),f=Et(i);if(aa(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var c=Foe(this.props);if(!c)return null;var d=c.x,h=c.y,b=this.props,v=b.shape,m=b.className,p=Er(this.props,"hidden")?"url(#".concat(u,")"):void 0,y=zE(zE({clipPath:p},ie(this.props,!0)),{},{cx:d,cy:h});return N.createElement(Ne,{className:pe("recharts-reference-dot",m)},t.renderDot(v,y),Rt.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(N.Component);ny(ry,"displayName","ReferenceDot");ny(ry,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ny(ry,"renderDot",function(e,t){var n;return N.isValidElement(e)?n=N.cloneElement(e,t):le(e)?n=e(t):n=N.createElement(Fx,cb({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function db(){return db=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},db.apply(this,arguments)}function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function IE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function HE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IE(Object(n),!0).forEach(function(r){ay(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Goe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Koe(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,GR(r.key),r)}}function Yoe(e,t,n){return t&&Koe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Voe(e,t,n){return t=$h(t),Xoe(e,FR()?Reflect.construct(t,n||[],$h(e).constructor):t.apply(e,n))}function Xoe(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qoe(e)}function Qoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FR=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function Woe(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&&hb(e,t)}function hb(e,t){return hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hb(e,t)}function ay(e,t,n){return t=GR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GR(e){var t=Zoe(e,"string");return Wl(t)=="symbol"?t:t+""}function Zoe(e,t){if(Wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Joe=function(t,n,r,a,i){var o=i.x1,l=i.x2,u=i.y1,s=i.y2,f=i.xAxis,c=i.yAxis;if(!f||!c)return null;var d=Gx({x:f.scale,y:c.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:r?d.y.apply(u,{position:"start"}):d.y.rangeMin},b={x:n?d.x.apply(l,{position:"end"}):d.x.rangeMax,y:a?d.y.apply(s,{position:"end"}):d.y.rangeMax};return Er(i,"discard")&&(!d.isInRange(h)||!d.isInRange(b))?null:jR(h,b)},iy=function(e){function t(){return Goe(this,t),Voe(this,t,arguments)}return Woe(t,e),Yoe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,o=r.y1,l=r.y2,u=r.className,s=r.alwaysShow,f=r.clipPathId;aa(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=Et(a),d=Et(i),h=Et(o),b=Et(l),v=this.props.shape;if(!c&&!d&&!h&&!b&&!v)return null;var m=Joe(c,d,h,b,this.props);if(!m&&!v)return null;var p=Er(this.props,"hidden")?"url(#".concat(f,")"):void 0;return N.createElement(Ne,{className:pe("recharts-reference-area",u)},t.renderRect(v,HE(HE({clipPath:p},ie(this.props,!0)),m)),Rt.renderCallByParent(this.props,m))}}])}(N.Component);ay(iy,"displayName","ReferenceArea");ay(iy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ay(iy,"renderRect",function(e,t){var n;return N.isValidElement(e)?n=N.cloneElement(e,t):le(e)?n=e(t):n=N.createElement(qx,db({},t,{className:"recharts-reference-area-rect"})),n});function KR(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 ele(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return yoe(r,n)}function tle(e,t,n){var r=n==="width",a=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:r?a:i,end:r?a+o:i+l}:{start:r?a+o:i+l,end:r?a:i}}function Ph(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 nle(e,t){return KR(e,t+1)}function rle(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,l=t.end,u=0,s=1,f=o,c=function(){var b=r==null?void 0:r[u];if(b===void 0)return{v:KR(r,s)};var v=u,m,p=function(){return m===void 0&&(m=n(b,v)),m},y=b.coordinate,x=u===0||Ph(e,y,p,f,l);x||(u=0,f=o,s+=1),x&&(f=y+e*(p()/2+a),u+=s)},d;s<=i.length;)if(d=c(),d)return d.v;return[]}function gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function qE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qE(Object(n),!0).forEach(function(r){ale(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ale(e,t,n){return t=ile(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ile(e){var t=ole(e,"string");return gc(t)=="symbol"?t:t+""}function ole(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lle(e,t,n,r,a){for(var i=(r||[]).slice(),o=i.length,l=t.start,u=t.end,s=function(d){var h=i[d],b,v=function(){return b===void 0&&(b=n(h,d)),b};if(d===o-1){var m=e*(h.coordinate+e*v()/2-u);i[d]=h=Kt(Kt({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate})}else i[d]=h=Kt(Kt({},h),{},{tickCoord:h.coordinate});var p=Ph(e,h.tickCoord,v,l,u);p&&(u=h.tickCoord-e*(v()/2+a),i[d]=Kt(Kt({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return i}function ule(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,u=t.start,s=t.end;if(i){var f=r[l-1],c=n(f,l-1),d=e*(f.coordinate+e*c/2-s);o[l-1]=f=Kt(Kt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=Ph(e,f.tickCoord,function(){return c},u,s);h&&(s=f.tickCoord-e*(c/2+a),o[l-1]=Kt(Kt({},f),{},{isShow:!0}))}for(var b=i?l-1:l,v=function(y){var x=o[y],w,S=function(){return w===void 0&&(w=n(x,y)),w};if(y===0){var O=e*(x.coordinate-e*S()/2-u);o[y]=x=Kt(Kt({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[y]=x=Kt(Kt({},x),{},{tickCoord:x.coordinate});var A=Ph(e,x.tickCoord,S,u,s);A&&(u=x.tickCoord+e*(S()/2+a),o[y]=Kt(Kt({},x),{},{isShow:!0}))},m=0;m<b;m++)v(m);return o}function sle(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,u=e.interval,s=e.tickFormatter,f=e.unit,c=e.angle;if(!a||!a.length||!r)return[];if(K(u)||Eu.isSsr)return nle(a,typeof u=="number"&&K(u)?u:0);var d=[],h=l==="top"||l==="bottom"?"width":"height",b=f&&h==="width"?ms(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=function(x,w){var S=le(s)?s(x.value,w):x.value;return h==="width"?ele(ms(S,{fontSize:t,letterSpacing:n}),b,c):ms(S,{fontSize:t,letterSpacing:n})[h]},m=a.length>=2?en(a[1].coordinate-a[0].coordinate):1,p=tle(i,m,h);return u==="equidistantPreserveStart"?rle(m,p,v,a,o):(u==="preserveStart"||u==="preserveStartEnd"?d=ule(m,p,v,a,o,u==="preserveStartEnd"):d=lle(m,p,v,a,o),d.filter(function(y){return y.isShow}))}var cle=["viewBox"],fle=["viewBox"],dle=["ticks"];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 Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(this,arguments)}function FE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FE(Object(n),!0).forEach(function(r){Vx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jm(e,t){if(e==null)return{};var n=hle(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 hle(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 ple(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VR(r.key),r)}}function yle(e,t,n){return t&&GE(e.prototype,t),n&&GE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mle(e,t,n){return t=Dh(t),vle(e,YR()?Reflect.construct(t,n||[],Dh(e).constructor):t.apply(e,n))}function vle(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 gle(e)}function gle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YR=function(){return!!e})()}function Dh(e){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dh(e)}function ble(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pb(e,t)}function pb(e,t){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},pb(e,t)}function Vx(e,t,n){return t=VR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VR(e){var t=xle(e,"string");return Zl(t)=="symbol"?t:t+""}function xle(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 oy=function(e){function t(n){var r;return ple(this,t),r=mle(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return ble(t,e),yle(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=jm(r,cle),l=this.props,u=l.viewBox,s=jm(l,fle);return!rl(i,u)||!rl(o,s)||!rl(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,o=a.y,l=a.width,u=a.height,s=a.orientation,f=a.tickSize,c=a.mirror,d=a.tickMargin,h,b,v,m,p,y,x=c?-1:1,w=r.tickSize||f,S=K(r.tickCoord)?r.tickCoord:r.coordinate;switch(s){case"top":h=b=r.coordinate,m=o+ +!c*u,v=m-x*w,y=v-x*d,p=S;break;case"left":v=m=r.coordinate,b=i+ +!c*l,h=b-x*w,p=h-x*d,y=S;break;case"right":v=m=r.coordinate,b=i+ +c*l,h=b+x*w,p=h+x*d,y=S;break;default:h=b=r.coordinate,m=o+ +c*u,v=m+x*w,y=v+x*d,p=S;break}return{line:{x1:h,y1:v,x2:b,y2:m},tick:{x:p,y}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,u=r.orientation,s=r.mirror,f=r.axisLine,c=xt(xt(xt({},ie(this.props,!1)),ie(f,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var d=+(u==="top"&&!s||u==="bottom"&&s);c=xt(xt({},c),{},{x1:a,y1:i+d*l,x2:a+o,y2:i+d*l})}else{var h=+(u==="left"&&!s||u==="right"&&s);c=xt(xt({},c),{},{x1:a+h*o,y1:i,x2:a+h*o,y2:i+l})}return N.createElement("line",Vo({},c,{className:pe("recharts-cartesian-axis-line",Rn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var o=this,l=this.props,u=l.tickLine,s=l.stroke,f=l.tick,c=l.tickFormatter,d=l.unit,h=sle(xt(xt({},this.props),{},{ticks:r}),a,i),b=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),m=ie(this.props,!1),p=ie(f,!1),y=xt(xt({},m),{},{fill:"none"},ie(u,!1)),x=h.map(function(w,S){var O=o.getTickLineCoord(w),A=O.line,E=O.tick,T=xt(xt(xt(xt({textAnchor:b,verticalAnchor:v},m),{},{stroke:"none",fill:s},p),E),{},{index:S,payload:w,visibleTicksCount:h.length,tickFormatter:c});return N.createElement(Ne,Vo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},uo(o.props,w,S)),u&&N.createElement("line",Vo({},y,A,{className:pe("recharts-cartesian-axis-tick-line",Rn(u,"className"))})),f&&t.renderTickItem(f,T,"".concat(le(c)?c(w.value,S):w.value).concat(d||"")))});return N.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,o=a.width,l=a.height,u=a.ticksGenerator,s=a.className,f=a.hide;if(f)return null;var c=this.props,d=c.ticks,h=jm(c,dle),b=d;return le(u)&&(b=d&&d.length>0?u(this.props):u(h)),o<=0||l<=0||!b||!b.length?null:N.createElement(Ne,{className:pe("recharts-cartesian-axis",s),ref:function(m){r.layerReference=m}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Rt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var o,l=pe(a.className,"recharts-cartesian-axis-tick-value");return N.isValidElement(r)?o=N.cloneElement(r,xt(xt({},a),{},{className:l})):le(r)?o=r(xt(xt({},a),{},{className:l})):o=N.createElement(so,Vo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(_.Component);Vx(oy,"displayName","CartesianAxis");Vx(oy,"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 Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}function Sle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ole(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,WR(r.key),r)}}function wle(e,t,n){return t&&Ole(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ale(e,t,n){return t=kh(t),Ele(e,XR()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Ele(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _le(e)}function _le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XR=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Tle(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&&yb(e,t)}function yb(e,t){return yb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},yb(e,t)}function QR(e,t,n){return t=WR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WR(e){var t=jle(e,"string");return Jl(t)=="symbol"?t:t+""}function jle(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function mb(){return mb=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},mb.apply(this,arguments)}function Cle(e){var t=e.xAxisId,n=BR(),r=UR(),a=kR(t);return a==null?null:_.createElement(oy,mb({},a,{className:pe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return Di(o,!0)}}))}var ly=function(e){function t(){return Sle(this,t),Ale(this,t,arguments)}return Tle(t,e),wle(t,[{key:"render",value:function(){return _.createElement(Cle,this.props)}}])}(_.Component);QR(ly,"displayName","XAxis");QR(ly,"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 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 Mle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nle(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,e$(r.key),r)}}function Rle(e,t,n){return t&&Nle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $le(e,t,n){return t=Lh(t),Ple(e,ZR()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}function Ple(e,t){if(t&&(eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dle(e)}function Dle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZR=function(){return!!e})()}function Lh(e){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(e)}function kle(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&&vb(e,t)}function vb(e,t){return vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},vb(e,t)}function JR(e,t,n){return t=e$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e$(e){var t=Lle(e,"string");return eu(t)=="symbol"?t:t+""}function Lle(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 String(e)}function gb(){return gb=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},gb.apply(this,arguments)}var Ble=function(t){var n=t.yAxisId,r=BR(),a=UR(),i=LR(n);return i==null?null:_.createElement(oy,gb({},i,{className:pe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(l){return Di(l,!0)}}))},uy=function(e){function t(){return Mle(this,t),$le(this,t,arguments)}return kle(t,e),Rle(t,[{key:"render",value:function(){return _.createElement(Ble,this.props)}}])}(_.Component);JR(uy,"displayName","YAxis");JR(uy,"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 KE(e){return Hle(e)||Ile(e)||zle(e)||Ule()}function Ule(){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 zle(e,t){if(e){if(typeof e=="string")return bb(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 bb(e,t)}}function Ile(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hle(e){if(Array.isArray(e))return bb(e)}function bb(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 xb=function(t,n,r,a,i){var o=Zn(t,Yx),l=Zn(t,ry),u=[].concat(KE(o),KE(l)),s=Zn(t,iy),f="".concat(a,"Id"),c=a[0],d=n;if(u.length&&(d=u.reduce(function(v,m){if(m.props[f]===r&&Er(m.props,"extendDomain")&&K(m.props[c])){var p=m.props[c];return[Math.min(v[0],p),Math.max(v[1],p)]}return v},d)),s.length){var h="".concat(c,"1"),b="".concat(c,"2");d=s.reduce(function(v,m){if(m.props[f]===r&&Er(m.props,"extendDomain")&&K(m.props[h])&&K(m.props[b])){var p=m.props[h],y=m.props[b];return[Math.min(v[0],p,y),Math.max(v[1],p,y)]}return v},d)}return i&&i.length&&(d=i.reduce(function(v,m){return K(m)?[Math.min(v[0],m),Math.max(v[1],m)]:v},d)),d},t$={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(u,s,f){this.fn=u,this.context=s,this.once=f||!1}function i(u,s,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new a(f,c||u,d),b=n?n+s:s;return u._events[b]?u._events[b].fn?u._events[b]=[u._events[b],h]:u._events[b].push(h):(u._events[b]=h,u._eventsCount++),u}function o(u,s){--u._eventsCount===0?u._events=new r:delete u._events[s]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var s=[],f,c;if(this._eventsCount===0)return s;for(c in f=this._events)t.call(f,c)&&s.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},l.prototype.listeners=function(s){var f=n?n+s:s,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,h=c.length,b=new Array(h);d<h;d++)b[d]=c[d].fn;return b},l.prototype.listenerCount=function(s){var f=n?n+s:s,c=this._events[f];return c?c.fn?1:c.length:0},l.prototype.emit=function(s,f,c,d,h,b){var v=n?n+s:s;if(!this._events[v])return!1;var m=this._events[v],p=arguments.length,y,x;if(m.fn){switch(m.once&&this.removeListener(s,m.fn,void 0,!0),p){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,f),!0;case 3:return m.fn.call(m.context,f,c),!0;case 4:return m.fn.call(m.context,f,c,d),!0;case 5:return m.fn.call(m.context,f,c,d,h),!0;case 6:return m.fn.call(m.context,f,c,d,h,b),!0}for(x=1,y=new Array(p-1);x<p;x++)y[x-1]=arguments[x];m.fn.apply(m.context,y)}else{var w=m.length,S;for(x=0;x<w;x++)switch(m[x].once&&this.removeListener(s,m[x].fn,void 0,!0),p){case 1:m[x].fn.call(m[x].context);break;case 2:m[x].fn.call(m[x].context,f);break;case 3:m[x].fn.call(m[x].context,f,c);break;case 4:m[x].fn.call(m[x].context,f,c,d);break;default:if(!y)for(S=1,y=new Array(p-1);S<p;S++)y[S-1]=arguments[S];m[x].fn.apply(m[x].context,y)}}return!0},l.prototype.on=function(s,f,c){return i(this,s,f,c,!1)},l.prototype.once=function(s,f,c){return i(this,s,f,c,!0)},l.prototype.removeListener=function(s,f,c,d){var h=n?n+s:s;if(!this._events[h])return this;if(!f)return o(this,h),this;var b=this._events[h];if(b.fn)b.fn===f&&(!d||b.once)&&(!c||b.context===c)&&o(this,h);else{for(var v=0,m=[],p=b.length;v<p;v++)(b[v].fn!==f||d&&!b[v].once||c&&b[v].context!==c)&&m.push(b[v]);m.length?this._events[h]=m.length===1?m[0]:m:o(this,h)}return this},l.prototype.removeAllListeners=function(s){var f;return s?(f=n?n+s:s,this._events[f]&&o(this,f)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(t$);var qle=t$.exports;const Fle=Be(qle);var Cm=new Fle,Mm="recharts.syncMouseEvents";function bc(e){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(e)}function Gle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kle(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,n$(r.key),r)}}function Yle(e,t,n){return t&&Kle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nm(e,t,n){return t=n$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n$(e){var t=Vle(e,"string");return bc(t)=="symbol"?t:t+""}function Vle(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xle=function(){function e(){Gle(this,e),Nm(this,"activeIndex",0),Nm(this,"coordinateList",[]),Nm(this,"layout","horizontal")}return Yle(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,o=n.container,l=o===void 0?null:o,u=n.layout,s=u===void 0?null:u,f=n.offset,c=f===void 0?null:f,d=n.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=s??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,l=a.height,u=this.coordinateList[this.activeIndex].coordinate,s=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,c=i+u+s,d=o+this.offset.top+l/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])}();function Qle(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&K(r)&&K(a))return!0}return!1}function Wle(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 r$(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Ge(t,n,r,a),l=Ge(t,n,r,i);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function Zle(e,t,n){var r,a,i,o;if(e==="horizontal")r=t.x,i=r,a=n.top,o=n.top+n.height;else if(e==="vertical")a=t.y,o=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,u=t.cy,s=t.innerRadius,f=t.outerRadius,c=t.angle,d=Ge(l,u,s,c),h=Ge(l,u,f,c);r=d.x,a=d.y,i=h.x,o=h.y}else return r$(t);return[{x:r,y:a},{x:i,y:o}]}function xc(e){"@babel/helpers - typeof";return xc=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},xc(e)}function YE(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 Rf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YE(Object(n),!0).forEach(function(r){Jle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jle(e,t,n){return t=eue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eue(e){var t=tue(e,"string");return xc(t)=="symbol"?t:t+""}function tue(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nue(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,u=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,h=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!h||!i||!o||d!=="ScatterChart"&&a!=="axis")return null;var b,v=qg;if(d==="ScatterChart")b=o,v=cre;else if(d==="BarChart")b=Wle(c,o,u,f),v=qx;else if(c==="radial"){var m=r$(o),p=m.cx,y=m.cy,x=m.radius,w=m.startAngle,S=m.endAngle;b={cx:p,cy:y,startAngle:w,endAngle:S,innerRadius:x,outerRadius:x},v=nR}else b={points:Zle(c,o,u)},v=qg;var O=Rf(Rf(Rf(Rf({stroke:"#ccc",pointerEvents:"none"},u),b),ie(h,!1)),{},{payload:l,payloadIndex:s,className:pe("recharts-tooltip-cursor",h.className)});return _.isValidElement(h)?_.cloneElement(h,O):_.createElement(v,O)}var rue=["item"],aue=["children","className","width","height","style","compact","title","desc"];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 Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xo.apply(this,arguments)}function VE(e,t){return lue(e)||oue(e,t)||i$(e,t)||iue()}function iue(){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 oue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){s=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}function lue(e){if(Array.isArray(e))return e}function XE(e,t){if(e==null)return{};var n=uue(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 uue(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 sue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cue(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,o$(r.key),r)}}function fue(e,t,n){return t&&cue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function due(e,t,n){return t=Bh(t),hue(e,a$()?Reflect.construct(t,n||[],Bh(e).constructor):t.apply(e,n))}function hue(e,t){if(t&&(tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pue(e)}function pue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a$=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function yue(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&&Sb(e,t)}function Sb(e,t){return Sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Sb(e,t)}function nu(e){return gue(e)||vue(e)||i$(e)||mue()}function mue(){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 i$(e,t){if(e){if(typeof e=="string")return Ob(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 Ob(e,t)}}function vue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gue(e){if(Array.isArray(e))return Ob(e)}function Ob(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 QE(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 B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QE(Object(n),!0).forEach(function(r){re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function re(e,t,n){return t=o$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o$(e){var t=bue(e,"string");return tu(t)=="symbol"?t:t+""}function bue(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)}var xue={xAxis:["bottom","top"],yAxis:["left","right"]},Sue={width:"100%",height:"100%"},l$={x:0,y:0};function $f(e){return e}var Oue=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},wue=function(t,n,r,a){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=a.radius;return B(B(B({},a),Ge(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var u=i.coordinate,s=a.angle;return B(B(B({},a),Ge(a.cx,a.cy,u,s)),{},{angle:s,radius:u})}return l$},sy=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,o=(r??[]).reduce(function(l,u){var s=u.props.data;return s&&s.length?[].concat(nu(l),nu(s)):l},[]);return o.length>0?o:t&&t.length&&K(a)&&K(i)?t.slice(a,i+1):[]};function u$(e){return e==="number"?[0,"auto"]:void 0}var wb=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=sy(n,t);return r<0||!i||!i.length||r>=l.length?null:i.reduce(function(u,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:n;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=c===void 0?l:c;d=Wv(h,o.dataKey,a)}else d=c&&c[r]||l[r];return d?[].concat(nu(u),[QN(s,d)]):u},[])},WE=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=Oue(i,r),l=t.orderedTooltipTicks,u=t.tooltipAxis,s=t.tooltipTicks,f=MJ(o,l,s,u);if(f>=0&&s){var c=s[f]&&s[f].value,d=wb(t,n,f,c),h=wue(r,l,f,i);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:h}}return null},Aue=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,u=n.dataStartIndex,s=n.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,h=GN(f,i);return r.reduce(function(b,v){var m,p=v.type.defaultProps!==void 0?B(B({},v.type.defaultProps),v.props):v.props,y=p.type,x=p.dataKey,w=p.allowDataOverflow,S=p.allowDuplicatedCategory,O=p.scale,A=p.ticks,E=p.includeHidden,T=p[o];if(b[T])return b;var C=sy(t.data,{graphicalItems:a.filter(function(G){var ee,he=o in G.props?G.props[o]:(ee=G.type.defaultProps)===null||ee===void 0?void 0:ee[o];return he===T}),dataStartIndex:u,dataEndIndex:s}),D=C.length,R,U,k;Qle(p.domain,w,y)&&(R=Bg(p.domain,null,w),h&&(y==="number"||O!=="auto")&&(k=gs(C,x,"category")));var P=u$(y);if(!R||R.length===0){var $,L=($=p.domain)!==null&&$!==void 0?$:P;if(x){if(R=gs(C,x,y),y==="category"&&h){var z=b6(R);S&&z?(U=R,R=_h(0,D)):S||(R=TA(L,R,v).reduce(function(G,ee){return G.indexOf(ee)>=0?G:[].concat(nu(G),[ee])},[]))}else if(y==="category")S?R=R.filter(function(G){return G!==""&&!ye(G)}):R=TA(L,R,v).reduce(function(G,ee){return G.indexOf(ee)>=0||ee===""||ye(ee)?G:[].concat(nu(G),[ee])},[]);else if(y==="number"){var q=DJ(C,a.filter(function(G){var ee,he,$e=o in G.props?G.props[o]:(ee=G.type.defaultProps)===null||ee===void 0?void 0:ee[o],se="hide"in G.props?G.props.hide:(he=G.type.defaultProps)===null||he===void 0?void 0:he.hide;return $e===T&&(E||!se)}),x,i,f);q&&(R=q)}h&&(y==="number"||O!=="auto")&&(k=gs(C,x,"category"))}else h?R=_h(0,D):l&&l[T]&&l[T].hasStack&&y==="number"?R=d==="expand"?[0,1]:XN(l[T].stackGroups,u,s):R=FN(C,a.filter(function(G){var ee=o in G.props?G.props[o]:G.type.defaultProps[o],he="hide"in G.props?G.props.hide:G.type.defaultProps.hide;return ee===T&&(E||!he)}),y,f,!0);if(y==="number")R=xb(c,R,T,i,A),L&&(R=Bg(L,R,w));else if(y==="category"&&L){var F=L,W=R.every(function(G){return F.indexOf(G)>=0});W&&(R=F)}}return B(B({},b),{},re({},T,B(B({},p),{},{axisType:i,domain:R,categoricalDomain:k,duplicateDomain:U,originalDomain:(m=p.domain)!==null&&m!==void 0?m:P,isCategorical:h,layout:f})))},{})},Eue=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,u=n.dataStartIndex,s=n.dataEndIndex,f=t.layout,c=t.children,d=sy(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:s}),h=d.length,b=GN(f,i),v=-1;return r.reduce(function(m,p){var y=p.type.defaultProps!==void 0?B(B({},p.type.defaultProps),p.props):p.props,x=y[o],w=u$("number");if(!m[x]){v++;var S;return b?S=_h(0,h):l&&l[x]&&l[x].hasStack?(S=XN(l[x].stackGroups,u,s),S=xb(c,S,x,i)):(S=Bg(w,FN(d,r.filter(function(O){var A,E,T=o in O.props?O.props[o]:(A=O.type.defaultProps)===null||A===void 0?void 0:A[o],C="hide"in O.props?O.props.hide:(E=O.type.defaultProps)===null||E===void 0?void 0:E.hide;return T===x&&!C}),"number",f),a.defaultProps.allowDataOverflow),S=xb(c,S,x,i)),B(B({},m),{},re({},x,B(B({axisType:i},a.defaultProps),{},{hide:!0,orientation:Rn(xue,"".concat(i,".").concat(v%2),null),domain:S,originalDomain:w,isCategorical:b,layout:f})))}return m},{})},_ue=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,u=n.dataStartIndex,s=n.dataEndIndex,f=t.children,c="".concat(a,"Id"),d=Zn(f,i),h={};return d&&d.length?h=Aue(t,{axes:d,graphicalItems:o,axisType:a,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s}):o&&o.length&&(h=Eue(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s})),h},Tue=function(t){var n=Ro(t),r=Di(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:mx(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:hh(n,r)}},ZE=function(t){var n=t.children,r=t.defaultShowTooltip,a=Sn(n,Yl),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},jue=function(t){return!t||!t.length?!1:t.some(function(n){var r=ra(n&&n.type);return r&&r.indexOf("Bar")>=0})},JE=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"}},Cue=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,u=l===void 0?{}:l,s=r.width,f=r.height,c=r.children,d=r.margin||{},h=Sn(c,Yl),b=Sn(c,al),v=Object.keys(u).reduce(function(S,O){var A=u[O],E=A.orientation;return!A.mirror&&!A.hide?B(B({},S),{},re({},E,S[E]+A.width)):S},{left:d.left||0,right:d.right||0}),m=Object.keys(o).reduce(function(S,O){var A=o[O],E=A.orientation;return!A.mirror&&!A.hide?B(B({},S),{},re({},E,Rn(S,"".concat(E))+A.height)):S},{top:d.top||0,bottom:d.bottom||0}),p=B(B({},m),v),y=p.bottom;h&&(p.bottom+=h.props.height||Yl.defaultProps.height),b&&n&&(p=$J(p,a,r,n));var x=s-p.left-p.right,w=f-p.top-p.bottom;return B(B({brushBottom:y},p),{},{width:Math.max(x,0),height:Math.max(w,0)})},Mue=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},s$=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(p,y){var x=y.graphicalItems,w=y.stackGroups,S=y.offset,O=y.updateId,A=y.dataStartIndex,E=y.dataEndIndex,T=p.barSize,C=p.layout,D=p.barGap,R=p.barCategoryGap,U=p.maxBarSize,k=JE(C),P=k.numericAxisName,$=k.cateAxisName,L=jue(x),z=[];return x.forEach(function(q,F){var W=sy(p.data,{graphicalItems:[q],dataStartIndex:A,dataEndIndex:E}),G=q.type.defaultProps!==void 0?B(B({},q.type.defaultProps),q.props):q.props,ee=G.dataKey,he=G.maxBarSize,$e=G["".concat(P,"Id")],se=G["".concat($,"Id")],dt={},bt=u.reduce(function(Pr,gn){var fy=y["".concat(gn.axisType,"Map")],Xx=G["".concat(gn.axisType,"Id")];fy&&fy[Xx]||gn.axisType==="zAxis"||fo();var Qx=fy[Xx];return B(B({},Pr),{},re(re({},gn.axisType,Qx),"".concat(gn.axisType,"Ticks"),Di(Qx)))},dt),Q=bt[$],oe=bt["".concat($,"Ticks")],ce=w&&w[$e]&&w[$e].hasStack&&FJ(q,w[$e].stackGroups),H=ra(q.type).indexOf("Bar")>=0,Ke=hh(Q,oe),me=[],je=L&&NJ({barSize:T,stackGroups:w,totalSize:Mue(bt,$)});if(H){var J,Pe,Dt=ye(he)?U:he,an=(J=(Pe=hh(Q,oe,!0))!==null&&Pe!==void 0?Pe:Dt)!==null&&J!==void 0?J:0;me=RJ({barGap:D,barCategoryGap:R,bandSize:an!==Ke?an:Ke,sizeList:je[se],maxBarSize:Dt}),an!==Ke&&(me=me.map(function(Pr){return B(B({},Pr),{},{position:B(B({},Pr.position),{},{offset:Pr.position.offset-an/2})})}))}var vi=q&&q.type&&q.type.getComposedData;vi&&z.push({props:B(B({},vi(B(B({},bt),{},{displayedData:W,props:p,dataKey:ee,item:q,bandSize:Ke,barPosition:me,offset:S,stackedData:ce,layout:C,dataStartIndex:A,dataEndIndex:E}))),{},re(re(re({key:q.key||"item-".concat(F)},P,bt[P]),$,bt[$]),"animationId",O)),childIndex:N6(q,p.children),item:q})}),z},h=function(p,y){var x=p.props,w=p.dataStartIndex,S=p.dataEndIndex,O=p.updateId;if(!xO({props:x}))return null;var A=x.children,E=x.layout,T=x.stackOffset,C=x.data,D=x.reverseStackOrder,R=JE(E),U=R.numericAxisName,k=R.cateAxisName,P=Zn(A,r),$=HJ(C,P,"".concat(U,"Id"),"".concat(k,"Id"),T,D),L=u.reduce(function(G,ee){var he="".concat(ee.axisType,"Map");return B(B({},G),{},re({},he,_ue(x,B(B({},ee),{},{graphicalItems:P,stackGroups:ee.axisType===U&&$,dataStartIndex:w,dataEndIndex:S}))))},{}),z=Cue(B(B({},L),{},{props:x,graphicalItems:P}),y==null?void 0:y.legendBBox);Object.keys(L).forEach(function(G){L[G]=f(x,L[G],z,G.replace("Map",""),n)});var q=L["".concat(k,"Map")],F=Tue(q),W=d(x,B(B({},L),{},{dataStartIndex:w,dataEndIndex:S,updateId:O,graphicalItems:P,stackGroups:$,offset:z}));return B(B({formattedGraphicalItems:W,graphicalItems:P,offset:z,stackGroups:$},F),L)},b=function(m){function p(y){var x,w,S;return sue(this,p),S=due(this,p,[y]),re(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),re(S,"accessibilityManager",new Xle),re(S,"handleLegendBBoxUpdate",function(O){if(O){var A=S.state,E=A.dataStartIndex,T=A.dataEndIndex,C=A.updateId;S.setState(B({legendBBox:O},h({props:S.props,dataStartIndex:E,dataEndIndex:T,updateId:C},B(B({},S.state),{},{legendBBox:O}))))}}),re(S,"handleReceiveSyncEvent",function(O,A,E){if(S.props.syncId===O){if(E===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(A)}}),re(S,"handleBrushChange",function(O){var A=O.startIndex,E=O.endIndex;if(A!==S.state.dataStartIndex||E!==S.state.dataEndIndex){var T=S.state.updateId;S.setState(function(){return B({dataStartIndex:A,dataEndIndex:E},h({props:S.props,dataStartIndex:A,dataEndIndex:E,updateId:T},S.state))}),S.triggerSyncEvent({dataStartIndex:A,dataEndIndex:E})}}),re(S,"handleMouseEnter",function(O){var A=S.getMouseInfo(O);if(A){var E=B(B({},A),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseEnter;le(T)&&T(E,O)}}),re(S,"triggeredAfterMouseMove",function(O){var A=S.getMouseInfo(O),E=A?B(B({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseMove;le(T)&&T(E,O)}),re(S,"handleItemMouseEnter",function(O){S.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),re(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),re(S,"handleMouseMove",function(O){O.persist(),S.throttleTriggeredAfterMouseMove(O)}),re(S,"handleMouseLeave",function(O){S.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};S.setState(A),S.triggerSyncEvent(A);var E=S.props.onMouseLeave;le(E)&&E(A,O)}),re(S,"handleOuterEvent",function(O){var A=M6(O),E=Rn(S.props,"".concat(A));if(A&&le(E)){var T,C;/.*touch.*/i.test(A)?C=S.getMouseInfo(O.changedTouches[0]):C=S.getMouseInfo(O),E((T=C)!==null&&T!==void 0?T:{},O)}}),re(S,"handleClick",function(O){var A=S.getMouseInfo(O);if(A){var E=B(B({},A),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var T=S.props.onClick;le(T)&&T(E,O)}}),re(S,"handleMouseDown",function(O){var A=S.props.onMouseDown;if(le(A)){var E=S.getMouseInfo(O);A(E,O)}}),re(S,"handleMouseUp",function(O){var A=S.props.onMouseUp;if(le(A)){var E=S.getMouseInfo(O);A(E,O)}}),re(S,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),re(S,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.handleMouseDown(O.changedTouches[0])}),re(S,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.handleMouseUp(O.changedTouches[0])}),re(S,"handleDoubleClick",function(O){var A=S.props.onDoubleClick;if(le(A)){var E=S.getMouseInfo(O);A(E,O)}}),re(S,"handleContextMenu",function(O){var A=S.props.onContextMenu;if(le(A)){var E=S.getMouseInfo(O);A(E,O)}}),re(S,"triggerSyncEvent",function(O){S.props.syncId!==void 0&&Cm.emit(Mm,S.props.syncId,O,S.eventEmitterSymbol)}),re(S,"applySyncEvent",function(O){var A=S.props,E=A.layout,T=A.syncMethod,C=S.state.updateId,D=O.dataStartIndex,R=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)S.setState(B({dataStartIndex:D,dataEndIndex:R},h({props:S.props,dataStartIndex:D,dataEndIndex:R,updateId:C},S.state)));else if(O.activeTooltipIndex!==void 0){var U=O.chartX,k=O.chartY,P=O.activeTooltipIndex,$=S.state,L=$.offset,z=$.tooltipTicks;if(!L)return;if(typeof T=="function")P=T(z,O);else if(T==="value"){P=-1;for(var q=0;q<z.length;q++)if(z[q].value===O.activeLabel){P=q;break}}var F=B(B({},L),{},{x:L.left,y:L.top}),W=Math.min(U,F.x+F.width),G=Math.min(k,F.y+F.height),ee=z[P]&&z[P].value,he=wb(S.state,S.props.data,P),$e=z[P]?{x:E==="horizontal"?z[P].coordinate:W,y:E==="horizontal"?G:z[P].coordinate}:l$;S.setState(B(B({},O),{},{activeLabel:ee,activeCoordinate:$e,activePayload:he,activeTooltipIndex:P}))}else S.setState(O)}),re(S,"renderCursor",function(O){var A,E=S.state,T=E.isTooltipActive,C=E.activeCoordinate,D=E.activePayload,R=E.offset,U=E.activeTooltipIndex,k=E.tooltipAxisBandSize,P=S.getTooltipEventType(),$=(A=O.props.active)!==null&&A!==void 0?A:T,L=S.props.layout,z=O.key||"_recharts-cursor";return N.createElement(nue,{key:z,activeCoordinate:C,activePayload:D,activeTooltipIndex:U,chartName:n,element:O,isActive:$,layout:L,offset:R,tooltipAxisBandSize:k,tooltipEventType:P})}),re(S,"renderPolarAxis",function(O,A,E){var T=Rn(O,"type.axisType"),C=Rn(S.state,"".concat(T,"Map")),D=O.type.defaultProps,R=D!==void 0?B(B({},D),O.props):O.props,U=C&&C[R["".concat(T,"Id")]];return _.cloneElement(O,B(B({},U),{},{className:pe(T,U.className),key:O.key||"".concat(A,"-").concat(E),ticks:Di(U,!0)}))}),re(S,"renderPolarGrid",function(O){var A=O.props,E=A.radialLines,T=A.polarAngles,C=A.polarRadius,D=S.state,R=D.radiusAxisMap,U=D.angleAxisMap,k=Ro(R),P=Ro(U),$=P.cx,L=P.cy,z=P.innerRadius,q=P.outerRadius;return _.cloneElement(O,{polarAngles:Array.isArray(T)?T:Di(P,!0).map(function(F){return F.coordinate}),polarRadius:Array.isArray(C)?C:Di(k,!0).map(function(F){return F.coordinate}),cx:$,cy:L,innerRadius:z,outerRadius:q,key:O.key||"polar-grid",radialLines:E})}),re(S,"renderLegend",function(){var O=S.state.formattedGraphicalItems,A=S.props,E=A.children,T=A.width,C=A.height,D=S.props.margin||{},R=T-(D.left||0)-(D.right||0),U=HN({children:E,formattedGraphicalItems:O,legendWidth:R,legendContent:s});if(!U)return null;var k=U.item,P=XE(U,rue);return _.cloneElement(k,B(B({},P),{},{chartWidth:T,chartHeight:C,margin:D,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),re(S,"renderTooltip",function(){var O,A=S.props,E=A.children,T=A.accessibilityLayer,C=Sn(E,lr);if(!C)return null;var D=S.state,R=D.isTooltipActive,U=D.activeCoordinate,k=D.activePayload,P=D.activeLabel,$=D.offset,L=(O=C.props.active)!==null&&O!==void 0?O:R;return _.cloneElement(C,{viewBox:B(B({},$),{},{x:$.left,y:$.top}),active:L,label:P,payload:L?k:[],coordinate:U,accessibilityLayer:T})}),re(S,"renderBrush",function(O){var A=S.props,E=A.margin,T=A.data,C=S.state,D=C.offset,R=C.dataStartIndex,U=C.dataEndIndex,k=C.updateId;return _.cloneElement(O,{key:O.key||"_recharts-brush",onChange:jf(S.handleBrushChange,O.props.onChange),data:T,x:K(O.props.x)?O.props.x:D.left,y:K(O.props.y)?O.props.y:D.top+D.height+D.brushBottom-(E.bottom||0),width:K(O.props.width)?O.props.width:D.width,startIndex:R,endIndex:U,updateId:"brush-".concat(k)})}),re(S,"renderReferenceElement",function(O,A,E){if(!O)return null;var T=S,C=T.clipPathId,D=S.state,R=D.xAxisMap,U=D.yAxisMap,k=D.offset,P=O.type.defaultProps||{},$=O.props,L=$.xAxisId,z=L===void 0?P.xAxisId:L,q=$.yAxisId,F=q===void 0?P.yAxisId:q;return _.cloneElement(O,{key:O.key||"".concat(A,"-").concat(E),xAxis:R[z],yAxis:U[F],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:C})}),re(S,"renderActivePoints",function(O){var A=O.item,E=O.activePoint,T=O.basePoint,C=O.childIndex,D=O.isRange,R=[],U=A.props.key,k=A.item.type.defaultProps!==void 0?B(B({},A.item.type.defaultProps),A.item.props):A.item.props,P=k.activeDot,$=k.dataKey,L=B(B({index:C,dataKey:$,cx:E.x,cy:E.y,r:4,fill:Hx(A.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},ie(P,!1)),Ud(P));return R.push(p.renderActiveDot(P,L,"".concat(U,"-activePoint-").concat(C))),T?R.push(p.renderActiveDot(P,B(B({},L),{},{cx:T.x,cy:T.y}),"".concat(U,"-basePoint-").concat(C))):D&&R.push(null),R}),re(S,"renderGraphicChild",function(O,A,E){var T=S.filterFormatItem(O,A,E);if(!T)return null;var C=S.getTooltipEventType(),D=S.state,R=D.isTooltipActive,U=D.tooltipAxis,k=D.activeTooltipIndex,P=D.activeLabel,$=S.props.children,L=Sn($,lr),z=T.props,q=z.points,F=z.isRange,W=z.baseLine,G=T.item.type.defaultProps!==void 0?B(B({},T.item.type.defaultProps),T.item.props):T.item.props,ee=G.activeDot,he=G.hide,$e=G.activeBar,se=G.activeShape,dt=!!(!he&&R&&L&&(ee||$e||se)),bt={};C!=="axis"&&L&&L.props.trigger==="click"?bt={onClick:jf(S.handleItemMouseEnter,O.props.onClick)}:C!=="axis"&&(bt={onMouseLeave:jf(S.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:jf(S.handleItemMouseEnter,O.props.onMouseEnter)});var Q=_.cloneElement(O,B(B({},T.props),bt));function oe(gn){return typeof U.dataKey=="function"?U.dataKey(gn.payload):null}if(dt)if(k>=0){var ce,H;if(U.dataKey&&!U.allowDuplicatedCategory){var Ke=typeof U.dataKey=="function"?oe:"payload.".concat(U.dataKey.toString());ce=Wv(q,Ke,P),H=F&&W&&Wv(W,Ke,P)}else ce=q==null?void 0:q[k],H=F&&W&&W[k];if(se||$e){var me=O.props.activeIndex!==void 0?O.props.activeIndex:k;return[_.cloneElement(O,B(B(B({},T.props),bt),{},{activeIndex:me})),null,null]}if(!ye(ce))return[Q].concat(nu(S.renderActivePoints({item:T,activePoint:ce,basePoint:H,childIndex:k,isRange:F})))}else{var je,J=(je=S.getItemByXY(S.state.activeCoordinate))!==null&&je!==void 0?je:{graphicalItem:Q},Pe=J.graphicalItem,Dt=Pe.item,an=Dt===void 0?O:Dt,vi=Pe.childIndex,Pr=B(B(B({},T.props),bt),{},{activeIndex:vi});return[_.cloneElement(an,Pr),null,null]}return F?[Q,null,null]:[Q,null]}),re(S,"renderCustomized",function(O,A,E){return _.cloneElement(O,B(B({key:"recharts-customized-".concat(E)},S.props),S.state))}),re(S,"renderMap",{CartesianGrid:{handler:$f,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:$f},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:$f},YAxis:{handler:$f},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((x=y.id)!==null&&x!==void 0?x:Kc("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=HM(S.triggeredAfterMouseMove,(w=y.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return yue(p,m),fue(p,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,S=x.data,O=x.height,A=x.layout,E=Sn(w,lr);if(E){var T=E.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,D=wb(this.state,S,T,C),R=this.state.tooltipTicks[T].coordinate,U=(this.state.offset.top+O)/2,k=A==="horizontal",P=k?{x:R,y:U}:{y:R,x:U},$=this.state.formattedGraphicalItems.find(function(z){var q=z.item;return q.type.name==="Scatter"});$&&(P=B(B({},P),$.props.points[T].tooltipPosition),D=$.props.points[T].tooltipPayload);var L={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:D,activeCoordinate:P};this.setState(L),this.renderCursor(E),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var S,O;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(x){Jv([Sn(x.children,lr)],[Sn(this.props.children,lr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Sn(this.props.children,lr);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return l.indexOf(w)>=0?w:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,S=w.getBoundingClientRect(),O=aX(S),A={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},E=S.width/w.offsetWidth||1,T=this.inRange(A.chartX,A.chartY,E);if(!T)return null;var C=this.state,D=C.xAxisMap,R=C.yAxisMap,U=this.getTooltipEventType(),k=WE(this.state,this.props.data,this.props.layout,T);if(U!=="axis"&&D&&R){var P=Ro(D).scale,$=Ro(R).scale,L=P&&P.invert?P.invert(A.chartX):null,z=$&&$.invert?$.invert(A.chartY):null;return B(B({},A),{},{xValue:L,yValue:z},k)}return k?B(B({},A),k):null}},{key:"inRange",value:function(x,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,A=x/S,E=w/S;if(O==="horizontal"||O==="vertical"){var T=this.state.offset,C=A>=T.left&&A<=T.left+T.width&&E>=T.top&&E<=T.top+T.height;return C?{x:A,y:E}:null}var D=this.state,R=D.angleAxisMap,U=D.radiusAxisMap;if(R&&U){var k=Ro(R);return MA({x:A,y:E},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),S=Sn(x,lr),O={};S&&w==="axis"&&(S.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=Ud(this.props,this.handleOuterEvent);return B(B({},A),O)}},{key:"addListener",value:function(){Cm.on(Mm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Cm.removeListener(Mm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,S){for(var O=this.state.formattedGraphicalItems,A=0,E=O.length;A<E;A++){var T=O[A];if(T.item===x||T.props.key===x.key||w===ra(T.item.type)&&S===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,S=w.left,O=w.top,A=w.height,E=w.width;return N.createElement("defs",null,N.createElement("clipPath",{id:x},N.createElement("rect",{x:S,y:O,height:A,width:E})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,S){var O=VE(S,2),A=O[0],E=O[1];return B(B({},w),{},re({},A,E.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,S){var O=VE(S,2),A=O[0],E=O[1];return B(B({},w),{},re({},A,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,S=w.formattedGraphicalItems,O=w.activeItem;if(S&&S.length)for(var A=0,E=S.length;A<E;A++){var T=S[A],C=T.props,D=T.item,R=D.type.defaultProps!==void 0?B(B({},D.type.defaultProps),D.props):D.props,U=ra(D.type);if(U==="Bar"){var k=(C.data||[]).find(function(z){return Fne(x,z)});if(k)return{graphicalItem:T,payload:k}}else if(U==="RadialBar"){var P=(C.data||[]).find(function(z){return MA(x,z)});if(P)return{graphicalItem:T,payload:P}}else if(Jp(T,O)||ey(T,O)||pc(T,O)){var $=Rae({graphicalItem:T,activeTooltipItem:O,itemData:R.data}),L=R.activeIndex===void 0?$:R.activeIndex;return{graphicalItem:B(B({},T),{},{childIndex:L}),payload:pc(T,O)?R.data[$]:T.props.data[$]}}}return null}},{key:"render",value:function(){var x=this;if(!xO(this))return null;var w=this.props,S=w.children,O=w.className,A=w.width,E=w.height,T=w.style,C=w.compact,D=w.title,R=w.desc,U=XE(w,aue),k=ie(U,!1);if(C)return N.createElement(DE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},N.createElement(tg,Xo({},k,{width:A,height:E,title:D,desc:R}),this.renderClipPath(),OO(S,this.renderMap)));if(this.props.accessibilityLayer){var P,$;k.tabIndex=(P=this.props.tabIndex)!==null&&P!==void 0?P:0,k.role=($=this.props.role)!==null&&$!==void 0?$:"application",k.onKeyDown=function(z){x.accessibilityManager.keyboardEvent(z)},k.onFocus=function(){x.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return N.createElement(DE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},N.createElement("div",Xo({className:pe("recharts-wrapper",O),style:B({position:"relative",cursor:"default",width:A,height:E},T)},L,{ref:function(q){x.container=q}}),N.createElement(tg,Xo({},k,{width:A,height:E,title:D,desc:R,style:Sue}),this.renderClipPath(),OO(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(_.Component);re(b,"displayName",n),re(b,"defaultProps",B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),re(b,"getDerivedStateFromProps",function(m,p){var y=m.dataKey,x=m.data,w=m.children,S=m.width,O=m.height,A=m.layout,E=m.stackOffset,T=m.margin,C=p.dataStartIndex,D=p.dataEndIndex;if(p.updateId===void 0){var R=ZE(m);return B(B(B({},R),{},{updateId:0},h(B(B({props:m},R),{},{updateId:0}),p)),{},{prevDataKey:y,prevData:x,prevWidth:S,prevHeight:O,prevLayout:A,prevStackOffset:E,prevMargin:T,prevChildren:w})}if(y!==p.prevDataKey||x!==p.prevData||S!==p.prevWidth||O!==p.prevHeight||A!==p.prevLayout||E!==p.prevStackOffset||!rl(T,p.prevMargin)){var U=ZE(m),k={chartX:p.chartX,chartY:p.chartY,isTooltipActive:p.isTooltipActive},P=B(B({},WE(p,x,A)),{},{updateId:p.updateId+1}),$=B(B(B({},U),k),P);return B(B(B({},$),h(B({props:m},$),p)),{},{prevDataKey:y,prevData:x,prevWidth:S,prevHeight:O,prevLayout:A,prevStackOffset:E,prevMargin:T,prevChildren:w})}if(!Jv(w,p.prevChildren)){var L,z,q,F,W=Sn(w,Yl),G=W&&(L=(z=W.props)===null||z===void 0?void 0:z.startIndex)!==null&&L!==void 0?L:C,ee=W&&(q=(F=W.props)===null||F===void 0?void 0:F.endIndex)!==null&&q!==void 0?q:D,he=G!==C||ee!==D,$e=!ye(x),se=$e&&!he?p.updateId:p.updateId+1;return B(B({updateId:se},h(B(B({props:m},p),{},{updateId:se,dataStartIndex:G,dataEndIndex:ee}),p)),{},{prevChildren:w,dataStartIndex:G,dataEndIndex:ee})}return null}),re(b,"renderActiveDot",function(m,p,y){var x;return _.isValidElement(m)?x=_.cloneElement(m,p):le(m)?x=m(p):x=N.createElement(Fx,p),N.createElement(Ne,{className:"recharts-active-dot",key:y},x)});var v=_.forwardRef(function(p,y){return N.createElement(b,Xo({},p,{ref:y}))});return v.displayName=b.displayName,v},Nue=s$({chartName:"BarChart",GraphicalChild:Oo,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ly},{axisType:"yAxis",AxisComp:uy}],formatAxisMap:doe}),Rue=s$({chartName:"PieChart",GraphicalChild:Sa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Zp},{axisType:"radiusAxis",AxisComp:Qp}],formatAxisMap:eee,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Oa({title:e,subtitle:t,actions:n}){return g.jsxs("div",{className:"flex items-end justify-between mb-5",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-semibold text-white",children:e}),t&&g.jsx("p",{className:"text-sm text-gray-400 mt-1",children:t})]}),n&&g.jsx("div",{className:"flex gap-2",children:n})]})}function cy({children:e}){return g.jsx("div",{className:"bg-panel border border-edge rounded-lg p-3 flex flex-wrap gap-2 items-center mb-4",children:e})}function Vt({children:e,onClick:t,variant:n="primary",type:r="button",disabled:a,icon:i}){const o={primary:"bg-brand hover:bg-brand2 text-white",ghost:"bg-card border border-edge text-gray-300 hover:border-brand/60",danger:"bg-red-500/90 hover:bg-red-500 text-white"};return g.jsxs("button",{type:r,onClick:t,disabled:a,className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded text-sm font-medium disabled:opacity-40 ${o[n]}`,children:[i&&g.jsx(We,{name:i,size:14}),e]})}function wt({value:e,onChange:t,placeholder:n,type:r="text",className:a}){return g.jsx("input",{type:r,value:e,placeholder:n,onChange:i=>t(i.target.value),className:`bg-ink border border-edge rounded px-3 py-1.5 text-sm text-gray-200 outline-none focus:border-brand ${a||""}`})}function Ht({value:e,onChange:t,children:n,className:r}){return g.jsx("select",{value:e,onChange:a=>t(a.target.value),className:`bg-ink border border-edge rounded px-3 py-1.5 text-sm text-gray-200 outline-none focus:border-brand ${r||""}`,children:n})}function Oe({label:e,children:t}){return g.jsxs("label",{className:"block mb-3",children:[g.jsx("span",{className:"block text-xs text-gray-400 mb-1",children:e}),t]})}function Cu({columns:e,rows:t,rowKey:n,empty:r="데이터가 없습니다."}){return g.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-x-auto",children:g.jsxs("table",{className:"w-full text-sm",children:[g.jsx("thead",{className:"bg-panel border-b border-edge",children:g.jsx("tr",{children:e.map(a=>g.jsx("th",{className:`px-4 py-3 text-xs text-gray-400 font-medium text-${a.align||"left"}`,children:a.header},a.key))})}),g.jsx("tbody",{children:t.length===0?g.jsx("tr",{children:g.jsx("td",{colSpan:e.length,className:"px-4 py-10 text-center text-gray-500",children:r})}):t.map(a=>g.jsx("tr",{className:"border-b border-edge/70 hover:bg-edge/30",children:e.map(i=>g.jsx("td",{className:`px-4 py-2.5 text-gray-300 text-${i.align||"left"}`,children:i.render?i.render(a):String(a[i.key]??"")},i.key))},n(a)))})]})})}function Wc({title:e,onClose:t,children:n,wide:r}){return g.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50 p-4",onClick:t,children:g.jsxs("div",{className:`bg-card border border-edge rounded-lg p-6 w-full ${r?"max-w-3xl":"max-w-md"} max-h-[88vh] overflow-auto`,onClick:a=>a.stopPropagation(),children:[g.jsxs("div",{className:"flex justify-between items-center mb-4",children:[g.jsx("h2",{className:"font-semibold text-white",children:e}),g.jsx("button",{onClick:t,className:"text-gray-400 hover:text-white",children:g.jsx(We,{name:"close",size:18})})]}),n]})})}const e_={green:"bg-green-500/15 text-green-400",red:"bg-red-500/15 text-red-400",yellow:"bg-yellow-500/15 text-yellow-400",orange:"bg-orange-500/15 text-orange-400",blue:"bg-brand/15 text-brand",gray:"bg-gray-500/15 text-gray-400"};function Ie({tone:e="gray",children:t}){return g.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${e_[e]||e_.gray}`,children:t})}function jo({title:e,value:t,icon:n,color:r="brand",sub:a}){const i={brand:"text-brand bg-brand/10",green:"text-green-400 bg-green-400/10",red:"text-red-400 bg-red-400/10",orange:"text-orange-400 bg-orange-400/10",yellow:"text-yellow-400 bg-yellow-400/10",accent:"text-accent bg-accent/10"},o=i[r]||i.brand;return g.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4 flex items-center gap-4",children:[g.jsx("div",{className:`p-3 rounded-lg ${o}`,children:g.jsx(We,{name:n,size:20})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-xs text-gray-400",children:e}),g.jsx("p",{className:`text-2xl font-bold ${o.split(" ")[0]}`,children:t}),a&&g.jsx("p",{className:"text-xs text-gray-500",children:a})]})]})}function $ue({label:e="로딩 중..."}){return g.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:e})}const Rr=["ZIOINFO","TENANT_A","TENANT_B","EMART"],t_=["#3ddc97","#ef4444","#f59e0b","#00a0c8"],n_={background:"#1a2234",border:"1px solid #26304a",color:"#fff"};function Pue(){const e=localStorage.getItem("sgn_tenant"),{data:t,isLoading:n}=Dn({queryKey:["dashboard",e],queryFn:()=>NB(e&&e!=="ALL"?e:void 0),refetchInterval:3e4});if(n)return g.jsx($ue,{});if(!t)return g.jsx("div",{className:"text-red-400 p-8",children:"데이터를 가져올 수 없습니다."});const r=[{name:"온라인",value:t.onlineDevices||0},{name:"오프라인",value:t.offlineDevices||0}],a=[{name:"오늘 작업",value:t.totalWorkToday||0},{name:"완료",value:t.completedWorkToday||0},{name:"POS 대기",value:t.pendingPosCvt||0},{name:"POS 처리",value:t.processedPosCvtToday||0}];return g.jsxs("div",{className:"space-y-6",children:[g.jsx("h1",{className:"text-xl font-semibold text-white",children:"대시보드"}),g.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:[g.jsx(jo,{title:"전체 매장",value:t.totalStores||0,icon:"store",color:"brand"}),g.jsx(jo,{title:"운영 매장",value:t.activeStores||0,icon:"store",color:"green"}),g.jsx(jo,{title:"온라인 장치",value:t.onlineDevices||0,icon:"signboard",color:"green"}),g.jsx(jo,{title:"오프라인 장치",value:t.offlineDevices||0,icon:"gateway",color:"orange"}),g.jsx(jo,{title:"미해결 알람",value:t.unresolvedAlarms||0,icon:"alarm",color:"red"}),g.jsx(jo,{title:"긴급 알람",value:t.criticalAlarms||0,icon:"warn",color:"red"})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[g.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[g.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"디바이스 상태 현황"}),g.jsx(bw,{width:"100%",height:220,children:g.jsxs(Rue,{children:[g.jsx(Sa,{data:r,cx:"50%",cy:"50%",outerRadius:75,dataKey:"value",label:({name:i,value:o})=>`${i}: ${o}`,children:r.map((i,o)=>g.jsx(Dp,{fill:t_[o%t_.length]},o))}),g.jsx(lr,{contentStyle:n_})]})})]}),g.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[g.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"전송 · 처리 현황 (오늘)"}),g.jsx(bw,{width:"100%",height:220,children:g.jsxs(Nue,{data:a,children:[g.jsx(ly,{dataKey:"name",tick:{fill:"#9ca3af",fontSize:11}}),g.jsx(uy,{tick:{fill:"#9ca3af",fontSize:11},allowDecimals:!1}),g.jsx(lr,{contentStyle:n_,cursor:{fill:"rgba(0,160,200,0.08)"}}),g.jsx(Oo,{dataKey:"value",fill:"#00a0c8",radius:[3,3,0,0]})]})})]})]}),g.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[{t:"오늘 작업",v:t.totalWorkToday||0,s:`완료: ${t.completedWorkToday||0}`,c:"text-brand"},{t:"전체 알람",v:t.totalAlarms||0,s:`미해결: ${t.unresolvedAlarms||0}`,c:"text-yellow-400"},{t:"전체 장치",v:t.totalDevices||0,s:`오프라인: ${t.offlineDevices||0}`,c:"text-accent"},{t:"POS 처리(오늘)",v:t.processedPosCvtToday||0,s:`대기: ${t.pendingPosCvt||0}`,c:"text-green-400"}].map(i=>g.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[g.jsx("p",{className:"text-xs text-gray-400",children:i.t}),g.jsx("p",{className:`text-2xl font-bold ${i.c}`,children:i.v}),g.jsx("p",{className:"text-xs text-gray-500",children:i.s})]},i.t))})]})}function $r(e){const t=Mr(),[n,r]=_.useState(null),{data:a=[],isLoading:i}=Dn({queryKey:e.queryKey,queryFn:e.fetcher}),o=ut({mutationFn:s=>s.id&&e.onUpdate?e.onUpdate(s.id,s):e.onCreate(s),onSuccess:()=>{t.invalidateQueries({queryKey:[e.queryKey[0]]}),r(null)}}),l=ut({mutationFn:s=>e.onDelete(s),onSuccess:()=>t.invalidateQueries({queryKey:[e.queryKey[0]]})}),u=[...e.columns];return!e.readOnly&&(e.form||e.rowActions)&&u.push({key:"__act",header:"",align:"right",render:s=>{var f;return g.jsxs("div",{className:"flex gap-2 justify-end",children:[(f=e.rowActions)==null?void 0:f.call(e,s),e.form&&e.onUpdate&&g.jsx("button",{onClick:()=>r(s),className:"text-brand hover:text-blue-300",title:"수정",children:g.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("path",{d:"M4 20h4l10-10-4-4L4 16v4z"}),g.jsx("path",{d:"M13.5 6.5l4 4"})]})}),e.onDelete&&g.jsx("button",{onClick:()=>{confirm("삭제하시겠습니까?")&&l.mutate(s.id)},className:"text-red-400 hover:text-red-300",title:"삭제",children:g.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13"})})})]})}}),g.jsxs("div",{children:[g.jsx(Oa,{title:e.title,subtitle:e.subtitle,actions:!e.readOnly&&e.form&&e.onCreate&&g.jsx(Vt,{icon:"plus",onClick:()=>r({...e.defaults||{}}),children:e.addLabel||"추가"})}),e.toolbarExtra&&g.jsx(cy,{children:e.toolbarExtra}),i?g.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:"로딩 중..."}):g.jsx(Cu,{columns:u,rows:a,rowKey:s=>s.id}),n&&e.form&&g.jsx(Wc,{title:n.id?"수정":e.addLabel||"추가",onClose:()=>r(null),children:g.jsx(Due,{spec:e.form,initial:n,onSave:s=>o.mutate(s),saving:o.isPending})})]})}function Due({spec:e,initial:t,onSave:n,saving:r}){const a={id:t.id};e.forEach(u=>{a[u.key]=t[u.key]??(u.type==="checkbox"?!0:(u.type==="number",""))});const[i,o]=_.useState(a),l=(u,s)=>o(f=>({...f,[u]:s}));return g.jsxs("form",{onSubmit:u=>{u.preventDefault(),n(i)},children:[e.map(u=>g.jsx(Oe,{label:u.label,children:u.type==="select"?g.jsxs(Ht,{className:"w-full",value:String(i[u.key]??""),onChange:s=>l(u.key,s),children:[g.jsx("option",{value:"",children:"선택"}),(u.opts||[]).map(s=>{const f=typeof s=="string"?s:s.value,c=typeof s=="string"?s:s.label;return g.jsx("option",{value:f,children:c},f)})]}):u.type==="textarea"?g.jsx("textarea",{value:i[u.key]??"",onChange:s=>l(u.key,s.target.value),rows:4,placeholder:u.placeholder,className:"w-full bg-ink border border-edge rounded px-3 py-2 text-sm text-white font-mono outline-none focus:border-brand"}):u.type==="checkbox"?g.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-300",children:[g.jsx("input",{type:"checkbox",checked:!!i[u.key],onChange:s=>l(u.key,s.target.checked)}),"활성"]}):g.jsx(wt,{className:"w-full",type:u.type==="number"?"number":"text",value:String(i[u.key]??""),onChange:s=>l(u.key,u.type==="number"?s===""?"":Number(s):s),placeholder:u.placeholder})},u.key)),g.jsx("button",{type:"submit",disabled:r,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium disabled:opacity-50 mt-1",children:r?"저장 중...":"저장"})]})}const kue=["GEN1","GEN2","GEN2_PLUS_EMS"],Lue=["GATEWAY","HUB","ESB_TAG"],r_=["ONLINE","OFFLINE","ERROR","UPDATING"],Bue=e=>e==="ONLINE"?"green":e==="ERROR"?"red":e==="UPDATING"?"yellow":"gray";function Uue(){const[e,t]=_.useState(""),{data:n=[]}=Dn({queryKey:["stores"],queryFn:()=>dp()}),r=n.map(a=>({value:String(a.id),label:`${a.storeName} (${a.storeCode})`}));return g.jsx($r,{title:"게이트웨이 관제",subtitle:"Gateway/Hub 세대(GEN1·GEN2·GEN2+EMS) 상태 및 장애 모니터링",addLabel:"게이트웨이 등록",queryKey:["gateways",e],fetcher:()=>ZB(e?{status:e}:{}),onCreate:JB,onUpdate:e5,onDelete:t5,defaults:{tenantCode:"ZIOINFO",deviceType:"GATEWAY",gwType:"GEN2",status:"ONLINE"},toolbarExtra:g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-xs text-gray-400",children:"상태 필터"}),g.jsxs(Ht,{value:e,onChange:t,children:[g.jsx("option",{value:"",children:"전체"}),r_.map(a=>g.jsx("option",{value:a,children:a},a))]})]}),columns:[{key:"deviceId",header:"장치 ID",render:a=>g.jsx("span",{className:"font-mono text-xs text-white",children:a.deviceId})},{key:"storeName",header:"매장",render:a=>g.jsx("span",{className:"text-gray-300",children:a.storeName||"-"})},{key:"deviceType",header:"유형",render:a=>g.jsx("span",{className:"text-xs text-gray-400",children:a.deviceType})},{key:"gwType",header:"세대",render:a=>g.jsx(Ie,{tone:"blue",children:a.gwType})},{key:"firmwareVersion",header:"펌웨어",render:a=>g.jsx("span",{className:"font-mono text-xs text-gray-400",children:a.firmwareVersion||"-"})},{key:"batteryLevel",header:"배터리",render:a=>a.batteryLevel!=null?g.jsxs("span",{className:"text-xs",children:[a.batteryLevel,"%"]}):"-"},{key:"status",header:"상태",render:a=>g.jsx(Ie,{tone:Bue(a.status),children:a.status})}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:["ZIOINFO","TENANT_A","TENANT_B","EMART"]},{key:"storeId",label:"매장",type:"select",opts:r},{key:"deviceId",label:"장치 ID"},{key:"deviceType",label:"장치 유형",type:"select",opts:Lue},{key:"gwType",label:"게이트웨이 세대",type:"select",opts:kue},{key:"firmwareVersion",label:"펌웨어 버전"},{key:"macAddress",label:"MAC 주소"},{key:"status",label:"상태",type:"select",opts:r_}]})}const zue=["ACTIVE","UNBOUND","ERROR"],Iue=e=>e==="ACTIVE"?"green":e==="ERROR"?"red":"gray",Hue=e=>e==="ONLINE"?"green":e==="OFFLINE"?"gray":"orange";function que(){const e=Mr(),[t,n]=_.useState(""),{data:r=[]}=Dn({queryKey:["stores"],queryFn:()=>dp()}),a=r.map(o=>({value:String(o.id),label:`${o.storeName} (${o.storeCode})`})),i=ut({mutationFn:i5,onSuccess:()=>e.invalidateQueries({queryKey:["signboards"]})});return g.jsx($r,{title:"간판 패널 (ESB)",subtitle:"e-SignBoard 태그 패널의 바인딩·디바이스 상태 및 장애 모니터링",addLabel:"패널 바인딩",queryKey:["signboards",t],fetcher:()=>n5(t?{bindStatus:t}:{}),onCreate:r5,onUpdate:a5,defaults:{tenantCode:"ZIOINFO",bindStatus:"ACTIVE"},toolbarExtra:g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-xs text-gray-400",children:"바인딩 필터"}),g.jsxs(Ht,{value:t,onChange:n,children:[g.jsx("option",{value:"",children:"전체"}),zue.map(o=>g.jsx("option",{value:o,children:o},o))]})]}),rowActions:o=>o.bindStatus==="ACTIVE"?g.jsx("button",{onClick:()=>{confirm("바인딩 해제?")&&i.mutate(o.id)},className:"text-orange-400 hover:text-orange-300 text-xs px-1",children:"해제"}):null,columns:[{key:"deviceId",header:"장치 ID",render:o=>g.jsx("span",{className:"font-mono text-xs text-white",children:o.deviceId})},{key:"storeName",header:"매장",render:o=>g.jsx("span",{className:"text-gray-300",children:o.storeName||"-"})},{key:"productName",header:"표시 상품",render:o=>g.jsx("span",{className:"text-gray-300",children:o.productName||"-"})},{key:"locationCode",header:"위치",render:o=>g.jsx("span",{className:"font-mono text-xs text-gray-400",children:o.locationCode||"-"})},{key:"templateCode",header:"템플릿",render:o=>g.jsx("span",{className:"font-mono text-xs text-gray-400",children:o.templateCode||"-"})},{key:"batteryLevel",header:"배터리",render:o=>o.batteryLevel!=null?`${o.batteryLevel}%`:"-"},{key:"deviceStatus",header:"디바이스",render:o=>g.jsx(Ie,{tone:Hue(o.deviceStatus),children:o.deviceStatus||"-"})},{key:"bindStatus",header:"바인딩",render:o=>g.jsx(Ie,{tone:Iue(o.bindStatus),children:o.bindStatus})}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:["ZIOINFO","TENANT_A","TENANT_B","EMART"]},{key:"storeId",label:"매장",type:"select",opts:a},{key:"deviceId",label:"장치 ID (ESL device_id)"},{key:"productCode",label:"상품코드"},{key:"productName",label:"상품명"},{key:"locationCode",label:"위치코드",placeholder:"예: A01-03"},{key:"templateCode",label:"템플릿코드"}]})}const Fue=["CRITICAL","HIGH","MEDIUM","LOW"],Gue=["OPEN","ACKNOWLEDGED","RESOLVED"],Kue=e=>e==="CRITICAL"?"red":e==="HIGH"?"orange":e==="MEDIUM"?"yellow":"gray",Yue=e=>e==="RESOLVED"?"green":e==="ACKNOWLEDGED"?"yellow":"red";function Vue(){const e=Mr(),[t,n]=_.useState(""),[r,a]=_.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["alarms",t,r],queryFn:()=>M5({...t&&{status:t},...r&&{severity:r}}),refetchInterval:3e4}),l=ut({mutationFn:({id:s,resolution:f})=>N5(s,f),onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})}),u=ut({mutationFn:R5,onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})});return g.jsxs("div",{children:[g.jsx(Oa,{title:"알람 / 장애",subtitle:"디바이스·네트워크·배터리·펌웨어·시스템 장애 실시간 모니터링(30초 갱신)"}),g.jsxs(cy,{children:[g.jsx("span",{className:"text-xs text-gray-400",children:"상태"}),g.jsxs(Ht,{value:t,onChange:n,children:[g.jsx("option",{value:"",children:"전체"}),Gue.map(s=>g.jsx("option",{value:s,children:s},s))]}),g.jsx("span",{className:"text-xs text-gray-400 ml-2",children:"심각도"}),g.jsxs(Ht,{value:r,onChange:a,children:[g.jsx("option",{value:"",children:"전체"}),Fue.map(s=>g.jsx("option",{value:s,children:s},s))]})]}),o?g.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:"로딩 중..."}):g.jsx(Cu,{rowKey:s=>s.id,rows:i,columns:[{key:"severity",header:"심각도",render:s=>g.jsx(Ie,{tone:Kue(s.severity),children:s.severity})},{key:"alarmType",header:"유형",render:s=>g.jsx("span",{className:"text-xs text-gray-400",children:s.alarmType})},{key:"storeName",header:"매장",render:s=>g.jsx("span",{className:"text-gray-300",children:s.storeName||"-"})},{key:"message",header:"메시지",render:s=>g.jsx("span",{className:"text-gray-300",children:s.message})},{key:"status",header:"상태",render:s=>g.jsx(Ie,{tone:Yue(s.status),children:s.status})},{key:"__act",header:"",align:"right",render:s=>g.jsxs("div",{className:"flex gap-2 justify-end items-center",children:[s.status!=="RESOLVED"&&g.jsx(Vt,{variant:"ghost",icon:"check",onClick:()=>{const f=prompt("해결 내용을 입력하세요","조치 완료");f!=null&&l.mutate({id:s.id,resolution:f})},children:"해결"}),g.jsx("button",{onClick:()=>{confirm("삭제?")&&u.mutate(s.id)},className:"text-red-400 hover:text-red-300",children:g.jsx(We,{name:"trash",size:15})})]})}]})]})}function Xue(){return g.jsx($r,{title:"지역 관리",subtitle:"전자간판 광역 배포 단위(지역/데이터센터). 예: 서울·대전·대구·부산",addLabel:"지역 추가",queryKey:["regions"],fetcher:()=>kB(),onCreate:LB,onUpdate:BB,onDelete:UB,defaults:{tenantCode:"ZIOINFO",active:!0},columns:[{key:"tenantCode",header:"테넌트",render:e=>g.jsx("span",{className:"text-brand text-xs",children:e.tenantCode})},{key:"regionCode",header:"지역코드",render:e=>g.jsx("span",{className:"font-mono text-xs",children:e.regionCode})},{key:"regionName",header:"지역명",render:e=>g.jsx("span",{className:"text-white",children:e.regionName})},{key:"dcName",header:"DC명"},{key:"active",header:"상태",render:e=>g.jsx(Ie,{tone:e.active?"green":"gray",children:e.active?"사용":"중지"})}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:Rr},{key:"regionCode",label:"지역코드",placeholder:"예: SEOUL"},{key:"regionName",label:"지역명",placeholder:"예: 서울"},{key:"dcName",label:"DC명",placeholder:"예: 서울 데이터센터"},{key:"description",label:"설명"},{key:"active",label:"사용 여부",type:"checkbox"}]})}function Que(){return g.jsx($r,{title:"매장 관리",subtitle:"매장코드는 간판정보·사용자계정·백업 중앙배포의 기준 키입니다.",addLabel:"매장 추가",queryKey:["stores"],fetcher:()=>dp(),onCreate:zB,onUpdate:IB,onDelete:HB,defaults:{tenantCode:"ZIOINFO",active:!0},columns:[{key:"tenantCode",header:"테넌트",render:e=>g.jsx("span",{className:"text-brand text-xs",children:e.tenantCode})},{key:"storeCode",header:"매장코드",render:e=>g.jsx("span",{className:"font-mono text-xs",children:e.storeCode})},{key:"storeName",header:"매장명",render:e=>g.jsx("span",{className:"text-white",children:e.storeName})},{key:"address",header:"주소",render:e=>g.jsx("span",{className:"text-xs text-gray-400 truncate block max-w-[220px]",children:e.address})},{key:"managerName",header:"담당자"},{key:"active",header:"상태",render:e=>g.jsx(Ie,{tone:e.active?"green":"gray",children:e.active?"운영":"중지"})}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:Rr},{key:"storeCode",label:"매장코드",placeholder:"예: STORE001"},{key:"storeName",label:"매장명"},{key:"address",label:"주소"},{key:"phone",label:"전화"},{key:"managerName",label:"담당자"},{key:"active",label:"운영 여부",type:"checkbox"}]})}function Wue(){return g.jsx($r,{title:"매장 그룹",subtitle:"일괄배포 대상 매장 묶음 관리",addLabel:"그룹 추가",queryKey:["store-groups"],fetcher:()=>qB(),onCreate:FB,onUpdate:GB,onDelete:KB,defaults:{tenantCode:"ZIOINFO",active:!0},columns:[{key:"tenantCode",header:"테넌트",render:e=>g.jsx("span",{className:"text-brand text-xs",children:e.tenantCode})},{key:"groupCode",header:"그룹코드",render:e=>g.jsx("span",{className:"font-mono text-xs",children:e.groupCode})},{key:"groupName",header:"그룹명",render:e=>g.jsx("span",{className:"text-white",children:e.groupName})},{key:"description",header:"설명"},{key:"active",header:"상태",render:e=>g.jsx(Ie,{tone:e.active?"green":"gray",children:e.active?"사용":"중지"})}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:Rr},{key:"groupCode",label:"그룹코드"},{key:"groupName",label:"그룹명"},{key:"description",label:"설명"},{key:"active",label:"사용 여부",type:"checkbox"}]})}function Zue(){return g.jsx($r,{title:"테넌트 관리",subtitle:"멀티테넌트 격리 단위 관리",addLabel:"테넌트 추가",queryKey:["tenants"],fetcher:()=>RB(),onCreate:$B,onUpdate:PB,onDelete:DB,defaults:{active:!0},columns:[{key:"tenantCode",header:"테넌트코드",render:e=>g.jsx("span",{className:"font-mono text-xs text-brand",children:e.tenantCode})},{key:"tenantName",header:"테넌트명",render:e=>g.jsx("span",{className:"text-white",children:e.tenantName})},{key:"description",header:"설명"},{key:"active",header:"상태",render:e=>g.jsx(Ie,{tone:e.active?"green":"gray",children:e.active?"사용":"중지"})}],form:[{key:"tenantCode",label:"테넌트코드"},{key:"tenantName",label:"테넌트명"},{key:"description",label:"설명"},{key:"active",label:"사용 여부",type:"checkbox"}]})}const Jue=["ADMIN","MANAGER","USER"];function ese(){const e=Mr(),[t,n]=_.useState(null),{data:r=[],isLoading:a}=Dn({queryKey:["users"],queryFn:()=>YB()}),i=ut({mutationFn:u=>u.id?XB(u.id,u):VB(u),onSuccess:()=>{e.invalidateQueries({queryKey:["users"]}),n(null)}}),o=ut({mutationFn:({id:u,active:s})=>QB(u,s),onSuccess:()=>e.invalidateQueries({queryKey:["users"]})}),l=ut({mutationFn:WB,onSuccess:()=>e.invalidateQueries({queryKey:["users"]})});return g.jsxs("div",{children:[g.jsx(Oa,{title:"사용자 계정",subtitle:"테넌트/매장 단위 계정 중앙관리 · 자격증명은 화면에 표시되지 않습니다",actions:g.jsx(Vt,{icon:"plus",onClick:()=>n({tenantCode:"ZIOINFO",role:"USER",active:!0}),children:"사용자 추가"})}),a?g.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:"로딩 중..."}):g.jsx(Cu,{rowKey:u=>u.id,rows:r,columns:[{key:"tenantCode",header:"테넌트",render:u=>g.jsx("span",{className:"text-brand text-xs",children:u.tenantCode})},{key:"username",header:"아이디",render:u=>g.jsx("span",{className:"font-mono text-xs text-white",children:u.username})},{key:"name",header:"이름"},{key:"role",header:"역할",render:u=>g.jsx(Ie,{tone:u.role==="ADMIN"?"blue":u.role==="MANAGER"?"yellow":"gray",children:u.role})},{key:"email",header:"이메일",render:u=>g.jsx("span",{className:"text-xs text-gray-400",children:u.email})},{key:"active",header:"상태",render:u=>g.jsx("button",{onClick:()=>o.mutate({id:u.id,active:!u.active}),children:g.jsx(Ie,{tone:u.active?"green":"gray",children:u.active?"활성":"비활성"})})},{key:"__act",header:"",align:"right",render:u=>g.jsxs("div",{className:"flex gap-2 justify-end",children:[g.jsx("button",{onClick:()=>n(u),className:"text-brand hover:text-blue-300",children:g.jsx(We,{name:"edit",size:15})}),g.jsx("button",{onClick:()=>{confirm("삭제?")&&l.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:g.jsx(We,{name:"trash",size:15})})]})}]}),t&&g.jsx(Wc,{title:t.id?"사용자 수정":"사용자 추가",onClose:()=>n(null),children:g.jsx(tse,{initial:t,onSave:u=>i.mutate(u),saving:i.isPending})})]})}function tse({initial:e,onSave:t,saving:n}){const r=!e.id,[a,i]=_.useState({id:e.id,tenantCode:e.tenantCode||"ZIOINFO",username:e.username||"",password:"",name:e.name||"",role:e.role||"USER",email:e.email||"",phone:e.phone||"",active:e.active!==!1}),o=(l,u)=>i(s=>({...s,[l]:u}));return g.jsxs("form",{onSubmit:l=>{l.preventDefault(),t(a)},children:[g.jsx(Oe,{label:"테넌트",children:g.jsx(Ht,{className:"w-full",value:a.tenantCode,onChange:l=>o("tenantCode",l),children:Rr.map(l=>g.jsx("option",{value:l,children:l},l))})}),g.jsx(Oe,{label:"아이디",children:g.jsx(wt,{className:"w-full",value:a.username,onChange:l=>o("username",l)})}),r&&g.jsx(Oe,{label:"초기 비밀번호",children:g.jsx(wt,{className:"w-full",type:"password",value:a.password,onChange:l=>o("password",l),placeholder:"생성 시에만 입력"})}),g.jsx(Oe,{label:"이름",children:g.jsx(wt,{className:"w-full",value:a.name,onChange:l=>o("name",l)})}),g.jsx(Oe,{label:"역할",children:g.jsx(Ht,{className:"w-full",value:a.role,onChange:l=>o("role",l),children:Jue.map(l=>g.jsx("option",{value:l,children:l},l))})}),g.jsx(Oe,{label:"이메일",children:g.jsx(wt,{className:"w-full",value:a.email,onChange:l=>o("email",l)})}),g.jsx(Oe,{label:"전화",children:g.jsx(wt,{className:"w-full",value:a.phone,onChange:l=>o("phone",l)})}),g.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-300 mb-3",children:[g.jsx("input",{type:"checkbox",checked:a.active,onChange:l=>o("active",l.target.checked)})," 활성"]}),g.jsx("button",{type:"submit",disabled:n,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium disabled:opacity-50",children:n?"저장 중...":"저장"})]})}const nse=["PRICE","INFO","PROMO","CUSTOM"];function rse(){return g.jsx($r,{title:"템플릿 관리",subtitle:"간판 화면 레이아웃 템플릿(폭·높이·레이아웃 JSON) 정의",addLabel:"템플릿 추가",queryKey:["templates"],fetcher:()=>E2(),onCreate:o5,onUpdate:l5,onDelete:u5,defaults:{tenantCode:"ZIOINFO",templateType:"PRICE",width:400,height:300,active:!0},columns:[{key:"templateCode",header:"코드",render:e=>g.jsx("span",{className:"font-mono text-xs text-white",children:e.templateCode})},{key:"templateName",header:"이름"},{key:"templateType",header:"유형",render:e=>g.jsx(Ie,{tone:"blue",children:e.templateType})},{key:"size",header:"크기",render:e=>g.jsxs("span",{className:"text-xs text-gray-400",children:[e.width,"×",e.height]})},{key:"active",header:"상태",render:e=>g.jsx(Ie,{tone:e.active?"green":"gray",children:e.active?"사용":"중지"})}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:Rr},{key:"templateCode",label:"템플릿 코드"},{key:"templateName",label:"템플릿 이름"},{key:"templateType",label:"유형",type:"select",opts:nse},{key:"width",label:"폭(px)",type:"number"},{key:"height",label:"높이(px)",type:"number"},{key:"description",label:"설명"},{key:"layoutJson",label:"레이아웃 JSON",type:"textarea",placeholder:'{ "fields": [] }'},{key:"active",label:"사용 여부",type:"checkbox"}]})}const a_=[{value:"'Noto Sans KR', sans-serif",label:"노토 산스"},{value:"'Nanum Gothic', sans-serif",label:"나눔 고딕"},{value:"'Malgun Gothic', sans-serif",label:"맑은 고딕"},{value:"serif",label:"명조(Serif)"},{value:"monospace",label:"고정폭"}],ase=["left","center","right"],Rm=()=>({id:void 0,tenantCode:"ZIOINFO",storeCode:"",imageCode:"",templateCode:"",bizName:"",phone:"",message:"",width:400,height:300,status:"DRAFT"});function ise(){const e=Mr(),[t,n]=_.useState(Rm()),[r,a]=_.useState(a_[0].value),[i,o]=_.useState(28),[l,u]=_.useState(18),[s,f]=_.useState("#0b0f17"),[c,d]=_.useState("#ffffff"),[h,b]=_.useState("center"),{data:v=[]}=Dn({queryKey:["sign-images"],queryFn:()=>h5()}),{data:m=[]}=Dn({queryKey:["templates"],queryFn:()=>E2()}),p=ut({mutationFn:O=>O.id?y5(O.id,O):p5(O),onSuccess:O=>{e.invalidateQueries({queryKey:["sign-images"]}),O&&n(O)}}),y=ut({mutationFn:m5,onSuccess:()=>{e.invalidateQueries({queryKey:["sign-images"]}),n(Rm())}}),x=ut({mutationFn:()=>T2({bizName:t.bizName,message:t.message,storeCode:t.storeCode}),onSuccess:O=>{O!=null&&O.text&&n(A=>({...A,message:O.text}))}}),w=(O,A)=>n(E=>({...E,[O]:A})),S=_.useMemo(()=>Math.min(1,420/(t.width||400)),[t.width]);return g.jsxs("div",{children:[g.jsx(Oa,{title:"간판 이미지 에디터",subtitle:"템플릿·글꼴·이미지 코드를 편집하고 실시간 미리보기로 확인합니다",actions:g.jsx(Vt,{icon:"plus",variant:"ghost",onClick:()=>n(Rm()),children:"새 이미지"})}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[240px_1fr_460px] gap-4",children:[g.jsxs("div",{className:"bg-card border border-edge rounded-lg p-2 max-h-[70vh] overflow-auto",children:[g.jsxs("div",{className:"text-xs text-gray-500 px-2 py-1.5",children:["이미지 목록 (",v.length,")"]}),v.map(O=>g.jsxs("button",{onClick:()=>n(O),className:`w-full text-left px-3 py-2 rounded text-sm mb-1 ${t.id===O.id?"bg-brand/15 text-brand":"text-gray-300 hover:bg-edge/40"}`,children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(We,{name:"editor",size:13}),g.jsx("span",{className:"font-mono text-xs truncate",children:O.imageCode||"(코드없음)"})]}),g.jsx("div",{className:"text-[11px] text-gray-500 truncate",children:O.bizName||O.storeCode})]},O.id)),v.length===0&&g.jsx("div",{className:"text-xs text-gray-600 px-3 py-4",children:"이미지가 없습니다"})]}),g.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsx("h2",{className:"text-sm font-medium text-white",children:t.id?"이미지 편집":"새 이미지"}),t.status&&g.jsx(Ie,{tone:t.status==="DEPLOYED"?"green":t.status==="DRAFT"?"gray":"yellow",children:t.status})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-x-3",children:[g.jsx(Oe,{label:"테넌트",children:g.jsx(Ht,{className:"w-full",value:t.tenantCode,onChange:O=>w("tenantCode",O),children:["ZIOINFO","TENANT_A","TENANT_B","EMART"].map(O=>g.jsx("option",{value:O,children:O},O))})}),g.jsx(Oe,{label:"매장코드",children:g.jsx(wt,{className:"w-full",value:t.storeCode,onChange:O=>w("storeCode",O),placeholder:"STORE001"})}),g.jsx(Oe,{label:"이미지 코드",children:g.jsx(wt,{className:"w-full",value:t.imageCode,onChange:O=>w("imageCode",O),placeholder:"IMG-0001"})}),g.jsx(Oe,{label:"템플릿 코드",children:g.jsxs(Ht,{className:"w-full",value:t.templateCode,onChange:O=>{w("templateCode",O);const A=m.find(E=>E.templateCode===O);A&&n(E=>({...E,templateCode:O,width:A.width||E.width,height:A.height||E.height}))},children:[g.jsx("option",{value:"",children:"템플릿 선택"}),m.map(O=>g.jsxs("option",{value:O.templateCode,children:[O.templateName," (",O.width,"×",O.height,")"]},O.id))]})}),g.jsx(Oe,{label:"폭(px)",children:g.jsx(wt,{className:"w-full",type:"number",value:String(t.width),onChange:O=>w("width",Number(O)||0)})}),g.jsx(Oe,{label:"높이(px)",children:g.jsx(wt,{className:"w-full",type:"number",value:String(t.height),onChange:O=>w("height",Number(O)||0)})})]}),g.jsx(Oe,{label:"상호명(제목)",children:g.jsx(wt,{className:"w-full",value:t.bizName,onChange:O=>w("bizName",O)})}),g.jsx(Oe,{label:"전화번호",children:g.jsx(wt,{className:"w-full",value:t.phone,onChange:O=>w("phone",O)})}),g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-1",children:[g.jsx("span",{className:"text-xs text-gray-400",children:"문구(본문)"}),g.jsxs("button",{onClick:()=>x.mutate(),disabled:x.isPending,className:"text-xs text-brand hover:text-blue-300 inline-flex items-center gap-1 disabled:opacity-50",children:[g.jsx(We,{name:"ai",size:12})," ",x.isPending?"생성 중...":"AI 문구 생성"]})]}),g.jsx("textarea",{value:t.message,onChange:O=>w("message",O.target.value),rows:3,className:"w-full bg-ink border border-edge rounded px-3 py-2 text-sm text-white outline-none focus:border-brand"})]}),g.jsxs("div",{className:"mt-4 border-t border-edge pt-3",children:[g.jsx("div",{className:"text-xs text-gray-500 mb-2",children:"글꼴 · 스타일 (미리보기)"}),g.jsxs("div",{className:"grid grid-cols-2 gap-x-3",children:[g.jsx(Oe,{label:"글꼴",children:g.jsx(Ht,{className:"w-full",value:r,onChange:a,children:a_.map(O=>g.jsx("option",{value:O.value,children:O.label},O.value))})}),g.jsx(Oe,{label:"정렬",children:g.jsx(Ht,{className:"w-full",value:h,onChange:O=>b(O),children:ase.map(O=>g.jsx("option",{value:O,children:O},O))})}),g.jsx(Oe,{label:`제목 크기 (${i}px)`,children:g.jsx("input",{type:"range",min:14,max:60,value:i,onChange:O=>o(Number(O.target.value)),className:"w-full accent-brand"})}),g.jsx(Oe,{label:`본문 크기 (${l}px)`,children:g.jsx("input",{type:"range",min:10,max:40,value:l,onChange:O=>u(Number(O.target.value)),className:"w-full accent-brand"})}),g.jsx(Oe,{label:"글자색",children:g.jsx("input",{type:"color",value:s,onChange:O=>f(O.target.value),className:"w-full h-9 bg-ink border border-edge rounded"})}),g.jsx(Oe,{label:"배경색",children:g.jsx("input",{type:"color",value:c,onChange:O=>d(O.target.value),className:"w-full h-9 bg-ink border border-edge rounded"})})]})]}),g.jsxs("div",{className:"flex gap-2 mt-4",children:[g.jsx(Vt,{icon:"save",onClick:()=>p.mutate(t),disabled:p.isPending,children:p.isPending?"저장 중...":"저장"}),t.id&&g.jsx(Vt,{variant:"danger",icon:"trash",onClick:()=>{confirm("삭제?")&&y.mutate(t.id)},children:"삭제"})]})]}),g.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g.jsx(We,{name:"preview",size:15,className:"text-brand"}),g.jsx("h2",{className:"text-sm font-medium text-white",children:"실시간 미리보기"}),g.jsxs("span",{className:"text-xs text-gray-500 ml-auto",children:[t.width,"×",t.height,"px · ",Math.round(S*100),"%"]})]}),g.jsx("div",{className:"flex justify-center bg-ink rounded-lg p-4 overflow-auto",children:g.jsxs("div",{style:{width:t.width*S,height:t.height*S,background:c,color:s,fontFamily:r,display:"flex",flexDirection:"column",justifyContent:"space-between",padding:16*S,boxShadow:"0 4px 20px rgba(0,0,0,0.4)",borderRadius:4,textAlign:h,overflow:"hidden"},children:[g.jsx("div",{style:{fontSize:i*S,fontWeight:800,lineHeight:1.15},children:t.bizName||"상호명"}),g.jsx("div",{style:{fontSize:l*S,whiteSpace:"pre-wrap",lineHeight:1.35,flex:1,display:"flex",alignItems:"center",justifyContent:h==="center"?"center":h==="right"?"flex-end":"flex-start"},children:t.message||"간판 문구를 입력하세요"}),g.jsx("div",{style:{fontSize:l*.8*S,opacity:.85},children:t.phone||"☎ 000-0000-0000"})]})}),g.jsxs("p",{className:"text-[11px] text-gray-500 mt-3",children:["미리보기는 실제 패널 렌더링 근사치입니다. 저장 후 ",g.jsx("span",{className:"text-brand",children:"템플릿 그룹·배포"}),"에서 매장/전체로 일괄배포하세요."]})]})]})]})}function ose(){const e=Mr(),[t,n]=_.useState(null),[r,a]=_.useState(null),{data:i=[],isLoading:o}=Dn({queryKey:["template-groups"],queryFn:()=>s5()}),l=ut({mutationFn:s=>s.id?f5(s.id,s):c5(s),onSuccess:()=>{e.invalidateQueries({queryKey:["template-groups"]}),n(null)}}),u=ut({mutationFn:d5,onSuccess:()=>e.invalidateQueries({queryKey:["template-groups"]})});return g.jsxs("div",{children:[g.jsx(Oa,{title:"템플릿 그룹 · 일괄배포",subtitle:"템플릿 묶음을 전체(ALL) 또는 매장별로 일괄배포합니다",actions:g.jsx(Vt,{icon:"plus",onClick:()=>n({tenantCode:"ZIOINFO",active:!0}),children:"그룹 추가"})}),o?g.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:"로딩 중..."}):g.jsx(Cu,{rowKey:s=>s.id,rows:i,columns:[{key:"tenantCode",header:"테넌트",render:s=>g.jsx("span",{className:"text-brand text-xs",children:s.tenantCode})},{key:"groupCode",header:"그룹코드",render:s=>g.jsx("span",{className:"font-mono text-xs text-white",children:s.groupCode})},{key:"groupName",header:"그룹명"},{key:"description",header:"설명"},{key:"active",header:"상태",render:s=>g.jsx(Ie,{tone:s.active?"green":"gray",children:s.active?"사용":"중지"})},{key:"__act",header:"",align:"right",render:s=>g.jsxs("div",{className:"flex gap-2 justify-end items-center",children:[g.jsx(Vt,{variant:"ghost",icon:"deploy",onClick:()=>a(s),children:"배포"}),g.jsx("button",{onClick:()=>n(s),className:"text-brand hover:text-blue-300",children:g.jsx(We,{name:"edit",size:15})}),g.jsx("button",{onClick:()=>{confirm("삭제?")&&u.mutate(s.id)},className:"text-red-400 hover:text-red-300",children:g.jsx(We,{name:"trash",size:15})})]})}]}),t&&g.jsx(Wc,{title:t.id?"그룹 수정":"그룹 추가",onClose:()=>n(null),children:g.jsx(lse,{initial:t,onSave:s=>l.mutate(s),saving:l.isPending})}),r&&g.jsx(use,{group:r,onClose:()=>a(null)})]})}function lse({initial:e,onSave:t,saving:n}){const[r,a]=_.useState({id:e.id,tenantCode:e.tenantCode||"ZIOINFO",groupCode:e.groupCode||"",groupName:e.groupName||"",description:e.description||"",active:e.active!==!1}),i=(o,l)=>a(u=>({...u,[o]:l}));return g.jsxs("form",{onSubmit:o=>{o.preventDefault(),t(r)},children:[g.jsx(Oe,{label:"테넌트",children:g.jsx(Ht,{className:"w-full",value:r.tenantCode,onChange:o=>i("tenantCode",o),children:Rr.map(o=>g.jsx("option",{value:o,children:o},o))})}),g.jsx(Oe,{label:"그룹코드",children:g.jsx(wt,{className:"w-full",value:r.groupCode,onChange:o=>i("groupCode",o)})}),g.jsx(Oe,{label:"그룹명",children:g.jsx(wt,{className:"w-full",value:r.groupName,onChange:o=>i("groupName",o)})}),g.jsx(Oe,{label:"설명",children:g.jsx(wt,{className:"w-full",value:r.description,onChange:o=>i("description",o)})}),g.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-300 mb-3",children:[g.jsx("input",{type:"checkbox",checked:r.active,onChange:o=>i("active",o.target.checked)})," 사용"]}),g.jsx("button",{type:"submit",disabled:n,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium disabled:opacity-50",children:n?"저장 중...":"저장"})]})}function use({group:e,onClose:t}){const[n,r]=_.useState("ALL"),[a,i]=_.useState(""),{data:o=[]}=Dn({queryKey:["stores"],queryFn:()=>dp()}),l=ut({mutationFn:()=>_2({tenantCode:e.tenantCode,storeCode:n==="ALL"?"ALL":a,deployType:"TEMPLATE_GROUP",code:e.groupCode,status:"PENDING",pollIntervalSec:30}),onSuccess:t});return g.jsxs(Wc,{title:`일괄배포 — ${e.groupName}`,onClose:t,children:[g.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["템플릿 그룹 ",g.jsx("span",{className:"text-brand font-mono",children:e.groupCode})," 을(를) 배포합니다. 대상 매장은 30초 폴링으로 수신합니다."]}),g.jsx(Oe,{label:"배포 범위",children:g.jsxs("div",{className:"flex gap-2",children:[g.jsx("button",{type:"button",onClick:()=>r("ALL"),className:`flex-1 px-3 py-2 rounded text-sm border ${n==="ALL"?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-gray-300"}`,children:"전체 매장 (ALL)"}),g.jsx("button",{type:"button",onClick:()=>r("STORE"),className:`flex-1 px-3 py-2 rounded text-sm border ${n==="STORE"?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-gray-300"}`,children:"특정 매장"})]})}),n==="STORE"&&g.jsx(Oe,{label:"매장 선택",children:g.jsxs(Ht,{className:"w-full",value:a,onChange:i,children:[g.jsx("option",{value:"",children:"매장 선택"}),o.map(u=>g.jsxs("option",{value:u.storeCode,children:[u.storeName," (",u.storeCode,")"]},u.id))]})}),g.jsx(Vt,{icon:"deploy",onClick:()=>l.mutate(),disabled:l.isPending||n==="STORE"&&!a,children:l.isPending?"배포 요청 중...":"배포 실행"})]})}const sse=["IMAGE","VIDEO","TEMPLATE"],cse=["SCHEDULED","ACTIVE","ENDED","PAUSED"],fse=e=>e==="ACTIVE"?"green":e==="SCHEDULED"?"blue":e==="PAUSED"?"yellow":"gray";function dse(){return g.jsx($r,{title:"광고 스케줄",subtitle:"매장별 광고·미디어 재생 편성 관리",addLabel:"스케줄 추가",queryKey:["ad-schedules"],fetcher:()=>_5(),onCreate:T5,onUpdate:j5,onDelete:C5,defaults:{tenantCode:"ZIOINFO",mediaType:"IMAGE",status:"SCHEDULED",priority:5},columns:[{key:"adName",header:"광고명",render:e=>g.jsx("span",{className:"text-white",children:e.adName})},{key:"storeCode",header:"매장",render:e=>g.jsx("span",{className:"font-mono text-xs text-gray-400",children:e.storeCode||"ALL"})},{key:"mediaType",header:"미디어",render:e=>g.jsx(Ie,{tone:"blue",children:e.mediaType})},{key:"period",header:"기간",render:e=>g.jsxs("span",{className:"text-xs text-gray-400",children:[(e.startAt||"").slice(0,10)," ~ ",(e.endAt||"").slice(0,10)]})},{key:"priority",header:"우선",align:"center"},{key:"status",header:"상태",render:e=>g.jsx(Ie,{tone:fse(e.status),children:e.status})}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:Rr},{key:"storeCode",label:"매장코드 (ALL=전체)",placeholder:"ALL"},{key:"adName",label:"광고명"},{key:"mediaType",label:"미디어 유형",type:"select",opts:sse},{key:"mediaPath",label:"미디어 경로"},{key:"templateCode",label:"템플릿코드"},{key:"startAt",label:"시작(YYYY-MM-DDTHH:mm)",placeholder:"2026-07-01T09:00"},{key:"endAt",label:"종료(YYYY-MM-DDTHH:mm)",placeholder:"2026-07-31T22:00"},{key:"dailyStart",label:"일일 시작(HH:mm)",placeholder:"09:00"},{key:"dailyEnd",label:"일일 종료(HH:mm)",placeholder:"22:00"},{key:"priority",label:"우선순위(1~10)",type:"number"},{key:"status",label:"상태",type:"select",opts:cse}]})}const hse=["SIGN_INFO","TEMPLATE","TEMPLATE_GROUP","FIRMWARE","BACKUP"],i_=["PENDING","SENDING","DEPLOYED","CONFIRMED","FAILED"],pse=e=>e==null?"-":e<1024?`${e}B`:e<1048576?`${(e/1024).toFixed(1)}KB`:`${(e/1048576).toFixed(1)}MB`,yse=e=>e==="DEPLOYED"||e==="CONFIRMED"?"green":e==="FAILED"?"red":e==="SENDING"?"yellow":"gray";function mse(){const[e,t]=_.useState("");return g.jsx($r,{title:"간판정보 배포",subtitle:"간판정보(CSV)·템플릿·펌웨어를 매장코드(또는 ALL)로 중앙배포 · 단말 30초 폴링 수신",addLabel:"배포 등록",queryKey:["sign-deploys",e],fetcher:()=>v5(e?{status:e}:{}),onCreate:_2,onUpdate:g5,onDelete:b5,defaults:{tenantCode:"ZIOINFO",storeCode:"ALL",deployType:"SIGN_INFO",status:"PENDING",pollIntervalSec:30},toolbarExtra:g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"text-xs text-gray-400",children:"상태"}),g.jsxs(Ht,{value:e,onChange:t,children:[g.jsx("option",{value:"",children:"전체"}),i_.map(n=>g.jsx("option",{value:n,children:n},n))]})]}),columns:[{key:"deployType",header:"유형",render:n=>g.jsx(Ie,{tone:"blue",children:n.deployType})},{key:"storeCode",header:"대상",render:n=>g.jsx("span",{className:"font-mono text-xs text-white",children:n.storeCode})},{key:"code",header:"코드",render:n=>g.jsx("span",{className:"font-mono text-xs text-gray-400",children:n.code||"-"})},{key:"fileName",header:"파일",render:n=>g.jsx("span",{className:"text-xs text-gray-300",children:n.fileName||"-"})},{key:"fileSize",header:"크기",render:n=>g.jsx("span",{className:"text-xs text-gray-400",children:pse(n.fileSize)})},{key:"pollIntervalSec",header:"폴링",align:"center",render:n=>g.jsxs("span",{className:"text-xs",children:[n.pollIntervalSec||30,"s"]})},{key:"status",header:"상태",render:n=>g.jsx(Ie,{tone:yse(n.status),children:n.status})}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:Rr},{key:"storeCode",label:"대상 매장코드 (ALL=전체)",placeholder:"ALL 또는 STORE001"},{key:"deployType",label:"배포 유형",type:"select",opts:hse},{key:"subType",label:"서브타입",placeholder:"예: PRICE / eESB"},{key:"code",label:"코드",placeholder:"템플릿/그룹 코드"},{key:"fileName",label:"파일명",placeholder:"signinfo_20260704.csv"},{key:"filePath",label:"파일 경로"},{key:"md5",label:"MD5 체크섬"},{key:"pollIntervalSec",label:"폴링 주기(초)",type:"number"},{key:"status",label:"상태",type:"select",opts:i_}]})}const vse=[{value:"ESL_DEVICE",label:"eESB (간판 태그)"},{value:"GATEWAY",label:"GW (게이트웨이)"},{value:"HUB",label:"HUB (허브)"}];function gse(){return g.jsx($r,{title:"펌웨어 배포",subtitle:"eESB · 게이트웨이 · 허브 펌웨어(FW) 버전 등록 및 중앙배포",addLabel:"펌웨어 등록",queryKey:["firmware"],fetcher:()=>x5(),onCreate:S5,onDelete:O5,defaults:{tenantCode:"ZIOINFO",deviceType:"ESL_DEVICE",latest:!0},columns:[{key:"firmwareVersion",header:"버전",render:e=>g.jsx("span",{className:"font-mono text-xs text-white",children:e.firmwareVersion})},{key:"deviceType",header:"장치",render:e=>g.jsx(Ie,{tone:"blue",children:e.deviceType})},{key:"fileName",header:"파일",render:e=>g.jsx("span",{className:"text-xs text-gray-300",children:e.fileName})},{key:"description",header:"설명",render:e=>g.jsx("span",{className:"text-xs text-gray-400",children:e.description})},{key:"latest",header:"최신",align:"center",render:e=>e.latest?g.jsx(Ie,{tone:"green",children:"LATEST"}):""}],form:[{key:"tenantCode",label:"테넌트",type:"select",opts:Rr},{key:"firmwareVersion",label:"펌웨어 버전",placeholder:"예: 2.06"},{key:"deviceType",label:"대상 장치",type:"select",opts:vse},{key:"fileName",label:"파일명",placeholder:"eESB_2.06.bin"},{key:"filePath",label:"파일 경로"},{key:"checksum",label:"체크섬(MD5)"},{key:"description",label:"설명"},{key:"latest",label:"최신 버전으로 지정",type:"checkbox"}]})}const bse=["DAILY","MANUAL","FULL"],xse=e=>e==null?"-":e<1048576?`${(e/1024).toFixed(1)}KB`:`${(e/1048576).toFixed(1)}MB`,Sse=e=>e==="COMPLETED"?"green":e==="RESTORED"?"blue":e==="FAILED"?"red":"yellow";function Ose(){const e=Mr(),[t,n]=_.useState(null),{data:r=[],isLoading:a}=Dn({queryKey:["backups"],queryFn:()=>w5()}),i=ut({mutationFn:u=>u.id?oO(u.id,u):A5(u),onSuccess:()=>{e.invalidateQueries({queryKey:["backups"]}),n(null)}}),o=ut({mutationFn:u=>oO(u.id,{...u,status:"RESTORED",restoredAt:new Date().toISOString()}),onSuccess:()=>e.invalidateQueries({queryKey:["backups"]})}),l=ut({mutationFn:E5,onSuccess:()=>e.invalidateQueries({queryKey:["backups"]})});return g.jsxs("div",{children:[g.jsx(Oa,{title:"백업 / 복구",subtitle:"매장코드별 일일 백업 이력 관리 및 복구",actions:g.jsx(Vt,{icon:"plus",onClick:()=>n({tenantCode:"ZIOINFO",backupType:"MANUAL",status:"COMPLETED"}),children:"백업 등록"})}),a?g.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:"로딩 중..."}):g.jsx(Cu,{rowKey:u=>u.id,rows:r,columns:[{key:"storeCode",header:"매장",render:u=>g.jsx("span",{className:"font-mono text-xs text-white",children:u.storeCode})},{key:"backupType",header:"유형",render:u=>g.jsx(Ie,{tone:"blue",children:u.backupType})},{key:"fileName",header:"파일",render:u=>g.jsx("span",{className:"text-xs text-gray-300",children:u.fileName})},{key:"fileSize",header:"크기",render:u=>g.jsx("span",{className:"text-xs text-gray-400",children:xse(u.fileSize)})},{key:"backupAt",header:"백업시각",render:u=>g.jsx("span",{className:"text-xs text-gray-400",children:(u.backupAt||"").replace("T"," ").slice(0,16)})},{key:"status",header:"상태",render:u=>g.jsx(Ie,{tone:Sse(u.status),children:u.status})},{key:"__act",header:"",align:"right",render:u=>g.jsxs("div",{className:"flex gap-2 justify-end items-center",children:[u.status==="COMPLETED"&&g.jsx(Vt,{variant:"ghost",icon:"refresh",onClick:()=>{confirm("이 백업으로 복구하시겠습니까?")&&o.mutate(u)},children:"복구"}),g.jsx("button",{onClick:()=>{confirm("삭제?")&&l.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:g.jsx(We,{name:"trash",size:15})})]})}]}),t&&g.jsx(Wc,{title:"백업 등록",onClose:()=>n(null),children:g.jsx(wse,{initial:t,onSave:u=>i.mutate(u),saving:i.isPending})})]})}function wse({initial:e,onSave:t,saving:n}){const[r,a]=_.useState({id:e.id,tenantCode:e.tenantCode||"ZIOINFO",storeCode:e.storeCode||"",backupType:e.backupType||"MANUAL",fileName:e.fileName||"",status:e.status||"COMPLETED"}),i=(o,l)=>a(u=>({...u,[o]:l}));return g.jsxs("form",{onSubmit:o=>{o.preventDefault(),t(r)},children:[g.jsx(Oe,{label:"테넌트",children:g.jsx(Ht,{className:"w-full",value:r.tenantCode,onChange:o=>i("tenantCode",o),children:Rr.map(o=>g.jsx("option",{value:o,children:o},o))})}),g.jsx(Oe,{label:"매장코드",children:g.jsx(wt,{className:"w-full",value:r.storeCode,onChange:o=>i("storeCode",o)})}),g.jsx(Oe,{label:"백업 유형",children:g.jsx(Ht,{className:"w-full",value:r.backupType,onChange:o=>i("backupType",o),children:bse.map(o=>g.jsx("option",{value:o,children:o},o))})}),g.jsx(Oe,{label:"파일명",children:g.jsx(wt,{className:"w-full",value:r.fileName,onChange:o=>i("fileName",o),placeholder:"STORE001_20260704.bak"})}),g.jsx("button",{type:"submit",disabled:n,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium disabled:opacity-50",children:n?"저장 중...":"저장"})]})}function Ase(){const[e,t]=_.useState([]),[n,r]=_.useState(""),a=d=>t(h=>[...h,d]),i=d=>(d==null?void 0:d.text)||(d==null?void 0:d.result)||(d==null?void 0:d.analysis)||(d==null?void 0:d.recommendation)||(d==null?void 0:d.message)||JSON.stringify(d),o=ut({mutationFn:d=>B5(d),onSuccess:d=>a({role:"ai",text:i(d)}),onError:()=>a({role:"ai",text:"AI 응답을 가져오지 못했습니다. (degraded)"})}),l=ut({mutationFn:()=>k5({message:n||"게이트웨이 오프라인 다수 발생",alarmType:"DEVICE",severity:"HIGH"}),onSuccess:d=>a({role:"ai",text:`[알람 분석]
`+i(d)})}),u=ut({mutationFn:()=>T2({bizName:n||"지오분식",message:"신메뉴 출시"}),onSuccess:d=>a({role:"ai",text:`[간판 문구]
`+i(d)})}),s=ut({mutationFn:()=>L5({storeCode:"STORE001",season:"여름"}),onSuccess:d=>a({role:"ai",text:`[광고 추천]
`+i(d)})}),f=()=>{n.trim()&&(a({role:"user",text:n}),o.mutate(n),r(""))},c=o.isPending||l.isPending||u.isPending||s.isPending;return g.jsxs("div",{children:[g.jsx(Oa,{title:"AI 어시스턴트",subtitle:"온프레미스 sLLM / Claude(AiTextRouter) 경유 · 외부 호출은 Claude 프로바이더 예외만"}),g.jsxs("div",{className:"flex gap-2 mb-4 flex-wrap",children:[g.jsx(Vt,{variant:"ghost",icon:"alarm",onClick:()=>l.mutate(),disabled:c,children:"알람 원인 분석"}),g.jsx(Vt,{variant:"ghost",icon:"editor",onClick:()=>u.mutate(),disabled:c,children:"간판 문구 생성"}),g.jsx(Vt,{variant:"ghost",icon:"ad",onClick:()=>s.mutate(),disabled:c,children:"광고 추천"})]}),g.jsxs("div",{className:"bg-card border border-edge rounded-lg h-[52vh] overflow-auto p-4 space-y-3",children:[e.length===0&&g.jsxs("div",{className:"text-center text-gray-500 text-sm pt-16",children:[g.jsx(We,{name:"ai",size:32,className:"mx-auto mb-2 text-edge"}),"질문을 입력하거나 위 도구를 사용하세요."]}),e.map((d,h)=>g.jsx("div",{className:`flex ${d.role==="user"?"justify-end":"justify-start"}`,children:g.jsx("div",{className:`max-w-[75%] rounded-lg px-3 py-2 text-sm whitespace-pre-wrap ${d.role==="user"?"bg-brand text-white":"bg-panel border border-edge text-gray-200"}`,children:d.text})},h)),c&&g.jsx("div",{className:"text-gray-500 text-sm",children:"AI 응답 생성 중..."})]}),g.jsxs("div",{className:"flex gap-2 mt-3",children:[g.jsx("input",{value:n,onChange:d=>r(d.target.value),onKeyDown:d=>d.key==="Enter"&&f(),placeholder:"질문 또는 도구 파라미터(상호명/알람 내용)를 입력...",className:"flex-1 bg-ink border border-edge rounded px-3 py-2 text-sm text-white outline-none focus:border-brand"}),g.jsx(Vt,{icon:"send",onClick:f,disabled:c,children:"전송"})]})]})}const Ese=()=>V.get("/api/admin/ai-config").then(e=>{var t;return(t=e.data)==null?void 0:t.data}),_se=e=>V.put("/api/admin/ai-config",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data}),Tse=()=>V.post("/api/admin/ai-config/test",{}).then(e=>{var t;return(t=e.data)==null?void 0:t.data}),jse=[{id:"ollama",label:"Ollama (기본)",hint:"온프레미스 · llama3.2:1b"},{id:"qwen3",label:"Qwen3",hint:"온프레미스 · qwen3:1.7b"},{id:"deepseek",label:"DeepSeek",hint:"온프레미스 · deepseek-r1:1.5b"},{id:"glm",label:"GLM",hint:"온프레미스 · glm4:9b",ramWarn:!0},{id:"claude",label:"Claude (외부)",hint:"api.anthropic.com · 키 필요"}],c$=["claude-sonnet-4-6","claude-haiku-4-5","claude-opus-4-8"],nd="claude-sonnet-4-6",$m=e=>c$.includes(e)?e:nd;function Pm(e){var n,r,a;const t=((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"";return((a=e==null?void 0:e.response)==null?void 0:a.status)===403?"권한이 없습니다 (AI 설정은 ADMIN 전용).":t.includes("ERR-AI-400")?t.replace(/^ERR-AI-400:\s*/,""):"AI 설정을 처리하지 못했습니다."}function Cse(){const[e,t]=_.useState("ollama"),[n,r]=_.useState(nd),[a,i]=_.useState(!1),[o,l]=_.useState(""),[u,s]=_.useState(!0),[f,c]=_.useState(!1),[d,h]=_.useState(!1),[b,v]=_.useState(!1),[m,p]=_.useState(""),[y,x]=_.useState(!1),[w,S]=_.useState(null),O=()=>{c(!0),Ese().then(P=>{t(P.provider),r($m(P.claudeModel??nd)),i(!!P.claudeKeySet),l(P.ollamaTextModel??""),s(!!P.aiEnabled),p("")}).catch(P=>p(Pm(P))).finally(()=>c(!1))};_.useEffect(()=>{O()},[]);const A=()=>{v(!1),S(null)},E=async()=>{h(!0),v(!1);try{const P=await _se({provider:e,claudeModel:n});t(P.provider),r($m(P.claudeModel??nd)),i(!!P.claudeKeySet),l(P.ollamaTextModel??""),s(!!P.aiEnabled),v(!0),p("")}catch(P){p(Pm(P))}finally{h(!1)}},T=async()=>{x(!0),S(null);try{S(await Tse())}catch(P){S({ok:!1,degraded:!1,message:Pm(P)})}finally{x(!1)}},C=e==="claude",D=e==="glm",R=C&&!a,U=!C&&!u,k=w?w.degraded?"text-amber-300":w.ok?"text-emerald-300":"text-rose-300":"";return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center justify-between mb-6",children:[g.jsxs("div",{children:[g.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2 text-white",children:[g.jsx(We,{name:"cpu",size:20,className:"text-brand"})," AI 플랫폼 설정"]}),g.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"알람 분석·간판 문구 생성 등 텍스트 생성에 사용할 LLM 제공자와 모델을 선택합니다."})]}),g.jsx("button",{onClick:O,disabled:f,className:"px-3 py-1.5 rounded-lg bg-card border border-edge text-sm disabled:opacity-40",children:"새로고침"})]}),m&&g.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:m}),(R||U)&&g.jsx("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:R?"Claude API 키가 설정되지 않아 Ollama(온프레미스)로 폴백 동작합니다. 서버 환경변수 ANTHROPIC_API_KEY 설정 후 사용하세요.":"AI 기능이 비활성 상태입니다. 모든 AI 결과는 규칙 기반(degraded)으로 동작합니다."}),g.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[g.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[g.jsxs("h2",{className:"text-sm font-semibold mb-4 flex items-center gap-2 text-white",children:[g.jsx(We,{name:"cpu",size:16,className:"text-brand"})," 제공자 & 모델"]}),g.jsx("div",{className:"grid grid-cols-2 gap-2 mb-4",children:jse.map(P=>g.jsxs("button",{onClick:()=>{t(P.id),A()},className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${e===P.id?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-slate-300 hover:border-brand/50"}`,children:[g.jsxs("div",{className:"font-semibold flex items-center gap-1",children:[P.label,P.ramWarn&&g.jsx(We,{name:"warn",size:12,className:"text-amber-400"})]}),g.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5",children:P.hint})]},P.id))}),D&&g.jsxs("div",{className:"mb-4 bg-amber-500/10 border border-amber-500/40 text-amber-300 text-xs rounded-lg px-3 py-2 flex items-start gap-2",children:[g.jsx(We,{name:"warn",size:13,className:"mt-0.5 shrink-0"}),g.jsx("span",{children:"GLM(glm4:9b)은 약 5.5GB 로드가 필요합니다. 서버 RAM 여유가 부족하면 콜드로드 실패 후 소형 모델/폴백으로 동작합니다."})]}),!C&&g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Ollama 텍스트 모델"}),g.jsx("div",{className:"px-3 py-2 rounded-lg bg-ink border border-edge text-sm font-mono text-slate-300",children:o||"llama3.2:1b"}),g.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"온프레미스 소형 모델 — 서버 RAM 제약으로 고정. 외부 호출 없음."})]}),C&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Claude 모델"}),g.jsx("select",{value:n,onChange:P=>{r($m(P.target.value)),A()},className:"w-full px-3 py-2 rounded-lg bg-ink border border-edge text-sm text-slate-200 focus:border-brand outline-none",children:c$.map(P=>g.jsx("option",{value:P,children:P},P))})]}),g.jsxs("div",{className:"mb-4",children:[g.jsxs("label",{className:"block text-xs text-slate-500 mb-1 flex items-center gap-1",children:[g.jsx(We,{name:"key",size:13})," API 키"]}),g.jsx("span",{className:`inline-block px-3 py-1 rounded-lg text-xs font-semibold ${a?"bg-emerald-500/15 text-emerald-300 border border-emerald-500/40":"bg-rose-500/15 text-rose-300 border border-rose-500/40"}`,children:a?"설정됨":"미설정"}),g.jsx("p",{className:"text-[11px] text-slate-500 mt-1.5",children:"키는 서버 환경변수(ANTHROPIC_API_KEY)로만 주입되며 화면·응답·로그에 노출되지 않습니다."})]})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("button",{onClick:E,disabled:d||f,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-brand text-white text-sm font-semibold disabled:opacity-40",children:[g.jsx(We,{name:"save",size:15})," ",d?"저장 중…":"저장"]}),b&&g.jsx("span",{className:"text-emerald-300 text-xs",children:"저장됨"})]})]}),g.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[g.jsxs("h2",{className:"text-sm font-semibold mb-2 flex items-center gap-2 text-white",children:[g.jsx(We,{name:"plug",size:16,className:"text-brand"})," 연결 테스트"]}),g.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"저장된 설정 기준으로 선택한 제공자에 짧은 ping 을 보내 연결을 확인합니다."}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("button",{onClick:T,disabled:y,className:"px-4 py-2 rounded-lg bg-card border border-edge text-sm disabled:opacity-40 hover:border-brand/50",children:y?"테스트 중…":"테스트 실행"}),w&&g.jsx("span",{className:`text-sm ${k}`,role:"status","aria-live":"polite",children:w.message})]}),g.jsx("p",{className:"text-[11px] text-slate-500 mt-3",children:"먼저 변경 사항을 저장한 뒤 테스트하세요. Claude 실패 시 Ollama 로 자동 폴백합니다."})]})]})]})}function Mse(){const[e,t]=_.useState(""),[n,r]=_.useState(""),[a,i]=_.useState({}),{data:o=[],isLoading:l}=Dn({queryKey:["audit",a],queryFn:()=>$5({...a.action&&{action:a.action},...a.username&&{username:a.username},limit:200})});return g.jsxs("div",{children:[g.jsx(Oa,{title:"감사 로그",subtitle:"사용자·배포·설정 변경 등 관리 작업 추적 (민감정보 미기록)"}),g.jsxs(cy,{children:[g.jsx(wt,{value:e,onChange:t,placeholder:"action (예: FIRMWARE_DEPLOY)",className:"w-56"}),g.jsx(wt,{value:n,onChange:r,placeholder:"사용자",className:"w-40"}),g.jsx(Vt,{icon:"search",onClick:()=>i({action:e||void 0,username:n||void 0}),children:"검색"})]}),l?g.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:"로딩 중..."}):g.jsx(Cu,{rowKey:u=>u.id,rows:o,columns:[{key:"createdAt",header:"시각",render:u=>g.jsx("span",{className:"text-xs text-gray-400",children:(u.createdAt||"").replace("T"," ").slice(0,19)})},{key:"username",header:"사용자",render:u=>g.jsx("span",{className:"text-white text-xs",children:u.username})},{key:"action",header:"작업",render:u=>g.jsx(Ie,{tone:"blue",children:u.action})},{key:"resource",header:"리소스",render:u=>g.jsxs("span",{className:"text-xs text-gray-400",children:[u.resource,u.resourceId?` #${u.resourceId}`:""]})},{key:"detail",header:"상세",render:u=>g.jsx("span",{className:"text-xs text-gray-300",children:u.detail})},{key:"success",header:"결과",render:u=>g.jsx(Ie,{tone:u.success?"green":"red",children:u.success?"성공":"실패"})}]})]})}const Nse=["","GENERAL","ESL","ALARM","AI"];function Rse(){const e=Mr(),[t,n]=_.useState(""),{data:r=[],isLoading:a}=Dn({queryKey:["settings",t],queryFn:()=>P5(t||void 0)}),i=ut({mutationFn:({key:o,value:l})=>D5(o,l),onSuccess:()=>e.invalidateQueries({queryKey:["settings"]})});return g.jsxs("div",{children:[g.jsx(Oa,{title:"시스템 설정",subtitle:"카테고리별 운영 파라미터 관리"}),g.jsxs(cy,{children:[g.jsx("span",{className:"text-xs text-gray-400",children:"카테고리"}),g.jsx(Ht,{value:t,onChange:n,children:Nse.map(o=>g.jsx("option",{value:o,children:o||"전체"},o))})]}),a?g.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:"로딩 중..."}):g.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-x-auto",children:g.jsxs("table",{className:"w-full text-sm",children:[g.jsx("thead",{className:"bg-panel border-b border-edge",children:g.jsx("tr",{children:["카테고리","키","값","설명",""].map(o=>g.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:o},o))})}),g.jsx("tbody",{children:r.length===0?g.jsx("tr",{children:g.jsx("td",{colSpan:5,className:"px-4 py-10 text-center text-gray-500",children:"설정이 없습니다."})}):r.map(o=>g.jsx($se,{s:o,onSave:l=>i.mutate({key:o.settingKey,value:l})},o.settingKey))})]})})]})}function $se({s:e,onSave:t}){const[n,r]=_.useState(e.settingValue??""),a=n!==(e.settingValue??"");return g.jsxs("tr",{className:"border-b border-edge/70",children:[g.jsx("td",{className:"px-4 py-2.5",children:g.jsx(Ie,{tone:"blue",children:e.category})}),g.jsx("td",{className:"px-4 py-2.5 font-mono text-xs text-white",children:e.settingKey}),g.jsx("td",{className:"px-4 py-2.5",children:g.jsx("input",{value:n,onChange:i=>r(i.target.value),className:"bg-ink border border-edge rounded px-2 py-1 text-xs text-gray-200 outline-none focus:border-brand w-56"})}),g.jsx("td",{className:"px-4 py-2.5 text-xs text-gray-400",children:e.description}),g.jsx("td",{className:"px-4 py-2.5",children:g.jsx("button",{onClick:()=>t(n),disabled:!a,className:"text-xs px-2 py-1 rounded bg-brand text-white disabled:opacity-30",children:"저장"})})]})}const Pse=new h4;function Dse(){return g.jsx(p4,{client:Pse,children:g.jsx($k,{children:g.jsxs(sk,{children:[g.jsx(et,{path:"/login",element:g.jsx(z5,{})}),g.jsxs(et,{element:g.jsx(U5,{}),children:[g.jsx(et,{path:"/dashboard",element:g.jsx(Pue,{})}),g.jsx(et,{path:"/gateways",element:g.jsx(Uue,{})}),g.jsx(et,{path:"/signboards",element:g.jsx(que,{})}),g.jsx(et,{path:"/alarms",element:g.jsx(Vue,{})}),g.jsx(et,{path:"/regions",element:g.jsx(Xue,{})}),g.jsx(et,{path:"/stores",element:g.jsx(Que,{})}),g.jsx(et,{path:"/store-groups",element:g.jsx(Wue,{})}),g.jsx(et,{path:"/tenants",element:g.jsx(Zue,{})}),g.jsx(et,{path:"/users",element:g.jsx(ese,{})}),g.jsx(et,{path:"/templates",element:g.jsx(rse,{})}),g.jsx(et,{path:"/sign-editor",element:g.jsx(ise,{})}),g.jsx(et,{path:"/template-groups",element:g.jsx(ose,{})}),g.jsx(et,{path:"/ad-schedules",element:g.jsx(dse,{})}),g.jsx(et,{path:"/deploys",element:g.jsx(mse,{})}),g.jsx(et,{path:"/firmware",element:g.jsx(gse,{})}),g.jsx(et,{path:"/backups",element:g.jsx(Ose,{})}),g.jsx(et,{path:"/ai",element:g.jsx(Ase,{})}),g.jsx(et,{path:"/ai-platform",element:g.jsx(Cse,{})}),g.jsx(et,{path:"/audit",element:g.jsx(Mse,{})}),g.jsx(et,{path:"/settings",element:g.jsx(Rse,{})})]}),g.jsx(et,{path:"*",element:g.jsx(LC,{to:"/dashboard",replace:!0})})]})})})}l3.createRoot(document.getElementById("root")).render(g.jsx(_.StrictMode,{children:g.jsx(Dse,{})}));
