Files
boc/web-v2/dist/assets/index-3j1FgHYF.js
T
Bernt cb4a273733
BOC CI/CD / Test (push) Failing after 5s
BOC CI/CD / Security Scan (push) Has been skipped
BOC CI/CD / Build & Push (push) Has been skipped
BOC CI/CD / Deploy to Staging (push) Has been skipped
BOC CI/CD / Deploy to Production (push) Has been skipped
feat: Add Grafana panels, fix Ledger auth, update PM2 versions
- Add GrafanaPanel component for system health monitoring
- Update DashboardPage with Grafana iframe panels
- Fix Ledger auth middleware (TICKET-009)
- Update PM2 proxy package.json versions
- Deploy BOC frontend via PM2
2026-07-29 22:29:07 +00:00

456 lines
952 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(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 o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Td=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function it(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ev={exports:{}},wu={};/**
* @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 tT;function n8(){if(tT)return wu;tT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return wu.Fragment=t,wu.jsx=n,wu.jsxs=n,wu}var nT;function r8(){return nT||(nT=1,Ev.exports=n8()),Ev.exports}var d=r8(),Nv={exports:{}},Me={};/**
* @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 rT;function i8(){if(rT)return Me;rT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),g=Symbol.iterator;function j(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function A(z,F,re){this.props=z,this.context=F,this.refs=b,this.updater=re||S}A.prototype.isReactComponent={},A.prototype.setState=function(z,F){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,F,"setState")},A.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function _(){}_.prototype=A.prototype;function T(z,F,re){this.props=z,this.context=F,this.refs=b,this.updater=re||S}var C=T.prototype=new _;C.constructor=T,w(C,A.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function E(){}var M={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function D(z,F,re){var fe=re.ref;return{$$typeof:e,type:z,key:F,ref:fe!==void 0?fe:null,props:re}}function B(z,F){return D(z.type,F,z.props)}function I(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function $(z){var F={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(re){return F[re]})}var G=/\/+/g;function X(z,F){return typeof z=="object"&&z!==null&&z.key!=null?$(""+z.key):F.toString(36)}function Y(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(E,E):(z.status="pending",z.then(function(F){z.status==="pending"&&(z.status="fulfilled",z.value=F)},function(F){z.status==="pending"&&(z.status="rejected",z.reason=F)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function L(z,F,re,fe,pe){var we=typeof z;(we==="undefined"||we==="boolean")&&(z=null);var ze=!1;if(z===null)ze=!0;else switch(we){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(z.$$typeof){case e:case t:ze=!0;break;case m:return ze=z._init,L(ze(z._payload),F,re,fe,pe)}}if(ze)return pe=pe(z),ze=fe===""?"."+X(z,0):fe,O(pe)?(re="",ze!=null&&(re=ze.replace(G,"$&/")+"/"),L(pe,F,re,"",function(Ee){return Ee})):pe!=null&&(I(pe)&&(pe=B(pe,re+(pe.key==null||z&&z.key===pe.key?"":(""+pe.key).replace(G,"$&/")+"/")+ze)),F.push(pe)),1;ze=0;var Ze=fe===""?".":fe+":";if(O(z))for(var ce=0;ce<z.length;ce++)fe=z[ce],we=Ze+X(fe,ce),ze+=L(fe,F,re,we,pe);else if(ce=j(z),typeof ce=="function")for(z=ce.call(z),ce=0;!(fe=z.next()).done;)fe=fe.value,we=Ze+X(fe,ce++),ze+=L(fe,F,re,we,pe);else if(we==="object"){if(typeof z.then=="function")return L(Y(z),F,re,fe,pe);throw F=String(z),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ze}function H(z,F,re){if(z==null)return z;var fe=[],pe=0;return L(z,fe,"","",function(we){return F.call(re,we,pe++)}),fe}function Q(z){if(z._status===-1){var F=z._result;F=F(),F.then(function(re){(z._status===0||z._status===-1)&&(z._status=1,z._result=re)},function(re){(z._status===0||z._status===-1)&&(z._status=2,z._result=re)}),z._status===-1&&(z._status=0,z._result=F)}if(z._status===1)return z._result.default;throw z._result}var ie=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},oe={map:H,forEach:function(z,F,re){H(z,function(){F.apply(this,arguments)},re)},count:function(z){var F=0;return H(z,function(){F++}),F},toArray:function(z){return H(z,function(F){return F})||[]},only:function(z){if(!I(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Me.Activity=y,Me.Children=oe,Me.Component=A,Me.Fragment=n,Me.Profiler=a,Me.PureComponent=T,Me.StrictMode=r,Me.Suspense=f,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Me.__COMPILER_RUNTIME={__proto__:null,c:function(z){return M.H.useMemoCache(z)}},Me.cache=function(z){return function(){return z.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(z,F,re){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var fe=w({},z.props),pe=z.key;if(F!=null)for(we in F.key!==void 0&&(pe=""+F.key),F)!k.call(F,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&F.ref===void 0||(fe[we]=F[we]);var we=arguments.length-2;if(we===1)fe.children=re;else if(1<we){for(var ze=Array(we),Ze=0;Ze<we;Ze++)ze[Ze]=arguments[Ze+2];fe.children=ze}return D(z.type,pe,fe)},Me.createContext=function(z){return z={$$typeof:l,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:o,_context:z},z},Me.createElement=function(z,F,re){var fe,pe={},we=null;if(F!=null)for(fe in F.key!==void 0&&(we=""+F.key),F)k.call(F,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(pe[fe]=F[fe]);var ze=arguments.length-2;if(ze===1)pe.children=re;else if(1<ze){for(var Ze=Array(ze),ce=0;ce<ze;ce++)Ze[ce]=arguments[ce+2];pe.children=Ze}if(z&&z.defaultProps)for(fe in ze=z.defaultProps,ze)pe[fe]===void 0&&(pe[fe]=ze[fe]);return D(z,we,pe)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(z){return{$$typeof:c,render:z}},Me.isValidElement=I,Me.lazy=function(z){return{$$typeof:m,_payload:{_status:-1,_result:z},_init:Q}},Me.memo=function(z,F){return{$$typeof:h,type:z,compare:F===void 0?null:F}},Me.startTransition=function(z){var F=M.T,re={};M.T=re;try{var fe=z(),pe=M.S;pe!==null&&pe(re,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(E,ie)}catch(we){ie(we)}finally{F!==null&&re.types!==null&&(F.types=re.types),M.T=F}},Me.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Me.use=function(z){return M.H.use(z)},Me.useActionState=function(z,F,re){return M.H.useActionState(z,F,re)},Me.useCallback=function(z,F){return M.H.useCallback(z,F)},Me.useContext=function(z){return M.H.useContext(z)},Me.useDebugValue=function(){},Me.useDeferredValue=function(z,F){return M.H.useDeferredValue(z,F)},Me.useEffect=function(z,F){return M.H.useEffect(z,F)},Me.useEffectEvent=function(z){return M.H.useEffectEvent(z)},Me.useId=function(){return M.H.useId()},Me.useImperativeHandle=function(z,F,re){return M.H.useImperativeHandle(z,F,re)},Me.useInsertionEffect=function(z,F){return M.H.useInsertionEffect(z,F)},Me.useLayoutEffect=function(z,F){return M.H.useLayoutEffect(z,F)},Me.useMemo=function(z,F){return M.H.useMemo(z,F)},Me.useOptimistic=function(z,F){return M.H.useOptimistic(z,F)},Me.useReducer=function(z,F,re){return M.H.useReducer(z,F,re)},Me.useRef=function(z){return M.H.useRef(z)},Me.useState=function(z){return M.H.useState(z)},Me.useSyncExternalStore=function(z,F,re){return M.H.useSyncExternalStore(z,F,re)},Me.useTransition=function(){return M.H.useTransition()},Me.version="19.2.7",Me}var iT;function sS(){return iT||(iT=1,Nv.exports=i8()),Nv.exports}var P=sS();const q=it(P);var Cv={exports:{}},Au={},Mv={exports:{}},Pv={};/**
* @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.
*/var aT;function a8(){return aT||(aT=1,(function(e){function t(L,H){var Q=L.length;L.push(H);e:for(;0<Q;){var ie=Q-1>>>1,oe=L[ie];if(0<a(oe,H))L[ie]=H,L[Q]=oe,Q=ie;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var H=L[0],Q=L.pop();if(Q!==H){L[0]=Q;e:for(var ie=0,oe=L.length,z=oe>>>1;ie<z;){var F=2*(ie+1)-1,re=L[F],fe=F+1,pe=L[fe];if(0>a(re,Q))fe<oe&&0>a(pe,re)?(L[ie]=pe,L[fe]=Q,ie=fe):(L[ie]=re,L[F]=Q,ie=F);else if(fe<oe&&0>a(pe,Q))L[ie]=pe,L[fe]=Q,ie=fe;else break e}}return H}function a(L,H){var Q=L.sortIndex-H.sortIndex;return Q!==0?Q:L.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],h=[],m=1,y=null,g=3,j=!1,S=!1,w=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(L){for(var H=n(h);H!==null;){if(H.callback===null)r(h);else if(H.startTime<=L)r(h),H.sortIndex=H.expirationTime,t(f,H);else break;H=n(h)}}function O(L){if(w=!1,C(L),!S)if(n(f)!==null)S=!0,E||(E=!0,$());else{var H=n(h);H!==null&&Y(O,H.startTime-L)}}var E=!1,M=-1,k=5,D=-1;function B(){return b?!0:!(e.unstable_now()-D<k)}function I(){if(b=!1,E){var L=e.unstable_now();D=L;var H=!0;try{e:{S=!1,w&&(w=!1,_(M),M=-1),j=!0;var Q=g;try{t:{for(C(L),y=n(f);y!==null&&!(y.expirationTime>L&&B());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,g=y.priorityLevel;var oe=ie(y.expirationTime<=L);if(L=e.unstable_now(),typeof oe=="function"){y.callback=oe,C(L),H=!0;break t}y===n(f)&&r(f),C(L)}else r(f);y=n(f)}if(y!==null)H=!0;else{var z=n(h);z!==null&&Y(O,z.startTime-L),H=!1}}break e}finally{y=null,g=Q,j=!1}H=void 0}}finally{H?$():E=!1}}}var $;if(typeof T=="function")$=function(){T(I)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,X=G.port2;G.port1.onmessage=I,$=function(){X.postMessage(null)}}else $=function(){A(I,0)};function Y(L,H){M=A(function(){L(e.unstable_now())},H)}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(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(L){switch(g){case 1:case 2:case 3:var H=3;break;default:H=g}var Q=g;g=H;try{return L()}finally{g=Q}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(L,H){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Q=g;g=L;try{return H()}finally{g=Q}},e.unstable_scheduleCallback=function(L,H,Q){var ie=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ie+Q:ie):Q=ie,L){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=Q+oe,L={id:m++,callback:H,priorityLevel:L,startTime:Q,expirationTime:oe,sortIndex:-1},Q>ie?(L.sortIndex=Q,t(h,L),n(f)===null&&L===n(h)&&(w?(_(M),M=-1):w=!0,Y(O,Q-ie))):(L.sortIndex=oe,t(f,L),S||j||(S=!0,E||(E=!0,$()))),L},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(L){var H=g;return function(){var Q=g;g=H;try{return L.apply(this,arguments)}finally{g=Q}}}})(Pv)),Pv}var sT;function s8(){return sT||(sT=1,Mv.exports=a8()),Mv.exports}var Rv={exports:{}},dn={};/**
* @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 oT;function o8(){if(oT)return dn;oT=1;var e=sS();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:y==null?null:""+y,children:f,containerInfo:h,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dn.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},dn.flushSync=function(f){var h=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=h,r.p=m,r.d.f()}},dn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},dn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},dn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,y=c(m,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,j=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:g,fetchPriority:j}):m==="script"&&r.d.X(f,{crossOrigin:y,integrity:g,fetchPriority:j,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},dn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},dn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=c(m,h.crossOrigin);r.d.L(f,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},dn.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=c(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},dn.requestFormReset=function(f){r.d.r(f)},dn.unstable_batchedUpdates=function(f,h){return f(h)},dn.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},dn.useFormStatus=function(){return l.H.useHostTransitionStatus()},dn.version="19.2.7",dn}var lT;function l8(){if(lT)return Rv.exports;lT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Rv.exports=o8(),Rv.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 uT;function u8(){if(uT)return Au;uT=1;var e=s8(),t=sS(),n=l8();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function c(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function f(i){if(o(i)!==i)throw Error(r(188))}function h(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,p=s;;){var v=u.return;if(v===null)break;var x=v.alternate;if(x===null){if(p=v.return,p!==null){u=p;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===u)return f(v),i;if(x===p)return f(v),s;x=x.sibling}throw Error(r(188))}if(u.return!==p.return)u=v,p=x;else{for(var N=!1,R=v.child;R;){if(R===u){N=!0,u=v,p=x;break}if(R===p){N=!0,p=v,u=x;break}R=R.sibling}if(!N){for(R=x.child;R;){if(R===u){N=!0,u=x,p=v;break}if(R===p){N=!0,p=x,u=v;break}R=R.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==p)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:s}function m(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=m(i),s!==null)return s;i=i.sibling}return null}var y=Object.assign,g=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function $(i){return i===null||typeof i!="object"?null:(i=I&&i[I]||i["@@iterator"],typeof i=="function"?i:null)}var G=Symbol.for("react.client.reference");function X(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===G?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case w:return"Fragment";case A:return"Profiler";case b:return"StrictMode";case O:return"Suspense";case E:return"SuspenseList";case D:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case S:return"Portal";case T:return i.displayName||"Context";case _:return(i._context.displayName||"Context")+".Consumer";case C:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case M:return s=i.displayName||null,s!==null?s:X(i.type)||"Memo";case k:s=i._payload,i=i._init;try{return X(i(s))}catch{}}return null}var Y=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ie=[],oe=-1;function z(i){return{current:i}}function F(i){0>oe||(i.current=ie[oe],ie[oe]=null,oe--)}function re(i,s){oe++,ie[oe]=i.current,i.current=s}var fe=z(null),pe=z(null),we=z(null),ze=z(null);function Ze(i,s){switch(re(we,s),re(pe,i),re(fe,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?A_(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=A_(s),i=O_(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}F(fe),re(fe,i)}function ce(){F(fe),F(pe),F(we)}function Ee(i){i.memoizedState!==null&&re(ze,i);var s=fe.current,u=O_(s,i.type);s!==u&&(re(pe,i),re(fe,u))}function Ce(i){pe.current===i&&(F(fe),F(pe)),ze.current===i&&(F(ze),xu._currentValue=Q)}var le,yt;function De(i){if(le===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);le=s&&s[1]||"",yt=-1<u.stack.indexOf(`
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
`+le+i+yt}var Ot=!1;function _t(i,s){if(!i||Ot)return"";Ot=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ee){var J=ee}Reflect.construct(i,[],se)}else{try{se.call()}catch(ee){J=ee}i.call(se.prototype)}}else{try{throw Error()}catch(ee){J=ee}(se=i())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=p.DetermineComponentFrameRoot(),N=x[0],R=x[1];if(N&&R){var U=N.split(`
`),Z=R.split(`
`);for(v=p=0;p<U.length&&!U[p].includes("DetermineComponentFrameRoot");)p++;for(;v<Z.length&&!Z[v].includes("DetermineComponentFrameRoot");)v++;if(p===U.length||v===Z.length)for(p=U.length-1,v=Z.length-1;1<=p&&0<=v&&U[p]!==Z[v];)v--;for(;1<=p&&0<=v;p--,v--)if(U[p]!==Z[v]){if(p!==1||v!==1)do if(p--,v--,0>v||U[p]!==Z[v]){var te=`
`+U[p].replace(" at new "," at ");return i.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",i.displayName)),te}while(1<=p&&0<=v);break}}}finally{Ot=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?De(u):""}function cn(i,s){switch(i.tag){case 26:case 27:case 5:return De(i.type);case 16:return De("Lazy");case 13:return i.child!==s&&s!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return _t(i.type,!1);case 11:return _t(i.type.render,!1);case 1:return _t(i.type,!0);case 31:return De("Activity");default:return""}}function gr(i){try{var s="",u=null;do s+=cn(i,u),u=i,i=i.return;while(i);return s}catch(p){return`
Error generating stack: `+p.message+`
`+p.stack}}var zr=Object.prototype.hasOwnProperty,qi=e.unstable_scheduleCallback,xr=e.unstable_cancelCallback,ni=e.unstable_shouldYield,Cl=e.unstable_requestPaint,fn=e.unstable_now,uf=e.unstable_getCurrentPriorityLevel,nA=e.unstable_ImmediatePriority,rA=e.unstable_UserBlockingPriority,cf=e.unstable_NormalPriority,zB=e.unstable_LowPriority,iA=e.unstable_IdlePriority,$B=e.log,BB=e.unstable_setDisableYieldValue,Ml=null,Rn=null;function Ii(i){if(typeof $B=="function"&&BB(i),Rn&&typeof Rn.setStrictMode=="function")try{Rn.setStrictMode(Ml,i)}catch{}}var Dn=Math.clz32?Math.clz32:UB,qB=Math.log,IB=Math.LN2;function UB(i){return i>>>=0,i===0?32:31-(qB(i)/IB|0)|0}var ff=256,df=262144,hf=4194304;function ka(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function pf(i,s,u){var p=i.pendingLanes;if(p===0)return 0;var v=0,x=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var R=p&134217727;return R!==0?(p=R&~x,p!==0?v=ka(p):(N&=R,N!==0?v=ka(N):u||(u=R&~i,u!==0&&(v=ka(u))))):(R=p&~x,R!==0?v=ka(R):N!==0?v=ka(N):u||(u=p&~i,u!==0&&(v=ka(u)))),v===0?0:s!==0&&s!==v&&(s&x)===0&&(x=v&-v,u=s&-s,x>=u||x===32&&(u&4194048)!==0)?s:v}function Pl(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function VB(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 aA(){var i=hf;return hf<<=1,(hf&62914560)===0&&(hf=4194304),i}function ym(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function Rl(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function HB(i,s,u,p,v,x){var N=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var R=i.entanglements,U=i.expirationTimes,Z=i.hiddenUpdates;for(u=N&~u;0<u;){var te=31-Dn(u),se=1<<te;R[te]=0,U[te]=-1;var J=Z[te];if(J!==null)for(Z[te]=null,te=0;te<J.length;te++){var ee=J[te];ee!==null&&(ee.lane&=-536870913)}u&=~se}p!==0&&sA(i,p,0),x!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=x&~(N&~s))}function sA(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var p=31-Dn(s);i.entangledLanes|=s,i.entanglements[p]=i.entanglements[p]|1073741824|u&261930}function oA(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var p=31-Dn(u),v=1<<p;v&s|i[p]&s&&(i[p]|=s),u&=~v}}function lA(i,s){var u=s&-s;return u=(u&42)!==0?1:vm(u),(u&(i.suspendedLanes|s))!==0?0:u}function vm(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function gm(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function uA(){var i=H.p;return i!==0?i:(i=window.event,i===void 0?32:Y_(i.type))}function cA(i,s){var u=H.p;try{return H.p=i,s()}finally{H.p=u}}var Ui=Math.random().toString(36).slice(2),tn="__reactFiber$"+Ui,Sn="__reactProps$"+Ui,ks="__reactContainer$"+Ui,xm="__reactEvents$"+Ui,FB="__reactListeners$"+Ui,GB="__reactHandles$"+Ui,fA="__reactResources$"+Ui,Dl="__reactMarker$"+Ui;function bm(i){delete i[tn],delete i[Sn],delete i[xm],delete i[FB],delete i[GB]}function Ls(i){var s=i[tn];if(s)return s;for(var u=i.parentNode;u;){if(s=u[ks]||u[tn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=P_(i);i!==null;){if(u=i[tn])return u;i=P_(i)}return s}i=u,u=i.parentNode}return null}function zs(i){if(i=i[tn]||i[ks]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function kl(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function $s(i){var s=i[fA];return s||(s=i[fA]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Wt(i){i[Dl]=!0}var dA=new Set,hA={};function La(i,s){Bs(i,s),Bs(i+"Capture",s)}function Bs(i,s){for(hA[i]=s,i=0;i<s.length;i++)dA.add(s[i])}var KB=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]*$"),pA={},mA={};function YB(i){return zr.call(mA,i)?!0:zr.call(pA,i)?!1:KB.test(i)?mA[i]=!0:(pA[i]=!0,!1)}function mf(i,s,u){if(YB(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var p=s.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function yf(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function ri(i,s,u,p){if(p===null)i.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+p)}}function Zn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function yA(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function XB(i,s,u){var p=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,x=p.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return v.call(this)},set:function(N){u=""+N,x.call(this,N)}}),Object.defineProperty(i,s,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(N){u=""+N},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function jm(i){if(!i._valueTracker){var s=yA(i)?"checked":"value";i._valueTracker=XB(i,s,""+i[s])}}function vA(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),p="";return i&&(p=yA(i)?i.checked?"true":"false":i.value),i=p,i!==u?(s.setValue(i),!0):!1}function vf(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var WB=/[\n"\\]/g;function Qn(i){return i.replace(WB,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Sm(i,s,u,p,v,x,N,R){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),s!=null?N==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Zn(s)):i.value!==""+Zn(s)&&(i.value=""+Zn(s)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),s!=null?wm(i,N,Zn(s)):u!=null?wm(i,N,Zn(u)):p!=null&&i.removeAttribute("value"),v==null&&x!=null&&(i.defaultChecked=!!x),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.name=""+Zn(R):i.removeAttribute("name")}function gA(i,s,u,p,v,x,N,R){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(i.type=x),s!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||s!=null)){jm(i);return}u=u!=null?""+Zn(u):"",s=s!=null?""+Zn(s):u,R||s===i.value||(i.value=s),i.defaultValue=s}p=p??v,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=R?i.checked:!!p,i.defaultChecked=!!p,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N),jm(i)}function wm(i,s,u){s==="number"&&vf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function qs(i,s,u,p){if(i=i.options,s){s={};for(var v=0;v<u.length;v++)s["$"+u[v]]=!0;for(u=0;u<i.length;u++)v=s.hasOwnProperty("$"+i[u].value),i[u].selected!==v&&(i[u].selected=v),v&&p&&(i[u].defaultSelected=!0)}else{for(u=""+Zn(u),s=null,v=0;v<i.length;v++){if(i[v].value===u){i[v].selected=!0,p&&(i[v].defaultSelected=!0);return}s!==null||i[v].disabled||(s=i[v])}s!==null&&(s.selected=!0)}}function xA(i,s,u){if(s!=null&&(s=""+Zn(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+Zn(u):""}function bA(i,s,u,p){if(s==null){if(p!=null){if(u!=null)throw Error(r(92));if(Y(p)){if(1<p.length)throw Error(r(93));p=p[0]}u=p}u==null&&(u=""),s=u}u=Zn(s),i.defaultValue=u,p=i.textContent,p===u&&p!==""&&p!==null&&(i.value=p),jm(i)}function Is(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var ZB=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 jA(i,s,u){var p=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":p?i.setProperty(s,u):typeof u!="number"||u===0||ZB.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function SA(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||s!=null&&s.hasOwnProperty(p)||(p.indexOf("--")===0?i.setProperty(p,""):p==="float"?i.cssFloat="":i[p]="");for(var v in s)p=s[v],s.hasOwnProperty(v)&&u[v]!==p&&jA(i,v,p)}else for(var x in s)s.hasOwnProperty(x)&&jA(i,x,s[x])}function Am(i){if(i.indexOf("-")===-1)return!1;switch(i){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 QB=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"]]),JB=/^[\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 gf(i){return JB.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function ii(){}var Om=null;function _m(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Us=null,Vs=null;function wA(i){var s=zs(i);if(s&&(i=s.stateNode)){var u=i[Sn]||null;e:switch(i=s.stateNode,s.type){case"input":if(Sm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Qn(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var p=u[s];if(p!==i&&p.form===i.form){var v=p[Sn]||null;if(!v)throw Error(r(90));Sm(p,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<u.length;s++)p=u[s],p.form===i.form&&vA(p)}break e;case"textarea":xA(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&qs(i,!!u.multiple,s,!1)}}}var Tm=!1;function AA(i,s,u){if(Tm)return i(s,u);Tm=!0;try{var p=i(s);return p}finally{if(Tm=!1,(Us!==null||Vs!==null)&&(ad(),Us&&(s=Us,i=Vs,Vs=Us=null,wA(s),i)))for(s=0;s<i.length;s++)wA(i[s])}}function Ll(i,s){var u=i.stateNode;if(u===null)return null;var p=u[Sn]||null;if(p===null)return null;u=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Em=!1;if(ai)try{var zl={};Object.defineProperty(zl,"passive",{get:function(){Em=!0}}),window.addEventListener("test",zl,zl),window.removeEventListener("test",zl,zl)}catch{Em=!1}var Vi=null,Nm=null,xf=null;function OA(){if(xf)return xf;var i,s=Nm,u=s.length,p,v="value"in Vi?Vi.value:Vi.textContent,x=v.length;for(i=0;i<u&&s[i]===v[i];i++);var N=u-i;for(p=1;p<=N&&s[u-p]===v[x-p];p++);return xf=v.slice(i,1<p?1-p:void 0)}function bf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function jf(){return!0}function _A(){return!1}function wn(i){function s(u,p,v,x,N){this._reactName=u,this._targetInst=v,this.type=p,this.nativeEvent=x,this.target=N,this.currentTarget=null;for(var R in i)i.hasOwnProperty(R)&&(u=i[R],this[R]=u?u(x):x[R]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?jf:_A,this.isPropagationStopped=_A,this}return y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=jf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=jf)},persist:function(){},isPersistent:jf}),s}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sf=wn(za),$l=y({},za,{view:0,detail:0}),e5=wn($l),Cm,Mm,Bl,wf=y({},$l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Bl&&(Bl&&i.type==="mousemove"?(Cm=i.screenX-Bl.screenX,Mm=i.screenY-Bl.screenY):Mm=Cm=0,Bl=i),Cm)},movementY:function(i){return"movementY"in i?i.movementY:Mm}}),TA=wn(wf),t5=y({},wf,{dataTransfer:0}),n5=wn(t5),r5=y({},$l,{relatedTarget:0}),Pm=wn(r5),i5=y({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),a5=wn(i5),s5=y({},za,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),o5=wn(s5),l5=y({},za,{data:0}),EA=wn(l5),u5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c5={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"},f5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d5(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=f5[i])?!!s[i]:!1}function Rm(){return d5}var h5=y({},$l,{key:function(i){if(i.key){var s=u5[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=bf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?c5[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rm,charCode:function(i){return i.type==="keypress"?bf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?bf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),p5=wn(h5),m5=y({},wf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),NA=wn(m5),y5=y({},$l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rm}),v5=wn(y5),g5=y({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),x5=wn(g5),b5=y({},wf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),j5=wn(b5),S5=y({},za,{newState:0,oldState:0}),w5=wn(S5),A5=[9,13,27,32],Dm=ai&&"CompositionEvent"in window,ql=null;ai&&"documentMode"in document&&(ql=document.documentMode);var O5=ai&&"TextEvent"in window&&!ql,CA=ai&&(!Dm||ql&&8<ql&&11>=ql),MA=" ",PA=!1;function RA(i,s){switch(i){case"keyup":return A5.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DA(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Hs=!1;function _5(i,s){switch(i){case"compositionend":return DA(s);case"keypress":return s.which!==32?null:(PA=!0,MA);case"textInput":return i=s.data,i===MA&&PA?null:i;default:return null}}function T5(i,s){if(Hs)return i==="compositionend"||!Dm&&RA(i,s)?(i=OA(),xf=Nm=Vi=null,Hs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return CA&&s.locale!=="ko"?null:s.data;default:return null}}var E5={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 kA(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!E5[i.type]:s==="textarea"}function LA(i,s,u,p){Us?Vs?Vs.push(p):Vs=[p]:Us=p,s=dd(s,"onChange"),0<s.length&&(u=new Sf("onChange","change",null,u,p),i.push({event:u,listeners:s}))}var Il=null,Ul=null;function N5(i){g_(i,0)}function Af(i){var s=kl(i);if(vA(s))return i}function zA(i,s){if(i==="change")return s}var $A=!1;if(ai){var km;if(ai){var Lm="oninput"in document;if(!Lm){var BA=document.createElement("div");BA.setAttribute("oninput","return;"),Lm=typeof BA.oninput=="function"}km=Lm}else km=!1;$A=km&&(!document.documentMode||9<document.documentMode)}function qA(){Il&&(Il.detachEvent("onpropertychange",IA),Ul=Il=null)}function IA(i){if(i.propertyName==="value"&&Af(Ul)){var s=[];LA(s,Ul,i,_m(i)),AA(N5,s)}}function C5(i,s,u){i==="focusin"?(qA(),Il=s,Ul=u,Il.attachEvent("onpropertychange",IA)):i==="focusout"&&qA()}function M5(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Af(Ul)}function P5(i,s){if(i==="click")return Af(s)}function R5(i,s){if(i==="input"||i==="change")return Af(s)}function D5(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var kn=typeof Object.is=="function"?Object.is:D5;function Vl(i,s){if(kn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),p=Object.keys(s);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var v=u[p];if(!zr.call(s,v)||!kn(i[v],s[v]))return!1}return!0}function UA(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function VA(i,s){var u=UA(i);i=0;for(var p;u;){if(u.nodeType===3){if(p=i+u.textContent.length,i<=s&&p>=s)return{node:u,offset:s-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=UA(u)}}function HA(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?HA(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function FA(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=vf(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=vf(i.document)}return s}function zm(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var k5=ai&&"documentMode"in document&&11>=document.documentMode,Fs=null,$m=null,Hl=null,Bm=!1;function GA(i,s,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Bm||Fs==null||Fs!==vf(p)||(p=Fs,"selectionStart"in p&&zm(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Hl&&Vl(Hl,p)||(Hl=p,p=dd($m,"onSelect"),0<p.length&&(s=new Sf("onSelect","select",null,s,u),i.push({event:s,listeners:p}),s.target=Fs)))}function $a(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Gs={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},qm={},KA={};ai&&(KA=document.createElement("div").style,"AnimationEvent"in window||(delete Gs.animationend.animation,delete Gs.animationiteration.animation,delete Gs.animationstart.animation),"TransitionEvent"in window||delete Gs.transitionend.transition);function Ba(i){if(qm[i])return qm[i];if(!Gs[i])return i;var s=Gs[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in KA)return qm[i]=s[u];return i}var YA=Ba("animationend"),XA=Ba("animationiteration"),WA=Ba("animationstart"),L5=Ba("transitionrun"),z5=Ba("transitionstart"),$5=Ba("transitioncancel"),ZA=Ba("transitionend"),QA=new Map,Im="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(" ");Im.push("scrollEnd");function br(i,s){QA.set(i,s),La(s,[i])}var Of=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Jn=[],Ks=0,Um=0;function _f(){for(var i=Ks,s=Um=Ks=0;s<i;){var u=Jn[s];Jn[s++]=null;var p=Jn[s];Jn[s++]=null;var v=Jn[s];Jn[s++]=null;var x=Jn[s];if(Jn[s++]=null,p!==null&&v!==null){var N=p.pending;N===null?v.next=v:(v.next=N.next,N.next=v),p.pending=v}x!==0&&JA(u,v,x)}}function Tf(i,s,u,p){Jn[Ks++]=i,Jn[Ks++]=s,Jn[Ks++]=u,Jn[Ks++]=p,Um|=p,i.lanes|=p,i=i.alternate,i!==null&&(i.lanes|=p)}function Vm(i,s,u,p){return Tf(i,s,u,p),Ef(i)}function qa(i,s){return Tf(i,null,null,s),Ef(i)}function JA(i,s,u){i.lanes|=u;var p=i.alternate;p!==null&&(p.lanes|=u);for(var v=!1,x=i.return;x!==null;)x.childLanes|=u,p=x.alternate,p!==null&&(p.childLanes|=u),x.tag===22&&(i=x.stateNode,i===null||i._visibility&1||(v=!0)),i=x,x=x.return;return i.tag===3?(x=i.stateNode,v&&s!==null&&(v=31-Dn(u),i=x.hiddenUpdates,p=i[v],p===null?i[v]=[s]:p.push(s),s.lane=u|536870912),x):null}function Ef(i){if(50<du)throw du=0,Qy=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Ys={};function B5(i,s,u,p){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(i,s,u,p){return new B5(i,s,u,p)}function Hm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function si(i,s){var u=i.alternate;return u===null?(u=Ln(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function eO(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function Nf(i,s,u,p,v,x){var N=0;if(p=i,typeof i=="function")Hm(i)&&(N=1);else if(typeof i=="string")N=H6(i,u,fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case D:return i=Ln(31,u,s,v),i.elementType=D,i.lanes=x,i;case w:return Ia(u.children,v,x,s);case b:N=8,v|=24;break;case A:return i=Ln(12,u,s,v|2),i.elementType=A,i.lanes=x,i;case O:return i=Ln(13,u,s,v),i.elementType=O,i.lanes=x,i;case E:return i=Ln(19,u,s,v),i.elementType=E,i.lanes=x,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:N=10;break e;case _:N=9;break e;case C:N=11;break e;case M:N=14;break e;case k:N=16,p=null;break e}N=29,u=Error(r(130,i===null?"null":typeof i,"")),p=null}return s=Ln(N,u,s,v),s.elementType=i,s.type=p,s.lanes=x,s}function Ia(i,s,u,p){return i=Ln(7,i,p,s),i.lanes=u,i}function Fm(i,s,u){return i=Ln(6,i,null,s),i.lanes=u,i}function tO(i){var s=Ln(18,null,null,0);return s.stateNode=i,s}function Gm(i,s,u){return s=Ln(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var nO=new WeakMap;function er(i,s){if(typeof i=="object"&&i!==null){var u=nO.get(i);return u!==void 0?u:(s={value:i,source:s,stack:gr(s)},nO.set(i,s),s)}return{value:i,source:s,stack:gr(s)}}var Xs=[],Ws=0,Cf=null,Fl=0,tr=[],nr=0,Hi=null,$r=1,Br="";function oi(i,s){Xs[Ws++]=Fl,Xs[Ws++]=Cf,Cf=i,Fl=s}function rO(i,s,u){tr[nr++]=$r,tr[nr++]=Br,tr[nr++]=Hi,Hi=i;var p=$r;i=Br;var v=32-Dn(p)-1;p&=~(1<<v),u+=1;var x=32-Dn(s)+v;if(30<x){var N=v-v%5;x=(p&(1<<N)-1).toString(32),p>>=N,v-=N,$r=1<<32-Dn(s)+v|u<<v|p,Br=x+i}else $r=1<<x|u<<v|p,Br=i}function Km(i){i.return!==null&&(oi(i,1),rO(i,1,0))}function Ym(i){for(;i===Cf;)Cf=Xs[--Ws],Xs[Ws]=null,Fl=Xs[--Ws],Xs[Ws]=null;for(;i===Hi;)Hi=tr[--nr],tr[nr]=null,Br=tr[--nr],tr[nr]=null,$r=tr[--nr],tr[nr]=null}function iO(i,s){tr[nr++]=$r,tr[nr++]=Br,tr[nr++]=Hi,$r=s.id,Br=s.overflow,Hi=i}var nn=null,vt=null,He=!1,Fi=null,rr=!1,Xm=Error(r(519));function Gi(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gl(er(s,i)),Xm}function aO(i){var s=i.stateNode,u=i.type,p=i.memoizedProps;switch(s[tn]=i,s[Sn]=p,u){case"dialog":Be("cancel",s),Be("close",s);break;case"iframe":case"object":case"embed":Be("load",s);break;case"video":case"audio":for(u=0;u<pu.length;u++)Be(pu[u],s);break;case"source":Be("error",s);break;case"img":case"image":case"link":Be("error",s),Be("load",s);break;case"details":Be("toggle",s);break;case"input":Be("invalid",s),gA(s,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":Be("invalid",s);break;case"textarea":Be("invalid",s),bA(s,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||p.suppressHydrationWarning===!0||S_(s.textContent,u)?(p.popover!=null&&(Be("beforetoggle",s),Be("toggle",s)),p.onScroll!=null&&Be("scroll",s),p.onScrollEnd!=null&&Be("scrollend",s),p.onClick!=null&&(s.onclick=ii),s=!0):s=!1,s||Gi(i,!0)}function sO(i){for(nn=i.return;nn;)switch(nn.tag){case 5:case 31:case 13:rr=!1;return;case 27:case 3:rr=!0;return;default:nn=nn.return}}function Zs(i){if(i!==nn)return!1;if(!He)return sO(i),He=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||hv(i.type,i.memoizedProps)),u=!u),u&&vt&&Gi(i),sO(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));vt=M_(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));vt=M_(i)}else s===27?(s=vt,sa(i.type)?(i=gv,gv=null,vt=i):vt=s):vt=nn?ar(i.stateNode.nextSibling):null;return!0}function Ua(){vt=nn=null,He=!1}function Wm(){var i=Fi;return i!==null&&(Tn===null?Tn=i:Tn.push.apply(Tn,i),Fi=null),i}function Gl(i){Fi===null?Fi=[i]:Fi.push(i)}var Zm=z(null),Va=null,li=null;function Ki(i,s,u){re(Zm,s._currentValue),s._currentValue=u}function ui(i){i._currentValue=Zm.current,F(Zm)}function Qm(i,s,u){for(;i!==null;){var p=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),i===u)break;i=i.return}}function Jm(i,s,u,p){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var x=v.dependencies;if(x!==null){var N=v.child;x=x.firstContext;e:for(;x!==null;){var R=x;x=v;for(var U=0;U<s.length;U++)if(R.context===s[U]){x.lanes|=u,R=x.alternate,R!==null&&(R.lanes|=u),Qm(x.return,u,i),p||(N=null);break e}x=R.next}}else if(v.tag===18){if(N=v.return,N===null)throw Error(r(341));N.lanes|=u,x=N.alternate,x!==null&&(x.lanes|=u),Qm(N,u,i),N=null}else N=v.child;if(N!==null)N.return=v;else for(N=v;N!==null;){if(N===i){N=null;break}if(v=N.sibling,v!==null){v.return=N.return,N=v;break}N=N.return}v=N}}function Qs(i,s,u,p){i=null;for(var v=s,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var N=v.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var R=v.type;kn(v.pendingProps.value,N.value)||(i!==null?i.push(R):i=[R])}}else if(v===ze.current){if(N=v.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(xu):i=[xu])}v=v.return}i!==null&&Jm(s,i,u,p),s.flags|=262144}function Mf(i){for(i=i.firstContext;i!==null;){if(!kn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ha(i){Va=i,li=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function rn(i){return oO(Va,i)}function Pf(i,s){return Va===null&&Ha(i),oO(i,s)}function oO(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},li===null){if(i===null)throw Error(r(308));li=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else li=li.next=s;return u}var q5=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,p){i.push(p)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},I5=e.unstable_scheduleCallback,U5=e.unstable_NormalPriority,Dt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ey(){return{controller:new q5,data:new Map,refCount:0}}function Kl(i){i.refCount--,i.refCount===0&&I5(U5,function(){i.controller.abort()})}var Yl=null,ty=0,Js=0,eo=null;function V5(i,s){if(Yl===null){var u=Yl=[];ty=0,Js=iv(),eo={status:"pending",value:void 0,then:function(p){u.push(p)}}}return ty++,s.then(lO,lO),s}function lO(){if(--ty===0&&Yl!==null){eo!==null&&(eo.status="fulfilled");var i=Yl;Yl=null,Js=0,eo=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function H5(i,s){var u=[],p={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return i.then(function(){p.status="fulfilled",p.value=s;for(var v=0;v<u.length;v++)(0,u[v])(s)},function(v){for(p.status="rejected",p.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),p}var uO=L.S;L.S=function(i,s){G2=fn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&V5(i,s),uO!==null&&uO(i,s)};var Fa=z(null);function ny(){var i=Fa.current;return i!==null?i:ut.pooledCache}function Rf(i,s){s===null?re(Fa,Fa.current):re(Fa,s.pool)}function cO(){var i=ny();return i===null?null:{parent:Dt._currentValue,pool:i}}var to=Error(r(460)),ry=Error(r(474)),Df=Error(r(542)),kf={then:function(){}};function fO(i){return i=i.status,i==="fulfilled"||i==="rejected"}function dO(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(ii,ii),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,pO(i),i;default:if(typeof s.status=="string")s.then(ii,ii);else{if(i=ut,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(p){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=p}},function(p){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=p}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,pO(i),i}throw Ka=s,to}}function Ga(i){try{var s=i._init;return s(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ka=u,to):u}}var Ka=null;function hO(){if(Ka===null)throw Error(r(459));var i=Ka;return Ka=null,i}function pO(i){if(i===to||i===Df)throw Error(r(483))}var no=null,Xl=0;function Lf(i){var s=Xl;return Xl+=1,no===null&&(no=[]),dO(no,i,s)}function Wl(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function zf(i,s){throw s.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function mO(i){function s(K,V){if(i){var W=K.deletions;W===null?(K.deletions=[V],K.flags|=16):W.push(V)}}function u(K,V){if(!i)return null;for(;V!==null;)s(K,V),V=V.sibling;return null}function p(K){for(var V=new Map;K!==null;)K.key!==null?V.set(K.key,K):V.set(K.index,K),K=K.sibling;return V}function v(K,V){return K=si(K,V),K.index=0,K.sibling=null,K}function x(K,V,W){return K.index=W,i?(W=K.alternate,W!==null?(W=W.index,W<V?(K.flags|=67108866,V):W):(K.flags|=67108866,V)):(K.flags|=1048576,V)}function N(K){return i&&K.alternate===null&&(K.flags|=67108866),K}function R(K,V,W,ae){return V===null||V.tag!==6?(V=Fm(W,K.mode,ae),V.return=K,V):(V=v(V,W),V.return=K,V)}function U(K,V,W,ae){var Se=W.type;return Se===w?te(K,V,W.props.children,ae,W.key):V!==null&&(V.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===k&&Ga(Se)===V.type)?(V=v(V,W.props),Wl(V,W),V.return=K,V):(V=Nf(W.type,W.key,W.props,null,K.mode,ae),Wl(V,W),V.return=K,V)}function Z(K,V,W,ae){return V===null||V.tag!==4||V.stateNode.containerInfo!==W.containerInfo||V.stateNode.implementation!==W.implementation?(V=Gm(W,K.mode,ae),V.return=K,V):(V=v(V,W.children||[]),V.return=K,V)}function te(K,V,W,ae,Se){return V===null||V.tag!==7?(V=Ia(W,K.mode,ae,Se),V.return=K,V):(V=v(V,W),V.return=K,V)}function se(K,V,W){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Fm(""+V,K.mode,W),V.return=K,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case j:return W=Nf(V.type,V.key,V.props,null,K.mode,W),Wl(W,V),W.return=K,W;case S:return V=Gm(V,K.mode,W),V.return=K,V;case k:return V=Ga(V),se(K,V,W)}if(Y(V)||$(V))return V=Ia(V,K.mode,W,null),V.return=K,V;if(typeof V.then=="function")return se(K,Lf(V),W);if(V.$$typeof===T)return se(K,Pf(K,V),W);zf(K,V)}return null}function J(K,V,W,ae){var Se=V!==null?V.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Se!==null?null:R(K,V,""+W,ae);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case j:return W.key===Se?U(K,V,W,ae):null;case S:return W.key===Se?Z(K,V,W,ae):null;case k:return W=Ga(W),J(K,V,W,ae)}if(Y(W)||$(W))return Se!==null?null:te(K,V,W,ae,null);if(typeof W.then=="function")return J(K,V,Lf(W),ae);if(W.$$typeof===T)return J(K,V,Pf(K,W),ae);zf(K,W)}return null}function ee(K,V,W,ae,Se){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return K=K.get(W)||null,R(V,K,""+ae,Se);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case j:return K=K.get(ae.key===null?W:ae.key)||null,U(V,K,ae,Se);case S:return K=K.get(ae.key===null?W:ae.key)||null,Z(V,K,ae,Se);case k:return ae=Ga(ae),ee(K,V,W,ae,Se)}if(Y(ae)||$(ae))return K=K.get(W)||null,te(V,K,ae,Se,null);if(typeof ae.then=="function")return ee(K,V,W,Lf(ae),Se);if(ae.$$typeof===T)return ee(K,V,W,Pf(V,ae),Se);zf(V,ae)}return null}function ve(K,V,W,ae){for(var Se=null,Fe=null,xe=V,ke=V=0,Ue=null;xe!==null&&ke<W.length;ke++){xe.index>ke?(Ue=xe,xe=null):Ue=xe.sibling;var Ge=J(K,xe,W[ke],ae);if(Ge===null){xe===null&&(xe=Ue);break}i&&xe&&Ge.alternate===null&&s(K,xe),V=x(Ge,V,ke),Fe===null?Se=Ge:Fe.sibling=Ge,Fe=Ge,xe=Ue}if(ke===W.length)return u(K,xe),He&&oi(K,ke),Se;if(xe===null){for(;ke<W.length;ke++)xe=se(K,W[ke],ae),xe!==null&&(V=x(xe,V,ke),Fe===null?Se=xe:Fe.sibling=xe,Fe=xe);return He&&oi(K,ke),Se}for(xe=p(xe);ke<W.length;ke++)Ue=ee(xe,K,ke,W[ke],ae),Ue!==null&&(i&&Ue.alternate!==null&&xe.delete(Ue.key===null?ke:Ue.key),V=x(Ue,V,ke),Fe===null?Se=Ue:Fe.sibling=Ue,Fe=Ue);return i&&xe.forEach(function(fa){return s(K,fa)}),He&&oi(K,ke),Se}function Ae(K,V,W,ae){if(W==null)throw Error(r(151));for(var Se=null,Fe=null,xe=V,ke=V=0,Ue=null,Ge=W.next();xe!==null&&!Ge.done;ke++,Ge=W.next()){xe.index>ke?(Ue=xe,xe=null):Ue=xe.sibling;var fa=J(K,xe,Ge.value,ae);if(fa===null){xe===null&&(xe=Ue);break}i&&xe&&fa.alternate===null&&s(K,xe),V=x(fa,V,ke),Fe===null?Se=fa:Fe.sibling=fa,Fe=fa,xe=Ue}if(Ge.done)return u(K,xe),He&&oi(K,ke),Se;if(xe===null){for(;!Ge.done;ke++,Ge=W.next())Ge=se(K,Ge.value,ae),Ge!==null&&(V=x(Ge,V,ke),Fe===null?Se=Ge:Fe.sibling=Ge,Fe=Ge);return He&&oi(K,ke),Se}for(xe=p(xe);!Ge.done;ke++,Ge=W.next())Ge=ee(xe,K,ke,Ge.value,ae),Ge!==null&&(i&&Ge.alternate!==null&&xe.delete(Ge.key===null?ke:Ge.key),V=x(Ge,V,ke),Fe===null?Se=Ge:Fe.sibling=Ge,Fe=Ge);return i&&xe.forEach(function(t8){return s(K,t8)}),He&&oi(K,ke),Se}function ot(K,V,W,ae){if(typeof W=="object"&&W!==null&&W.type===w&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case j:e:{for(var Se=W.key;V!==null;){if(V.key===Se){if(Se=W.type,Se===w){if(V.tag===7){u(K,V.sibling),ae=v(V,W.props.children),ae.return=K,K=ae;break e}}else if(V.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===k&&Ga(Se)===V.type){u(K,V.sibling),ae=v(V,W.props),Wl(ae,W),ae.return=K,K=ae;break e}u(K,V);break}else s(K,V);V=V.sibling}W.type===w?(ae=Ia(W.props.children,K.mode,ae,W.key),ae.return=K,K=ae):(ae=Nf(W.type,W.key,W.props,null,K.mode,ae),Wl(ae,W),ae.return=K,K=ae)}return N(K);case S:e:{for(Se=W.key;V!==null;){if(V.key===Se)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){u(K,V.sibling),ae=v(V,W.children||[]),ae.return=K,K=ae;break e}else{u(K,V);break}else s(K,V);V=V.sibling}ae=Gm(W,K.mode,ae),ae.return=K,K=ae}return N(K);case k:return W=Ga(W),ot(K,V,W,ae)}if(Y(W))return ve(K,V,W,ae);if($(W)){if(Se=$(W),typeof Se!="function")throw Error(r(150));return W=Se.call(W),Ae(K,V,W,ae)}if(typeof W.then=="function")return ot(K,V,Lf(W),ae);if(W.$$typeof===T)return ot(K,V,Pf(K,W),ae);zf(K,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(u(K,V.sibling),ae=v(V,W),ae.return=K,K=ae):(u(K,V),ae=Fm(W,K.mode,ae),ae.return=K,K=ae),N(K)):u(K,V)}return function(K,V,W,ae){try{Xl=0;var Se=ot(K,V,W,ae);return no=null,Se}catch(xe){if(xe===to||xe===Df)throw xe;var Fe=Ln(29,xe,null,K.mode);return Fe.lanes=ae,Fe.return=K,Fe}finally{}}}var Ya=mO(!0),yO=mO(!1),Yi=!1;function iy(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ay(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Xi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Wi(i,s,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(Xe&2)!==0){var v=p.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),p.pending=s,s=Ef(i),JA(i,null,u),s}return Tf(i,p,s,u),Ef(i)}function Zl(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,oA(i,u)}}function sy(i,s){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var v=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var N={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?v=x=N:x=x.next=N,u=u.next}while(u!==null);x===null?v=x=s:x=x.next=s}else v=x=s;u={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:p.shared,callbacks:p.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var oy=!1;function Ql(){if(oy){var i=eo;if(i!==null)throw i}}function Jl(i,s,u,p){oy=!1;var v=i.updateQueue;Yi=!1;var x=v.firstBaseUpdate,N=v.lastBaseUpdate,R=v.shared.pending;if(R!==null){v.shared.pending=null;var U=R,Z=U.next;U.next=null,N===null?x=Z:N.next=Z,N=U;var te=i.alternate;te!==null&&(te=te.updateQueue,R=te.lastBaseUpdate,R!==N&&(R===null?te.firstBaseUpdate=Z:R.next=Z,te.lastBaseUpdate=U))}if(x!==null){var se=v.baseState;N=0,te=Z=U=null,R=x;do{var J=R.lane&-536870913,ee=J!==R.lane;if(ee?(Ie&J)===J:(p&J)===J){J!==0&&J===Js&&(oy=!0),te!==null&&(te=te.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var ve=i,Ae=R;J=s;var ot=u;switch(Ae.tag){case 1:if(ve=Ae.payload,typeof ve=="function"){se=ve.call(ot,se,J);break e}se=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ae.payload,J=typeof ve=="function"?ve.call(ot,se,J):ve,J==null)break e;se=y({},se,J);break e;case 2:Yi=!0}}J=R.callback,J!==null&&(i.flags|=64,ee&&(i.flags|=8192),ee=v.callbacks,ee===null?v.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:R.tag,payload:R.payload,callback:R.callback,next:null},te===null?(Z=te=ee,U=se):te=te.next=ee,N|=J;if(R=R.next,R===null){if(R=v.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,v.lastBaseUpdate=ee,v.shared.pending=null}}while(!0);te===null&&(U=se),v.baseState=U,v.firstBaseUpdate=Z,v.lastBaseUpdate=te,x===null&&(v.shared.lanes=0),ta|=N,i.lanes=N,i.memoizedState=se}}function vO(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function gO(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)vO(u[i],s)}var ro=z(null),$f=z(0);function xO(i,s){i=gi,re($f,i),re(ro,s),gi=i|s.baseLanes}function ly(){re($f,gi),re(ro,ro.current)}function uy(){gi=$f.current,F(ro),F($f)}var zn=z(null),ir=null;function Zi(i){var s=i.alternate;re(Mt,Mt.current&1),re(zn,i),ir===null&&(s===null||ro.current!==null||s.memoizedState!==null)&&(ir=i)}function cy(i){re(Mt,Mt.current),re(zn,i),ir===null&&(ir=i)}function bO(i){i.tag===22?(re(Mt,Mt.current),re(zn,i),ir===null&&(ir=i)):Qi()}function Qi(){re(Mt,Mt.current),re(zn,zn.current)}function $n(i){F(zn),ir===i&&(ir=null),F(Mt)}var Mt=z(0);function Bf(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||yv(u)||vv(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ci=0,Re=null,at=null,kt=null,qf=!1,io=!1,Xa=!1,If=0,eu=0,ao=null,F5=0;function Tt(){throw Error(r(321))}function fy(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!kn(i[u],s[u]))return!1;return!0}function dy(i,s,u,p,v,x){return ci=x,Re=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,L.H=i===null||i.memoizedState===null?r2:Ty,Xa=!1,x=u(p,v),Xa=!1,io&&(x=SO(s,u,p,v)),jO(i),x}function jO(i){L.H=ru;var s=at!==null&&at.next!==null;if(ci=0,kt=at=Re=null,qf=!1,eu=0,ao=null,s)throw Error(r(300));i===null||Lt||(i=i.dependencies,i!==null&&Mf(i)&&(Lt=!0))}function SO(i,s,u,p){Re=i;var v=0;do{if(io&&(ao=null),eu=0,io=!1,25<=v)throw Error(r(301));if(v+=1,kt=at=null,i.updateQueue!=null){var x=i.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}L.H=i2,x=s(u,p)}while(io);return x}function G5(){var i=L.H,s=i.useState()[0];return s=typeof s.then=="function"?tu(s):s,i=i.useState()[0],(at!==null?at.memoizedState:null)!==i&&(Re.flags|=1024),s}function hy(){var i=If!==0;return If=0,i}function py(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function my(i){if(qf){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}qf=!1}ci=0,kt=at=Re=null,io=!1,eu=If=0,ao=null}function yn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?Re.memoizedState=kt=i:kt=kt.next=i,kt}function Pt(){if(at===null){var i=Re.alternate;i=i!==null?i.memoizedState:null}else i=at.next;var s=kt===null?Re.memoizedState:kt.next;if(s!==null)kt=s,at=i;else{if(i===null)throw Re.alternate===null?Error(r(467)):Error(r(310));at=i,i={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},kt===null?Re.memoizedState=kt=i:kt=kt.next=i}return kt}function Uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tu(i){var s=eu;return eu+=1,ao===null&&(ao=[]),i=dO(ao,i,s),s=Re,(kt===null?s.memoizedState:kt.next)===null&&(s=s.alternate,L.H=s===null||s.memoizedState===null?r2:Ty),i}function Vf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return tu(i);if(i.$$typeof===T)return rn(i)}throw Error(r(438,String(i)))}function yy(i){var s=null,u=Re.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var p=Re.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(s={data:p.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Uf(),Re.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),p=0;p<i;p++)u[p]=B;return s.index++,u}function fi(i,s){return typeof s=="function"?s(i):s}function Hf(i){var s=Pt();return vy(s,at,i)}function vy(i,s,u){var p=i.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=u;var v=i.baseQueue,x=p.pending;if(x!==null){if(v!==null){var N=v.next;v.next=x.next,x.next=N}s.baseQueue=v=x,p.pending=null}if(x=i.baseState,v===null)i.memoizedState=x;else{s=v.next;var R=N=null,U=null,Z=s,te=!1;do{var se=Z.lane&-536870913;if(se!==Z.lane?(Ie&se)===se:(ci&se)===se){var J=Z.revertLane;if(J===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),se===Js&&(te=!0);else if((ci&J)===J){Z=Z.next,J===Js&&(te=!0);continue}else se={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},U===null?(R=U=se,N=x):U=U.next=se,Re.lanes|=J,ta|=J;se=Z.action,Xa&&u(x,se),x=Z.hasEagerState?Z.eagerState:u(x,se)}else J={lane:se,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},U===null?(R=U=J,N=x):U=U.next=J,Re.lanes|=se,ta|=se;Z=Z.next}while(Z!==null&&Z!==s);if(U===null?N=x:U.next=R,!kn(x,i.memoizedState)&&(Lt=!0,te&&(u=eo,u!==null)))throw u;i.memoizedState=x,i.baseState=N,i.baseQueue=U,p.lastRenderedState=x}return v===null&&(p.lanes=0),[i.memoizedState,p.dispatch]}function gy(i){var s=Pt(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var p=u.dispatch,v=u.pending,x=s.memoizedState;if(v!==null){u.pending=null;var N=v=v.next;do x=i(x,N.action),N=N.next;while(N!==v);kn(x,s.memoizedState)||(Lt=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),u.lastRenderedState=x}return[x,p]}function wO(i,s,u){var p=Re,v=Pt(),x=He;if(x){if(u===void 0)throw Error(r(407));u=u()}else u=s();var N=!kn((at||v).memoizedState,u);if(N&&(v.memoizedState=u,Lt=!0),v=v.queue,jy(_O.bind(null,p,v,i),[i]),v.getSnapshot!==s||N||kt!==null&&kt.memoizedState.tag&1){if(p.flags|=2048,so(9,{destroy:void 0},OO.bind(null,p,v,u,s),null),ut===null)throw Error(r(349));x||(ci&127)!==0||AO(p,s,u)}return u}function AO(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=Re.updateQueue,s===null?(s=Uf(),Re.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function OO(i,s,u,p){s.value=u,s.getSnapshot=p,TO(s)&&EO(i)}function _O(i,s,u){return u(function(){TO(s)&&EO(i)})}function TO(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!kn(i,u)}catch{return!0}}function EO(i){var s=qa(i,2);s!==null&&En(s,i,2)}function xy(i){var s=yn();if(typeof i=="function"){var u=i;if(i=u(),Xa){Ii(!0);try{u()}finally{Ii(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:i},s}function NO(i,s,u,p){return i.baseState=u,vy(i,at,typeof p=="function"?p:fi)}function K5(i,s,u,p,v){if(Kf(i))throw Error(r(485));if(i=s.action,i!==null){var x={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){x.listeners.push(N)}};L.T!==null?u(!0):x.isTransition=!1,p(x),u=s.pending,u===null?(x.next=s.pending=x,CO(s,x)):(x.next=u.next,s.pending=u.next=x)}}function CO(i,s){var u=s.action,p=s.payload,v=i.state;if(s.isTransition){var x=L.T,N={};L.T=N;try{var R=u(v,p),U=L.S;U!==null&&U(N,R),MO(i,s,R)}catch(Z){by(i,s,Z)}finally{x!==null&&N.types!==null&&(x.types=N.types),L.T=x}}else try{x=u(v,p),MO(i,s,x)}catch(Z){by(i,s,Z)}}function MO(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){PO(i,s,p)},function(p){return by(i,s,p)}):PO(i,s,u)}function PO(i,s,u){s.status="fulfilled",s.value=u,RO(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,CO(i,u)))}function by(i,s,u){var p=i.pending;if(i.pending=null,p!==null){p=p.next;do s.status="rejected",s.reason=u,RO(s),s=s.next;while(s!==p)}i.action=null}function RO(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function DO(i,s){return s}function kO(i,s){if(He){var u=ut.formState;if(u!==null){e:{var p=Re;if(He){if(vt){t:{for(var v=vt,x=rr;v.nodeType!==8;){if(!x){v=null;break t}if(v=ar(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){vt=ar(v.nextSibling),p=v.data==="F!";break e}}Gi(p)}p=!1}p&&(s=u[0])}}return u=yn(),u.memoizedState=u.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:DO,lastRenderedState:s},u.queue=p,u=e2.bind(null,Re,p),p.dispatch=u,p=xy(!1),x=_y.bind(null,Re,!1,p.queue),p=yn(),v={state:s,dispatch:null,action:i,pending:null},p.queue=v,u=K5.bind(null,Re,v,x,u),v.dispatch=u,p.memoizedState=i,[s,u,!1]}function LO(i){var s=Pt();return zO(s,at,i)}function zO(i,s,u){if(s=vy(i,s,DO)[0],i=Hf(fi)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=tu(s)}catch(N){throw N===to?Df:N}else p=s;s=Pt();var v=s.queue,x=v.dispatch;return u!==s.memoizedState&&(Re.flags|=2048,so(9,{destroy:void 0},Y5.bind(null,v,u),null)),[p,x,i]}function Y5(i,s){i.action=s}function $O(i){var s=Pt(),u=at;if(u!==null)return zO(s,u,i);Pt(),s=s.memoizedState,u=Pt();var p=u.queue.dispatch;return u.memoizedState=i,[s,p,!1]}function so(i,s,u,p){return i={tag:i,create:u,deps:p,inst:s,next:null},s=Re.updateQueue,s===null&&(s=Uf(),Re.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(p=u.next,u.next=i,i.next=p,s.lastEffect=i),i}function BO(){return Pt().memoizedState}function Ff(i,s,u,p){var v=yn();Re.flags|=i,v.memoizedState=so(1|s,{destroy:void 0},u,p===void 0?null:p)}function Gf(i,s,u,p){var v=Pt();p=p===void 0?null:p;var x=v.memoizedState.inst;at!==null&&p!==null&&fy(p,at.memoizedState.deps)?v.memoizedState=so(s,x,u,p):(Re.flags|=i,v.memoizedState=so(1|s,x,u,p))}function qO(i,s){Ff(8390656,8,i,s)}function jy(i,s){Gf(2048,8,i,s)}function X5(i){Re.flags|=4;var s=Re.updateQueue;if(s===null)s=Uf(),Re.updateQueue=s,s.events=[i];else{var u=s.events;u===null?s.events=[i]:u.push(i)}}function IO(i){var s=Pt().memoizedState;return X5({ref:s,nextImpl:i}),function(){if((Xe&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function UO(i,s){return Gf(4,2,i,s)}function VO(i,s){return Gf(4,4,i,s)}function HO(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function FO(i,s,u){u=u!=null?u.concat([i]):null,Gf(4,4,HO.bind(null,s,i),u)}function Sy(){}function GO(i,s){var u=Pt();s=s===void 0?null:s;var p=u.memoizedState;return s!==null&&fy(s,p[1])?p[0]:(u.memoizedState=[i,s],i)}function KO(i,s){var u=Pt();s=s===void 0?null:s;var p=u.memoizedState;if(s!==null&&fy(s,p[1]))return p[0];if(p=i(),Xa){Ii(!0);try{i()}finally{Ii(!1)}}return u.memoizedState=[p,s],p}function wy(i,s,u){return u===void 0||(ci&1073741824)!==0&&(Ie&261930)===0?i.memoizedState=s:(i.memoizedState=u,i=Y2(),Re.lanes|=i,ta|=i,u)}function YO(i,s,u,p){return kn(u,s)?u:ro.current!==null?(i=wy(i,u,p),kn(i,s)||(Lt=!0),i):(ci&42)===0||(ci&1073741824)!==0&&(Ie&261930)===0?(Lt=!0,i.memoizedState=u):(i=Y2(),Re.lanes|=i,ta|=i,s)}function XO(i,s,u,p,v){var x=H.p;H.p=x!==0&&8>x?x:8;var N=L.T,R={};L.T=R,_y(i,!1,s,u);try{var U=v(),Z=L.S;if(Z!==null&&Z(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var te=H5(U,p);nu(i,s,te,In(i))}else nu(i,s,p,In(i))}catch(se){nu(i,s,{then:function(){},status:"rejected",reason:se},In())}finally{H.p=x,N!==null&&R.types!==null&&(N.types=R.types),L.T=N}}function W5(){}function Ay(i,s,u,p){if(i.tag!==5)throw Error(r(476));var v=WO(i).queue;XO(i,v,s,Q,u===null?W5:function(){return ZO(i),u(p)})}function WO(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:Q},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function ZO(i){var s=WO(i);s.next===null&&(s=i.alternate.memoizedState),nu(i,s.next.queue,{},In())}function Oy(){return rn(xu)}function QO(){return Pt().memoizedState}function JO(){return Pt().memoizedState}function Z5(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=In();i=Xi(u);var p=Wi(s,i,u);p!==null&&(En(p,s,u),Zl(p,s,u)),s={cache:ey()},i.payload=s;return}s=s.return}}function Q5(i,s,u){var p=In();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Kf(i)?t2(s,u):(u=Vm(i,s,u,p),u!==null&&(En(u,i,p),n2(u,s,p)))}function e2(i,s,u){var p=In();nu(i,s,u,p)}function nu(i,s,u,p){var v={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Kf(i))t2(s,v);else{var x=i.alternate;if(i.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var N=s.lastRenderedState,R=x(N,u);if(v.hasEagerState=!0,v.eagerState=R,kn(R,N))return Tf(i,s,v,0),ut===null&&_f(),!1}catch{}finally{}if(u=Vm(i,s,v,p),u!==null)return En(u,i,p),n2(u,s,p),!0}return!1}function _y(i,s,u,p){if(p={lane:2,revertLane:iv(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Kf(i)){if(s)throw Error(r(479))}else s=Vm(i,u,p,2),s!==null&&En(s,i,2)}function Kf(i){var s=i.alternate;return i===Re||s!==null&&s===Re}function t2(i,s){io=qf=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function n2(i,s,u){if((u&4194048)!==0){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,oA(i,u)}}var ru={readContext:rn,use:Vf,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt};ru.useEffectEvent=Tt;var r2={readContext:rn,use:Vf,useCallback:function(i,s){return yn().memoizedState=[i,s===void 0?null:s],i},useContext:rn,useEffect:qO,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Ff(4194308,4,HO.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Ff(4194308,4,i,s)},useInsertionEffect:function(i,s){Ff(4,2,i,s)},useMemo:function(i,s){var u=yn();s=s===void 0?null:s;var p=i();if(Xa){Ii(!0);try{i()}finally{Ii(!1)}}return u.memoizedState=[p,s],p},useReducer:function(i,s,u){var p=yn();if(u!==void 0){var v=u(s);if(Xa){Ii(!0);try{u(s)}finally{Ii(!1)}}}else v=s;return p.memoizedState=p.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},p.queue=i,i=i.dispatch=Q5.bind(null,Re,i),[p.memoizedState,i]},useRef:function(i){var s=yn();return i={current:i},s.memoizedState=i},useState:function(i){i=xy(i);var s=i.queue,u=e2.bind(null,Re,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Sy,useDeferredValue:function(i,s){var u=yn();return wy(u,i,s)},useTransition:function(){var i=xy(!1);return i=XO.bind(null,Re,i.queue,!0,!1),yn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var p=Re,v=yn();if(He){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),ut===null)throw Error(r(349));(Ie&127)!==0||AO(p,s,u)}v.memoizedState=u;var x={value:u,getSnapshot:s};return v.queue=x,qO(_O.bind(null,p,x,i),[i]),p.flags|=2048,so(9,{destroy:void 0},OO.bind(null,p,x,u,s),null),u},useId:function(){var i=yn(),s=ut.identifierPrefix;if(He){var u=Br,p=$r;u=(p&~(1<<32-Dn(p)-1)).toString(32)+u,s="_"+s+"R_"+u,u=If++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=F5++,s="_"+s+"r_"+u.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:Oy,useFormState:kO,useActionState:kO,useOptimistic:function(i){var s=yn();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=_y.bind(null,Re,!0,u),u.dispatch=s,[i,s]},useMemoCache:yy,useCacheRefresh:function(){return yn().memoizedState=Z5.bind(null,Re)},useEffectEvent:function(i){var s=yn(),u={impl:i};return s.memoizedState=u,function(){if((Xe&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Ty={readContext:rn,use:Vf,useCallback:GO,useContext:rn,useEffect:jy,useImperativeHandle:FO,useInsertionEffect:UO,useLayoutEffect:VO,useMemo:KO,useReducer:Hf,useRef:BO,useState:function(){return Hf(fi)},useDebugValue:Sy,useDeferredValue:function(i,s){var u=Pt();return YO(u,at.memoizedState,i,s)},useTransition:function(){var i=Hf(fi)[0],s=Pt().memoizedState;return[typeof i=="boolean"?i:tu(i),s]},useSyncExternalStore:wO,useId:QO,useHostTransitionStatus:Oy,useFormState:LO,useActionState:LO,useOptimistic:function(i,s){var u=Pt();return NO(u,at,i,s)},useMemoCache:yy,useCacheRefresh:JO};Ty.useEffectEvent=IO;var i2={readContext:rn,use:Vf,useCallback:GO,useContext:rn,useEffect:jy,useImperativeHandle:FO,useInsertionEffect:UO,useLayoutEffect:VO,useMemo:KO,useReducer:gy,useRef:BO,useState:function(){return gy(fi)},useDebugValue:Sy,useDeferredValue:function(i,s){var u=Pt();return at===null?wy(u,i,s):YO(u,at.memoizedState,i,s)},useTransition:function(){var i=gy(fi)[0],s=Pt().memoizedState;return[typeof i=="boolean"?i:tu(i),s]},useSyncExternalStore:wO,useId:QO,useHostTransitionStatus:Oy,useFormState:$O,useActionState:$O,useOptimistic:function(i,s){var u=Pt();return at!==null?NO(u,at,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:yy,useCacheRefresh:JO};i2.useEffectEvent=IO;function Ey(i,s,u,p){s=i.memoizedState,u=u(p,s),u=u==null?s:y({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Ny={enqueueSetState:function(i,s,u){i=i._reactInternals;var p=In(),v=Xi(p);v.payload=s,u!=null&&(v.callback=u),s=Wi(i,v,p),s!==null&&(En(s,i,p),Zl(s,i,p))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var p=In(),v=Xi(p);v.tag=1,v.payload=s,u!=null&&(v.callback=u),s=Wi(i,v,p),s!==null&&(En(s,i,p),Zl(s,i,p))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=In(),p=Xi(u);p.tag=2,s!=null&&(p.callback=s),s=Wi(i,p,u),s!==null&&(En(s,i,u),Zl(s,i,u))}};function a2(i,s,u,p,v,x,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,x,N):s.prototype&&s.prototype.isPureReactComponent?!Vl(u,p)||!Vl(v,x):!0}function s2(i,s,u,p){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,p),s.state!==i&&Ny.enqueueReplaceState(s,s.state,null)}function Wa(i,s){var u=s;if("ref"in s){u={};for(var p in s)p!=="ref"&&(u[p]=s[p])}if(i=i.defaultProps){u===s&&(u=y({},u));for(var v in i)u[v]===void 0&&(u[v]=i[v])}return u}function o2(i){Of(i)}function l2(i){console.error(i)}function u2(i){Of(i)}function Yf(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(p){setTimeout(function(){throw p})}}function c2(i,s,u){try{var p=i.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Cy(i,s,u){return u=Xi(u),u.tag=3,u.payload={element:null},u.callback=function(){Yf(i,s)},u}function f2(i){return i=Xi(i),i.tag=3,i}function d2(i,s,u,p){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var x=p.value;i.payload=function(){return v(x)},i.callback=function(){c2(s,u,p)}}var N=u.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){c2(s,u,p),typeof v!="function"&&(na===null?na=new Set([this]):na.add(this));var R=p.stack;this.componentDidCatch(p.value,{componentStack:R!==null?R:""})})}function J5(i,s,u,p,v){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(s=u.alternate,s!==null&&Qs(s,u,v,!0),u=zn.current,u!==null){switch(u.tag){case 31:case 13:return ir===null?sd():u.alternate===null&&Et===0&&(Et=3),u.flags&=-257,u.flags|=65536,u.lanes=v,p===kf?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([p]):s.add(p),tv(i,p,v)),!1;case 22:return u.flags|=65536,p===kf?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([p]):u.add(p)),tv(i,p,v)),!1}throw Error(r(435,u.tag))}return tv(i,p,v),sd(),!1}if(He)return s=zn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,p!==Xm&&(i=Error(r(422),{cause:p}),Gl(er(i,u)))):(p!==Xm&&(s=Error(r(423),{cause:p}),Gl(er(s,u))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,p=er(p,u),v=Cy(i.stateNode,p,v),sy(i,v),Et!==4&&(Et=2)),!1;var x=Error(r(520),{cause:p});if(x=er(x,u),fu===null?fu=[x]:fu.push(x),Et!==4&&(Et=2),s===null)return!0;p=er(p,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=v&-v,u.lanes|=i,i=Cy(u.stateNode,p,i),sy(u,i),!1;case 1:if(s=u.type,x=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(na===null||!na.has(x))))return u.flags|=65536,v&=-v,u.lanes|=v,v=f2(v),d2(v,i,u,p),sy(u,v),!1}u=u.return}while(u!==null);return!1}var My=Error(r(461)),Lt=!1;function an(i,s,u,p){s.child=i===null?yO(s,null,u,p):Ya(s,i.child,u,p)}function h2(i,s,u,p,v){u=u.render;var x=s.ref;if("ref"in p){var N={};for(var R in p)R!=="ref"&&(N[R]=p[R])}else N=p;return Ha(s),p=dy(i,s,u,N,x,v),R=hy(),i!==null&&!Lt?(py(i,s,v),di(i,s,v)):(He&&R&&Km(s),s.flags|=1,an(i,s,p,v),s.child)}function p2(i,s,u,p,v){if(i===null){var x=u.type;return typeof x=="function"&&!Hm(x)&&x.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=x,m2(i,s,x,p,v)):(i=Nf(u.type,null,p,s,s.mode,v),i.ref=s.ref,i.return=s,s.child=i)}if(x=i.child,!By(i,v)){var N=x.memoizedProps;if(u=u.compare,u=u!==null?u:Vl,u(N,p)&&i.ref===s.ref)return di(i,s,v)}return s.flags|=1,i=si(x,p),i.ref=s.ref,i.return=s,s.child=i}function m2(i,s,u,p,v){if(i!==null){var x=i.memoizedProps;if(Vl(x,p)&&i.ref===s.ref)if(Lt=!1,s.pendingProps=p=x,By(i,v))(i.flags&131072)!==0&&(Lt=!0);else return s.lanes=i.lanes,di(i,s,v)}return Py(i,s,u,p,v)}function y2(i,s,u,p){var v=p.children,x=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((s.flags&128)!==0){if(x=x!==null?x.baseLanes|u:u,i!==null){for(p=s.child=i.child,v=0;p!==null;)v=v|p.lanes|p.childLanes,p=p.sibling;p=v&~x}else p=0,s.child=null;return v2(i,s,x,u,p)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Rf(s,x!==null?x.cachePool:null),x!==null?xO(s,x):ly(),bO(s);else return p=s.lanes=536870912,v2(i,s,x!==null?x.baseLanes|u:u,u,p)}else x!==null?(Rf(s,x.cachePool),xO(s,x),Qi(),s.memoizedState=null):(i!==null&&Rf(s,null),ly(),Qi());return an(i,s,v,u),s.child}function iu(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function v2(i,s,u,p,v){var x=ny();return x=x===null?null:{parent:Dt._currentValue,pool:x},s.memoizedState={baseLanes:u,cachePool:x},i!==null&&Rf(s,null),ly(),bO(s),i!==null&&Qs(i,s,p,!0),s.childLanes=v,null}function Xf(i,s){return s=Zf({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function g2(i,s,u){return Ya(s,i.child,null,u),i=Xf(s,s.pendingProps),i.flags|=2,$n(s),s.memoizedState=null,i}function e6(i,s,u){var p=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(He){if(p.mode==="hidden")return i=Xf(s,p),s.lanes=536870912,iu(null,i);if(cy(s),(i=vt)?(i=C_(i,rr),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Hi!==null?{id:$r,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},u=tO(i),u.return=s,s.child=u,nn=s,vt=null)):i=null,i===null)throw Gi(s);return s.lanes=536870912,null}return Xf(s,p)}var x=i.memoizedState;if(x!==null){var N=x.dehydrated;if(cy(s),v)if(s.flags&256)s.flags&=-257,s=g2(i,s,u);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(Lt||Qs(i,s,u,!1),v=(u&i.childLanes)!==0,Lt||v){if(p=ut,p!==null&&(N=lA(p,u),N!==0&&N!==x.retryLane))throw x.retryLane=N,qa(i,N),En(p,i,N),My;sd(),s=g2(i,s,u)}else i=x.treeContext,vt=ar(N.nextSibling),nn=s,He=!0,Fi=null,rr=!1,i!==null&&iO(s,i),s=Xf(s,p),s.flags|=4096;return s}return i=si(i.child,{mode:p.mode,children:p.children}),i.ref=s.ref,s.child=i,i.return=s,i}function Wf(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function Py(i,s,u,p,v){return Ha(s),u=dy(i,s,u,p,void 0,v),p=hy(),i!==null&&!Lt?(py(i,s,v),di(i,s,v)):(He&&p&&Km(s),s.flags|=1,an(i,s,u,v),s.child)}function x2(i,s,u,p,v,x){return Ha(s),s.updateQueue=null,u=SO(s,p,u,v),jO(i),p=hy(),i!==null&&!Lt?(py(i,s,x),di(i,s,x)):(He&&p&&Km(s),s.flags|=1,an(i,s,u,x),s.child)}function b2(i,s,u,p,v){if(Ha(s),s.stateNode===null){var x=Ys,N=u.contextType;typeof N=="object"&&N!==null&&(x=rn(N)),x=new u(p,x),s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Ny,s.stateNode=x,x._reactInternals=s,x=s.stateNode,x.props=p,x.state=s.memoizedState,x.refs={},iy(s),N=u.contextType,x.context=typeof N=="object"&&N!==null?rn(N):Ys,x.state=s.memoizedState,N=u.getDerivedStateFromProps,typeof N=="function"&&(Ey(s,u,N,p),x.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(N=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),N!==x.state&&Ny.enqueueReplaceState(x,x.state,null),Jl(s,p,x,v),Ql(),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308),p=!0}else if(i===null){x=s.stateNode;var R=s.memoizedProps,U=Wa(u,R);x.props=U;var Z=x.context,te=u.contextType;N=Ys,typeof te=="object"&&te!==null&&(N=rn(te));var se=u.getDerivedStateFromProps;te=typeof se=="function"||typeof x.getSnapshotBeforeUpdate=="function",R=s.pendingProps!==R,te||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R||Z!==N)&&s2(s,x,p,N),Yi=!1;var J=s.memoizedState;x.state=J,Jl(s,p,x,v),Ql(),Z=s.memoizedState,R||J!==Z||Yi?(typeof se=="function"&&(Ey(s,u,se,p),Z=s.memoizedState),(U=Yi||a2(s,u,U,p,J,Z,N))?(te||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=Z),x.props=p,x.state=Z,x.context=N,p=U):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{x=s.stateNode,ay(i,s),N=s.memoizedProps,te=Wa(u,N),x.props=te,se=s.pendingProps,J=x.context,Z=u.contextType,U=Ys,typeof Z=="object"&&Z!==null&&(U=rn(Z)),R=u.getDerivedStateFromProps,(Z=typeof R=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(N!==se||J!==U)&&s2(s,x,p,U),Yi=!1,J=s.memoizedState,x.state=J,Jl(s,p,x,v),Ql();var ee=s.memoizedState;N!==se||J!==ee||Yi||i!==null&&i.dependencies!==null&&Mf(i.dependencies)?(typeof R=="function"&&(Ey(s,u,R,p),ee=s.memoizedState),(te=Yi||a2(s,u,te,p,J,ee,U)||i!==null&&i.dependencies!==null&&Mf(i.dependencies))?(Z||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(p,ee,U),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(p,ee,U)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=ee),x.props=p,x.state=ee,x.context=U,p=te):(typeof x.componentDidUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(s.flags|=1024),p=!1)}return x=p,Wf(i,s),p=(s.flags&128)!==0,x||p?(x=s.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:x.render(),s.flags|=1,i!==null&&p?(s.child=Ya(s,i.child,null,v),s.child=Ya(s,null,u,v)):an(i,s,u,v),s.memoizedState=x.state,i=s.child):i=di(i,s,v),i}function j2(i,s,u,p){return Ua(),s.flags|=256,an(i,s,u,p),s.child}var Ry={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dy(i){return{baseLanes:i,cachePool:cO()}}function ky(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=qn),i}function S2(i,s,u){var p=s.pendingProps,v=!1,x=(s.flags&128)!==0,N;if((N=x)||(N=i!==null&&i.memoizedState===null?!1:(Mt.current&2)!==0),N&&(v=!0,s.flags&=-129),N=(s.flags&32)!==0,s.flags&=-33,i===null){if(He){if(v?Zi(s):Qi(),(i=vt)?(i=C_(i,rr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Hi!==null?{id:$r,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},u=tO(i),u.return=s,s.child=u,nn=s,vt=null)):i=null,i===null)throw Gi(s);return vv(i)?s.lanes=32:s.lanes=536870912,null}var R=p.children;return p=p.fallback,v?(Qi(),v=s.mode,R=Zf({mode:"hidden",children:R},v),p=Ia(p,v,u,null),R.return=s,p.return=s,R.sibling=p,s.child=R,p=s.child,p.memoizedState=Dy(u),p.childLanes=ky(i,N,u),s.memoizedState=Ry,iu(null,p)):(Zi(s),Ly(s,R))}var U=i.memoizedState;if(U!==null&&(R=U.dehydrated,R!==null)){if(x)s.flags&256?(Zi(s),s.flags&=-257,s=zy(i,s,u)):s.memoizedState!==null?(Qi(),s.child=i.child,s.flags|=128,s=null):(Qi(),R=p.fallback,v=s.mode,p=Zf({mode:"visible",children:p.children},v),R=Ia(R,v,u,null),R.flags|=2,p.return=s,R.return=s,p.sibling=R,s.child=p,Ya(s,i.child,null,u),p=s.child,p.memoizedState=Dy(u),p.childLanes=ky(i,N,u),s.memoizedState=Ry,s=iu(null,p));else if(Zi(s),vv(R)){if(N=R.nextSibling&&R.nextSibling.dataset,N)var Z=N.dgst;N=Z,p=Error(r(419)),p.stack="",p.digest=N,Gl({value:p,source:null,stack:null}),s=zy(i,s,u)}else if(Lt||Qs(i,s,u,!1),N=(u&i.childLanes)!==0,Lt||N){if(N=ut,N!==null&&(p=lA(N,u),p!==0&&p!==U.retryLane))throw U.retryLane=p,qa(i,p),En(N,i,p),My;yv(R)||sd(),s=zy(i,s,u)}else yv(R)?(s.flags|=192,s.child=i.child,s=null):(i=U.treeContext,vt=ar(R.nextSibling),nn=s,He=!0,Fi=null,rr=!1,i!==null&&iO(s,i),s=Ly(s,p.children),s.flags|=4096);return s}return v?(Qi(),R=p.fallback,v=s.mode,U=i.child,Z=U.sibling,p=si(U,{mode:"hidden",children:p.children}),p.subtreeFlags=U.subtreeFlags&65011712,Z!==null?R=si(Z,R):(R=Ia(R,v,u,null),R.flags|=2),R.return=s,p.return=s,p.sibling=R,s.child=p,iu(null,p),p=s.child,R=i.child.memoizedState,R===null?R=Dy(u):(v=R.cachePool,v!==null?(U=Dt._currentValue,v=v.parent!==U?{parent:U,pool:U}:v):v=cO(),R={baseLanes:R.baseLanes|u,cachePool:v}),p.memoizedState=R,p.childLanes=ky(i,N,u),s.memoizedState=Ry,iu(i.child,p)):(Zi(s),u=i.child,i=u.sibling,u=si(u,{mode:"visible",children:p.children}),u.return=s,u.sibling=null,i!==null&&(N=s.deletions,N===null?(s.deletions=[i],s.flags|=16):N.push(i)),s.child=u,s.memoizedState=null,u)}function Ly(i,s){return s=Zf({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Zf(i,s){return i=Ln(22,i,null,s),i.lanes=0,i}function zy(i,s,u){return Ya(s,i.child,null,u),i=Ly(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function w2(i,s,u){i.lanes|=s;var p=i.alternate;p!==null&&(p.lanes|=s),Qm(i.return,s,u)}function $y(i,s,u,p,v,x){var N=i.memoizedState;N===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:v,treeForkCount:x}:(N.isBackwards=s,N.rendering=null,N.renderingStartTime=0,N.last=p,N.tail=u,N.tailMode=v,N.treeForkCount=x)}function A2(i,s,u){var p=s.pendingProps,v=p.revealOrder,x=p.tail;p=p.children;var N=Mt.current,R=(N&2)!==0;if(R?(N=N&1|2,s.flags|=128):N&=1,re(Mt,N),an(i,s,p,u),p=He?Fl:0,!R&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&w2(i,u,s);else if(i.tag===19)w2(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(v){case"forwards":for(u=s.child,v=null;u!==null;)i=u.alternate,i!==null&&Bf(i)===null&&(v=u),u=u.sibling;u=v,u===null?(v=s.child,s.child=null):(v=u.sibling,u.sibling=null),$y(s,!1,v,u,x,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=s.child,s.child=null;v!==null;){if(i=v.alternate,i!==null&&Bf(i)===null){s.child=v;break}i=v.sibling,v.sibling=u,u=v,v=i}$y(s,!0,u,null,x,p);break;case"together":$y(s,!1,null,null,void 0,p);break;default:s.memoizedState=null}return s.child}function di(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),ta|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(Qs(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=si(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=si(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function By(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Mf(i)))}function t6(i,s,u){switch(s.tag){case 3:Ze(s,s.stateNode.containerInfo),Ki(s,Dt,i.memoizedState.cache),Ua();break;case 27:case 5:Ee(s);break;case 4:Ze(s,s.stateNode.containerInfo);break;case 10:Ki(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,cy(s),null;break;case 13:var p=s.memoizedState;if(p!==null)return p.dehydrated!==null?(Zi(s),s.flags|=128,null):(u&s.child.childLanes)!==0?S2(i,s,u):(Zi(s),i=di(i,s,u),i!==null?i.sibling:null);Zi(s);break;case 19:var v=(i.flags&128)!==0;if(p=(u&s.childLanes)!==0,p||(Qs(i,s,u,!1),p=(u&s.childLanes)!==0),v){if(p)return A2(i,s,u);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),re(Mt,Mt.current),p)break;return null;case 22:return s.lanes=0,y2(i,s,u,s.pendingProps);case 24:Ki(s,Dt,i.memoizedState.cache)}return di(i,s,u)}function O2(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)Lt=!0;else{if(!By(i,u)&&(s.flags&128)===0)return Lt=!1,t6(i,s,u);Lt=(i.flags&131072)!==0}else Lt=!1,He&&(s.flags&1048576)!==0&&rO(s,Fl,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(i=Ga(s.elementType),s.type=i,typeof i=="function")Hm(i)?(p=Wa(i,p),s.tag=1,s=b2(null,s,i,p,u)):(s.tag=0,s=Py(null,s,i,p,u));else{if(i!=null){var v=i.$$typeof;if(v===C){s.tag=11,s=h2(null,s,i,p,u);break e}else if(v===M){s.tag=14,s=p2(null,s,i,p,u);break e}}throw s=X(i)||i,Error(r(306,s,""))}}return s;case 0:return Py(i,s,s.type,s.pendingProps,u);case 1:return p=s.type,v=Wa(p,s.pendingProps),b2(i,s,p,v,u);case 3:e:{if(Ze(s,s.stateNode.containerInfo),i===null)throw Error(r(387));p=s.pendingProps;var x=s.memoizedState;v=x.element,ay(i,s),Jl(s,p,null,u);var N=s.memoizedState;if(p=N.cache,Ki(s,Dt,p),p!==x.cache&&Jm(s,[Dt],u,!0),Ql(),p=N.element,x.isDehydrated)if(x={element:p,isDehydrated:!1,cache:N.cache},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){s=j2(i,s,p,u);break e}else if(p!==v){v=er(Error(r(424)),s),Gl(v),s=j2(i,s,p,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(vt=ar(i.firstChild),nn=s,He=!0,Fi=null,rr=!0,u=yO(s,null,p,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ua(),p===v){s=di(i,s,u);break e}an(i,s,p,u)}s=s.child}return s;case 26:return Wf(i,s),i===null?(u=L_(s.type,null,s.pendingProps,null))?s.memoizedState=u:He||(u=s.type,i=s.pendingProps,p=hd(we.current).createElement(u),p[tn]=s,p[Sn]=i,sn(p,u,i),Wt(p),s.stateNode=p):s.memoizedState=L_(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Ee(s),i===null&&He&&(p=s.stateNode=R_(s.type,s.pendingProps,we.current),nn=s,rr=!0,v=vt,sa(s.type)?(gv=v,vt=ar(p.firstChild)):vt=v),an(i,s,s.pendingProps.children,u),Wf(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&He&&((v=p=vt)&&(p=M6(p,s.type,s.pendingProps,rr),p!==null?(s.stateNode=p,nn=s,vt=ar(p.firstChild),rr=!1,v=!0):v=!1),v||Gi(s)),Ee(s),v=s.type,x=s.pendingProps,N=i!==null?i.memoizedProps:null,p=x.children,hv(v,x)?p=null:N!==null&&hv(v,N)&&(s.flags|=32),s.memoizedState!==null&&(v=dy(i,s,G5,null,null,u),xu._currentValue=v),Wf(i,s),an(i,s,p,u),s.child;case 6:return i===null&&He&&((i=u=vt)&&(u=P6(u,s.pendingProps,rr),u!==null?(s.stateNode=u,nn=s,vt=null,i=!0):i=!1),i||Gi(s)),null;case 13:return S2(i,s,u);case 4:return Ze(s,s.stateNode.containerInfo),p=s.pendingProps,i===null?s.child=Ya(s,null,p,u):an(i,s,p,u),s.child;case 11:return h2(i,s,s.type,s.pendingProps,u);case 7:return an(i,s,s.pendingProps,u),s.child;case 8:return an(i,s,s.pendingProps.children,u),s.child;case 12:return an(i,s,s.pendingProps.children,u),s.child;case 10:return p=s.pendingProps,Ki(s,s.type,p.value),an(i,s,p.children,u),s.child;case 9:return v=s.type._context,p=s.pendingProps.children,Ha(s),v=rn(v),p=p(v),s.flags|=1,an(i,s,p,u),s.child;case 14:return p2(i,s,s.type,s.pendingProps,u);case 15:return m2(i,s,s.type,s.pendingProps,u);case 19:return A2(i,s,u);case 31:return e6(i,s,u);case 22:return y2(i,s,u,s.pendingProps);case 24:return Ha(s),p=rn(Dt),i===null?(v=ny(),v===null&&(v=ut,x=ey(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=u),v=x),s.memoizedState={parent:p,cache:v},iy(s),Ki(s,Dt,v)):((i.lanes&u)!==0&&(ay(i,s),Jl(s,null,null,u),Ql()),v=i.memoizedState,x=s.memoizedState,v.parent!==p?(v={parent:p,cache:p},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),Ki(s,Dt,p)):(p=x.cache,Ki(s,Dt,p),p!==v.cache&&Jm(s,[Dt],u,!0))),an(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function hi(i){i.flags|=4}function qy(i,s,u,p,v){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(v&335544128)===v)if(i.stateNode.complete)i.flags|=8192;else if(Q2())i.flags|=8192;else throw Ka=kf,ry}else i.flags&=-16777217}function _2(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!I_(s))if(Q2())i.flags|=8192;else throw Ka=kf,ry}function Qf(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?aA():536870912,i.lanes|=s,co|=s)}function au(i,s){if(!He)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function gt(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,p=0;if(s)for(var v=i.child;v!==null;)u|=v.lanes|v.childLanes,p|=v.subtreeFlags&65011712,p|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)u|=v.lanes|v.childLanes,p|=v.subtreeFlags,p|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=p,i.childLanes=u,s}function n6(i,s,u){var p=s.pendingProps;switch(Ym(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(s),null;case 1:return gt(s),null;case 3:return u=s.stateNode,p=null,i!==null&&(p=i.memoizedState.cache),s.memoizedState.cache!==p&&(s.flags|=2048),ui(Dt),ce(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Zs(s)?hi(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Wm())),gt(s),null;case 26:var v=s.type,x=s.memoizedState;return i===null?(hi(s),x!==null?(gt(s),_2(s,x)):(gt(s),qy(s,v,null,p,u))):x?x!==i.memoizedState?(hi(s),gt(s),_2(s,x)):(gt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==p&&hi(s),gt(s),qy(s,v,i,p,u)),null;case 27:if(Ce(s),u=we.current,v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==p&&hi(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return gt(s),null}i=fe.current,Zs(s)?aO(s):(i=R_(v,p,u),s.stateNode=i,hi(s))}return gt(s),null;case 5:if(Ce(s),v=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==p&&hi(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return gt(s),null}if(x=fe.current,Zs(s))aO(s);else{var N=hd(we.current);switch(x){case 1:x=N.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=N.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=N.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=N.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=N.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof p.is=="string"?N.createElement("select",{is:p.is}):N.createElement("select"),p.multiple?x.multiple=!0:p.size&&(x.size=p.size);break;default:x=typeof p.is=="string"?N.createElement(v,{is:p.is}):N.createElement(v)}}x[tn]=s,x[Sn]=p;e:for(N=s.child;N!==null;){if(N.tag===5||N.tag===6)x.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===s)break e;for(;N.sibling===null;){if(N.return===null||N.return===s)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}s.stateNode=x;e:switch(sn(x,v,p),v){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&hi(s)}}return gt(s),qy(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==p&&hi(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(r(166));if(i=we.current,Zs(s)){if(i=s.stateNode,u=s.memoizedProps,p=null,v=nn,v!==null)switch(v.tag){case 27:case 5:p=v.memoizedProps}i[tn]=s,i=!!(i.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||S_(i.nodeValue,u)),i||Gi(s,!0)}else i=hd(i).createTextNode(p),i[tn]=s,s.stateNode=i}return gt(s),null;case 31:if(u=s.memoizedState,i===null||i.memoizedState!==null){if(p=Zs(s),u!==null){if(i===null){if(!p)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[tn]=s}else Ua(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gt(s),i=!1}else u=Wm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return s.flags&256?($n(s),s):($n(s),null);if((s.flags&128)!==0)throw Error(r(558))}return gt(s),null;case 13:if(p=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Zs(s),p!==null&&p.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[tn]=s}else Ua(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gt(s),v=!1}else v=Wm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?($n(s),s):($n(s),null)}return $n(s),(s.flags&128)!==0?(s.lanes=u,s):(u=p!==null,i=i!==null&&i.memoizedState!==null,u&&(p=s.child,v=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(v=p.alternate.memoizedState.cachePool.pool),x=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(x=p.memoizedState.cachePool.pool),x!==v&&(p.flags|=2048)),u!==i&&u&&(s.child.flags|=8192),Qf(s,s.updateQueue),gt(s),null);case 4:return ce(),i===null&&lv(s.stateNode.containerInfo),gt(s),null;case 10:return ui(s.type),gt(s),null;case 19:if(F(Mt),p=s.memoizedState,p===null)return gt(s),null;if(v=(s.flags&128)!==0,x=p.rendering,x===null)if(v)au(p,!1);else{if(Et!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(x=Bf(i),x!==null){for(s.flags|=128,au(p,!1),i=x.updateQueue,s.updateQueue=i,Qf(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)eO(u,i),u=u.sibling;return re(Mt,Mt.current&1|2),He&&oi(s,p.treeForkCount),s.child}i=i.sibling}p.tail!==null&&fn()>rd&&(s.flags|=128,v=!0,au(p,!1),s.lanes=4194304)}else{if(!v)if(i=Bf(x),i!==null){if(s.flags|=128,v=!0,i=i.updateQueue,s.updateQueue=i,Qf(s,i),au(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!He)return gt(s),null}else 2*fn()-p.renderingStartTime>rd&&u!==536870912&&(s.flags|=128,v=!0,au(p,!1),s.lanes=4194304);p.isBackwards?(x.sibling=s.child,s.child=x):(i=p.last,i!==null?i.sibling=x:s.child=x,p.last=x)}return p.tail!==null?(i=p.tail,p.rendering=i,p.tail=i.sibling,p.renderingStartTime=fn(),i.sibling=null,u=Mt.current,re(Mt,v?u&1|2:u&1),He&&oi(s,p.treeForkCount),i):(gt(s),null);case 22:case 23:return $n(s),uy(),p=s.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(u&536870912)!==0&&(s.flags&128)===0&&(gt(s),s.subtreeFlags&6&&(s.flags|=8192)):gt(s),u=s.updateQueue,u!==null&&Qf(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==u&&(s.flags|=2048),i!==null&&F(Fa),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),ui(Dt),gt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function r6(i,s){switch(Ym(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return ui(Dt),ce(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Ce(s),null;case 31:if(s.memoizedState!==null){if($n(s),s.alternate===null)throw Error(r(340));Ua()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if($n(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Ua()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return F(Mt),null;case 4:return ce(),null;case 10:return ui(s.type),null;case 22:case 23:return $n(s),uy(),i!==null&&F(Fa),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return ui(Dt),null;case 25:return null;default:return null}}function T2(i,s){switch(Ym(s),s.tag){case 3:ui(Dt),ce();break;case 26:case 27:case 5:Ce(s);break;case 4:ce();break;case 31:s.memoizedState!==null&&$n(s);break;case 13:$n(s);break;case 19:F(Mt);break;case 10:ui(s.type);break;case 22:case 23:$n(s),uy(),i!==null&&F(Fa);break;case 24:ui(Dt)}}function su(i,s){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var v=p.next;u=v;do{if((u.tag&i)===i){p=void 0;var x=u.create,N=u.inst;p=x(),N.destroy=p}u=u.next}while(u!==v)}}catch(R){nt(s,s.return,R)}}function Ji(i,s,u){try{var p=s.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var x=v.next;p=x;do{if((p.tag&i)===i){var N=p.inst,R=N.destroy;if(R!==void 0){N.destroy=void 0,v=s;var U=u,Z=R;try{Z()}catch(te){nt(v,U,te)}}}p=p.next}while(p!==x)}}catch(te){nt(s,s.return,te)}}function E2(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{gO(s,u)}catch(p){nt(i,i.return,p)}}}function N2(i,s,u){u.props=Wa(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(p){nt(i,s,p)}}function ou(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var p=i.stateNode;break;case 30:p=i.stateNode;break;default:p=i.stateNode}typeof u=="function"?i.refCleanup=u(p):u.current=p}}catch(v){nt(i,s,v)}}function qr(i,s){var u=i.ref,p=i.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(v){nt(i,s,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){nt(i,s,v)}else u.current=null}function C2(i){var s=i.type,u=i.memoizedProps,p=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(v){nt(i,i.return,v)}}function Iy(i,s,u){try{var p=i.stateNode;O6(p,i.type,u,s),p[Sn]=s}catch(v){nt(i,i.return,v)}}function M2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&sa(i.type)||i.tag===4}function Uy(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||M2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&sa(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Vy(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=ii));else if(p!==4&&(p===27&&sa(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(Vy(i,s,u),i=i.sibling;i!==null;)Vy(i,s,u),i=i.sibling}function Jf(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(p!==4&&(p===27&&sa(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Jf(i,s,u),i=i.sibling;i!==null;)Jf(i,s,u),i=i.sibling}function P2(i){var s=i.stateNode,u=i.memoizedProps;try{for(var p=i.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);sn(s,p,u),s[tn]=i,s[Sn]=u}catch(x){nt(i,i.return,x)}}var pi=!1,zt=!1,Hy=!1,R2=typeof WeakSet=="function"?WeakSet:Set,Zt=null;function i6(i,s){if(i=i.containerInfo,fv=bd,i=FA(i),zm(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var v=p.anchorOffset,x=p.focusNode;p=p.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break e}var N=0,R=-1,U=-1,Z=0,te=0,se=i,J=null;t:for(;;){for(var ee;se!==u||v!==0&&se.nodeType!==3||(R=N+v),se!==x||p!==0&&se.nodeType!==3||(U=N+p),se.nodeType===3&&(N+=se.nodeValue.length),(ee=se.firstChild)!==null;)J=se,se=ee;for(;;){if(se===i)break t;if(J===u&&++Z===v&&(R=N),J===x&&++te===p&&(U=N),(ee=se.nextSibling)!==null)break;se=J,J=se.parentNode}se=ee}u=R===-1||U===-1?null:{start:R,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(dv={focusedElem:i,selectionRange:u},bd=!1,Zt=s;Zt!==null;)if(s=Zt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Zt=i;else for(;Zt!==null;){switch(s=Zt,x=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)v=i[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&x!==null){i=void 0,u=s,v=x.memoizedProps,x=x.memoizedState,p=u.stateNode;try{var ve=Wa(u.type,v);i=p.getSnapshotBeforeUpdate(ve,x),p.__reactInternalSnapshotBeforeUpdate=i}catch(Ae){nt(u,u.return,Ae)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)mv(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":mv(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Zt=i;break}Zt=s.return}}function D2(i,s,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:yi(i,u),p&4&&su(5,u);break;case 1:if(yi(i,u),p&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(N){nt(u,u.return,N)}else{var v=Wa(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(v,s,i.__reactInternalSnapshotBeforeUpdate)}catch(N){nt(u,u.return,N)}}p&64&&E2(u),p&512&&ou(u,u.return);break;case 3:if(yi(i,u),p&64&&(i=u.updateQueue,i!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{gO(i,s)}catch(N){nt(u,u.return,N)}}break;case 27:s===null&&p&4&&P2(u);case 26:case 5:yi(i,u),s===null&&p&4&&C2(u),p&512&&ou(u,u.return);break;case 12:yi(i,u);break;case 31:yi(i,u),p&4&&z2(i,u);break;case 13:yi(i,u),p&4&&$2(i,u),p&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=h6.bind(null,u),R6(i,u))));break;case 22:if(p=u.memoizedState!==null||pi,!p){s=s!==null&&s.memoizedState!==null||zt,v=pi;var x=zt;pi=p,(zt=s)&&!x?vi(i,u,(u.subtreeFlags&8772)!==0):yi(i,u),pi=v,zt=x}break;case 30:break;default:yi(i,u)}}function k2(i){var s=i.alternate;s!==null&&(i.alternate=null,k2(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&bm(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var St=null,An=!1;function mi(i,s,u){for(u=u.child;u!==null;)L2(i,s,u),u=u.sibling}function L2(i,s,u){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(Ml,u)}catch{}switch(u.tag){case 26:zt||qr(u,s),mi(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:zt||qr(u,s);var p=St,v=An;sa(u.type)&&(St=u.stateNode,An=!1),mi(i,s,u),yu(u.stateNode),St=p,An=v;break;case 5:zt||qr(u,s);case 6:if(p=St,v=An,St=null,mi(i,s,u),St=p,An=v,St!==null)if(An)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(u.stateNode)}catch(x){nt(u,s,x)}else try{St.removeChild(u.stateNode)}catch(x){nt(u,s,x)}break;case 18:St!==null&&(An?(i=St,E_(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),xo(i)):E_(St,u.stateNode));break;case 4:p=St,v=An,St=u.stateNode.containerInfo,An=!0,mi(i,s,u),St=p,An=v;break;case 0:case 11:case 14:case 15:Ji(2,u,s),zt||Ji(4,u,s),mi(i,s,u);break;case 1:zt||(qr(u,s),p=u.stateNode,typeof p.componentWillUnmount=="function"&&N2(u,s,p)),mi(i,s,u);break;case 21:mi(i,s,u);break;case 22:zt=(p=zt)||u.memoizedState!==null,mi(i,s,u),zt=p;break;default:mi(i,s,u)}}function z2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{xo(i)}catch(u){nt(s,s.return,u)}}}function $2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{xo(i)}catch(u){nt(s,s.return,u)}}function a6(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new R2),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new R2),s;default:throw Error(r(435,i.tag))}}function ed(i,s){var u=a6(i);s.forEach(function(p){if(!u.has(p)){u.add(p);var v=p6.bind(null,i,p);p.then(v,v)}})}function On(i,s){var u=s.deletions;if(u!==null)for(var p=0;p<u.length;p++){var v=u[p],x=i,N=s,R=N;e:for(;R!==null;){switch(R.tag){case 27:if(sa(R.type)){St=R.stateNode,An=!1;break e}break;case 5:St=R.stateNode,An=!1;break e;case 3:case 4:St=R.stateNode.containerInfo,An=!0;break e}R=R.return}if(St===null)throw Error(r(160));L2(x,N,v),St=null,An=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)B2(s,i),s=s.sibling}var jr=null;function B2(i,s){var u=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:On(s,i),_n(i),p&4&&(Ji(3,i,i.return),su(3,i),Ji(5,i,i.return));break;case 1:On(s,i),_n(i),p&512&&(zt||u===null||qr(u,u.return)),p&64&&pi&&(i=i.updateQueue,i!==null&&(p=i.callbacks,p!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var v=jr;if(On(s,i),_n(i),p&512&&(zt||u===null||qr(u,u.return)),p&4){var x=u!==null?u.memoizedState:null;if(p=i.memoizedState,u===null)if(p===null)if(i.stateNode===null){e:{p=i.type,u=i.memoizedProps,v=v.ownerDocument||v;t:switch(p){case"title":x=v.getElementsByTagName("title")[0],(!x||x[Dl]||x[tn]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(p),v.head.insertBefore(x,v.querySelector("head > title"))),sn(x,p,u),x[tn]=i,Wt(x),p=x;break e;case"link":var N=B_("link","href",v).get(p+(u.href||""));if(N){for(var R=0;R<N.length;R++)if(x=N[R],x.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&x.getAttribute("rel")===(u.rel==null?null:u.rel)&&x.getAttribute("title")===(u.title==null?null:u.title)&&x.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){N.splice(R,1);break t}}x=v.createElement(p),sn(x,p,u),v.head.appendChild(x);break;case"meta":if(N=B_("meta","content",v).get(p+(u.content||""))){for(R=0;R<N.length;R++)if(x=N[R],x.getAttribute("content")===(u.content==null?null:""+u.content)&&x.getAttribute("name")===(u.name==null?null:u.name)&&x.getAttribute("property")===(u.property==null?null:u.property)&&x.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&x.getAttribute("charset")===(u.charSet==null?null:u.charSet)){N.splice(R,1);break t}}x=v.createElement(p),sn(x,p,u),v.head.appendChild(x);break;default:throw Error(r(468,p))}x[tn]=i,Wt(x),p=x}i.stateNode=p}else q_(v,i.type,i.stateNode);else i.stateNode=$_(v,p,i.memoizedProps);else x!==p?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,p===null?q_(v,i.type,i.stateNode):$_(v,p,i.memoizedProps)):p===null&&i.stateNode!==null&&Iy(i,i.memoizedProps,u.memoizedProps)}break;case 27:On(s,i),_n(i),p&512&&(zt||u===null||qr(u,u.return)),u!==null&&p&4&&Iy(i,i.memoizedProps,u.memoizedProps);break;case 5:if(On(s,i),_n(i),p&512&&(zt||u===null||qr(u,u.return)),i.flags&32){v=i.stateNode;try{Is(v,"")}catch(ve){nt(i,i.return,ve)}}p&4&&i.stateNode!=null&&(v=i.memoizedProps,Iy(i,v,u!==null?u.memoizedProps:v)),p&1024&&(Hy=!0);break;case 6:if(On(s,i),_n(i),p&4){if(i.stateNode===null)throw Error(r(162));p=i.memoizedProps,u=i.stateNode;try{u.nodeValue=p}catch(ve){nt(i,i.return,ve)}}break;case 3:if(yd=null,v=jr,jr=pd(s.containerInfo),On(s,i),jr=v,_n(i),p&4&&u!==null&&u.memoizedState.isDehydrated)try{xo(s.containerInfo)}catch(ve){nt(i,i.return,ve)}Hy&&(Hy=!1,q2(i));break;case 4:p=jr,jr=pd(i.stateNode.containerInfo),On(s,i),_n(i),jr=p;break;case 12:On(s,i),_n(i);break;case 31:On(s,i),_n(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,ed(i,p)));break;case 13:On(s,i),_n(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(nd=fn()),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,ed(i,p)));break;case 22:v=i.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,Z=pi,te=zt;if(pi=Z||v,zt=te||U,On(s,i),zt=te,pi=Z,_n(i),p&8192)e:for(s=i.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(u===null||U||pi||zt||Za(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){U=u=s;try{if(x=U.stateNode,v)N=x.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{R=U.stateNode;var se=U.memoizedProps.style,J=se!=null&&se.hasOwnProperty("display")?se.display:null;R.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(ve){nt(U,U.return,ve)}}}else if(s.tag===6){if(u===null){U=s;try{U.stateNode.nodeValue=v?"":U.memoizedProps}catch(ve){nt(U,U.return,ve)}}}else if(s.tag===18){if(u===null){U=s;try{var ee=U.stateNode;v?N_(ee,!0):N_(U.stateNode,!1)}catch(ve){nt(U,U.return,ve)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}p&4&&(p=i.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,ed(i,u))));break;case 19:On(s,i),_n(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,ed(i,p)));break;case 30:break;case 21:break;default:On(s,i),_n(i)}}function _n(i){var s=i.flags;if(s&2){try{for(var u,p=i.return;p!==null;){if(M2(p)){u=p;break}p=p.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,x=Uy(i);Jf(i,x,v);break;case 5:var N=u.stateNode;u.flags&32&&(Is(N,""),u.flags&=-33);var R=Uy(i);Jf(i,R,N);break;case 3:case 4:var U=u.stateNode.containerInfo,Z=Uy(i);Vy(i,Z,U);break;default:throw Error(r(161))}}catch(te){nt(i,i.return,te)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function q2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;q2(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function yi(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)D2(i,s.alternate,s),s=s.sibling}function Za(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Ji(4,s,s.return),Za(s);break;case 1:qr(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&N2(s,s.return,u),Za(s);break;case 27:yu(s.stateNode);case 26:case 5:qr(s,s.return),Za(s);break;case 22:s.memoizedState===null&&Za(s);break;case 30:Za(s);break;default:Za(s)}i=i.sibling}}function vi(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var p=s.alternate,v=i,x=s,N=x.flags;switch(x.tag){case 0:case 11:case 15:vi(v,x,u),su(4,x);break;case 1:if(vi(v,x,u),p=x,v=p.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(Z){nt(p,p.return,Z)}if(p=x,v=p.updateQueue,v!==null){var R=p.stateNode;try{var U=v.shared.hiddenCallbacks;if(U!==null)for(v.shared.hiddenCallbacks=null,v=0;v<U.length;v++)vO(U[v],R)}catch(Z){nt(p,p.return,Z)}}u&&N&64&&E2(x),ou(x,x.return);break;case 27:P2(x);case 26:case 5:vi(v,x,u),u&&p===null&&N&4&&C2(x),ou(x,x.return);break;case 12:vi(v,x,u);break;case 31:vi(v,x,u),u&&N&4&&z2(v,x);break;case 13:vi(v,x,u),u&&N&4&&$2(v,x);break;case 22:x.memoizedState===null&&vi(v,x,u),ou(x,x.return);break;case 30:break;default:vi(v,x,u)}s=s.sibling}}function Fy(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Kl(u))}function Gy(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Kl(i))}function Sr(i,s,u,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)I2(i,s,u,p),s=s.sibling}function I2(i,s,u,p){var v=s.flags;switch(s.tag){case 0:case 11:case 15:Sr(i,s,u,p),v&2048&&su(9,s);break;case 1:Sr(i,s,u,p);break;case 3:Sr(i,s,u,p),v&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Kl(i)));break;case 12:if(v&2048){Sr(i,s,u,p),i=s.stateNode;try{var x=s.memoizedProps,N=x.id,R=x.onPostCommit;typeof R=="function"&&R(N,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(U){nt(s,s.return,U)}}else Sr(i,s,u,p);break;case 31:Sr(i,s,u,p);break;case 13:Sr(i,s,u,p);break;case 23:break;case 22:x=s.stateNode,N=s.alternate,s.memoizedState!==null?x._visibility&2?Sr(i,s,u,p):lu(i,s):x._visibility&2?Sr(i,s,u,p):(x._visibility|=2,oo(i,s,u,p,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Fy(N,s);break;case 24:Sr(i,s,u,p),v&2048&&Gy(s.alternate,s);break;default:Sr(i,s,u,p)}}function oo(i,s,u,p,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var x=i,N=s,R=u,U=p,Z=N.flags;switch(N.tag){case 0:case 11:case 15:oo(x,N,R,U,v),su(8,N);break;case 23:break;case 22:var te=N.stateNode;N.memoizedState!==null?te._visibility&2?oo(x,N,R,U,v):lu(x,N):(te._visibility|=2,oo(x,N,R,U,v)),v&&Z&2048&&Fy(N.alternate,N);break;case 24:oo(x,N,R,U,v),v&&Z&2048&&Gy(N.alternate,N);break;default:oo(x,N,R,U,v)}s=s.sibling}}function lu(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,p=s,v=p.flags;switch(p.tag){case 22:lu(u,p),v&2048&&Fy(p.alternate,p);break;case 24:lu(u,p),v&2048&&Gy(p.alternate,p);break;default:lu(u,p)}s=s.sibling}}var uu=8192;function lo(i,s,u){if(i.subtreeFlags&uu)for(i=i.child;i!==null;)U2(i,s,u),i=i.sibling}function U2(i,s,u){switch(i.tag){case 26:lo(i,s,u),i.flags&uu&&i.memoizedState!==null&&F6(u,jr,i.memoizedState,i.memoizedProps);break;case 5:lo(i,s,u);break;case 3:case 4:var p=jr;jr=pd(i.stateNode.containerInfo),lo(i,s,u),jr=p;break;case 22:i.memoizedState===null&&(p=i.alternate,p!==null&&p.memoizedState!==null?(p=uu,uu=16777216,lo(i,s,u),uu=p):lo(i,s,u));break;default:lo(i,s,u)}}function V2(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function cu(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];Zt=p,F2(p,i)}V2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)H2(i),i=i.sibling}function H2(i){switch(i.tag){case 0:case 11:case 15:cu(i),i.flags&2048&&Ji(9,i,i.return);break;case 3:cu(i);break;case 12:cu(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,td(i)):cu(i);break;default:cu(i)}}function td(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];Zt=p,F2(p,i)}V2(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Ji(8,s,s.return),td(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,td(s));break;default:td(s)}i=i.sibling}}function F2(i,s){for(;Zt!==null;){var u=Zt;switch(u.tag){case 0:case 11:case 15:Ji(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Kl(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,Zt=p;else e:for(u=i;Zt!==null;){p=Zt;var v=p.sibling,x=p.return;if(k2(p),p===u){Zt=null;break e}if(v!==null){v.return=x,Zt=v;break e}Zt=x}}}var s6={getCacheForType:function(i){var s=rn(Dt),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u},cacheSignal:function(){return rn(Dt).controller.signal}},o6=typeof WeakMap=="function"?WeakMap:Map,Xe=0,ut=null,$e=null,Ie=0,tt=0,Bn=null,ea=!1,uo=!1,Ky=!1,gi=0,Et=0,ta=0,Qa=0,Yy=0,qn=0,co=0,fu=null,Tn=null,Xy=!1,nd=0,G2=0,rd=1/0,id=null,na=null,Ut=0,ra=null,fo=null,xi=0,Wy=0,Zy=null,K2=null,du=0,Qy=null;function In(){return(Xe&2)!==0&&Ie!==0?Ie&-Ie:L.T!==null?iv():uA()}function Y2(){if(qn===0)if((Ie&536870912)===0||He){var i=df;df<<=1,(df&3932160)===0&&(df=262144),qn=i}else qn=536870912;return i=zn.current,i!==null&&(i.flags|=32),qn}function En(i,s,u){(i===ut&&(tt===2||tt===9)||i.cancelPendingCommit!==null)&&(ho(i,0),ia(i,Ie,qn,!1)),Rl(i,u),((Xe&2)===0||i!==ut)&&(i===ut&&((Xe&2)===0&&(Qa|=u),Et===4&&ia(i,Ie,qn,!1)),Ir(i))}function X2(i,s,u){if((Xe&6)!==0)throw Error(r(327));var p=!u&&(s&127)===0&&(s&i.expiredLanes)===0||Pl(i,s),v=p?c6(i,s):ev(i,s,!0),x=p;do{if(v===0){uo&&!p&&ia(i,s,0,!1);break}else{if(u=i.current.alternate,x&&!l6(u)){v=ev(i,s,!1),x=!1;continue}if(v===2){if(x=s,i.errorRecoveryDisabledLanes&x)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){s=N;e:{var R=i;v=fu;var U=R.current.memoizedState.isDehydrated;if(U&&(ho(R,N).flags|=256),N=ev(R,N,!1),N!==2){if(Ky&&!U){R.errorRecoveryDisabledLanes|=x,Qa|=x,v=4;break e}x=Tn,Tn=v,x!==null&&(Tn===null?Tn=x:Tn.push.apply(Tn,x))}v=N}if(x=!1,v!==2)continue}}if(v===1){ho(i,0),ia(i,s,0,!0);break}e:{switch(p=i,x=v,x){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:ia(p,s,qn,!ea);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(v=nd+300-fn(),10<v)){if(ia(p,s,qn,!ea),pf(p,0,!0)!==0)break e;xi=s,p.timeoutHandle=__(W2.bind(null,p,u,Tn,id,Xy,s,qn,Qa,co,ea,x,"Throttled",-0,0),v);break e}W2(p,u,Tn,id,Xy,s,qn,Qa,co,ea,x,null,-0,0)}}break}while(!0);Ir(i)}function W2(i,s,u,p,v,x,N,R,U,Z,te,se,J,ee){if(i.timeoutHandle=-1,se=s.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ii},U2(s,x,se);var ve=(x&62914560)===x?nd-fn():(x&4194048)===x?G2-fn():0;if(ve=G6(se,ve),ve!==null){xi=x,i.cancelPendingCommit=ve(i_.bind(null,i,s,x,u,p,v,N,R,U,te,se,null,J,ee)),ia(i,x,N,!Z);return}}i_(i,s,x,u,p,v,N,R,U)}function l6(i){for(var s=i;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var v=u[p],x=v.getSnapshot;v=v.value;try{if(!kn(x(),v))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ia(i,s,u,p){s&=~Yy,s&=~Qa,i.suspendedLanes|=s,i.pingedLanes&=~s,p&&(i.warmLanes|=s),p=i.expirationTimes;for(var v=s;0<v;){var x=31-Dn(v),N=1<<x;p[x]=-1,v&=~N}u!==0&&sA(i,u,s)}function ad(){return(Xe&6)===0?(hu(0),!1):!0}function Jy(){if($e!==null){if(tt===0)var i=$e.return;else i=$e,li=Va=null,my(i),no=null,Xl=0,i=$e;for(;i!==null;)T2(i.alternate,i),i=i.return;$e=null}}function ho(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,E6(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),xi=0,Jy(),ut=i,$e=u=si(i.current,null),Ie=s,tt=0,Bn=null,ea=!1,uo=Pl(i,s),Ky=!1,co=qn=Yy=Qa=ta=Et=0,Tn=fu=null,Xy=!1,(s&8)!==0&&(s|=s&32);var p=i.entangledLanes;if(p!==0)for(i=i.entanglements,p&=s;0<p;){var v=31-Dn(p),x=1<<v;s|=i[v],p&=~x}return gi=s,_f(),u}function Z2(i,s){Re=null,L.H=ru,s===to||s===Df?(s=hO(),tt=3):s===ry?(s=hO(),tt=4):tt=s===My?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Bn=s,$e===null&&(Et=1,Yf(i,er(s,i.current)))}function Q2(){var i=zn.current;return i===null?!0:(Ie&4194048)===Ie?ir===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?i===ir:!1}function J2(){var i=L.H;return L.H=ru,i===null?ru:i}function e_(){var i=L.A;return L.A=s6,i}function sd(){Et=4,ea||(Ie&4194048)!==Ie&&zn.current!==null||(uo=!0),(ta&134217727)===0&&(Qa&134217727)===0||ut===null||ia(ut,Ie,qn,!1)}function ev(i,s,u){var p=Xe;Xe|=2;var v=J2(),x=e_();(ut!==i||Ie!==s)&&(id=null,ho(i,s)),s=!1;var N=Et;e:do try{if(tt!==0&&$e!==null){var R=$e,U=Bn;switch(tt){case 8:Jy(),N=6;break e;case 3:case 2:case 9:case 6:zn.current===null&&(s=!0);var Z=tt;if(tt=0,Bn=null,po(i,R,U,Z),u&&uo){N=0;break e}break;default:Z=tt,tt=0,Bn=null,po(i,R,U,Z)}}u6(),N=Et;break}catch(te){Z2(i,te)}while(!0);return s&&i.shellSuspendCounter++,li=Va=null,Xe=p,L.H=v,L.A=x,$e===null&&(ut=null,Ie=0,_f()),N}function u6(){for(;$e!==null;)t_($e)}function c6(i,s){var u=Xe;Xe|=2;var p=J2(),v=e_();ut!==i||Ie!==s?(id=null,rd=fn()+500,ho(i,s)):uo=Pl(i,s);e:do try{if(tt!==0&&$e!==null){s=$e;var x=Bn;t:switch(tt){case 1:tt=0,Bn=null,po(i,s,x,1);break;case 2:case 9:if(fO(x)){tt=0,Bn=null,n_(s);break}s=function(){tt!==2&&tt!==9||ut!==i||(tt=7),Ir(i)},x.then(s,s);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:fO(x)?(tt=0,Bn=null,n_(s)):(tt=0,Bn=null,po(i,s,x,7));break;case 5:var N=null;switch($e.tag){case 26:N=$e.memoizedState;case 5:case 27:var R=$e;if(N?I_(N):R.stateNode.complete){tt=0,Bn=null;var U=R.sibling;if(U!==null)$e=U;else{var Z=R.return;Z!==null?($e=Z,od(Z)):$e=null}break t}}tt=0,Bn=null,po(i,s,x,5);break;case 6:tt=0,Bn=null,po(i,s,x,6);break;case 8:Jy(),Et=6;break e;default:throw Error(r(462))}}f6();break}catch(te){Z2(i,te)}while(!0);return li=Va=null,L.H=p,L.A=v,Xe=u,$e!==null?0:(ut=null,Ie=0,_f(),Et)}function f6(){for(;$e!==null&&!ni();)t_($e)}function t_(i){var s=O2(i.alternate,i,gi);i.memoizedProps=i.pendingProps,s===null?od(i):$e=s}function n_(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=x2(u,s,s.pendingProps,s.type,void 0,Ie);break;case 11:s=x2(u,s,s.pendingProps,s.type.render,s.ref,Ie);break;case 5:my(s);default:T2(u,s),s=$e=eO(s,gi),s=O2(u,s,gi)}i.memoizedProps=i.pendingProps,s===null?od(i):$e=s}function po(i,s,u,p){li=Va=null,my(s),no=null,Xl=0;var v=s.return;try{if(J5(i,v,s,u,Ie)){Et=1,Yf(i,er(u,i.current)),$e=null;return}}catch(x){if(v!==null)throw $e=v,x;Et=1,Yf(i,er(u,i.current)),$e=null;return}s.flags&32768?(He||p===1?i=!0:uo||(Ie&536870912)!==0?i=!1:(ea=i=!0,(p===2||p===9||p===3||p===6)&&(p=zn.current,p!==null&&p.tag===13&&(p.flags|=16384))),r_(s,i)):od(s)}function od(i){var s=i;do{if((s.flags&32768)!==0){r_(s,ea);return}i=s.return;var u=n6(s.alternate,s,gi);if(u!==null){$e=u;return}if(s=s.sibling,s!==null){$e=s;return}$e=s=i}while(s!==null);Et===0&&(Et=5)}function r_(i,s){do{var u=r6(i.alternate,i);if(u!==null){u.flags&=32767,$e=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){$e=i;return}$e=i=u}while(i!==null);Et=6,$e=null}function i_(i,s,u,p,v,x,N,R,U){i.cancelPendingCommit=null;do ld();while(Ut!==0);if((Xe&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(x=s.lanes|s.childLanes,x|=Um,HB(i,u,x,N,R,U),i===ut&&($e=ut=null,Ie=0),fo=s,ra=i,xi=u,Wy=x,Zy=v,K2=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,m6(cf,function(){return u_(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=L.T,L.T=null,v=H.p,H.p=2,N=Xe,Xe|=4;try{i6(i,s,u)}finally{Xe=N,H.p=v,L.T=p}}Ut=1,a_(),s_(),o_()}}function a_(){if(Ut===1){Ut=0;var i=ra,s=fo,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=L.T,L.T=null;var p=H.p;H.p=2;var v=Xe;Xe|=4;try{B2(s,i);var x=dv,N=FA(i.containerInfo),R=x.focusedElem,U=x.selectionRange;if(N!==R&&R&&R.ownerDocument&&HA(R.ownerDocument.documentElement,R)){if(U!==null&&zm(R)){var Z=U.start,te=U.end;if(te===void 0&&(te=Z),"selectionStart"in R)R.selectionStart=Z,R.selectionEnd=Math.min(te,R.value.length);else{var se=R.ownerDocument||document,J=se&&se.defaultView||window;if(J.getSelection){var ee=J.getSelection(),ve=R.textContent.length,Ae=Math.min(U.start,ve),ot=U.end===void 0?Ae:Math.min(U.end,ve);!ee.extend&&Ae>ot&&(N=ot,ot=Ae,Ae=N);var K=VA(R,Ae),V=VA(R,ot);if(K&&V&&(ee.rangeCount!==1||ee.anchorNode!==K.node||ee.anchorOffset!==K.offset||ee.focusNode!==V.node||ee.focusOffset!==V.offset)){var W=se.createRange();W.setStart(K.node,K.offset),ee.removeAllRanges(),Ae>ot?(ee.addRange(W),ee.extend(V.node,V.offset)):(W.setEnd(V.node,V.offset),ee.addRange(W))}}}}for(se=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&se.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<se.length;R++){var ae=se[R];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}bd=!!fv,dv=fv=null}finally{Xe=v,H.p=p,L.T=u}}i.current=s,Ut=2}}function s_(){if(Ut===2){Ut=0;var i=ra,s=fo,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=L.T,L.T=null;var p=H.p;H.p=2;var v=Xe;Xe|=4;try{D2(i,s.alternate,s)}finally{Xe=v,H.p=p,L.T=u}}Ut=3}}function o_(){if(Ut===4||Ut===3){Ut=0,Cl();var i=ra,s=fo,u=xi,p=K2;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Ut=5:(Ut=0,fo=ra=null,l_(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(na=null),gm(u),s=s.stateNode,Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(Ml,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=L.T,v=H.p,H.p=2,L.T=null;try{for(var x=i.onRecoverableError,N=0;N<p.length;N++){var R=p[N];x(R.value,{componentStack:R.stack})}}finally{L.T=s,H.p=v}}(xi&3)!==0&&ld(),Ir(i),v=i.pendingLanes,(u&261930)!==0&&(v&42)!==0?i===Qy?du++:(du=0,Qy=i):du=0,hu(0)}}function l_(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Kl(s)))}function ld(){return a_(),s_(),o_(),u_()}function u_(){if(Ut!==5)return!1;var i=ra,s=Wy;Wy=0;var u=gm(xi),p=L.T,v=H.p;try{H.p=32>u?32:u,L.T=null,u=Zy,Zy=null;var x=ra,N=xi;if(Ut=0,fo=ra=null,xi=0,(Xe&6)!==0)throw Error(r(331));var R=Xe;if(Xe|=4,H2(x.current),I2(x,x.current,N,u),Xe=R,hu(0,!1),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(Ml,x)}catch{}return!0}finally{H.p=v,L.T=p,l_(i,s)}}function c_(i,s,u){s=er(u,s),s=Cy(i.stateNode,s,2),i=Wi(i,s,2),i!==null&&(Rl(i,2),Ir(i))}function nt(i,s,u){if(i.tag===3)c_(i,i,u);else for(;s!==null;){if(s.tag===3){c_(s,i,u);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(na===null||!na.has(p))){i=er(u,i),u=f2(2),p=Wi(s,u,2),p!==null&&(d2(u,p,s,i),Rl(p,2),Ir(p));break}}s=s.return}}function tv(i,s,u){var p=i.pingCache;if(p===null){p=i.pingCache=new o6;var v=new Set;p.set(s,v)}else v=p.get(s),v===void 0&&(v=new Set,p.set(s,v));v.has(u)||(Ky=!0,v.add(u),i=d6.bind(null,i,s,u),s.then(i,i))}function d6(i,s,u){var p=i.pingCache;p!==null&&p.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,ut===i&&(Ie&u)===u&&(Et===4||Et===3&&(Ie&62914560)===Ie&&300>fn()-nd?(Xe&2)===0&&ho(i,0):Yy|=u,co===Ie&&(co=0)),Ir(i)}function f_(i,s){s===0&&(s=aA()),i=qa(i,s),i!==null&&(Rl(i,s),Ir(i))}function h6(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),f_(i,u)}function p6(i,s){var u=0;switch(i.tag){case 31:case 13:var p=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(s),f_(i,u)}function m6(i,s){return qi(i,s)}var ud=null,mo=null,nv=!1,cd=!1,rv=!1,aa=0;function Ir(i){i!==mo&&i.next===null&&(mo===null?ud=mo=i:mo=mo.next=i),cd=!0,nv||(nv=!0,v6())}function hu(i,s){if(!rv&&cd){rv=!0;do for(var u=!1,p=ud;p!==null;){if(i!==0){var v=p.pendingLanes;if(v===0)var x=0;else{var N=p.suspendedLanes,R=p.pingedLanes;x=(1<<31-Dn(42|i)+1)-1,x&=v&~(N&~R),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,m_(p,x))}else x=Ie,x=pf(p,p===ut?x:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(x&3)===0||Pl(p,x)||(u=!0,m_(p,x));p=p.next}while(u);rv=!1}}function y6(){d_()}function d_(){cd=nv=!1;var i=0;aa!==0&&T6()&&(i=aa);for(var s=fn(),u=null,p=ud;p!==null;){var v=p.next,x=h_(p,s);x===0?(p.next=null,u===null?ud=v:u.next=v,v===null&&(mo=u)):(u=p,(i!==0||(x&3)!==0)&&(cd=!0)),p=v}Ut!==0&&Ut!==5||hu(i),aa!==0&&(aa=0)}function h_(i,s){for(var u=i.suspendedLanes,p=i.pingedLanes,v=i.expirationTimes,x=i.pendingLanes&-62914561;0<x;){var N=31-Dn(x),R=1<<N,U=v[N];U===-1?((R&u)===0||(R&p)!==0)&&(v[N]=VB(R,s)):U<=s&&(i.expiredLanes|=R),x&=~R}if(s=ut,u=Ie,u=pf(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p=i.callbackNode,u===0||i===s&&(tt===2||tt===9)||i.cancelPendingCommit!==null)return p!==null&&p!==null&&xr(p),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Pl(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(p!==null&&xr(p),gm(u)){case 2:case 8:u=rA;break;case 32:u=cf;break;case 268435456:u=iA;break;default:u=cf}return p=p_.bind(null,i),u=qi(u,p),i.callbackPriority=s,i.callbackNode=u,s}return p!==null&&p!==null&&xr(p),i.callbackPriority=2,i.callbackNode=null,2}function p_(i,s){if(Ut!==0&&Ut!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(ld()&&i.callbackNode!==u)return null;var p=Ie;return p=pf(i,i===ut?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p===0?null:(X2(i,p,s),h_(i,fn()),i.callbackNode!=null&&i.callbackNode===u?p_.bind(null,i):null)}function m_(i,s){if(ld())return null;X2(i,s,!0)}function v6(){N6(function(){(Xe&6)!==0?qi(nA,y6):d_()})}function iv(){if(aa===0){var i=Js;i===0&&(i=ff,ff<<=1,(ff&261888)===0&&(ff=256)),aa=i}return aa}function y_(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:gf(""+i)}function v_(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function g6(i,s,u,p,v){if(s==="submit"&&u&&u.stateNode===v){var x=y_((v[Sn]||null).action),N=p.submitter;N&&(s=(s=N[Sn]||null)?y_(s.formAction):N.getAttribute("formAction"),s!==null&&(x=s,N=null));var R=new Sf("action","action",null,p,v);i.push({event:R,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(aa!==0){var U=N?v_(v,N):new FormData(v);Ay(u,{pending:!0,data:U,method:v.method,action:x},null,U)}}else typeof x=="function"&&(R.preventDefault(),U=N?v_(v,N):new FormData(v),Ay(u,{pending:!0,data:U,method:v.method,action:x},x,U))},currentTarget:v}]})}}for(var av=0;av<Im.length;av++){var sv=Im[av],x6=sv.toLowerCase(),b6=sv[0].toUpperCase()+sv.slice(1);br(x6,"on"+b6)}br(YA,"onAnimationEnd"),br(XA,"onAnimationIteration"),br(WA,"onAnimationStart"),br("dblclick","onDoubleClick"),br("focusin","onFocus"),br("focusout","onBlur"),br(L5,"onTransitionRun"),br(z5,"onTransitionStart"),br($5,"onTransitionCancel"),br(ZA,"onTransitionEnd"),Bs("onMouseEnter",["mouseout","mouseover"]),Bs("onMouseLeave",["mouseout","mouseover"]),Bs("onPointerEnter",["pointerout","pointerover"]),Bs("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pu="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(" "),j6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pu));function g_(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var p=i[u],v=p.event;p=p.listeners;e:{var x=void 0;if(s)for(var N=p.length-1;0<=N;N--){var R=p[N],U=R.instance,Z=R.currentTarget;if(R=R.listener,U!==x&&v.isPropagationStopped())break e;x=R,v.currentTarget=Z;try{x(v)}catch(te){Of(te)}v.currentTarget=null,x=U}else for(N=0;N<p.length;N++){if(R=p[N],U=R.instance,Z=R.currentTarget,R=R.listener,U!==x&&v.isPropagationStopped())break e;x=R,v.currentTarget=Z;try{x(v)}catch(te){Of(te)}v.currentTarget=null,x=U}}}}function Be(i,s){var u=s[xm];u===void 0&&(u=s[xm]=new Set);var p=i+"__bubble";u.has(p)||(x_(s,i,2,!1),u.add(p))}function ov(i,s,u){var p=0;s&&(p|=4),x_(u,i,p,s)}var fd="_reactListening"+Math.random().toString(36).slice(2);function lv(i){if(!i[fd]){i[fd]=!0,dA.forEach(function(u){u!=="selectionchange"&&(j6.has(u)||ov(u,!1,i),ov(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[fd]||(s[fd]=!0,ov("selectionchange",!1,s))}}function x_(i,s,u,p){switch(Y_(s)){case 2:var v=X6;break;case 8:v=W6;break;default:v=wv}u=v.bind(null,s,u,i),v=void 0,!Em||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),p?v!==void 0?i.addEventListener(s,u,{capture:!0,passive:v}):i.addEventListener(s,u,!0):v!==void 0?i.addEventListener(s,u,{passive:v}):i.addEventListener(s,u,!1)}function uv(i,s,u,p,v){var x=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var N=p.tag;if(N===3||N===4){var R=p.stateNode.containerInfo;if(R===v)break;if(N===4)for(N=p.return;N!==null;){var U=N.tag;if((U===3||U===4)&&N.stateNode.containerInfo===v)return;N=N.return}for(;R!==null;){if(N=Ls(R),N===null)return;if(U=N.tag,U===5||U===6||U===26||U===27){p=x=N;continue e}R=R.parentNode}}p=p.return}AA(function(){var Z=x,te=_m(u),se=[];e:{var J=QA.get(i);if(J!==void 0){var ee=Sf,ve=i;switch(i){case"keypress":if(bf(u)===0)break e;case"keydown":case"keyup":ee=p5;break;case"focusin":ve="focus",ee=Pm;break;case"focusout":ve="blur",ee=Pm;break;case"beforeblur":case"afterblur":ee=Pm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=TA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=n5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=v5;break;case YA:case XA:case WA:ee=a5;break;case ZA:ee=x5;break;case"scroll":case"scrollend":ee=e5;break;case"wheel":ee=j5;break;case"copy":case"cut":case"paste":ee=o5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=NA;break;case"toggle":case"beforetoggle":ee=w5}var Ae=(s&4)!==0,ot=!Ae&&(i==="scroll"||i==="scrollend"),K=Ae?J!==null?J+"Capture":null:J;Ae=[];for(var V=Z,W;V!==null;){var ae=V;if(W=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||W===null||K===null||(ae=Ll(V,K),ae!=null&&Ae.push(mu(V,ae,W))),ot)break;V=V.return}0<Ae.length&&(J=new ee(J,ve,null,u,te),se.push({event:J,listeners:Ae}))}}if((s&7)===0){e:{if(J=i==="mouseover"||i==="pointerover",ee=i==="mouseout"||i==="pointerout",J&&u!==Om&&(ve=u.relatedTarget||u.fromElement)&&(Ls(ve)||ve[ks]))break e;if((ee||J)&&(J=te.window===te?te:(J=te.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(ve=u.relatedTarget||u.toElement,ee=Z,ve=ve?Ls(ve):null,ve!==null&&(ot=o(ve),Ae=ve.tag,ve!==ot||Ae!==5&&Ae!==27&&Ae!==6)&&(ve=null)):(ee=null,ve=Z),ee!==ve)){if(Ae=TA,ae="onMouseLeave",K="onMouseEnter",V="mouse",(i==="pointerout"||i==="pointerover")&&(Ae=NA,ae="onPointerLeave",K="onPointerEnter",V="pointer"),ot=ee==null?J:kl(ee),W=ve==null?J:kl(ve),J=new Ae(ae,V+"leave",ee,u,te),J.target=ot,J.relatedTarget=W,ae=null,Ls(te)===Z&&(Ae=new Ae(K,V+"enter",ve,u,te),Ae.target=W,Ae.relatedTarget=ot,ae=Ae),ot=ae,ee&&ve)t:{for(Ae=S6,K=ee,V=ve,W=0,ae=K;ae;ae=Ae(ae))W++;ae=0;for(var Se=V;Se;Se=Ae(Se))ae++;for(;0<W-ae;)K=Ae(K),W--;for(;0<ae-W;)V=Ae(V),ae--;for(;W--;){if(K===V||V!==null&&K===V.alternate){Ae=K;break t}K=Ae(K),V=Ae(V)}Ae=null}else Ae=null;ee!==null&&b_(se,J,ee,Ae,!1),ve!==null&&ot!==null&&b_(se,ot,ve,Ae,!0)}}e:{if(J=Z?kl(Z):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var Fe=zA;else if(kA(J))if($A)Fe=R5;else{Fe=M5;var xe=C5}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Z&&Am(Z.elementType)&&(Fe=zA):Fe=P5;if(Fe&&(Fe=Fe(i,Z))){LA(se,Fe,u,te);break e}xe&&xe(i,J,Z),i==="focusout"&&Z&&J.type==="number"&&Z.memoizedProps.value!=null&&wm(J,"number",J.value)}switch(xe=Z?kl(Z):window,i){case"focusin":(kA(xe)||xe.contentEditable==="true")&&(Fs=xe,$m=Z,Hl=null);break;case"focusout":Hl=$m=Fs=null;break;case"mousedown":Bm=!0;break;case"contextmenu":case"mouseup":case"dragend":Bm=!1,GA(se,u,te);break;case"selectionchange":if(k5)break;case"keydown":case"keyup":GA(se,u,te)}var ke;if(Dm)e:{switch(i){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Hs?RA(i,u)&&(Ue="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Ue="onCompositionStart");Ue&&(CA&&u.locale!=="ko"&&(Hs||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Hs&&(ke=OA()):(Vi=te,Nm="value"in Vi?Vi.value:Vi.textContent,Hs=!0)),xe=dd(Z,Ue),0<xe.length&&(Ue=new EA(Ue,i,null,u,te),se.push({event:Ue,listeners:xe}),ke?Ue.data=ke:(ke=DA(u),ke!==null&&(Ue.data=ke)))),(ke=O5?_5(i,u):T5(i,u))&&(Ue=dd(Z,"onBeforeInput"),0<Ue.length&&(xe=new EA("onBeforeInput","beforeinput",null,u,te),se.push({event:xe,listeners:Ue}),xe.data=ke)),g6(se,i,Z,u,te)}g_(se,s)})}function mu(i,s,u){return{instance:i,listener:s,currentTarget:u}}function dd(i,s){for(var u=s+"Capture",p=[];i!==null;){var v=i,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=Ll(i,u),v!=null&&p.unshift(mu(i,v,x)),v=Ll(i,s),v!=null&&p.push(mu(i,v,x))),i.tag===3)return p;i=i.return}return[]}function S6(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function b_(i,s,u,p,v){for(var x=s._reactName,N=[];u!==null&&u!==p;){var R=u,U=R.alternate,Z=R.stateNode;if(R=R.tag,U!==null&&U===p)break;R!==5&&R!==26&&R!==27||Z===null||(U=Z,v?(Z=Ll(u,x),Z!=null&&N.unshift(mu(u,Z,U))):v||(Z=Ll(u,x),Z!=null&&N.push(mu(u,Z,U)))),u=u.return}N.length!==0&&i.push({event:s,listeners:N})}var w6=/\r\n?/g,A6=/\u0000|\uFFFD/g;function j_(i){return(typeof i=="string"?i:""+i).replace(w6,`
`).replace(A6,"")}function S_(i,s){return s=j_(s),j_(i)===s}function st(i,s,u,p,v,x){switch(u){case"children":typeof p=="string"?s==="body"||s==="textarea"&&p===""||Is(i,p):(typeof p=="number"||typeof p=="bigint")&&s!=="body"&&Is(i,""+p);break;case"className":yf(i,"class",p);break;case"tabIndex":yf(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":yf(i,u,p);break;case"style":SA(i,p,x);break;case"data":if(s!=="object"){yf(i,"data",p);break}case"src":case"href":if(p===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=gf(""+p),i.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){i.setAttribute(u,"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 x=="function"&&(u==="formAction"?(s!=="input"&&st(i,s,"name",v.name,v,null),st(i,s,"formEncType",v.formEncType,v,null),st(i,s,"formMethod",v.formMethod,v,null),st(i,s,"formTarget",v.formTarget,v,null)):(st(i,s,"encType",v.encType,v,null),st(i,s,"method",v.method,v,null),st(i,s,"target",v.target,v,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=gf(""+p),i.setAttribute(u,p);break;case"onClick":p!=null&&(i.onclick=ii);break;case"onScroll":p!=null&&Be("scroll",i);break;case"onScrollEnd":p!=null&&Be("scrollend",i);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":i.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){i.removeAttribute("xlink:href");break}u=gf(""+p),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""+p):i.removeAttribute(u);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":p&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":p===!0?i.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,p):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?i.setAttribute(u,p):i.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?i.removeAttribute(u):i.setAttribute(u,p);break;case"popover":Be("beforetoggle",i),Be("toggle",i),mf(i,"popover",p);break;case"xlinkActuate":ri(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":ri(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":ri(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":ri(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":ri(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":ri(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":ri(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":ri(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":ri(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":mf(i,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=QB.get(u)||u,mf(i,u,p))}}function cv(i,s,u,p,v,x){switch(u){case"style":SA(i,p,x);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof p=="string"?Is(i,p):(typeof p=="number"||typeof p=="bigint")&&Is(i,""+p);break;case"onScroll":p!=null&&Be("scroll",i);break;case"onScrollEnd":p!=null&&Be("scrollend",i);break;case"onClick":p!=null&&(i.onclick=ii);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hA.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),s=u.slice(2,v?u.length-7:void 0),x=i[Sn]||null,x=x!=null?x[u]:null,typeof x=="function"&&i.removeEventListener(s,x,v),typeof p=="function")){typeof x!="function"&&x!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,p,v);break e}u in i?i[u]=p:p===!0?i.setAttribute(u,""):mf(i,u,p)}}}function sn(i,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",i),Be("load",i);var p=!1,v=!1,x;for(x in u)if(u.hasOwnProperty(x)){var N=u[x];if(N!=null)switch(x){case"src":p=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:st(i,s,x,N,u,null)}}v&&st(i,s,"srcSet",u.srcSet,u,null),p&&st(i,s,"src",u.src,u,null);return;case"input":Be("invalid",i);var R=x=N=v=null,U=null,Z=null;for(p in u)if(u.hasOwnProperty(p)){var te=u[p];if(te!=null)switch(p){case"name":v=te;break;case"type":N=te;break;case"checked":U=te;break;case"defaultChecked":Z=te;break;case"value":x=te;break;case"defaultValue":R=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,s));break;default:st(i,s,p,te,u,null)}}gA(i,x,R,U,Z,N,v,!1);return;case"select":Be("invalid",i),p=N=x=null;for(v in u)if(u.hasOwnProperty(v)&&(R=u[v],R!=null))switch(v){case"value":x=R;break;case"defaultValue":N=R;break;case"multiple":p=R;default:st(i,s,v,R,u,null)}s=x,u=N,i.multiple=!!p,s!=null?qs(i,!!p,s,!1):u!=null&&qs(i,!!p,u,!0);return;case"textarea":Be("invalid",i),x=v=p=null;for(N in u)if(u.hasOwnProperty(N)&&(R=u[N],R!=null))switch(N){case"value":p=R;break;case"defaultValue":v=R;break;case"children":x=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:st(i,s,N,R,u,null)}bA(i,p,v,x);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(p=u[U],p!=null))switch(U){case"selected":i.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:st(i,s,U,p,u,null)}return;case"dialog":Be("beforetoggle",i),Be("toggle",i),Be("cancel",i),Be("close",i);break;case"iframe":case"object":Be("load",i);break;case"video":case"audio":for(p=0;p<pu.length;p++)Be(pu[p],i);break;case"image":Be("error",i),Be("load",i);break;case"details":Be("toggle",i);break;case"embed":case"source":case"link":Be("error",i),Be("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in u)if(u.hasOwnProperty(Z)&&(p=u[Z],p!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:st(i,s,Z,p,u,null)}return;default:if(Am(s)){for(te in u)u.hasOwnProperty(te)&&(p=u[te],p!==void 0&&cv(i,s,te,p,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(p=u[R],p!=null&&st(i,s,R,p,u,null))}function O6(i,s,u,p){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,N=null,R=null,U=null,Z=null,te=null;for(ee in u){var se=u[ee];if(u.hasOwnProperty(ee)&&se!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":U=se;default:p.hasOwnProperty(ee)||st(i,s,ee,null,p,se)}}for(var J in p){var ee=p[J];if(se=u[J],p.hasOwnProperty(J)&&(ee!=null||se!=null))switch(J){case"type":x=ee;break;case"name":v=ee;break;case"checked":Z=ee;break;case"defaultChecked":te=ee;break;case"value":N=ee;break;case"defaultValue":R=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,s));break;default:ee!==se&&st(i,s,J,ee,p,se)}}Sm(i,N,R,U,Z,te,x,v);return;case"select":ee=N=R=J=null;for(x in u)if(U=u[x],u.hasOwnProperty(x)&&U!=null)switch(x){case"value":break;case"multiple":ee=U;default:p.hasOwnProperty(x)||st(i,s,x,null,p,U)}for(v in p)if(x=p[v],U=u[v],p.hasOwnProperty(v)&&(x!=null||U!=null))switch(v){case"value":J=x;break;case"defaultValue":R=x;break;case"multiple":N=x;default:x!==U&&st(i,s,v,x,p,U)}s=R,u=N,p=ee,J!=null?qs(i,!!u,J,!1):!!p!=!!u&&(s!=null?qs(i,!!u,s,!0):qs(i,!!u,u?[]:"",!1));return;case"textarea":ee=J=null;for(R in u)if(v=u[R],u.hasOwnProperty(R)&&v!=null&&!p.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:st(i,s,R,null,p,v)}for(N in p)if(v=p[N],x=u[N],p.hasOwnProperty(N)&&(v!=null||x!=null))switch(N){case"value":J=v;break;case"defaultValue":ee=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==x&&st(i,s,N,v,p,x)}xA(i,J,ee);return;case"option":for(var ve in u)if(J=u[ve],u.hasOwnProperty(ve)&&J!=null&&!p.hasOwnProperty(ve))switch(ve){case"selected":i.selected=!1;break;default:st(i,s,ve,null,p,J)}for(U in p)if(J=p[U],ee=u[U],p.hasOwnProperty(U)&&J!==ee&&(J!=null||ee!=null))switch(U){case"selected":i.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:st(i,s,U,J,p,ee)}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 Ae in u)J=u[Ae],u.hasOwnProperty(Ae)&&J!=null&&!p.hasOwnProperty(Ae)&&st(i,s,Ae,null,p,J);for(Z in p)if(J=p[Z],ee=u[Z],p.hasOwnProperty(Z)&&J!==ee&&(J!=null||ee!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,s));break;default:st(i,s,Z,J,p,ee)}return;default:if(Am(s)){for(var ot in u)J=u[ot],u.hasOwnProperty(ot)&&J!==void 0&&!p.hasOwnProperty(ot)&&cv(i,s,ot,void 0,p,J);for(te in p)J=p[te],ee=u[te],!p.hasOwnProperty(te)||J===ee||J===void 0&&ee===void 0||cv(i,s,te,J,p,ee);return}}for(var K in u)J=u[K],u.hasOwnProperty(K)&&J!=null&&!p.hasOwnProperty(K)&&st(i,s,K,null,p,J);for(se in p)J=p[se],ee=u[se],!p.hasOwnProperty(se)||J===ee||J==null&&ee==null||st(i,s,se,J,p,ee)}function w_(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _6(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var v=u[p],x=v.transferSize,N=v.initiatorType,R=v.duration;if(x&&R&&w_(N)){for(N=0,R=v.responseEnd,p+=1;p<u.length;p++){var U=u[p],Z=U.startTime;if(Z>R)break;var te=U.transferSize,se=U.initiatorType;te&&w_(se)&&(U=U.responseEnd,N+=te*(U<R?1:(R-Z)/(U-Z)))}if(--p,s+=8*(x+N)/(v.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var fv=null,dv=null;function hd(i){return i.nodeType===9?i:i.ownerDocument}function A_(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function O_(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function hv(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var pv=null;function T6(){var i=window.event;return i&&i.type==="popstate"?i===pv?!1:(pv=i,!0):(pv=null,!1)}var __=typeof setTimeout=="function"?setTimeout:void 0,E6=typeof clearTimeout=="function"?clearTimeout:void 0,T_=typeof Promise=="function"?Promise:void 0,N6=typeof queueMicrotask=="function"?queueMicrotask:typeof T_<"u"?function(i){return T_.resolve(null).then(i).catch(C6)}:__;function C6(i){setTimeout(function(){throw i})}function sa(i){return i==="head"}function E_(i,s){var u=s,p=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(p===0){i.removeChild(v),xo(s);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")yu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,yu(u);for(var x=u.firstChild;x;){var N=x.nextSibling,R=x.nodeName;x[Dl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=N}}else u==="body"&&yu(i.ownerDocument.body);u=v}while(u);xo(s)}function N_(i,s){var u=i;i=0;do{var p=u.nextSibling;if(u.nodeType===1?s?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(s?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=p}while(u)}function mv(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":mv(u),bm(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function M6(i,s,u,p){for(;i.nodeType===1;){var v=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[Dl])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(x=i.getAttribute("rel"),x==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(x!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(x=i.getAttribute("src"),(x!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===x)return i}else return i;if(i=ar(i.nextSibling),i===null)break}return null}function P6(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=ar(i.nextSibling),i===null))return null;return i}function C_(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=ar(i.nextSibling),i===null))return null;return i}function yv(i){return i.data==="$?"||i.data==="$~"}function vv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function R6(i,s){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||u.readyState!=="loading")s();else{var p=function(){s(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function ar(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var gv=null;function M_(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(s===0)return ar(i.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}i=i.nextSibling}return null}function P_(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return i;s--}else u!=="/$"&&u!=="/&"||s++}i=i.previousSibling}return null}function R_(i,s,u){switch(s=hd(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function yu(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);bm(i)}var sr=new Map,D_=new Set;function pd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var bi=H.d;H.d={f:D6,r:k6,D:L6,C:z6,L:$6,m:B6,X:I6,S:q6,M:U6};function D6(){var i=bi.f(),s=ad();return i||s}function k6(i){var s=zs(i);s!==null&&s.tag===5&&s.type==="form"?ZO(s):bi.r(i)}var yo=typeof document>"u"?null:document;function k_(i,s,u){var p=yo;if(p&&typeof s=="string"&&s){var v=Qn(s);v='link[rel="'+i+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),D_.has(v)||(D_.add(v),i={rel:i,crossOrigin:u,href:s},p.querySelector(v)===null&&(s=p.createElement("link"),sn(s,"link",i),Wt(s),p.head.appendChild(s)))}}function L6(i){bi.D(i),k_("dns-prefetch",i,null)}function z6(i,s){bi.C(i,s),k_("preconnect",i,s)}function $6(i,s,u){bi.L(i,s,u);var p=yo;if(p&&i&&s){var v='link[rel="preload"][as="'+Qn(s)+'"]';s==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+Qn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+Qn(u.imageSizes)+'"]')):v+='[href="'+Qn(i)+'"]';var x=v;switch(s){case"style":x=vo(i);break;case"script":x=go(i)}sr.has(x)||(i=y({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),sr.set(x,i),p.querySelector(v)!==null||s==="style"&&p.querySelector(vu(x))||s==="script"&&p.querySelector(gu(x))||(s=p.createElement("link"),sn(s,"link",i),Wt(s),p.head.appendChild(s)))}}function B6(i,s){bi.m(i,s);var u=yo;if(u&&i){var p=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+Qn(p)+'"][href="'+Qn(i)+'"]',x=v;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=go(i)}if(!sr.has(x)&&(i=y({rel:"modulepreload",href:i},s),sr.set(x,i),u.querySelector(v)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(gu(x)))return}p=u.createElement("link"),sn(p,"link",i),Wt(p),u.head.appendChild(p)}}}function q6(i,s,u){bi.S(i,s,u);var p=yo;if(p&&i){var v=$s(p).hoistableStyles,x=vo(i);s=s||"default";var N=v.get(x);if(!N){var R={loading:0,preload:null};if(N=p.querySelector(vu(x)))R.loading=5;else{i=y({rel:"stylesheet",href:i,"data-precedence":s},u),(u=sr.get(x))&&xv(i,u);var U=N=p.createElement("link");Wt(U),sn(U,"link",i),U._p=new Promise(function(Z,te){U.onload=Z,U.onerror=te}),U.addEventListener("load",function(){R.loading|=1}),U.addEventListener("error",function(){R.loading|=2}),R.loading|=4,md(N,s,p)}N={type:"stylesheet",instance:N,count:1,state:R},v.set(x,N)}}}function I6(i,s){bi.X(i,s);var u=yo;if(u&&i){var p=$s(u).hoistableScripts,v=go(i),x=p.get(v);x||(x=u.querySelector(gu(v)),x||(i=y({src:i,async:!0},s),(s=sr.get(v))&&bv(i,s),x=u.createElement("script"),Wt(x),sn(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},p.set(v,x))}}function U6(i,s){bi.M(i,s);var u=yo;if(u&&i){var p=$s(u).hoistableScripts,v=go(i),x=p.get(v);x||(x=u.querySelector(gu(v)),x||(i=y({src:i,async:!0,type:"module"},s),(s=sr.get(v))&&bv(i,s),x=u.createElement("script"),Wt(x),sn(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},p.set(v,x))}}function L_(i,s,u,p){var v=(v=we.current)?pd(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=vo(u.href),u=$s(v).hoistableStyles,p=u.get(s),p||(p={type:"style",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=vo(u.href);var x=$s(v).hoistableStyles,N=x.get(i);if(N||(v=v.ownerDocument||v,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(i,N),(x=v.querySelector(vu(i)))&&!x._p&&(N.instance=x,N.state.loading=5),sr.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},sr.set(i,u),x||V6(v,i,u,N.state))),s&&p===null)throw Error(r(528,""));return N}if(s&&p!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=go(u),u=$s(v).hoistableScripts,p=u.get(s),p||(p={type:"script",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function vo(i){return'href="'+Qn(i)+'"'}function vu(i){return'link[rel="stylesheet"]['+i+"]"}function z_(i){return y({},i,{"data-precedence":i.precedence,precedence:null})}function V6(i,s,u,p){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=i.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),sn(s,"link",u),Wt(s),i.head.appendChild(s))}function go(i){return'[src="'+Qn(i)+'"]'}function gu(i){return"script[async]"+i}function $_(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var p=i.querySelector('style[data-href~="'+Qn(u.href)+'"]');if(p)return s.instance=p,Wt(p),p;var v=y({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),Wt(p),sn(p,"style",v),md(p,u.precedence,i),s.instance=p;case"stylesheet":v=vo(u.href);var x=i.querySelector(vu(v));if(x)return s.state.loading|=4,s.instance=x,Wt(x),x;p=z_(u),(v=sr.get(v))&&xv(p,v),x=(i.ownerDocument||i).createElement("link"),Wt(x);var N=x;return N._p=new Promise(function(R,U){N.onload=R,N.onerror=U}),sn(x,"link",p),s.state.loading|=4,md(x,u.precedence,i),s.instance=x;case"script":return x=go(u.src),(v=i.querySelector(gu(x)))?(s.instance=v,Wt(v),v):(p=u,(v=sr.get(x))&&(p=y({},u),bv(p,v)),i=i.ownerDocument||i,v=i.createElement("script"),Wt(v),sn(v,"link",p),i.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,md(p,u.precedence,i));return s.instance}function md(i,s,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=p.length?p[p.length-1]:null,x=v,N=0;N<p.length;N++){var R=p[N];if(R.dataset.precedence===s)x=R;else if(x!==v)break}x?x.parentNode.insertBefore(i,x.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function xv(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function bv(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var yd=null;function B_(i,s,u){if(yd===null){var p=new Map,v=yd=new Map;v.set(u,p)}else v=yd,p=v.get(u),p||(p=new Map,v.set(u,p));if(p.has(i))return p;for(p.set(i,null),u=u.getElementsByTagName(i),v=0;v<u.length;v++){var x=u[v];if(!(x[Dl]||x[tn]||i==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var N=x.getAttribute(s)||"";N=i+N;var R=p.get(N);R?R.push(x):p.set(N,[x])}}return p}function q_(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function H6(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function I_(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function F6(i,s,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=vo(p.href),x=s.querySelector(vu(v));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=vd.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=x,Wt(x);return}x=s.ownerDocument||s,p=z_(p),(v=sr.get(v))&&xv(p,v),x=x.createElement("link"),Wt(x);var N=x;N._p=new Promise(function(R,U){N.onload=R,N.onerror=U}),sn(x,"link",p),u.instance=x}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=vd.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var jv=0;function G6(i,s){return i.stylesheets&&i.count===0&&xd(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var p=setTimeout(function(){if(i.stylesheets&&xd(i,i.stylesheets),i.unsuspend){var x=i.unsuspend;i.unsuspend=null,x()}},6e4+s);0<i.imgBytes&&jv===0&&(jv=62500*_6());var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&xd(i,i.stylesheets),i.unsuspend)){var x=i.unsuspend;i.unsuspend=null,x()}},(i.imgBytes>jv?50:800)+s);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(p),clearTimeout(v)}}:null}function vd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var gd=null;function xd(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,gd=new Map,s.forEach(K6,i),gd=null,vd.call(i))}function K6(i,s){if(!(s.state.loading&4)){var u=gd.get(i);if(u)var p=u.get(null);else{u=new Map,gd.set(i,u);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var N=v[x];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),p=N)}p&&u.set(null,p)}v=s.instance,N=v.getAttribute("data-precedence"),x=u.get(N)||p,x===p&&u.set(null,v),u.set(N,v),this.count++,p=vd.bind(this),v.addEventListener("load",p),v.addEventListener("error",p),x?x.parentNode.insertBefore(v,x.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),s.state.loading|=4}}var xu={$$typeof:T,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Y6(i,s,u,p,v,x,N,R,U){this.tag=1,this.containerInfo=i,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=ym(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ym(0),this.hiddenUpdates=ym(null),this.identifierPrefix=p,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function U_(i,s,u,p,v,x,N,R,U,Z,te,se){return i=new Y6(i,s,u,N,U,Z,te,se,R),s=1,x===!0&&(s|=24),x=Ln(3,null,null,s),i.current=x,x.stateNode=i,s=ey(),s.refCount++,i.pooledCache=s,s.refCount++,x.memoizedState={element:p,isDehydrated:u,cache:s},iy(x),i}function V_(i){return i?(i=Ys,i):Ys}function H_(i,s,u,p,v,x){v=V_(v),p.context===null?p.context=v:p.pendingContext=v,p=Xi(s),p.payload={element:u},x=x===void 0?null:x,x!==null&&(p.callback=x),u=Wi(i,p,s),u!==null&&(En(u,i,s),Zl(u,i,s))}function F_(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function Sv(i,s){F_(i,s),(i=i.alternate)&&F_(i,s)}function G_(i){if(i.tag===13||i.tag===31){var s=qa(i,67108864);s!==null&&En(s,i,67108864),Sv(i,67108864)}}function K_(i){if(i.tag===13||i.tag===31){var s=In();s=vm(s);var u=qa(i,s);u!==null&&En(u,i,s),Sv(i,s)}}var bd=!0;function X6(i,s,u,p){var v=L.T;L.T=null;var x=H.p;try{H.p=2,wv(i,s,u,p)}finally{H.p=x,L.T=v}}function W6(i,s,u,p){var v=L.T;L.T=null;var x=H.p;try{H.p=8,wv(i,s,u,p)}finally{H.p=x,L.T=v}}function wv(i,s,u,p){if(bd){var v=Av(p);if(v===null)uv(i,s,p,jd,u),X_(i,p);else if(Q6(v,i,s,u,p))p.stopPropagation();else if(X_(i,p),s&4&&-1<Z6.indexOf(i)){for(;v!==null;){var x=zs(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var N=ka(x.pendingLanes);if(N!==0){var R=x;for(R.pendingLanes|=2,R.entangledLanes|=2;N;){var U=1<<31-Dn(N);R.entanglements[1]|=U,N&=~U}Ir(x),(Xe&6)===0&&(rd=fn()+500,hu(0))}}break;case 31:case 13:R=qa(x,2),R!==null&&En(R,x,2),ad(),Sv(x,2)}if(x=Av(p),x===null&&uv(i,s,p,jd,u),x===v)break;v=x}v!==null&&p.stopPropagation()}else uv(i,s,p,null,u)}}function Av(i){return i=_m(i),Ov(i)}var jd=null;function Ov(i){if(jd=null,i=Ls(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===31){if(i=c(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return jd=i,null}function Y_(i){switch(i){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(uf()){case nA:return 2;case rA:return 8;case cf:case zB:return 32;case iA:return 268435456;default:return 32}default:return 32}}var _v=!1,oa=null,la=null,ua=null,bu=new Map,ju=new Map,ca=[],Z6="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 X_(i,s){switch(i){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":la=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":bu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":ju.delete(s.pointerId)}}function Su(i,s,u,p,v,x){return i===null||i.nativeEvent!==x?(i={blockedOn:s,domEventName:u,eventSystemFlags:p,nativeEvent:x,targetContainers:[v]},s!==null&&(s=zs(s),s!==null&&G_(s)),i):(i.eventSystemFlags|=p,s=i.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),i)}function Q6(i,s,u,p,v){switch(s){case"focusin":return oa=Su(oa,i,s,u,p,v),!0;case"dragenter":return la=Su(la,i,s,u,p,v),!0;case"mouseover":return ua=Su(ua,i,s,u,p,v),!0;case"pointerover":var x=v.pointerId;return bu.set(x,Su(bu.get(x)||null,i,s,u,p,v)),!0;case"gotpointercapture":return x=v.pointerId,ju.set(x,Su(ju.get(x)||null,i,s,u,p,v)),!0}return!1}function W_(i){var s=Ls(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,cA(i.priority,function(){K_(u)});return}}else if(s===31){if(s=c(u),s!==null){i.blockedOn=s,cA(i.priority,function(){K_(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Sd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=Av(i.nativeEvent);if(u===null){u=i.nativeEvent;var p=new u.constructor(u.type,u);Om=p,u.target.dispatchEvent(p),Om=null}else return s=zs(u),s!==null&&G_(s),i.blockedOn=u,!1;s.shift()}return!0}function Z_(i,s,u){Sd(i)&&u.delete(s)}function J6(){_v=!1,oa!==null&&Sd(oa)&&(oa=null),la!==null&&Sd(la)&&(la=null),ua!==null&&Sd(ua)&&(ua=null),bu.forEach(Z_),ju.forEach(Z_)}function wd(i,s){i.blockedOn===s&&(i.blockedOn=null,_v||(_v=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,J6)))}var Ad=null;function Q_(i){Ad!==i&&(Ad=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ad===i&&(Ad=null);for(var s=0;s<i.length;s+=3){var u=i[s],p=i[s+1],v=i[s+2];if(typeof p!="function"){if(Ov(p||u)===null)continue;break}var x=zs(u);x!==null&&(i.splice(s,3),s-=3,Ay(x,{pending:!0,data:v,method:u.method,action:p},p,v))}}))}function xo(i){function s(U){return wd(U,i)}oa!==null&&wd(oa,i),la!==null&&wd(la,i),ua!==null&&wd(ua,i),bu.forEach(s),ju.forEach(s);for(var u=0;u<ca.length;u++){var p=ca[u];p.blockedOn===i&&(p.blockedOn=null)}for(;0<ca.length&&(u=ca[0],u.blockedOn===null);)W_(u),u.blockedOn===null&&ca.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var v=u[p],x=u[p+1],N=v[Sn]||null;if(typeof x=="function")N||Q_(u);else if(N){var R=null;if(x&&x.hasAttribute("formAction")){if(v=x,N=x[Sn]||null)R=N.formAction;else if(Ov(v)!==null)continue}else R=N.action;typeof R=="function"?u[p+1]=R:(u.splice(p,3),p-=3),Q_(u)}}}function J_(){function i(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(N){return v=N})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,v=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function Tv(i){this._internalRoot=i}Od.prototype.render=Tv.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,p=In();H_(u,p,i,s,null,null)},Od.prototype.unmount=Tv.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;H_(i.current,2,null,i,null,null),ad(),s[ks]=null}};function Od(i){this._internalRoot=i}Od.prototype.unstable_scheduleHydration=function(i){if(i){var s=uA();i={blockedOn:null,target:i,priority:s};for(var u=0;u<ca.length&&s!==0&&s<ca[u].priority;u++);ca.splice(u,0,i),u===0&&W_(i)}};var eT=t.version;if(eT!=="19.2.7")throw Error(r(527,eT,"19.2.7"));H.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=h(s),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var e8={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_d.isDisabled&&_d.supportsFiber)try{Ml=_d.inject(e8),Rn=_d}catch{}}return Au.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,p="",v=o2,x=l2,N=u2;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError)),s=U_(i,1,!1,null,null,u,p,null,v,x,N,J_),i[ks]=s.current,lv(i),new Tv(s)},Au.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var p=!1,v="",x=o2,N=l2,R=u2,U=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(x=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.formState!==void 0&&(U=u.formState)),s=U_(i,1,!0,s,u??null,p,v,U,x,N,R,J_),s.context=V_(null),u=s.current,p=In(),p=vm(p),v=Xi(p),v.callback=null,Wi(u,v,p),u=p,s.current.lanes=u,Rl(s,u),Ir(s),i[ks]=s.current,lv(i),new Od(s)},Au.version="19.2.7",Au}var cT;function c8(){if(cT)return Cv.exports;cT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cv.exports=u8(),Cv.exports}var f8=c8();/**
* 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 oS=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Xk=/^[\\/]{2}/;function d8(e,t){return t+e.replace(/\\/g,"/")}var fT="popstate";function dT(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function h8(e={}){function t(r,a){var h;let o=(h=a.state)==null?void 0:h.masked,{pathname:l,search:c,hash:f}=o||r.location;return i1("",{pathname:l,search:c,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default",o?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:rc(a)}return m8(t,n,null,e)}function At(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function p8(){return Math.random().toString(36).substring(2,10)}function hT(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 i1(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ml(t):t,state:n,key:t&&t.key||r||p8(),mask:a}}function rc({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 ml(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 m8(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,c="POP",f=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function y(){c="POP";let b=m(),A=b==null?null:b-h;h=b,f&&f({action:c,location:w.location,delta:A})}function g(b,A){c="PUSH";let _=dT(b)?b:i1(w.location,b,A);h=m()+1;let T=hT(_,h),C=w.createHref(_.mask||_);try{l.pushState(T,"",C)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(C)}o&&f&&f({action:c,location:w.location,delta:1})}function j(b,A){c="REPLACE";let _=dT(b)?b:i1(w.location,b,A);h=m();let T=hT(_,h),C=w.createHref(_.mask||_);l.replaceState(T,"",C),o&&f&&f({action:c,location:w.location,delta:0})}function S(b){return y8(a,b)}let w={get action(){return c},get location(){return e(a,l)},listen(b){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(fT,y),f=b,()=>{a.removeEventListener(fT,y),f=null}},createHref(b){return t(a,b)},createURL:S,encodeLocation(b){let A=S(b);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:g,replace:j,go(b){return l.go(b)}};return w}function y8(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),At(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:rc(t);return a=a.replace(/ $/,"%20"),!n&&Xk.test(a)&&(a=r+a),new URL(a,r)}function Wk(e,t,n="/"){return v8(e,t,n,!1)}function v8(e,t,n,r,a){let o=typeof t=="string"?ml(t):t,l=Ci(o.pathname||"/",n);if(l==null)return null;let c=g8(e),f=null,h=N8(l);for(let m=0;f==null&&m<c.length;++m)f=E8(c[m],h,r);return f}function g8(e){let t=Zk(e);return x8(t),t}function Zk(e,t=[],n=[],r="",a=!1){let o=(l,c,f=a,h)=>{let m={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;At(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let y=Nr([r,m.relativePath]),g=n.concat(m);l.children&&l.children.length>0&&(At(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Zk(l.children,t,g,y,f)),!(l.path==null&&!l.index)&&t.push({path:y,score:_8(y,l.index),routesMeta:g.map((j,S)=>{let[w,b]=e3(j.relativePath,j.caseSensitive,S===g.length-1);return{...j,matcher:w,compiledParams:b}})})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))o(l,c);else for(let h of Qk(l.path))o(l,c,!0,h)}),t}function Qk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=Qk(r.join("/")),c=[];return c.push(...l.map(f=>f===""?o:[o,f].join("/"))),a&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function x8(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:T8(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var b8=/^:[\w-]+$/,j8=3,S8=2,w8=1,A8=10,O8=-2,pT=e=>e==="*";function _8(e,t){let n=e.split("/"),r=n.length;return n.some(pT)&&(r+=O8),t&&(r+=S8),n.filter(a=>!pT(a)).reduce((a,o)=>a+(b8.test(o)?j8:o===""?w8:A8),r)}function T8(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 E8(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],h=c===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",y={path:f.relativePath,caseSensitive:f.caseSensitive,end:h},g=f.matcher&&f.compiledParams?Jk(y,m,f.matcher,f.compiledParams):uh(y,m),j=f.route;if(!g&&h&&n&&!r[r.length-1].route.index&&(g=uh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!g)return null;Object.assign(a,g.params),l.push({params:a,pathname:Nr([o,g.pathname]),pathnameBase:P8(Nr([o,g.pathnameBase])),route:j}),g.pathnameBase!=="/"&&(o=Nr([o,g.pathnameBase]))}return l}function uh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=e3(e.path,e.caseSensitive,e.end);return Jk(e,t,n,r)}function Jk(e,t,n,r){let a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:y},g)=>{if(m==="*"){let S=c[g]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const j=c[g];return y&&!j?h[m]=void 0:h[m]=(j||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function e3(e,t=!1,n=!0){Pr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,f,h,m)=>{if(r.push({paramName:c,isOptional:f!=null}),f){let y=m.charAt(h+l.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 N8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pr(!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 Ci(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 C8(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ml(e):e,o;return n?(n=t3(n),n.startsWith("/")?o=mT(n.substring(1),"/"):o=mT(n,t)):o=t,{pathname:o,search:R8(r),hash:D8(a)}}function mT(e,t){let n=ch(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Dv(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 M8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lS(e){let t=M8(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=ml(e):(a={...e},At(!a.pathname||!a.pathname.includes("?"),Dv("?","pathname","search",a)),At(!a.pathname||!a.pathname.includes("#"),Dv("#","pathname","hash",a)),At(!a.search||!a.search.includes("#"),Dv("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,c;if(l==null)c=n;else{let y=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),y-=1;a.pathname=g.join("/")}c=y>=0?t[y]:"/"}let f=C8(a,c),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var t3=e=>e.replace(/[\\/]{2,}/g,"/"),Nr=e=>t3(e.join("/")),ch=e=>e.replace(/\/+$/,""),P8=e=>ch(e).replace(/^\/*/,"/"),R8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,D8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,k8=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 L8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function z8(e){let t=e.map(n=>n.route.path).filter(Boolean);return Nr(t)||"/"}var n3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function r3(e,t){let n=e;if(typeof n!="string"||!oS.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(n3)try{let o=new URL(window.location.href),l=Xk.test(n)?new URL(d8(n,o.protocol)):new URL(n),c=Ci(l.pathname,t);l.origin===o.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{Pr(!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 i3=["POST","PUT","PATCH","DELETE"];new Set(i3);var $8=["GET",...i3];new Set($8);var B8=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function q8(e){try{return B8.includes(new URL(e).protocol)}catch{return!1}}var yl=P.createContext(null);yl.displayName="DataRouter";var Op=P.createContext(null);Op.displayName="DataRouterState";var a3=P.createContext(!1);function I8(){return P.useContext(a3)}var s3=P.createContext({isTransitioning:!1});s3.displayName="ViewTransition";var U8=P.createContext(new Map);U8.displayName="Fetchers";var V8=P.createContext(null);V8.displayName="Await";var Wn=P.createContext(null);Wn.displayName="Navigation";var Hc=P.createContext(null);Hc.displayName="Location";var Dr=P.createContext({outlet:null,matches:[],isDataRoute:!1});Dr.displayName="Route";var uS=P.createContext(null);uS.displayName="RouteError";var o3="REACT_ROUTER_ERROR",H8="REDIRECT",F8="ROUTE_ERROR_RESPONSE";function G8(e){if(e.startsWith(`${o3}:${H8}:{`))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 K8(e){if(e.startsWith(`${o3}:${F8}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new k8(t.status,t.statusText,t.data)}catch{}}function Y8(e,{relative:t}={}){At(vl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=P.useContext(Wn),{hash:a,pathname:o,search:l}=Fc(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:Nr([n,o])),r.createHref({pathname:c,search:l,hash:a})}function vl(){return P.useContext(Hc)!=null}function kr(){return At(vl(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(Hc).location}var l3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function u3(e){P.useContext(Wn).static||P.useLayoutEffect(e)}function _p(){let{isDataRoute:e}=P.useContext(Dr);return e?uq():X8()}function X8(){At(vl(),"useNavigate() may be used only in the context of a <Router> component.");let e=P.useContext(yl),{basename:t,navigator:n}=P.useContext(Wn),{matches:r}=P.useContext(Dr),{pathname:a}=kr(),o=JSON.stringify(lS(r)),l=P.useRef(!1);return u3(()=>{l.current=!0}),P.useCallback((f,h={})=>{if(Pr(l.current,l3),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=Ap(f,JSON.parse(o),a,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Nr([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,a,e])}var W8=P.createContext(null);function Z8(e){let t=P.useContext(Dr).outlet;return P.useMemo(()=>t&&P.createElement(W8.Provider,{value:e},t),[t,e])}function Fc(e,{relative:t}={}){let{matches:n}=P.useContext(Dr),{pathname:r}=kr(),a=JSON.stringify(lS(n));return P.useMemo(()=>Ap(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Q8(e,t){return c3(e,t)}function c3(e,t,n){var b;At(vl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=P.useContext(Wn),{matches:a}=P.useContext(Dr),o=a[a.length-1],l=o?o.params:{},c=o?o.pathname:"/",f=o?o.pathnameBase:"/",h=o&&o.route;{let A=h&&h.path||"";d3(c,!h||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let m=kr(),y;if(t){let A=typeof t=="string"?ml(t):t;At(f==="/"||((b=A.pathname)==null?void 0:b.startsWith(f)),`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 "${f}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=m;let g=y.pathname||"/",j=g;if(f!=="/"){let A=f.replace(/^\//,"").split("/");j="/"+g.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=n&&n.state.matches.length?n.state.matches.map(A=>Object.assign(A,{route:n.manifest[A.route.id]||A.route})):Wk(e,{pathname:j});Pr(h||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Pr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 w=rq(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},l,A.params),pathname:Nr([f,r.encodeLocation?r.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?f:Nr([f,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),a,n);return t&&w?P.createElement(Hc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...y},navigationType:"POP"}},w):w}function J8(){let e=lq(),t=L8(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},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:o},"ErrorBoundary")," or"," ",P.createElement("code",{style:o},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:a},n):null,l)}var eq=P.createElement(J8,null),f3=class extends P.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=K8(e.digest);n&&(e=n)}let t=e!==void 0?P.createElement(Dr.Provider,{value:this.props.routeContext},P.createElement(uS.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?P.createElement(tq,{error:e},t):t}};f3.contextType=a3;var kv=new WeakMap;function tq({children:e,error:t}){let{basename:n}=P.useContext(Wn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=G8(t.digest);if(r){let a=kv.get(t);if(a)throw a;let o=r3(r.location,n),l=o.absoluteURL||o.to;if(q8(l))throw new Error("Invalid redirect location");if(n3&&!kv.get(t))if(o.isExternal||r.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw kv.set(t,c),c}return P.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function nq({routeContext:e,match:t,children:n}){let r=P.useContext(yl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Dr.Provider,{value:e},n)}function rq(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,o=r==null?void 0:r.errors;if(o!=null){let m=a.findIndex(y=>y.route.id&&(o==null?void 0:o[y.route.id])!==void 0);At(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let l=!1,c=-1;if(n&&r){l=r.renderFallback;for(let m=0;m<a.length;m++){let y=a[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(c=m),y.route.id){let{loaderData:g,errors:j}=r,S=y.route.loader&&!g.hasOwnProperty(y.route.id)&&(!j||j[y.route.id]===void 0);if(y.route.lazy||S){n.isStatic&&(l=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let f=n==null?void 0:n.onError,h=r&&f?(m,y)=>{var g,j;f(m,{location:r.location,params:((j=(g=r.matches)==null?void 0:g[0])==null?void 0:j.params)??{},pattern:z8(r.matches),errorInfo:y})}:void 0;return a.reduceRight((m,y,g)=>{let j,S=!1,w=null,b=null;r&&(j=o&&y.route.id?o[y.route.id]:void 0,w=y.route.errorElement||eq,l&&(c<0&&g===0?(d3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,b=null):c===g&&(S=!0,b=y.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,g+1)),_=()=>{let T;return j?T=w:S?T=b:y.route.Component?T=P.createElement(y.route.Component,null):y.route.element?T=y.route.element:T=m,P.createElement(nq,{match:y,routeContext:{outlet:m,matches:A,isDataRoute:r!=null},children:T})};return r&&(y.route.ErrorBoundary||y.route.errorElement||g===0)?P.createElement(f3,{location:r.location,revalidation:r.revalidation,component:w,error:j,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):_()},null)}function cS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function iq(e){let t=P.useContext(yl);return At(t,cS(e)),t}function aq(e){let t=P.useContext(Op);return At(t,cS(e)),t}function sq(e){let t=P.useContext(Dr);return At(t,cS(e)),t}function fS(e){let t=sq(e),n=t.matches[t.matches.length-1];return At(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function oq(){return fS("useRouteId")}function lq(){var r;let e=P.useContext(uS),t=aq("useRouteError"),n=fS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function uq(){let{router:e}=iq("useNavigate"),t=fS("useNavigate"),n=P.useRef(!1);return u3(()=>{n.current=!0}),P.useCallback(async(a,o={})=>{Pr(n.current,l3),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var yT={};function d3(e,t,n){!t&&!yT[e]&&(yT[e]=!0,Pr(!1,n))}P.memo(cq);function cq({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return c3(e,void 0,{manifest:t,state:r,isStatic:a,onError:o})}function dS({to:e,replace:t,state:n,relative:r}){At(vl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=P.useContext(Wn);Pr(!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:o}=P.useContext(Dr),{pathname:l}=kr(),c=_p(),f=Ap(e,lS(o),l,r==="path"),h=JSON.stringify(f);return P.useEffect(()=>{c(JSON.parse(h),{replace:t,state:n,relative:r})},[c,h,r,t,n]),null}function fq(e){return Z8(e.context)}function hn(e){At(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function dq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,useTransitions:l}){At(!vl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=P.useMemo(()=>({basename:c,navigator:a,static:o,useTransitions:l,future:{}}),[c,a,o,l]);typeof n=="string"&&(n=ml(n));let{pathname:h="/",search:m="",hash:y="",state:g=null,key:j="default",mask:S}=n,w=P.useMemo(()=>{let b=Ci(h,c);return b==null?null:{location:{pathname:b,search:m,hash:y,state:g,key:j,mask:S},navigationType:r}},[c,h,m,y,g,j,r,S]);return Pr(w!=null,`<Router basename="${c}"> is not able to match the URL "${h}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:P.createElement(Wn.Provider,{value:f},P.createElement(Hc.Provider,{children:t,value:w}))}function hq({children:e,location:t}){return Q8(a1(e),t)}function a1(e,t=[]){let n=[];return P.Children.forEach(e,(r,a)=>{if(!P.isValidElement(r))return;let o=[...t,a];if(r.type===P.Fragment){n.push.apply(n,a1(r.props.children,o));return}At(r.type===hn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),At(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=a1(r.props.children,o)),n.push(l)}),n}var Xd="get",Wd="application/x-www-form-urlencoded";function Tp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function pq(e){return Tp(e)&&e.tagName.toLowerCase()==="button"}function mq(e){return Tp(e)&&e.tagName.toLowerCase()==="form"}function yq(e){return Tp(e)&&e.tagName.toLowerCase()==="input"}function vq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gq(e,t){return e.button===0&&(!t||t==="_self")&&!vq(e)}var Ed=null;function xq(){if(Ed===null)try{new FormData(document.createElement("form"),0),Ed=!1}catch{Ed=!0}return Ed}var bq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lv(e){return e!=null&&!bq.has(e)?(Pr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wd}"`),null):e}function jq(e,t){let n,r,a,o,l;if(mq(e)){let c=e.getAttribute("action");r=c?Ci(c,t):null,n=e.getAttribute("method")||Xd,a=Lv(e.getAttribute("enctype"))||Wd,o=new FormData(e)}else if(pq(e)||yq(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?Ci(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Xd,a=Lv(e.getAttribute("formenctype"))||Lv(c.getAttribute("enctype"))||Wd,o=new FormData(c,e),!xq()){let{name:h,type:m,value:y}=e;if(m==="image"){let g=h?`${h}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else h&&o.append(h,y)}}else{if(Tp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xd,r=null,a=Wd,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function hS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function h3(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&&Ci(a.pathname,t)==="/"?a.pathname=`${ch(t)}/_root.${r}`:a.pathname=`${ch(a.pathname)}.${r}`,a}async function Sq(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 wq(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 Aq(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await Sq(o,n);return l.links?l.links():[]}return[]}));return Eq(r.flat(1).filter(wq).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function vT(e,t,n,r,a,o){let l=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,c=(f,h)=>{var m;return n[h].pathname!==f.pathname||((m=n[h].route.path)==null?void 0:m.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,h)=>l(f,h)||c(f,h)):o==="data"?t.filter((f,h)=>{var y;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,h)||c(f,h))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((y=n[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function Oq(e,t,{includeHydrateFallback:n}={}){return _q(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function _q(e){return[...new Set(e)]}function Tq(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Eq(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(Tq(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function pS(){let e=P.useContext(yl);return hS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Nq(){let e=P.useContext(Op);return hS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mS=P.createContext(void 0);mS.displayName="FrameworkContext";function Ep(){let e=P.useContext(mS);return hS(e,"You must render this element inside a <HydratedRouter> element"),e}function Cq(e,t){let n=P.useContext(mS),[r,a]=P.useState(!1),[o,l]=P.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:y}=t,g=P.useRef(null);P.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let w=A=>{A.forEach(_=>{l(_.isIntersecting)})},b=new IntersectionObserver(w,{threshold:.5});return g.current&&b.observe(g.current),()=>{b.disconnect()}}},[e]),P.useEffect(()=>{if(r){let w=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(w)}}},[r]);let j=()=>{a(!0)},S=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Ou(c,j),onBlur:Ou(f,S),onMouseEnter:Ou(h,j),onMouseLeave:Ou(m,S),onTouchStart:Ou(y,j)}]:[!1,g,{}]}function Ou(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Mq({page:e,...t}){let n=I8(),{nonce:r}=Ep(),{router:a}=pS(),o=P.useMemo(()=>Wk(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?(t.nonce==null&&r&&(t={...t,nonce:r}),n?P.createElement(Rq,{page:e,matches:o,...t}):P.createElement(Dq,{page:e,matches:o,...t})):null}function Pq(e){let{manifest:t,routeModules:n}=Ep(),[r,a]=P.useState([]);return P.useEffect(()=>{let o=!1;return Aq(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function Rq({page:e,matches:t,...n}){let r=kr(),{future:a}=Ep(),{basename:o}=pS(),l=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let c=h3(e,o,a.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,h=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?f=!0:h.push(m.route.id);return f&&h.length>0&&c.searchParams.set("_routes",h.join(",")),[c.pathname+c.search]},[o,a.v8_trailingSlashAwareDataRequests,e,r,t]);return P.createElement(P.Fragment,null,l.map(c=>P.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function Dq({page:e,matches:t,...n}){let r=kr(),{future:a,manifest:o,routeModules:l}=Ep(),{basename:c}=pS(),{loaderData:f,matches:h}=Nq(),m=P.useMemo(()=>vT(e,t,h,o,r,"data"),[e,t,h,o,r]),y=P.useMemo(()=>vT(e,t,h,o,r,"assets"),[e,t,h,o,r]),g=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,b=!1;if(t.forEach(_=>{var C;let T=o.routes[_.route.id];!T||!T.hasLoader||(!m.some(O=>O.route.id===_.route.id)&&_.route.id in f&&((C=l[_.route.id])!=null&&C.shouldRevalidate)||T.hasClientLoader?b=!0:w.add(_.route.id))}),w.size===0)return[];let A=h3(e,c,a.v8_trailingSlashAwareDataRequests,"data");return b&&w.size>0&&A.searchParams.set("_routes",t.filter(_=>w.has(_.route.id)).map(_=>_.route.id).join(",")),[A.pathname+A.search]},[c,a.v8_trailingSlashAwareDataRequests,f,r,o,m,t,e,l]),j=P.useMemo(()=>Oq(y,o),[y,o]),S=Pq(y);return P.createElement(P.Fragment,null,g.map(w=>P.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),j.map(w=>P.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),S.map(({key:w,link:b})=>P.createElement("link",{key:w,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function kq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Lq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lq&&(window.__reactRouterVersion="7.18.1")}catch{}function zq({basename:e,children:t,useTransitions:n,window:r}){let a=P.useRef();a.current==null&&(a.current=h8({window:r,v5Compat:!0}));let o=a.current,[l,c]=P.useState({action:o.action,location:o.location}),f=P.useCallback(h=>{n===!1?c(h):P.startTransition(()=>c(h))},[n]);return P.useLayoutEffect(()=>o.listen(f),[o,f]),P.createElement(dq,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,useTransitions:n})}var p3=P.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,mask:c,state:f,target:h,to:m,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:j,...S},w){let{basename:b,navigator:A,useTransitions:_}=P.useContext(Wn),T=typeof m=="string"&&oS.test(m),C=r3(m,b);m=C.to;let O=Y8(m,{relative:a}),E=kr(),M=null;if(c){let Y=Ap(c,[],E.mask?E.mask.pathname:"/",!0);b!=="/"&&(Y.pathname=Y.pathname==="/"?b:Nr([b,Y.pathname])),M=A.createHref(Y)}let[k,D,B]=Cq(r,S),I=qq(m,{replace:l,mask:c,state:f,target:h,preventScrollReset:y,relative:a,viewTransition:g,defaultShouldRevalidate:j,useTransitions:_});function $(Y){t&&t(Y),Y.defaultPrevented||I(Y)}let G=!(C.isExternal||o),X=P.createElement("a",{...S,...B,href:(G?M:void 0)||C.absoluteURL||O,onClick:G?$:t,ref:kq(w,D),target:h,"data-discover":!T&&n==="render"?"true":void 0});return k&&!T?P.createElement(P.Fragment,null,X,P.createElement(Mq,{page:O})):X});p3.displayName="Link";var m3=P.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:c,children:f,...h},m){let y=Fc(l,{relative:h.relative}),g=kr(),j=P.useContext(Op),{navigator:S,basename:w}=P.useContext(Wn),b=j!=null&&Fq(y)&&c===!0,A=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,_=g.pathname,T=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;n||(_=_.toLowerCase(),T=T?T.toLowerCase():null,A=A.toLowerCase()),T&&w&&(T=Ci(T,w)||T);const C=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let O=_===A||!a&&_.startsWith(A)&&_.charAt(C)==="/",E=T!=null&&(T===A||!a&&T.startsWith(A)&&T.charAt(A.length)==="/"),M={isActive:O,isPending:E,isTransitioning:b},k=O?t:void 0,D;typeof r=="function"?D=r(M):D=[r,O?"active":null,E?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let B=typeof o=="function"?o(M):o;return P.createElement(p3,{...h,"aria-current":k,className:D,ref:m,style:B,to:l,viewTransition:c},typeof f=="function"?f(M):f)});m3.displayName="NavLink";var $q=P.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=Xd,action:c,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:g,...j},S)=>{let{useTransitions:w}=P.useContext(Wn),b=Vq(),A=Hq(c,{relative:h}),_=l.toLowerCase()==="get"?"get":"post",T=typeof c=="string"&&oS.test(c),C=O=>{if(f&&f(O),O.defaultPrevented)return;O.preventDefault();let E=O.nativeEvent.submitter,M=(E==null?void 0:E.getAttribute("formmethod"))||l,k=()=>b(E||O.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:o,relative:h,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:g});w&&n!==!1?P.startTransition(()=>k()):k()};return P.createElement("form",{ref:S,method:_,action:A,onSubmit:r?f:C,...j,"data-discover":!T&&e==="render"?"true":void 0})});$q.displayName="Form";function Bq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function y3(e){let t=P.useContext(yl);return At(t,Bq(e)),t}function qq(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:o,relative:l,viewTransition:c,defaultShouldRevalidate:f,useTransitions:h}={}){let m=_p(),y=kr(),g=Fc(e,{relative:l});return P.useCallback(j=>{if(gq(j,t)){j.preventDefault();let S=n!==void 0?n:rc(y)===rc(g),w=()=>m(e,{replace:S,mask:r,state:a,preventScrollReset:o,relative:l,viewTransition:c,defaultShouldRevalidate:f});h?P.startTransition(()=>w()):w()}},[y,m,g,n,r,a,t,e,o,l,c,f,h])}var Iq=0,Uq=()=>`__${String(++Iq)}__`;function Vq(){let{router:e}=y3("useSubmit"),{basename:t}=P.useContext(Wn),n=oq(),r=e.fetch,a=e.navigate;return P.useCallback(async(o,l={})=>{let{action:c,method:f,encType:h,formData:m,body:y}=jq(o,t);if(l.navigate===!1){let g=l.fetcherKey||Uq();await r(g,n,l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||f,formEncType:l.encType||h,flushSync:l.flushSync})}else await a(l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||f,formEncType:l.encType||h,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function Hq(e,{relative:t}={}){let{basename:n}=P.useContext(Wn),r=P.useContext(Dr);At(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Fc(e||".",{relative:t})},l=kr();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(y=>y).forEach(y=>c.append("index",y));let m=c.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Nr([n,o.pathname])),rc(o)}function Fq(e,{relative:t}={}){let n=P.useContext(s3);At(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=y3("useViewTransitionState"),a=Fc(e,{relative:t});if(!n.isTransitioning)return!1;let o=Ci(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ci(n.nextLocation.pathname,r)||n.nextLocation.pathname;return uh(a.pathname,l)!=null||uh(a.pathname,o)!=null}const gT=e=>{let t;const n=new Set,r=(h,m)=>{const y=typeof h=="function"?h(t):h;if(!Object.is(y,t)){const g=t;t=m??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(j=>j(t,g))}},a=()=>t,c={setState:r,getState:a,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(r,a,c);return c},Gq=(e=>e?gT(e):gT),Kq=e=>e;function Yq(e,t=Kq){const n=q.useSyncExternalStore(e.subscribe,q.useCallback(()=>t(e.getState()),[e,t]),q.useCallback(()=>t(e.getInitialState()),[e,t]));return q.useDebugValue(n),n}const xT=e=>{const t=Gq(e),n=r=>Yq(t,r);return Object.assign(n,t),n},v3=(e=>e?xT(e):xT);function Xq(e,t){let n;try{n=e()}catch{return}return{getItem:a=>{var o;const l=f=>f===null?null:JSON.parse(f,void 0),c=(o=n.getItem(a))!=null?o:null;return c instanceof Promise?c.then(l):l(c)},setItem:(a,o)=>n.setItem(a,JSON.stringify(o,void 0)),removeItem:a=>n.removeItem(a)}}const s1=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return s1(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return s1(r)(n)}}}},Wq=(e,t)=>(n,r,a)=>{let o={storage:Xq(()=>window.localStorage),partialize:b=>b,version:0,merge:(b,A)=>({...A,...b}),...t},l=!1,c=0;const f=new Set,h=new Set;let m=o.storage;if(!m)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...b)},r,a);const y=()=>{const b=o.partialize({...r()});return m.setItem(o.name,{state:b,version:o.version})},g=a.setState;a.setState=(b,A)=>(g(b,A),y());const j=e((...b)=>(n(...b),y()),r,a);a.getInitialState=()=>j;let S;const w=()=>{var b,A;if(!m)return;const _=++c;l=!1,f.forEach(C=>{var O;return C((O=r())!=null?O:j)});const T=((A=o.onRehydrateStorage)==null?void 0:A.call(o,(b=r())!=null?b:j))||void 0;return s1(m.getItem.bind(m))(o.name).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==o.version){if(o.migrate){const O=o.migrate(C.state,C.version);return O instanceof Promise?O.then(E=>[!0,E]):[!0,O]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then(C=>{var O;if(_!==c)return;const[E,M]=C;if(S=o.merge(M,(O=r())!=null?O:j),n(S,!0),E)return y()}).then(()=>{_===c&&(T==null||T(r(),void 0),S=r(),l=!0,h.forEach(C=>C(S)))}).catch(C=>{_===c&&(T==null||T(void 0,C))})};return a.persist={setOptions:b=>{o={...o,...b},b.storage&&(m=b.storage)},clearStorage:()=>{m==null||m.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>w(),hasHydrated:()=>l,onHydrate:b=>(f.add(b),()=>{f.delete(b)}),onFinishHydration:b=>(h.add(b),()=>{h.delete(b)})},o.skipHydration||w(),S||j},Zq=Wq,Gc=v3()(Zq(e=>({token:null,user:null,isAuthenticated:!1,isLoading:!1,login:(t,n)=>{localStorage.setItem("amos_token",t),e({token:t,user:n,isAuthenticated:!0})},logout:()=>{localStorage.removeItem("amos_token"),e({token:null,user:null,isAuthenticated:!1})},setUser:t=>e({user:t})}),{name:"amos-auth",partialize:e=>({token:e.token,user:e.user,isAuthenticated:e.isAuthenticated})})),yS=P.createContext({});function vS(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qq=typeof window<"u",gS=Qq?P.useLayoutEffect:P.useEffect,Np=P.createContext(null);function xS(e,t){e.indexOf(t)===-1&&e.push(t)}function fh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Zr=(e,t,n)=>n>t?t:n<e?e:n;let bS=()=>{};const wa={},g3=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),x3=e=>typeof e=="object"&&e!==null,b3=e=>/^0[^.\s]+$/u.test(e);function j3(e){let t;return()=>(t===void 0&&(t=e()),t)}const pr=e=>e,Kc=(...e)=>e.reduce((t,n)=>r=>n(t(r))),ic=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class jS{constructor(){this.subscriptions=[]}add(t){return xS(this.subscriptions,t),()=>fh(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let o=0;o<a;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Kn=e=>e*1e3,dr=e=>e/1e3,S3=(e,t)=>t?e*(1e3/t):0,w3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Jq=1e-7,eI=12;function tI(e,t,n,r,a){let o,l,c=0;do l=t+(n-t)/2,o=w3(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>Jq&&++c<eI);return l}function Yc(e,t,n,r){if(e===t&&n===r)return pr;const a=o=>tI(o,0,1,e,n);return o=>o===0||o===1?o:w3(a(o),t,r)}const A3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,O3=e=>t=>1-e(1-t),_3=Yc(.33,1.53,.69,.99),SS=O3(_3),T3=A3(SS),E3=e=>e>=1?1:(e*=2)<1?.5*SS(e):.5*(2-Math.pow(2,-10*(e-1))),wS=e=>1-Math.sin(Math.acos(e)),N3=O3(wS),C3=A3(wS),nI=Yc(.42,0,1,1),rI=Yc(0,0,.58,1),M3=Yc(.42,0,.58,1),iI=e=>Array.isArray(e)&&typeof e[0]!="number",P3=e=>Array.isArray(e)&&typeof e[0]=="number",aI={linear:pr,easeIn:nI,easeInOut:M3,easeOut:rI,circIn:wS,circInOut:C3,circOut:N3,backIn:SS,backInOut:T3,backOut:_3,anticipate:E3},sI=e=>typeof e=="string",bT=e=>{if(P3(e)){bS(e.length===4);const[t,n,r,a]=e;return Yc(t,n,r,a)}else if(sI(e))return aI[e];return e},Nd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oI(e){let t=new Set,n=new Set,r=!1,a=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(h){o.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,m=!1,y=!1)=>{const j=y&&r?t:n;return m&&o.add(h),j.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,r){a=!0;return}r=!0;const m=t;t=n,n=m,t.forEach(c),t.clear(),r=!1,a&&(a=!1,f.process(h))}};return f}const lI=40;function R3(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Nd.reduce((T,C)=>(T[C]=oI(o),T),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:m,update:y,preRender:g,render:j,postRender:S}=l,w=()=>{const T=wa.useManualTiming,C=T?a.timestamp:performance.now();n=!1,T||(a.delta=r?1e3/60:Math.max(Math.min(C-a.timestamp,lI),1)),a.timestamp=C,a.isProcessing=!0,c.process(a),f.process(a),h.process(a),m.process(a),y.process(a),g.process(a),j.process(a),S.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(w))},b=()=>{n=!0,r=!0,a.isProcessing||e(w)};return{schedule:Nd.reduce((T,C)=>{const O=l[C];return T[C]=(E,M=!1,k=!1)=>(n||b(),O.schedule(E,M,k)),T},{}),cancel:T=>{for(let C=0;C<Nd.length;C++)l[Nd[C]].cancel(T)},state:a,steps:l}}const{schedule:ft,cancel:Aa,state:ln,steps:zv}=R3(typeof requestAnimationFrame<"u"?requestAnimationFrame:pr,!0);let Zd;function uI(){Zd=void 0}const vn={now:()=>(Zd===void 0&&vn.set(ln.isProcessing||wa.useManualTiming?ln.timestamp:performance.now()),Zd),set:e=>{Zd=e,queueMicrotask(uI)}},D3=e=>t=>typeof t=="string"&&t.startsWith(e),k3=D3("--"),cI=D3("var(--"),AS=e=>cI(e)?fI.test(e.split("/*")[0].trim()):!1,fI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function jT(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const gl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ac={...gl,transform:e=>Zr(0,1,e)},Cd={...gl,default:1},Hu=e=>Math.round(e*1e5)/1e5,OS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dI(e){return e==null}const hI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_S=(e,t)=>n=>!!(typeof n=="string"&&hI.test(n)&&n.startsWith(e)||t&&!dI(n)&&Object.prototype.hasOwnProperty.call(n,t)),L3=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,c]=r.match(OS);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},pI=e=>Zr(0,255,e),$v={...gl,transform:e=>Math.round(pI(e))},ls={test:_S("rgb","red"),parse:L3("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$v.transform(e)+", "+$v.transform(t)+", "+$v.transform(n)+", "+Hu(ac.transform(r))+")"};function mI(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const o1={test:_S("#"),parse:mI,transform:ls.transform},Xc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wi=Xc("deg"),Gr=Xc("%"),ge=Xc("px"),yI=Xc("vh"),vI=Xc("vw"),ST={...Gr,parse:e=>Gr.parse(e)/100,transform:e=>Gr.transform(e*100)},_o={test:_S("hsl","hue"),parse:L3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gr.transform(Hu(t))+", "+Gr.transform(Hu(n))+", "+Hu(ac.transform(r))+")"},Bt={test:e=>ls.test(e)||o1.test(e)||_o.test(e),parse:e=>ls.test(e)?ls.parse(e):_o.test(e)?_o.parse(e):o1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ls.transform(e):_o.transform(e),getAnimatableNone:e=>{const t=Bt.parse(e);return t.alpha=0,Bt.transform(t)}},gI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(OS))==null?void 0:t.length)||0)+(((n=e.match(gI))==null?void 0:n.length)||0)>0}const z3="number",$3="color",bI="var",jI="var(",wT="${}",SI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const c=t.replace(SI,f=>(Bt.test(f)?(r.color.push(o),a.push($3),n.push(Bt.parse(f))):f.startsWith(jI)?(r.var.push(o),a.push(bI),n.push(f)):(r.number.push(o),a.push(z3),n.push(parseFloat(f))),++o,wT)).split(wT);return{values:n,split:c,indexes:r,types:a}}function wI(e){return qo(e).values}function B3({split:e,types:t}){const n=e.length;return r=>{let a="";for(let o=0;o<n;o++)if(a+=e[o],r[o]!==void 0){const l=t[o];l===z3?a+=Hu(r[o]):l===$3?a+=Bt.transform(r[o]):a+=r[o]}return a}}function AI(e){return B3(qo(e))}const OI=e=>typeof e=="number"?0:Bt.test(e)?Bt.getAnimatableNone(e):e,_I=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:OI(e);function TI(e){const t=qo(e);return B3(t)(t.values.map((r,a)=>_I(r,t.split[a])))}const Cr={test:xI,parse:wI,createTransformer:AI,getAnimatableNone:TI};function Bv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function EI({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,o=0,l=0;if(!t)a=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;a=Bv(f,c,e+1/3),o=Bv(f,c,e),l=Bv(f,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function dh(e,t){return n=>n>0?t:e}const ct=(e,t,n)=>e+(t-e)*n,qv=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},NI=[o1,ls,_o],CI=e=>NI.find(t=>t.test(e));function AT(e){const t=CI(e);if(!t)return!1;let n=t.parse(e);return t===_o&&(n=EI(n)),n}const OT=(e,t)=>{const n=AT(e),r=AT(t);if(!n||!r)return dh(e,t);const a={...n};return o=>(a.red=qv(n.red,r.red,o),a.green=qv(n.green,r.green,o),a.blue=qv(n.blue,r.blue,o),a.alpha=ct(n.alpha,r.alpha,o),ls.transform(a))},l1=new Set(["none","hidden"]);function MI(e,t){return l1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function PI(e,t){return n=>ct(e,t,n)}function TS(e){return typeof e=="number"?PI:typeof e=="string"?AS(e)?dh:Bt.test(e)?OT:kI:Array.isArray(e)?q3:typeof e=="object"?Bt.test(e)?OT:RI:dh}function q3(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>TS(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function RI(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=TS(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function DI(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],l=e.indexes[o][r[o]],c=e.values[l]??0;n[a]=c,r[o]++}return n}const kI=(e,t)=>{const n=Cr.createTransformer(t),r=qo(e),a=qo(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?l1.has(e)&&!a.values.length||l1.has(t)&&!r.values.length?MI(e,t):Kc(q3(DI(r,a),a.values),n):dh(e,t)};function I3(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):TS(e)(e,t)}const LI=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ft.update(t,n),stop:()=>Aa(t),now:()=>ln.isProcessing?ln.timestamp:vn.now()}},U3=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)r+=Math.round(e(o/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},hh=2e4;function ES(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hh;)t+=n,r=e.next(t);return t>=hh?1/0:t}function zI(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(ES(r),hh);return{type:"keyframes",ease:o=>r.next(a*o).value/t,duration:dr(a)}}const Nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function u1(e,t){return e*Math.sqrt(1-t*t)}const $I=12;function BI(e,t,n){let r=n;for(let a=1;a<$I;a++)r=r-e(r)/t(r);return r}const Iv=.001;function qI({duration:e=Nt.duration,bounce:t=Nt.bounce,velocity:n=Nt.velocity,mass:r=Nt.mass}){let a,o,l=1-t;l=Zr(Nt.minDamping,Nt.maxDamping,l),e=Zr(Nt.minDuration,Nt.maxDuration,dr(e)),l<1?(a=h=>{const m=h*l,y=m*e,g=m-n,j=u1(h,l),S=Math.exp(-y);return Iv-g/j*S},o=h=>{const y=h*l*e,g=y*n+n,j=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-y),w=u1(Math.pow(h,2),l);return(-a(h)+Iv>0?-1:1)*((g-j)*S)/w}):(a=h=>{const m=Math.exp(-h*e),y=(h-n)*e+1;return-Iv+m*y},o=h=>{const m=Math.exp(-h*e),y=(n-h)*(e*e);return m*y});const c=5/e,f=BI(a,o,c);if(e=Kn(e),isNaN(f))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const II=["duration","bounce"],UI=["stiffness","damping","mass"];function _T(e,t){return t.some(n=>e[n]!==void 0)}function VI(e){let t={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...e};if(!_T(e,UI)&&_T(e,II))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*Zr(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Nt.mass,stiffness:a,damping:o}}else{const n=qI({...e,velocity:0});t={...t,...n,mass:Nt.mass},t.isResolvedFromDuration=!0}return t}function ph(e=Nt.visualDuration,t=Nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:y,velocity:g,isResolvedFromDuration:j}=VI({...n,velocity:-dr(n.velocity||0)}),S=g||0,w=h/(2*Math.sqrt(f*m)),b=l-o,A=dr(Math.sqrt(f/m)),_=Math.abs(b)<5;r||(r=_?Nt.restSpeed.granular:Nt.restSpeed.default),a||(a=_?Nt.restDelta.granular:Nt.restDelta.default);let T,C,O,E,M,k;if(w<1)O=u1(A,w),E=(S+w*A*b)/O,T=B=>{const I=Math.exp(-w*A*B);return l-I*(E*Math.sin(O*B)+b*Math.cos(O*B))},M=w*A*E+b*O,k=w*A*b-E*O,C=B=>Math.exp(-w*A*B)*(M*Math.sin(O*B)+k*Math.cos(O*B));else if(w===1){T=I=>l-Math.exp(-A*I)*(b+(S+A*b)*I);const B=S+A*b;C=I=>Math.exp(-A*I)*(A*B*I-S)}else{const B=A*Math.sqrt(w*w-1);T=X=>{const Y=Math.exp(-w*A*X),L=Math.min(B*X,300);return l-Y*((S+w*A*b)*Math.sinh(L)+B*b*Math.cosh(L))/B};const I=(S+w*A*b)/B,$=w*A*I-b*B,G=w*A*b-I*B;C=X=>{const Y=Math.exp(-w*A*X),L=Math.min(B*X,300);return Y*($*Math.sinh(L)+G*Math.cosh(L))}}const D={calculatedDuration:j&&y||null,velocity:B=>Kn(C(B)),next:B=>{if(!j&&w<1){const $=Math.exp(-w*A*B),G=Math.sin(O*B),X=Math.cos(O*B),Y=l-$*(E*G+b*X),L=Kn($*(M*G+k*X));return c.done=Math.abs(L)<=r&&Math.abs(l-Y)<=a,c.value=c.done?l:Y,c}const I=T(B);if(j)c.done=B>=y;else{const $=Kn(C(B));c.done=Math.abs($)<=r&&Math.abs(l-I)<=a}return c.value=c.done?l:I,c},toString:()=>{const B=Math.min(ES(D),hh),I=U3($=>D.next(B*$).value,B,30);return B+"ms "+I},toTransition:()=>{}};return D}ph.applyToOptions=e=>{const t=zI(e,100,ph);return e.ease=t.ease,e.duration=Kn(t.duration),e.type="keyframes",e};const HI=5;function V3(e,t,n){const r=Math.max(t-HI,0);return S3(n-e(r),t-r)}function c1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:l,min:c,max:f,restDelta:h=.5,restSpeed:m}){const y=e[0],g={done:!1,value:y},j=k=>c!==void 0&&k<c||f!==void 0&&k>f,S=k=>c===void 0?f:f===void 0||Math.abs(c-k)<Math.abs(f-k)?c:f;let w=n*t;const b=y+w,A=l===void 0?b:l(b);A!==b&&(w=A-y);const _=k=>-w*Math.exp(-k/r),T=k=>A+_(k),C=k=>{const D=_(k),B=T(k);g.done=Math.abs(D)<=h,g.value=g.done?A:B};let O,E;const M=k=>{j(g.value)&&(O=k,E=ph({keyframes:[g.value,S(g.value)],velocity:V3(T,k,g.value),damping:a,stiffness:o,restDelta:h,restSpeed:m}))};return M(0),{calculatedDuration:null,next:k=>{let D=!1;return!E&&O===void 0&&(D=!0,C(k),M(k)),O!==void 0&&k>=O?E.next(k-O):(!D&&C(k),g)}}}function FI(e,t,n){const r=[],a=n||wa.mix||I3,o=e.length-1;for(let l=0;l<o;l++){let c=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||pr:t;c=Kc(f,c)}r.push(c)}return r}function GI(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(bS(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=FI(t,r,a),f=c.length,h=m=>{if(l&&m<e[0])return t[0];let y=0;if(f>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const g=ic(e[y],e[y+1],m);return c[y](g)};return n?m=>h(Zr(e[0],e[o-1],m)):h}function KI(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=ic(0,t,r);e.push(ct(n,1,a))}}function YI(e){const t=[0];return KI(t,e.length-1),t}function XI(e,t){return e.map(n=>n*t)}function WI(e,t){return e.map(()=>t||M3).splice(0,e.length-1)}function Fu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=iI(r)?r.map(bT):bT(r),o={done:!1,value:t[0]},l=XI(n&&n.length===t.length?n:YI(t),e),c=GI(l,t,{ease:Array.isArray(a)?a:WI(t,a)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const ZI=e=>e!==null;function Cp(e,{repeat:t,repeatType:n="loop"},r,a=1){const o=e.filter(ZI),c=a<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||r===void 0?o[c]:r}const QI={decay:c1,inertia:c1,tween:Fu,keyframes:Fu,spring:ph};function H3(e){typeof e.type=="string"&&(e.type=QI[e.type])}class NS{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const JI=e=>e/100;class mh extends NS{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==vn.now()&&this.tick(vn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;H3(t);const{type:n=Fu,repeat:r=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=t;let{keyframes:c}=t;const f=n||Fu;f!==Fu&&typeof c[0]!="number"&&(this.mixKeyframes=Kc(JI,I3(c[0],c[1])),c=[0,100]);const h=f({...t,keyframes:c});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=ES(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:o,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:m,repeat:y,repeatType:g,repeatDelay:j,type:S,onUpdate:w,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const A=this.currentTime-h*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?A<0:A>a;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let T=this.currentTime,C=r;if(y){const k=Math.min(this.currentTime,a)/c;let D=Math.floor(k),B=k%1;!B&&k>=1&&(B=1),B===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(g==="reverse"?(B=1-B,j&&(B-=j/c)):g==="mirror"&&(C=l)),T=Zr(0,1,B)*c}let O;_?(this.delayState.value=m[0],O=this.delayState):O=C.next(T),o&&!_&&(O.value=o(O.value));let{done:E}=O;!_&&f!==null&&(E=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&S!==c1&&(O.value=Cp(m,this.options,b,this.speed)),w&&w(O.value),M&&this.finish(),O}then(t,n){return this.finished.then(t,n)}get duration(){return dr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+dr(t)}get time(){return dr(this.currentTime)}set time(t){t=Kn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return V3(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(vn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=dr(this.currentTime))}play(){var a,o;if(this.isStopped)return;const{driver:t=LI,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(o=(a=this.options).onPlay)==null||o.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(vn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function eU(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const us=e=>e*180/Math.PI,f1=e=>{const t=us(Math.atan2(e[1],e[0]));return d1(t)},tU={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:f1,rotateZ:f1,skewX:e=>us(Math.atan(e[1])),skewY:e=>us(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},d1=e=>(e=e%360,e<0&&(e+=360),e),TT=f1,ET=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),NT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),nU={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ET,scaleY:NT,scale:e=>(ET(e)+NT(e))/2,rotateX:e=>d1(us(Math.atan2(e[6],e[5]))),rotateY:e=>d1(us(Math.atan2(-e[2],e[0]))),rotateZ:TT,rotate:TT,skewX:e=>us(Math.atan(e[4])),skewY:e=>us(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function h1(e){return e.includes("scale")?1:0}function p1(e,t){if(!e||e==="none")return h1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=nU,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=tU,a=c}if(!a)return h1(t);const o=r[t],l=a[1].split(",").map(iU);return typeof o=="function"?o(l):l[o]}const rU=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return p1(n,t)};function iU(e){return parseFloat(e.trim())}const xl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bl=new Set([...xl,"pathRotation"]),CT=e=>e===gl||e===ge,aU=new Set(["x","y","z"]),sU=xl.filter(e=>!aU.has(e));function oU(e){const t=[];return sU.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ga={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>p1(t,"x"),y:(e,{transform:t})=>p1(t,"y")};ga.translateX=ga.x;ga.translateY=ga.y;const ys=new Set;let m1=!1,y1=!1,v1=!1;function F3(){if(y1){const e=Array.from(ys).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=oU(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([o,l])=>{var c;(c=r.getValue(o))==null||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}y1=!1,m1=!1,ys.forEach(e=>e.complete(v1)),ys.clear()}function G3(){ys.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(y1=!0)})}function lU(){v1=!0,G3(),F3(),v1=!1}class CS{constructor(t,n,r,a,o,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=o,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(ys.add(this),m1||(m1=!0,ft.read(G3),ft.resolveKeyframes(F3))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const o=a==null?void 0:a.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),a&&o===void 0&&a.set(t[0])}eU(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ys.delete(this)}cancel(){this.state==="scheduled"&&(ys.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const uU=e=>e.startsWith("--");function K3(e,t,n){uU(t)?e.style.setProperty(t,n):e.style[t]=n}const cU={};function Y3(e,t){const n=j3(e);return()=>cU[t]??n()}const fU=Y3(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),X3=Y3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,MT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qu([0,.65,.55,1]),circOut:qu([.55,0,1,.45]),backIn:qu([.31,.01,.66,-.59]),backOut:qu([.33,1.53,.69,.99])};function W3(e,t){if(e)return typeof e=="function"?X3()?U3(e,t):"ease-out":P3(e)?qu(e):Array.isArray(e)?e.map(n=>W3(n,t)||MT.easeOut):MT[e]}function dU(e,t,n,{delay:r=0,duration:a=300,repeat:o=0,repeatType:l="loop",ease:c="easeOut",times:f}={},h=void 0){const m={[t]:n};f&&(m.offset=f);const y=W3(c,a);Array.isArray(y)&&(m.easing=y);const g={delay:r,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"};return h&&(g.pseudoElement=h),e.animate(m,g)}function Z3(e){return typeof e=="function"&&"applyToOptions"in e}function hU({type:e,...t}){return Z3(e)&&X3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Q3 extends NS{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:o,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=l,this.options=t,bS(typeof t.type!="string");const h=hU(t);this.animation=dU(n,r,a,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const m=Cp(a,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),K3(n,r,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,a;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(r=this.animation).commitStyles)==null||a.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return dr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+dr(t)}get time(){return dr(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Kn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&fU()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),pr):a(this)}}const J3={anticipate:E3,backInOut:T3,circInOut:C3};function pU(e){return e in J3}function mU(e){typeof e.ease=="string"&&pU(e.ease)&&(e.ease=J3[e.ease])}const Uv=10;class yU extends Q3{constructor(t){mU(t),H3(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:o,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new mh({...l,autoplay:!1}),f=Math.max(Uv,vn.now()-this.startTime),h=Zr(0,Uv,f-Uv),m=c.sample(f).value,{name:y}=this.options;o&&y&&K3(o,y,m),n.setWithVelocity(c.sample(Math.max(0,f-h)).value,m,h),c.stop()}}const PT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Cr.test(e)||e==="0")&&!e.startsWith("url("));function vU(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function gU(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=PT(a,t),c=PT(o,t);return!l||!c?!1:vU(e)||(n==="spring"||Z3(n))&&r}function g1(e){e.duration=0,e.type="keyframes"}const eL=new Set(["opacity","clipPath","filter","transform"]),xU=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function bU(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&xU.test(e[t]))return!0;return!1}const jU=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),SU=j3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function wU(e){var y;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:o,type:l,keyframes:c}=e;if(!(((y=t==null?void 0:t.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=t.owner.getProps();return SU()&&n&&(eL.has(n)||jU.has(n)&&bU(c))&&(n!=="transform"||!m)&&!h&&!r&&a!=="mirror"&&o!==0&&l!=="inertia"}const AU=40;class OU extends NS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:l="loop",keyframes:c,name:f,motionValue:h,element:m,...y}){var S;super(),this.stop=()=>{var w,b;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=vn.now();const g={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:o,repeatType:l,name:f,motionValue:h,element:m,...y},j=(m==null?void 0:m.KeyframeResolver)||CS;this.keyframeResolver=new j(c,(w,b,A)=>this.onKeyframesResolved(w,b,g,!A),f,h,m),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,n,r,a){var A,_;this.keyframeResolver=void 0;const{name:o,type:l,velocity:c,delay:f,isHandoff:h,onUpdate:m}=r;this.resolvedAt=vn.now();let y=!0;gU(t,o,l,c)||(y=!1,(wa.instantAnimations||!f)&&(m==null||m(Cp(t,r,n))),t[0]=t[t.length-1],g1(r),r.repeat=0);const j={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>AU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},S=y&&!h&&wU(j),w=(_=(A=j.motionValue)==null?void 0:A.owner)==null?void 0:_.current;let b;if(S)try{b=new yU({...j,element:w})}catch{b=new mh(j)}else b=new mh(j);b.finished.then(()=>{this.notifyFinished()}).catch(pr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),lU()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function tL(e,t,n,r=0,a=1){const o=Array.from(e).sort((h,m)=>h.sortNodePosition(m)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(o,l):a===1?o*r:c-o*r}const RT=30,_U=e=>!isNaN(parseFloat(e));class TU{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const a=vn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=vn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_U(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new jS);const r=this.events[t].add(n);return t==="change"?()=>{r(),ft.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=vn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>RT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,RT);return S3(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Io(e,t){return new TU(e,t)}function nL(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function MS(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?nL(n,e):n}const EU={type:"spring",stiffness:500,damping:25,restSpeed:10},NU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),CU={type:"keyframes",duration:.8},MU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PU=(e,{keyframes:t})=>t.length>2?CU:bl.has(e)?e.startsWith("scale")?NU(t[1]):EU:MU,RU=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function DU(e){for(const t in e)if(!RU.has(t))return!0;return!1}const PS=(e,t,n,r={},a,o)=>l=>{const c=MS(r,e)||{},f=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Kn(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:a};DU(c)||Object.assign(m,PU(e,m)),m.duration&&(m.duration=Kn(m.duration)),m.repeatDelay&&(m.repeatDelay=Kn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(g1(m),m.delay===0&&(y=!0)),(wa.instantAnimations||wa.skipAnimations||a!=null&&a.shouldSkipAnimations||c.skipAnimations)&&(y=!0,g1(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,y&&!o&&t.get()!==void 0){const g=Cp(m.keyframes,c);if(g!==void 0){ft.update(()=>{m.onUpdate(g),m.onComplete()});return}}return c.isSync?new mh(m):new OU(m)},kU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function LU(e){const t=kU.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function rL(e,t,n=1){const[r,a]=LU(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return g3(l)?parseFloat(l):l}return AS(a)?rL(a,t,n+1):a}function DT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function RS(e,t,n,r){if(typeof t=="function"){const[a,o]=DT(r);t=t(n!==void 0?n:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=DT(r);t=t(n!==void 0?n:e.custom,a,o)}return t}function vs(e,t,n){const r=e.getProps();return RS(r,t,n!==void 0?n:r.custom,e)}const iL=new Set(["width","height","top","left","right","bottom",...xl]),x1=e=>Array.isArray(e);function zU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Io(n))}function $U(e){return x1(e)?e[e.length-1]||0:e}function BU(e,t){const n=vs(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const c=$U(o[l]);zU(e,l,c)}}const un=e=>!!(e&&e.getVelocity);function qU(e){return!!(un(e)&&e.add)}function b1(e,t){const n=e.getValue("willChange");if(qU(n))return n.add(t);if(!n&&wa.WillChange){const r=new wa.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function DS(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const IU="framerAppearId",aL="data-"+DS(IU);function sL(e){return e.props[aL]}function UU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function oL(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:o,transitionEnd:l,...c}=t;const f=e.getDefaultTransition();o=o?nL(o,f):f;const h=o==null?void 0:o.reduceMotion,m=o==null?void 0:o.skipAnimations;r&&(o=r);const y=[],g=a&&e.animationState&&e.animationState.getState()[a],j=o==null?void 0:o.path;j&&j.animateVisualElement(e,c,o,n,y);for(const S in c){const w=e.getValue(S,e.latestValues[S]??null),b=c[S];if(b===void 0||g&&UU(g,S))continue;const A={delay:n,...MS(o||{},S)};m&&(A.skipAnimations=!0);const _=w.get();if(_!==void 0&&!w.isAnimating()&&!Array.isArray(b)&&b===_&&!A.velocity){ft.update(()=>w.set(b));continue}let T=!1;if(window.MotionHandoffAnimation){const E=sL(e);if(E){const M=window.MotionHandoffAnimation(E,S,ft);M!==null&&(A.startTime=M,T=!0)}}b1(e,S);const C=h??e.shouldReduceMotion;w.start(PS(S,w,b,C&&iL.has(S)?{type:!1}:A,e,T));const O=w.animation;O&&y.push(O)}if(l){const S=()=>ft.update(()=>{l&&BU(e,l)});y.length?Promise.all(y).then(S):S()}return y}function j1(e,t,n={}){var f;const r=vs(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const o=r?()=>Promise.all(oL(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:g}=a;return VU(e,t,h,m,y,g,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[h,m]=c==="beforeChildren"?[o,l]:[l,o];return h().then(()=>m())}else return Promise.all([o(),l(n.delay)])}function VU(e,t,n=0,r=0,a=0,o=1,l){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(j1(f,t,{...l,delay:n+(typeof r=="function"?0:r)+tL(e.variantChildren,f,r,a,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function HU(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>j1(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=j1(e,t,n);else{const a=typeof t=="function"?vs(e,t,n.custom):t;r=Promise.all(oL(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const FU={test:e=>e==="auto",parse:e=>e},lL=e=>t=>t.test(e),uL=[gl,ge,Gr,wi,vI,yI,FU],kT=e=>uL.find(lL(e));function GU(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||b3(e):!0}const KU=new Set(["brightness","contrast","saturate","opacity"]);function YU(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(OS)||[];if(!r)return e;const a=n.replace(r,"");let o=KU.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const XU=/\b([a-z-]*)\(.*?\)/gu,S1={...Cr,getAnimatableNone:e=>{const t=e.match(XU);return t?t.map(YU).join(" "):e}},w1={...Cr,getAnimatableNone:e=>{const t=Cr.parse(e);return Cr.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},LT={...gl,transform:Math.round},WU={rotate:wi,pathRotation:wi,rotateX:wi,rotateY:wi,rotateZ:wi,scale:Cd,scaleX:Cd,scaleY:Cd,scaleZ:Cd,skew:wi,skewX:wi,skewY:wi,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:ac,originX:ST,originY:ST,originZ:ge},yh={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,top:ge,right:ge,bottom:ge,left:ge,inset:ge,insetBlock:ge,insetBlockStart:ge,insetBlockEnd:ge,insetInline:ge,insetInlineStart:ge,insetInlineEnd:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,paddingBlock:ge,paddingBlockStart:ge,paddingBlockEnd:ge,paddingInline:ge,paddingInlineStart:ge,paddingInlineEnd:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,marginBlock:ge,marginBlockStart:ge,marginBlockEnd:ge,marginInline:ge,marginInlineStart:ge,marginInlineEnd:ge,fontSize:ge,backgroundPositionX:ge,backgroundPositionY:ge,...WU,zIndex:LT,fillOpacity:ac,strokeOpacity:ac,numOctaves:LT},ZU={...yh,color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:S1,WebkitFilter:S1,mask:w1,WebkitMask:w1},cL=e=>ZU[e],QU=new Set([S1,w1]);function fL(e,t){let n=cL(e);return QU.has(n)||(n=Cr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const JU=new Set(["auto","none","0"]);function eV(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!JU.has(o)&&qo(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=fL(n,a)}class tV extends CS{constructor(t,n,r,a,o){super(t,n,r,a,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let y=t[m];if(typeof y=="string"&&(y=y.trim(),AS(y))){const g=rL(y,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!iL.has(r)||t.length!==2)return;const[a,o]=t,l=kT(a),c=kT(o),f=jT(a),h=jT(o);if(f!==h&&ga[r]){this.needsMeasurement=!0;return}if(l!==c)if(CT(l)&&CT(c))for(let m=0;m<t.length;m++){const y=t[m];typeof y=="string"&&(t[m]=parseFloat(y))}else ga[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||GU(t[a]))&&r.push(a);r.length&&eV(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ga[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const o=r.length-1,l=r[o];r[o]=ga[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const kS=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function dL(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(r=>r!=null)}const A1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Qd(e){return x3(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:LS}=R3(queueMicrotask,!1),Or={x:!1,y:!1};function hL(){return Or.x||Or.y}function nV(e){return e==="x"||e==="y"?Or[e]?null:(Or[e]=!0,()=>{Or[e]=!1}):Or.x||Or.y?null:(Or.x=Or.y=!0,()=>{Or.x=Or.y=!1})}function pL(e,t){const n=dL(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function rV(e){return!(e.pointerType==="touch"||hL())}function iV(e,t,n={}){const[r,a,o]=pL(e,n);return r.forEach(l=>{let c=!1,f=!1,h;const m=()=>{l.removeEventListener("pointerleave",S)},y=b=>{h&&(h(b),h=void 0),m()},g=b=>{c=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),f&&(f=!1,y(b))},j=()=>{c=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},S=b=>{if(b.pointerType!=="touch"){if(c){f=!0;return}y(b)}},w=b=>{if(!rV(b))return;f=!1;const A=t(l,b);typeof A=="function"&&(h=A,l.addEventListener("pointerleave",S,a))};l.addEventListener("pointerenter",w,a),l.addEventListener("pointerdown",j,a)}),o}const mL=(e,t)=>t?e===t?!0:mL(e,t.parentElement):!1,zS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,aV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sV(e){return aV.has(e.tagName)||e.isContentEditable===!0}const oV=new Set(["INPUT","SELECT","TEXTAREA"]);function lV(e){return oV.has(e.tagName)||e.isContentEditable===!0}const Jd=new WeakSet;function zT(e){return t=>{t.key==="Enter"&&e(t)}}function Vv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const uV=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=zT(()=>{if(Jd.has(n))return;Vv(n,"down");const a=zT(()=>{Vv(n,"up")}),o=()=>Vv(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function $T(e){return zS(e)&&!hL()}const BT=new WeakSet;function cV(e,t,n={}){const[r,a,o]=pL(e,n),l=c=>{const f=c.currentTarget;if(!$T(c)||BT.has(c))return;Jd.add(f),n.stopPropagation&&BT.add(c);const h=t(f,c),m={...a,capture:!0},y=(S,w)=>{window.removeEventListener("pointerup",g,m),window.removeEventListener("pointercancel",j,m),Jd.has(f)&&Jd.delete(f),$T(S)&&typeof h=="function"&&h(S,{success:w})},g=S=>{y(S,f===window||f===document||n.useGlobalTarget||mL(f,S.target))},j=S=>{y(S,!1)};window.addEventListener("pointerup",g,m),window.addEventListener("pointercancel",j,m)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),Qd(c)&&(c.addEventListener("focus",h=>uV(h,a)),!sV(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),o}function $S(e){return x3(e)&&"ownerSVGElement"in e}const eh=new WeakMap;let pa;const yL=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:$S(r)&&"getBBox"in r?r.getBBox()[t]:r[n],fV=yL("inline","width","offsetWidth"),dV=yL("block","height","offsetHeight");function hV({target:e,borderBoxSize:t}){var n;(n=eh.get(e))==null||n.forEach(r=>{r(e,{get width(){return fV(e,t)},get height(){return dV(e,t)}})})}function pV(e){e.forEach(hV)}function mV(){typeof ResizeObserver>"u"||(pa=new ResizeObserver(pV))}function yV(e,t){pa||mV();const n=dL(e);return n.forEach(r=>{let a=eh.get(r);a||(a=new Set,eh.set(r,a)),a.add(t),pa==null||pa.observe(r)}),()=>{n.forEach(r=>{const a=eh.get(r);a==null||a.delete(t),a!=null&&a.size||pa==null||pa.unobserve(r)})}}const th=new Set;let To;function vV(){To=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};th.forEach(t=>t(e))},window.addEventListener("resize",To)}function gV(e){return th.add(e),To||vV(),()=>{th.delete(e),!th.size&&typeof To=="function"&&(window.removeEventListener("resize",To),To=void 0)}}function qT(e,t){return typeof e=="function"?gV(e):yV(e,t)}function xV(e){return $S(e)&&e.tagName==="svg"}const bV=[...uL,Bt,Cr],jV=e=>bV.find(lL(e)),IT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Eo=()=>({x:IT(),y:IT()}),UT=()=>({min:0,max:0}),Ft=()=>({x:UT(),y:UT()}),SV=new WeakMap;function Mp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sc(e){return typeof e=="string"||Array.isArray(e)}const BS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qS=["initial",...BS];function Pp(e){return Mp(e.animate)||qS.some(t=>sc(e[t]))}function vL(e){return!!(Pp(e)||e.variants)}function wV(e,t,n){for(const r in t){const a=t[r],o=n[r];if(un(a))e.addValue(r,a);else if(un(o))e.addValue(r,Io(a,{owner:e}));else if(o!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,Io(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const O1={current:null},gL={current:!1},AV=typeof window<"u";function OV(){if(gL.current=!0,!!AV)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>O1.current=e.matches;e.addEventListener("change",t),t()}else O1.current=!1}const VT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let vh={};function xL(e){vh=e}function _V(){return vh}class TV{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:o,blockInitialAnimation:l,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=CS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const j=vn.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,ft.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=o,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=Pp(n),this.isVariantNode=vL(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const j in g){const S=g[j];h[j]!==void 0&&un(S)&&S.set(h[j])}}mount(t){var n,r;if(this.hasBeenMounted)for(const a in this.initialValues)(n=this.values.get(a))==null||n.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,SV.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(gL.current||OV(),this.shouldReduceMotion=O1.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Aa(this.notifyUpdate),Aa(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&eL.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:c,times:f,ease:h,duration:m}=n.accelerate,y=new Q3({element:this.current,name:t,keyframes:c,times:f,ease:h,duration:Kn(m)}),g=l(y);this.valueSubscriptions.set(t,()=>{g(),y.cancel()});return}const r=bl.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ft.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),o&&o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in vh){const n=vh[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ft()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<VT.length;r++){const a=VT[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const o="on"+a,l=t[o];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=wV(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Io(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(g3(r)||b3(r))?r=parseFloat(r):!jV(r)&&Cr.test(n)&&(r=fL(t,n)),this.setBaseTarget(t,un(r)?r.get():r)),un(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=RS(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!un(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new jS),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){LS.render(this.render)}}class bL extends TV{constructor(){super(...arguments),this.KeyframeResolver=tV}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Na{constructor(t){this.isMounted=!1,this.node=t}update(){}}function jL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function EV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function NV(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hv(e){return e===void 0||e===1}function _1({scale:e,scaleX:t,scaleY:n}){return!Hv(e)||!Hv(t)||!Hv(n)}function rs(e){return _1(e)||SL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function SL(e){return HT(e.x)||HT(e.y)}function HT(e){return e&&e!=="0%"}function gh(e,t,n){const r=e-n,a=t*r;return n+a}function FT(e,t,n,r,a){return a!==void 0&&(e=gh(e,a,r)),gh(e,n,r)+t}function T1(e,t=0,n=1,r,a){e.min=FT(e.min,t,n,r,a),e.max=FT(e.max,t,n,r,a)}function wL(e,{x:t,y:n}){T1(e.x,t.translate,t.scale,t.originPoint),T1(e.y,n.translate,n.scale,n.originPoint)}const GT=.999999999999,KT=1.0000000000001;function CV(e,t,n,r=!1){var c;const a=n.length;if(!a)return;t.x=t.y=1;let o,l;for(let f=0;f<a;f++){o=n[f],l=o.projectionDelta;const{visualElement:h}=o.options;h&&h.props.style&&h.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Vr(e.x,-o.scroll.offset.x),Vr(e.y,-o.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,wL(e,l)),r&&rs(o.latestValues)&&nh(e,o.latestValues,(c=o.layout)==null?void 0:c.layoutBox))}t.x<KT&&t.x>GT&&(t.x=1),t.y<KT&&t.y>GT&&(t.y=1)}function Vr(e,t){e.min+=t,e.max+=t}function YT(e,t,n,r,a=.5){const o=ct(e.min,e.max,a);T1(e,t,n,o,r)}function XT(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function nh(e,t,n){const r=n??e;YT(e.x,XT(t.x,r.x),t.scaleX,t.scale,t.originX),YT(e.y,XT(t.y,r.y),t.scaleY,t.scale,t.originY)}function AL(e,t){return jL(NV(e.getBoundingClientRect(),t))}function MV(e,t,n){const r=AL(e,n),{scroll:a}=t;return a&&(Vr(r.x,a.offset.x),Vr(r.y,a.offset.y)),r}const PV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RV=xl.length;function DV(e,t,n){let r="",a=!0;for(let l=0;l<RV;l++){const c=xl[l],f=e[c];if(f===void 0)continue;let h=!0;if(typeof f=="number")h=f===(c.startsWith("scale")?1:0);else{const m=parseFloat(f);h=c.startsWith("scale")?m===1:m===0}if(!h||n){const m=A1(f,yh[c]);if(!h){a=!1;const y=PV[c]||c;r+=`${y}(${m}) `}n&&(t[c]=m)}}const o=e.pathRotation;return o&&(a=!1,r+=`rotate(${A1(o,yh.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function IS(e,t,n){const{style:r,vars:a,transformOrigin:o}=e;let l=!1,c=!1;for(const f in t){const h=t[f];if(bl.has(f)){l=!0;continue}else if(k3(f)){a[f]=h;continue}else{const m=A1(h,yh[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=DV(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}function OL(e,{style:t,vars:n},r,a){const o=e.style;let l;for(l in t)o[l]=t[l];a==null||a.applyProjectionStyles(o,r);for(l in n)o.setProperty(l,n[l])}function WT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _u={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const n=WT(e,t.target.x),r=WT(e,t.target.y);return`${n}% ${r}%`}},kV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Cr.parse(e);if(a.length>5)return r;const o=Cr.createTransformer(e),l=typeof a[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=f;const h=ct(c,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=h),typeof a[3+l]=="number"&&(a[3+l]/=h),o(a)}},E1={borderRadius:{..._u,applyTo:[...kS]},borderTopLeftRadius:_u,borderTopRightRadius:_u,borderBottomLeftRadius:_u,borderBottomRightRadius:_u,boxShadow:kV};function _L(e,{layout:t,layoutId:n}){return bl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!E1[e]||e==="opacity")}function US(e,t,n){var l;const r=e.style,a=t==null?void 0:t.style,o={};if(!r)return o;for(const c in r)(un(r[c])||a&&un(a[c])||_L(c,e)||((l=n==null?void 0:n.getValue(c))==null?void 0:l.liveStyle)!==void 0)&&(o[c]=r[c]);return o}function LV(e){return window.getComputedStyle(e)}class zV extends bL{constructor(){super(...arguments),this.type="html",this.renderInstance=OL}readValueFromInstance(t,n){var r;if(bl.has(n))return(r=this.projection)!=null&&r.isProjecting?h1(n):rU(t,n);{const a=LV(t),o=(k3(n)?a.getPropertyValue(n):a[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return AL(t,n)}build(t,n,r){IS(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return US(t,n,r)}}const $V={offset:"stroke-dashoffset",array:"stroke-dasharray"},BV={offset:"strokeDashoffset",array:"strokeDasharray"};function qV(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?$V:BV;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const IV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function TL(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...c},f,h,m){if(IS(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:g}=e;y.transform&&(g.transform=y.transform,delete y.transform),(g.transform||y.transformOrigin)&&(g.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),g.transform&&(g.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete y.transformBox);for(const j of IV)y[j]!==void 0&&(g[j]=y[j],delete y[j]);t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&qV(y,a,o,l,!1)}const EL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),NL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function UV(e,t,n,r){OL(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(EL.has(a)?a:DS(a),t.attrs[a])}function CL(e,t,n){const r=US(e,t,n);for(const a in e)if(un(e[a])||un(t[a])){const o=xl.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}class VV extends bL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bl.has(n)){const r=cL(n);return r&&r.default||0}return n=EL.has(n)?n:DS(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return CL(t,n,r)}build(t,n,r){TL(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){UV(t,n,r,a)}mount(t){this.isSVGTag=NL(t.tagName),super.mount(t)}}const HV=qS.length;function ML(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ML(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<HV;n++){const r=qS[n],a=e.props[r];(sc(a)||a===!1)&&(t[r]=a)}return t}function PL(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const FV=[...BS].reverse(),GV=BS.length;function KV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>HU(e,n,r)))}function YV(e){let t=KV(e),n=ZT(),r=!0,a=!1;const o=h=>(m,y)=>{var j;const g=vs(e,y,h==="exit"?(j=e.presenceContext)==null?void 0:j.custom:void 0);if(g){const{transition:S,transitionEnd:w,...b}=g;m={...m,...b,...w}}return m};function l(h){t=h(e)}function c(h){const{props:m}=e,y=ML(e.parent)||{},g=[],j=new Set;let S={},w=1/0;for(let A=0;A<GV;A++){const _=FV[A],T=n[_],C=m[_]!==void 0?m[_]:y[_],O=sc(C),E=_===h?T.isActive:null;E===!1&&(w=A);let M=C===y[_]&&C!==m[_]&&O;if(M&&(r||a)&&e.manuallyAnimateOnMount&&(M=!1),T.protectedKeys={...S},!T.isActive&&E===null||!C&&!T.prevProp||Mp(C)||typeof C=="boolean")continue;if(_==="exit"&&T.isActive&&E!==!0){T.prevResolvedValues&&(S={...S,...T.prevResolvedValues});continue}const k=XV(T.prevProp,C);let D=k||_===h&&T.isActive&&!M&&O||A>w&&O,B=!1;const I=Array.isArray(C)?C:[C];let $=I.reduce(o(_),{});E===!1&&($={});const{prevResolvedValues:G={}}=T,X={...G,...$},Y=Q=>{D=!0,j.has(Q)&&(B=!0,j.delete(Q)),T.needsAnimating[Q]=!0;const ie=e.getValue(Q);ie&&(ie.liveStyle=!1)};for(const Q in X){const ie=$[Q],oe=G[Q];if(S.hasOwnProperty(Q))continue;let z=!1;x1(ie)&&x1(oe)?z=!PL(ie,oe)||k:z=ie!==oe,z?ie!=null?Y(Q):j.add(Q):ie!==void 0&&j.has(Q)?Y(Q):T.protectedKeys[Q]=!0}T.prevProp=C,T.prevResolvedValues=$,T.isActive&&(S={...S,...$}),(r||a)&&e.blockInitialAnimation&&(D=!1);const L=M&&k;D&&(!L||B)&&g.push(...I.map(Q=>{const ie={type:_};if(typeof Q=="string"&&(r||a)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,z=vs(oe,Q);if(oe.enteringChildren&&z){const{delayChildren:F}=z.transition||{};ie.delay=tL(oe.enteringChildren,e,F)}}return{animation:Q,options:ie}}))}if(j.size){const A={};if(typeof m.initial!="boolean"){const _=vs(e,Array.isArray(m.initial)?m.initial[0]:m.initial);_&&_.transition&&(A.transition=_.transition)}j.forEach(_=>{const T=e.getBaseTarget(_),C=e.getValue(_);C&&(C.liveStyle=!0),A[_]=T??null}),g.push({animation:A})}let b=!!g.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,a=!1,b?t(g):Promise.resolve()}function f(h,m){var g;if(n[h].isActive===m)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(j=>{var S;return(S=j.animationState)==null?void 0:S.setActive(h,m)}),n[h].isActive=m;const y=c(h);for(const j in n)n[j].protectedKeys={};return y}return{animateChanges:c,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=ZT(),a=!0}}}function XV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!PL(t,e):!1}function Ja(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ZT(){return{animate:Ja(!0),whileInView:Ja(),whileHover:Ja(),whileTap:Ja(),whileDrag:Ja(),whileFocus:Ja(),exit:Ja()}}function N1(e,t){e.min=t.min,e.max=t.max}function wr(e,t){N1(e.x,t.x),N1(e.y,t.y)}function QT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const RL=1e-4,WV=1-RL,ZV=1+RL,DL=.01,QV=0-DL,JV=0+DL;function gn(e){return e.max-e.min}function e7(e,t,n){return Math.abs(e-t)<=n}function JT(e,t,n,r=.5){e.origin=r,e.originPoint=ct(t.min,t.max,e.origin),e.scale=gn(n)/gn(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=WV&&e.scale<=ZV||isNaN(e.scale))&&(e.scale=1),(e.translate>=QV&&e.translate<=JV||isNaN(e.translate))&&(e.translate=0)}function Gu(e,t,n,r){JT(e.x,t.x,n.x,r?r.originX:void 0),JT(e.y,t.y,n.y,r?r.originY:void 0)}function eE(e,t,n,r=0){const a=r?ct(n.min,n.max,r):n.min;e.min=a+t.min,e.max=e.min+gn(t)}function t7(e,t,n,r){eE(e.x,t.x,n.x,r==null?void 0:r.x),eE(e.y,t.y,n.y,r==null?void 0:r.y)}function tE(e,t,n,r=0){const a=r?ct(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+gn(t)}function xh(e,t,n,r){tE(e.x,t.x,n.x,r==null?void 0:r.x),tE(e.y,t.y,n.y,r==null?void 0:r.y)}function nE(e,t,n,r,a){return e-=t,e=gh(e,1/n,r),a!==void 0&&(e=gh(e,1/a,r)),e}function n7(e,t=0,n=1,r=.5,a,o=e,l=e){if(Gr.test(t)&&(t=parseFloat(t),t=ct(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=ct(o.min,o.max,r);e===o&&(c-=t),e.min=nE(e.min,t,n,c,a),e.max=nE(e.max,t,n,c,a)}function rE(e,t,[n,r,a],o,l){n7(e,t[n],t[r],t[a],t.scale,o,l)}const r7=["x","scaleX","originX"],i7=["y","scaleY","originY"];function iE(e,t,n,r){rE(e.x,t,r7,n?n.x:void 0,r?r.x:void 0),rE(e.y,t,i7,n?n.y:void 0,r?r.y:void 0)}function aE(e){return e.translate===0&&e.scale===1}function kL(e){return aE(e.x)&&aE(e.y)}function sE(e,t){return e.min===t.min&&e.max===t.max}function a7(e,t){return sE(e.x,t.x)&&sE(e.y,t.y)}function oE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function LL(e,t){return oE(e.x,t.x)&&oE(e.y,t.y)}function lE(e){return gn(e.x)/gn(e.y)}function uE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ur(e){return[e("x"),e("y")]}function s7(e,t,n){let r="";const a=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||o||l)&&(r=`translate3d(${a}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,pathRotation:y,rotateX:g,rotateY:j,skewX:S,skewY:w}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),y&&(r+=`rotate(${y}deg) `),g&&(r+=`rotateX(${g}deg) `),j&&(r+=`rotateY(${j}deg) `),S&&(r+=`skewX(${S}deg) `),w&&(r+=`skewY(${w}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const o7=kS.length,cE=e=>typeof e=="string"?parseFloat(e):e,fE=e=>typeof e=="number"||ge.test(e);function l7(e,t,n,r,a,o){a?(e.opacity=ct(0,n.opacity??1,u7(r)),e.opacityExit=ct(t.opacity??1,0,c7(r))):o&&(e.opacity=ct(t.opacity??1,n.opacity??1,r));for(let l=0;l<o7;l++){const c=kS[l];let f=dE(t,c),h=dE(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||fE(f)===fE(h)?(e[c]=Math.max(ct(cE(f),cE(h),r),0),(Gr.test(h)||Gr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,r))}function dE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const u7=zL(0,.5,N3),c7=zL(.5,.95,pr);function zL(e,t,n){return r=>r<e?0:r>t?1:n(ic(e,t,r))}function f7(e,t,n){const r=un(e)?e:Io(e);return r.start(PS("",r,t,n)),r.animation}function oc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const d7=(e,t)=>e.depth-t.depth;class h7{constructor(){this.children=[],this.isDirty=!1}add(t){xS(this.children,t),this.isDirty=!0}remove(t){fh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(d7),this.isDirty=!1,this.children.forEach(t)}}function p7(e,t){const n=vn.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(Aa(r),e(o-t))};return ft.setup(r,!0),()=>Aa(r)}function rh(e){return un(e)?e.get():e}class m7{constructor(){this.members=[]}add(t){xS(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;(!a||a.isConnected===!1)&&!r.snapshot&&(fh(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(fh(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1&&((n=a.instance)==null?void 0:n.isConnected)!==!1)return this.promote(a),!0}return!1}promote(t,n){var a;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:l}=t.options;(o===void 0||o!==l)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(a=t.root)!=null&&a.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,a,o,l;(r=(n=t.options).onExitComplete)==null||r.call(n),(l=(a=t.resumingFrom)==null?void 0:(o=a.options).onExitComplete)==null||l.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const ih={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Fv=["","X","Y","Z"],y7=1e3;let v7=0;function Gv(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function $L(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=sL(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ft,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&$L(r)}function BL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t==null?void 0:t()){this.id=v7++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(b7),this.nodes.forEach(_7),this.nodes.forEach(T7),this.nodes.forEach(j7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new h7)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new jS),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=$S(l)&&!xV(l),this.instance=l;const{layoutId:c,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let m,y=0;const g=()=>this.root.updateBlockedByResize=!1;ft.read(()=>{y=window.innerWidth}),e(l,()=>{const j=window.innerWidth;j!==y&&(y=j,this.root.updateBlockedByResize=!0,m&&m(),m=p7(g,250),ih.hasAnimatedSinceResize&&(ih.hasAnimatedSinceResize=!1,this.nodes.forEach(mE)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:g,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||P7,{onLayoutAnimationStart:w,onLayoutAnimationComplete:b}=h.getProps(),A=!this.targetLayout||!LL(this.targetLayout,j),_=!y&&g;if(this.options.layoutRoot||this.resumeFrom||_||y&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...MS(S,"layout"),onPlay:w,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(m,_,T.path)}else y||mE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Aa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(E7),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$L(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(w7),this.nodes.forEach(hE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(pE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(A7),this.nodes.forEach(O7),this.nodes.forEach(g7),this.nodes.forEach(x7)):this.nodes.forEach(pE),this.clearAllSnapshots();const c=vn.now();ln.delta=Zr(0,1e3/60,c-ln.timestamp),ln.timestamp=c,ln.isProcessing=!0,zv.update.process(ln),zv.preRender.process(ln),zv.render.process(ln),ln.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,LS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(S7),this.sharedNodes.forEach(N7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ft.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ft.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gn(this.snapshot.measuredBox.x)&&!gn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ft()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!kL(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&this.instance&&(c||rs(this.latestValues)||m)&&(a(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),R7(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:l}=this.options;if(!l)return Ft();const c=l.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(D7))){const{scroll:m}=this.root;m&&(Vr(c.x,m.offset.x),Vr(c.y,m.offset.y))}return c}removeElementScroll(l){var f;const c=Ft();if(wr(c,l),(f=this.scroll)!=null&&f.wasRoot)return c;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:y,options:g}=m;m!==this.root&&y&&g.layoutScroll&&(y.wasRoot&&wr(c,l),Vr(c.x,y.offset.x),Vr(c.y,y.offset.y))}return c}applyTransform(l,c=!1,f){var m,y;const h=f||Ft();wr(h,l);for(let g=0;g<this.path.length;g++){const j=this.path[g];!c&&j.options.layoutScroll&&j.scroll&&j!==j.root&&(Vr(h.x,-j.scroll.offset.x),Vr(h.y,-j.scroll.offset.y)),rs(j.latestValues)&&nh(h,j.latestValues,(m=j.layout)==null?void 0:m.layoutBox)}return rs(this.latestValues)&&nh(h,this.latestValues,(y=this.layout)==null?void 0:y.layoutBox),h}removeTransform(l){var f;const c=Ft();wr(c,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!rs(m.latestValues))continue;let y;m.instance&&(_1(m.latestValues)&&m.updateSnapshot(),y=Ft(),wr(y,m.measurePageBox())),iE(c,m.latestValues,(f=m.snapshot)==null?void 0:f.layoutBox,y)}return rs(this.latestValues)&&iE(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ln.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var j;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!this.layout||!(m||y))return;this.resolvedRelativeTargetAt=ln.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ft(),this.targetWithTransforms=Ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),t7(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):wr(this.target,this.layout.layoutBox),wL(this.target,this.targetDelta)):wr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||_1(this.parent.latestValues)||SL(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,c,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ft(),this.relativeTargetOrigin=Ft(),xh(this.relativeTargetOrigin,c,f,this.options.layoutAnchor||void 0),wr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var S;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===ln.timestamp&&(f=!1),f)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;wr(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,g=this.treeScale.y;CV(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ft());const{target:j}=l;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(QT(this.prevProjectionDelta.x,this.projectionDelta.x),QT(this.prevProjectionDelta.y,this.projectionDelta.y)),Gu(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==g||!uE(this.projectionDelta.x,this.prevProjectionDelta.x)||!uE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Eo(),this.projectionDelta=Eo(),this.projectionDeltaWithTransform=Eo()}setAnimationOrigin(l,c=!1,f){const h=this.snapshot,m=h?h.latestValues:{},y={...this.latestValues},g=Eo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const j=Ft(),S=h?h.source:void 0,w=this.layout?this.layout.source:void 0,b=S!==w,A=this.getStack(),_=!A||A.members.length<=1,T=!!(b&&!_&&this.options.crossfade===!0&&!this.path.some(M7));this.animationProgress=0;let C;const O=f==null?void 0:f.interpolateProjection(l);this.mixTargetDelta=E=>{const M=E/1e3,k=O==null?void 0:O(M);k?(g.x.translate=k.x,g.x.scale=ct(l.x.scale,1,M),g.x.origin=l.x.origin,g.x.originPoint=l.x.originPoint,g.y.translate=k.y,g.y.scale=ct(l.y.scale,1,M),g.y.origin=l.y.origin,g.y.originPoint=l.y.originPoint):(yE(g.x,l.x,M),yE(g.y,l.y,M)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xh(j,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),C7(this.relativeTarget,this.relativeTargetOrigin,j,M),C&&a7(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Ft()),wr(C,this.relativeTarget)),b&&(this.animationValues=y,l7(y,m,this.latestValues,M,T,_)),k&&k.rotate!==void 0&&(this.animationValues||(this.animationValues=y),this.animationValues.pathRotation=k.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,f,h;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(),this.pendingAnimation&&(Aa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ft.update(()=>{ih.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Io(0)),this.motionValue.jump(0,!1),this.currentAnimation=f7(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(y7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:m}=l;if(!(!c||!f||!h)){if(this!==l&&this.layout&&h&&qL(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Ft();const y=gn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+y;const g=gn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}wr(c,f),nh(c,m),Gu(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new m7),this.sharedNodes.get(l).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var c;const{layoutId:l}=this.options;return l?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:l}=this.options;return l?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&Gv("z",l,h,this.animationValues);for(let m=0;m<Fv.length;m++)Gv(`rotate${Fv[m]}`,l,h,this.animationValues),Gv(`skew${Fv[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=rh(c==null?void 0:c.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=rh(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!rs(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let y=s7(this.projectionDeltaWithTransform,this.treeScale,m);f&&(y=f(m,y)),l.transform=y;const{x:g,y:j}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${j.origin*100}% 0`,h.animationValues?l.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const S in E1){if(m[S]===void 0)continue;const{correct:w,applyTo:b,isCSSVariable:A}=E1[S],_=y==="none"?m[S]:w(m[S],h);if(b){const T=b.length;for(let C=0;C<T;C++)l[b[C]]=_}else A?this.options.visualElement.renderState.vars[S]=_:l[S]=_}this.options.layoutId&&(l.pointerEvents=h===this?rh(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(hE),this.root.sharedNodes.clear()}}}function g7(e){e.updateLayout()}function x7(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:o}=e.options,l=t.source!==e.layout.source;if(o==="size")Ur(y=>{const g=l?t.measuredBox[y]:t.layoutBox[y],j=gn(g);g.min=r[y].min,g.max=g.min+j});else if(o==="x"||o==="y"){const y=o==="x"?"y":"x";N1(l?t.measuredBox[y]:t.layoutBox[y],r[y])}else qL(o,t.layoutBox,r)&&Ur(y=>{const g=l?t.measuredBox[y]:t.layoutBox[y],j=gn(r[y]);g.max=g.min+j,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+j)});const c=Eo();Gu(c,r,t.layoutBox);const f=Eo();l?Gu(f,e.applyTransform(a,!0),t.measuredBox):Gu(f,r,t.layoutBox);const h=!kL(c);let m=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:g,layout:j}=y;if(g&&j){const S=e.options.layoutAnchor||void 0,w=Ft();xh(w,t.layoutBox,g.layoutBox,S);const b=Ft();xh(b,r,j.layoutBox,S),LL(w,b)||(m=!0),y.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=w,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function b7(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function j7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function S7(e){e.clearSnapshot()}function hE(e){e.clearMeasurements()}function w7(e){e.isLayoutDirty=!0,e.updateLayout()}function pE(e){e.isLayoutDirty=!1}function A7(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function O7(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _7(e){e.resolveTargetDelta()}function T7(e){e.calcProjection()}function E7(e){e.resetSkewAndRotation()}function N7(e){e.removeLeadSnapshot()}function yE(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vE(e,t,n,r){e.min=ct(t.min,n.min,r),e.max=ct(t.max,n.max,r)}function C7(e,t,n,r){vE(e.x,t.x,n.x,r),vE(e.y,t.y,n.y,r)}function M7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const P7={duration:.45,ease:[.4,0,.1,1]},gE=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),xE=gE("applewebkit/")&&!gE("chrome/")?Math.round:pr;function bE(e){e.min=xE(e.min),e.max=xE(e.max)}function R7(e){bE(e.x),bE(e.y)}function qL(e,t,n){return e==="position"||e==="preserve-aspect"&&!e7(lE(t),lE(n),.2)}function D7(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const k7=BL({attachResizeListener:(e,t)=>oc(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Kv={current:void 0},IL=BL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Kv.current){const e=new k7({});e.mount(window),e.setOptions({layoutScroll:!0}),Kv.current=e}return Kv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),VS=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function L7(...e){return t=>{let n=!1;const r=e.map(a=>{const o=jE(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():jE(e[a],null)}}}}function z7(...e){return P.useCallback(L7(...e),e)}class $7 extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Qd(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,a=Qd(r)&&r.offsetWidth||0,o=Qd(r)&&r.offsetHeight||0,l=getComputedStyle(n),c=this.props.sizeRef.current;c.height=parseFloat(l.height),c.width=parseFloat(l.width),c.top=n.offsetTop,c.left=n.offsetLeft,c.right=a-c.width-c.left,c.bottom=o-c.height-c.top,c.direction=l.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function B7({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o}){var g;const l=P.useId(),c=P.useRef(null),f=P.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:h}=P.useContext(VS),m=((g=e.props)==null?void 0:g.ref)??(e==null?void 0:e.ref),y=z7(c,m);return P.useInsertionEffect(()=>{const{width:j,height:S,top:w,left:b,right:A,bottom:_,direction:T}=f.current;if(t||o===!1||!c.current||!j||!S)return;const C=T==="rtl",O=n==="left"?C?`right: ${A}`:`left: ${b}`:C?`left: ${b}`:`right: ${A}`,E=r==="bottom"?`bottom: ${_}`:`top: ${w}`;c.current.dataset.motionPopId=l;const M=document.createElement("style");h&&(M.nonce=h);const k=a??document.head;return k.appendChild(M),M.sheet&&M.sheet.insertRule(`
[data-motion-pop-id="${l}"] {
position: absolute !important;
width: ${j}px !important;
height: ${S}px !important;
${O}px !important;
${E}px !important;
}
`),()=>{var D;(D=c.current)==null||D.removeAttribute("data-motion-pop-id"),k.contains(M)&&k.removeChild(M)}},[t]),d.jsx($7,{isPresent:t,childRef:c,sizeRef:f,pop:o,children:o===!1?e:P.cloneElement(e,{ref:y})})}const q7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:l,anchorX:c,anchorY:f,root:h})=>{const m=vS(I7),y=P.useId(),g=P.useRef(n),j=P.useRef(r);gS(()=>{g.current=n,j.current=r});let S=!0,w=P.useMemo(()=>(S=!1,{id:y,initial:t,isPresent:n,custom:a,onExitComplete:b=>{m.set(b,!0);for(const A of m.values())if(!A)return;r&&r()},register:b=>(m.set(b,!1),()=>{var A;m.delete(b),!g.current&&!m.size&&((A=j.current)==null||A.call(j))})}),[n,m,r]);return o&&S&&(w={...w}),P.useMemo(()=>{m.forEach((b,A)=>m.set(A,!1))},[n]),P.useEffect(()=>{!n&&!m.size&&r&&r()},[n]),e=d.jsx(B7,{pop:l==="popLayout",isPresent:n,anchorX:c,anchorY:f,root:h,children:e}),d.jsx(Np.Provider,{value:w,children:e})};function I7(){return new Map}function UL(e=!0){const t=P.useContext(Np);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=P.useId();P.useEffect(()=>{if(e)return a(o)},[e]);const l=P.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const Md=e=>e.key||"";function SE(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Ku=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:o="sync",propagate:l=!1,anchorX:c="left",anchorY:f="top",root:h})=>{const[m,y]=UL(l),g=P.useMemo(()=>SE(e),[e]),j=l&&!m?[]:g.map(Md),S=P.useRef(!0),w=P.useRef(g),b=vS(()=>new Map),A=P.useRef(new Set),[_,T]=P.useState(g),[C,O]=P.useState(g);gS(()=>{S.current=!1,w.current=g;for(let k=0;k<C.length;k++){const D=Md(C[k]);j.includes(D)?(b.delete(D),A.current.delete(D)):b.get(D)!==!0&&b.set(D,!1)}},[C,j.length,j.join("-")]);const E=[];if(g!==_){let k=[...g];for(let D=0;D<C.length;D++){const B=C[D],I=Md(B);j.includes(I)||(k.splice(D,0,B),E.push(B))}return o==="wait"&&E.length&&(k=E),O(SE(k)),T(g),null}const{forceRender:M}=P.useContext(yS);return d.jsx(d.Fragment,{children:C.map(k=>{const D=Md(k),B=l&&!m?!1:g===C||j.includes(D),I=()=>{if(A.current.has(D))return;if(b.has(D))A.current.add(D),b.set(D,!0);else return;let $=!0;b.forEach(G=>{G||($=!1)}),$&&(M==null||M(),O(w.current),l&&(y==null||y()),r&&r())};return d.jsx(q7,{isPresent:B,initial:!S.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:h,onExitComplete:B?void 0:I,anchorX:c,anchorY:f,children:k},D)})})},VL=P.createContext({strict:!1}),wE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let AE=!1;function U7(){if(AE)return;const e={};for(const t in wE)e[t]={isEnabled:n=>wE[t].some(r=>!!n[r])};xL(e),AE=!0}function HL(){return U7(),_V()}function V7(e){const t=HL();for(const n in e)t[n]={...t[n],...e[n]};xL(t)}const H7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||H7.has(e)}let FL=e=>!bh(e);function F7(e){typeof e=="function"&&(FL=t=>t.startsWith("on")?!bh(t):e(t))}try{F7(require("@emotion/is-prop-valid").default)}catch{}function G7(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||un(e[a])||(FL(a)||n===!0&&bh(a)||!t&&!bh(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Rp=P.createContext({});function K7(e,t){if(Pp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sc(n)?n:void 0,animate:sc(r)?r:void 0}}return e.inherit!==!1?t:{}}function Y7(e){const{initial:t,animate:n}=K7(e,P.useContext(Rp));return P.useMemo(()=>({initial:t,animate:n}),[OE(t),OE(n)])}function OE(e){return Array.isArray(e)?e.join(" "):e}const HS=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function GL(e,t,n){for(const r in t)!un(t[r])&&!_L(r,n)&&(e[r]=t[r])}function X7({transformTemplate:e},t){return P.useMemo(()=>{const n=HS();return IS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function W7(e,t){const n=e.style||{},r={};return GL(r,n,e),Object.assign(r,X7(e,t)),r}function Z7(e,t){const n={},r=W7(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const KL=()=>({...HS(),attrs:{}});function Q7(e,t,n,r){const a=P.useMemo(()=>{const o=KL();return TL(o,t,NL(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};GL(o,e.style,e),a.style={...o,...a.style}}return a}const J7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function FS(e){return typeof e!="string"||e.includes("-")?!1:!!(J7.indexOf(e)>-1||/[A-Z]/u.test(e))}function e9(e,t,n,{latestValues:r},a,o=!1,l){const f=(l??FS(e)?Q7:Z7)(t,r,a,e),h=G7(t,typeof e=="string",o),m=e!==P.Fragment?{...h,...f,ref:n}:{},{children:y}=t,g=P.useMemo(()=>un(y)?y.get():y,[y]);return P.createElement(e,{...m,children:g})}function t9({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:n9(n,r,a,e),renderState:t()}}function n9(e,t,n,r){const a={},o=r(e,{});for(const g in o)a[g]=rh(o[g]);let{initial:l,animate:c}=e;const f=Pp(e),h=vL(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const y=m?c:l;if(y&&typeof y!="boolean"&&!Mp(y)){const g=Array.isArray(y)?y:[y];for(let j=0;j<g.length;j++){const S=RS(e,g[j]);if(S){const{transitionEnd:w,transition:b,...A}=S;for(const _ in A){let T=A[_];if(Array.isArray(T)){const C=m?T.length-1:0;T=T[C]}T!==null&&(a[_]=T)}for(const _ in w)a[_]=w[_]}}}return a}const YL=e=>(t,n)=>{const r=P.useContext(Rp),a=P.useContext(Np),o=()=>t9(e,t,r,a);return n?o():vS(o)},r9=YL({scrapeMotionValuesFromProps:US,createRenderState:HS}),i9=YL({scrapeMotionValuesFromProps:CL,createRenderState:KL}),a9=Symbol.for("motionComponentSymbol");function s9(e,t,n){const r=P.useRef(n);P.useInsertionEffect(()=>{r.current=n});const a=P.useRef(null);return P.useCallback(o=>{var c;o&&((c=e.onMount)==null||c.call(e,o)),t&&(o?t.mount(o):t.unmount());const l=r.current;if(typeof l=="function")if(o){const f=l(o);typeof f=="function"&&(a.current=f)}else a.current?(a.current(),a.current=null):l(o);else l&&(l.current=o)},[t])}const XL=P.createContext({});function Oo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function o9(e,t,n,r,a,o){var T,C;const{visualElement:l}=P.useContext(Rp),c=P.useContext(VL),f=P.useContext(Np),h=P.useContext(VS),m=h.reducedMotion,y=h.skipAnimations,g=P.useRef(null),j=P.useRef(!1);r=r||c.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:y,isSVG:o}),j.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const S=g.current,w=P.useContext(XL);S&&!S.projection&&a&&(S.type==="html"||S.type==="svg")&&l9(g.current,n,a,w);const b=P.useRef(!1);P.useInsertionEffect(()=>{S&&b.current&&S.update(n,f)});const A=n[aL],_=P.useRef(!!A&&typeof window<"u"&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,A))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,A)));return gS(()=>{j.current=!0,S&&(b.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),_.current&&S.animationState&&S.animationState.animateChanges())}),P.useEffect(()=>{S&&(!_.current&&S.animationState&&S.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,A)}),_.current=!1),S.enteringChildren=void 0)}),S}function l9(e,t,n,r){const{layoutId:a,layout:o,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:h,layoutAnchor:m,layoutCrossfade:y}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:WL(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||c&&Oo(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:f,layoutRoot:h,layoutAnchor:m})}function WL(e){if(e)return e.options.allowProjection!==!1?e.projection:WL(e.parent)}function Yv(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&V7(r);const o=n?n==="svg":FS(e),l=o?i9:r9;function c(h,m){let y;const g={...P.useContext(VS),...h,layoutId:u9(h)},{isStatic:j}=g,S=Y7(h),w=l(h,j);if(!j&&typeof window<"u"){c9();const b=f9(g);y=b.MeasureLayout,S.visualElement=o9(e,w,g,a,b.ProjectionNode,o)}return d.jsxs(Rp.Provider,{value:S,children:[y&&S.visualElement?d.jsx(y,{visualElement:S.visualElement,...g}):null,e9(e,h,s9(w,S.visualElement,m),w,j,t,o)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=P.forwardRef(c);return f[a9]=e,f}function u9({layoutId:e}){const t=P.useContext(yS).id;return t&&e!==void 0?t+"-"+e:e}function c9(e,t){P.useContext(VL).strict}function f9(e){const t=HL(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function d9(e,t){if(typeof Proxy>"u")return Yv;const n=new Map,r=(o,l)=>Yv(o,l,e,t),a=(o,l)=>r(o,l);return new Proxy(a,{get:(o,l)=>l==="create"?r:(n.has(l)||n.set(l,Yv(l,void 0,e,t)),n.get(l))})}const h9=(e,t)=>t.isSVG??FS(e)?new VV(t):new zV(t,{allowProjection:e!==P.Fragment});class p9 extends Na{constructor(t){super(t),t.animationState||(t.animationState=YV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Mp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let m9=0;class y9 extends Na{constructor(){super(...arguments),this.id=m9++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:l,custom:c}=this.node.getProps();if(typeof l=="string"||typeof l=="object"&&l!==null&&!Array.isArray(l)){const f=vs(this.node,l,c);if(f){const{transition:h,transitionEnd:m,...y}=f;for(const g in y)(o=this.node.getValue(g))==null||o.jump(y[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const v9={animation:{Feature:p9},exit:{Feature:y9}};function Wc(e){return{point:{x:e.pageX,y:e.pageY}}}const g9=e=>t=>zS(t)&&e(t,Wc(t));function Yu(e,t,n,r){return oc(e,t,g9(n),r)}const ZL=({current:e})=>e?e.ownerDocument.defaultView:null,_E=(e,t)=>Math.abs(e-t);function x9(e,t){const n=_E(e.x,t.x),r=_E(e.y,t.y);return Math.sqrt(n**2+r**2)}const TE=new Set(["auto","scroll"]);class QL{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:o=!1,distanceThreshold:l=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Pd(this.lastRawMoveEventInfo,this.transformPagePoint));const S=Xv(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,b=x9(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!b)return;const{point:A}=S,{timestamp:_}=ln;this.history.push({...A,timestamp:_});const{onStart:T,onMove:C}=this.handlers;w||(T&&T(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,S)},this.handlePointerMove=(S,w)=>{this.lastMoveEvent=S,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Pd(w,this.transformPagePoint),ft.update(this.updatePoint,!0)},this.handlePointerUp=(S,w)=>{this.end();const{onEnd:b,onSessionEnd:A,resumeAnimation:_}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Xv(S.type==="pointercancel"?this.lastMoveEventInfo:Pd(w,this.transformPagePoint),this.history);this.startEvent&&b&&b(S,T),A&&A(S,T)},!zS(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const f=Wc(t),h=Pd(f,this.transformPagePoint),{point:m}=h,{timestamp:y}=ln;this.history=[{...m,timestamp:y}];const{onSessionStart:g}=n;g&&g(t,Xv(h,this.history));const j={passive:!0,capture:!0};this.removeListeners=Kc(Yu(this.contextWindow,"pointermove",this.handlePointerMove,j),Yu(this.contextWindow,"pointerup",this.handlePointerUp,j),Yu(this.contextWindow,"pointercancel",this.handlePointerUp,j)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(TE.has(r.overflowX)||TE.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:a.x-n.x,y:a.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,a),ft.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Aa(this.updatePoint)}}function Pd(e,t){return t?{point:t(e.point)}:e}function EE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xv({point:e},t){return{point:e,delta:EE(e,JL(t)),offset:EE(e,b9(t)),velocity:j9(t,.1)}}function b9(e){return e[0]}function JL(e){return e[e.length-1]}function j9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=JL(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Kn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>Kn(t)*2&&(r=e[1]);const o=dr(a.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function S9(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ct(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ct(n,e,r.max):Math.min(e,n)),e}function NE(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function w9(e,{top:t,left:n,bottom:r,right:a}){return{x:NE(e.x,n,a),y:NE(e.y,t,r)}}function CE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function A9(e,t){return{x:CE(e.x,t.x),y:CE(e.y,t.y)}}function O9(e,t){let n=.5;const r=gn(e),a=gn(t);return a>r?n=ic(t.min,t.max-r,e.min):r>a&&(n=ic(e.min,e.max-a,t.min)),Zr(0,1,n)}function _9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const C1=.35;function T9(e=C1){return e===!1?e=0:e===!0&&(e=C1),{x:ME(e,"left","right"),y:ME(e,"top","bottom")}}function ME(e,t,n){return{min:PE(e,t),max:PE(e,n)}}function PE(e,t){return typeof e=="number"?e:e[t]||0}const E9=new WeakMap;class N9{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ft(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const o=y=>{n&&this.snapToCursor(Wc(y).point),this.stopAnimation()},l=(y,g)=>{const{drag:j,dragPropagation:S,onDragStart:w}=this.getProps();if(j&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nV(j),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ur(A=>{let _=this.getAxisMotionValue(A).get()||0;if(Gr.test(_)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[A];C&&(_=gn(C)*(parseFloat(_)/100))}}this.originPoint[A]=_}),w&&ft.update(()=>w(y,g),!1,!0),b1(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},c=(y,g)=>{this.latestPointerEvent=y,this.latestPanInfo=g;const{dragPropagation:j,dragDirectionLock:S,onDirectionLock:w,onDrag:b}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:A}=g;if(S&&this.currentDirection===null){this.currentDirection=M9(A),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",g.point,A),this.updateAxis("y",g.point,A),this.visualElement.render(),b&&ft.update(()=>b(y,g),!1,!0)},f=(y,g)=>{this.latestPointerEvent=y,this.latestPanInfo=g,this.stop(y,g),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new QL(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:ZL(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&ft.postRender(()=>c(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Rd(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=S9(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,a=this.constraints;t&&Oo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=w9(r.layoutBox,t):this.constraints=!1,this.elastic=T9(n),a!==this.constraints&&!Oo(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ur(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=_9(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Oo(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const o=MV(r,a.root,this.visualElement.getTransformPagePoint());let l=A9(a.layout.layoutBox,o);if(n){const c=n(EV(l));this.hasMutatedConstraints=!!c,c&&(l=jL(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=Ur(m=>{if(!Rd(m,n,this.currentDirection))return;let y=f&&f[m]||{};(l===!0||l===m)&&(y={min:0,max:0});const g=a?200:1e6,j=a?40:1e7,S={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...o,...y};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return b1(this.visualElement,t),r.start(PS(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ur(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps()[n];return a||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Ur(n=>{const{drag:r}=this.getProps();if(!Rd(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:c}=a.layout.layoutBox[n],f=o.get()||0;o.set(t[n]-ct(l,c,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Oo(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ur(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();a[l]=O9({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ur(l=>{if(!Rd(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];c.set(ct(f,h,a[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;E9.set(this.visualElement,this);const t=this.visualElement.current,n=Yu(t,"pointerdown",h=>{const{drag:m,dragListener:y=!0}=this.getProps(),g=h.target,j=g!==t&&lV(g);m&&y&&!j&&this.start(h)});let r;const a=()=>{const{dragConstraints:h}=this.getProps();Oo(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),r||(r=C9(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,l=o.addEventListener("measure",a);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ft.read(a);const c=oc(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(Ur(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=h[y].translate,g.set(g.get()+h[y].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),f&&f(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:l=C1,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function RE(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function C9(e,t,n){const r=qT(e,RE(n)),a=qT(t,RE(n));return()=>{r(),a()}}function Rd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function M9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P9 extends Na{constructor(t){super(t),this.removeGroupControls=pr,this.removeListeners=pr,this.controls=new N9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Wv=e=>(t,n)=>{e&&ft.update(()=>e(t,n),!1,!0)};class R9 extends Na{constructor(){super(...arguments),this.removePointerDownListener=pr}onPointerDown(t){this.session=new QL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ZL(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:Wv(t),onStart:Wv(n),onMove:Wv(r),onEnd:(o,l)=>{delete this.session,a&&ft.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=Yu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Zv=!1;class D9 extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&a&&r.register(o),Zv&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ih.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:o}=this.props,{projection:l}=r;return l&&(l.isPresent=o,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),Zv=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||ft.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),LS.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Zv=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function e4(e){const[t,n]=UL(),r=P.useContext(yS);return d.jsx(D9,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(XL),isPresent:t,safeToRemove:n})}const k9={pan:{Feature:R9},drag:{Feature:P9,ProjectionNode:IL,MeasureLayout:e4}};function DE(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,o=r[a];o&&ft.postRender(()=>o(t,Wc(t)))}class L9 extends Na{mount(){const{current:t}=this.node;t&&(this.unmount=iV(t,(n,r)=>(DE(this.node,r,"Start"),a=>DE(this.node,a,"End"))))}unmount(){}}class z9 extends Na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Kc(oc(this.node.current,"focus",()=>this.onFocus()),oc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kE(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),o=r[a];o&&ft.postRender(()=>o(t,Wc(t)))}class $9 extends Na{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=cV(t,(a,o)=>(kE(this.node,o,"Start"),(l,{success:c})=>kE(this.node,l,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const M1=new WeakMap,Qv=new WeakMap,B9=e=>{const t=M1.get(e.target);t&&t(e)},q9=e=>{e.forEach(B9)};function I9({root:e,...t}){const n=e||document;Qv.has(n)||Qv.set(n,{});const r=Qv.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(q9,{root:e,...t})),r[a]}function U9(e,t,n){const r=I9(t);return M1.set(e,n),r.observe(e),()=>{M1.delete(e),r.unobserve(e)}}const V9={some:0,all:1};class H9 extends Na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var f;(f=this.stopObserver)==null||f.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:V9[a]},c=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,o&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),j=m?y:g;j&&j(h)};this.stopObserver=U9(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(F9(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function F9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const G9={inView:{Feature:H9},tap:{Feature:$9},focus:{Feature:z9},hover:{Feature:L9}},K9={layout:{ProjectionNode:IL,MeasureLayout:e4}},Y9={...v9,...G9,...k9,...K9},cr=d9(Y9,h9),GS=v3(e=>({sidebarOpen:!0,toggleSidebar:()=>e(t=>({sidebarOpen:!t.sidebarOpen})),setSidebarOpen:t=>e({sidebarOpen:t})}));/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),t4=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var W9={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Z9=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...c},f)=>P.createElement("svg",{ref:f,...W9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:t4("lucide",a),...c},[...l.map(([h,m])=>P.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const be=(e,t)=>{const n=P.forwardRef(({className:r,...a},o)=>P.createElement(Z9,{ref:o,iconNode:t,className:t4(`lucide-${X9(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q9=be("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J9=be("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const P1=be("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const R1=be("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lc=be("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KS=be("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eH=be("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tH=be("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nH=be("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rH=be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iH=be("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aH=be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YS=be("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zc=be("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uo=be("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sH=be("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xu=be("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LE=be("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qr=be("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oH=be("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n4=be("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lH=be("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cs=be("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qc=be("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uH=be("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ah=be("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r4=be("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zE=be("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cH=be("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fH=be("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dH=be("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const js=be("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i4=be("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hH=be("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pH=be("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mH=be("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yH=be("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vH=be("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gH=be("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xH=be("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $E=be("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const BE=be("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qE=be("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mi=be("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bH=be("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ns=be("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jH=be("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sh=be("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const SH=be("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wH=be("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a4=be("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XS=be("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kr=be("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ja=be("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const D1=be("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k1=be("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oa=be("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s4=be("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o4=be("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function l4(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=l4(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=l4(e))&&(r&&(r+=" "),r+=t);return r}const WS="-",AH=e=>{const t=_H(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(WS);return c[0]===""&&c.length!==1&&c.shift(),u4(c,t)||OH(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},u4=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?u4(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(WS);return(l=t.validators.find(({validator:c})=>c(o)))==null?void 0:l.classGroupId},IE=/^\[(.+)\]$/,OH=e=>{if(IE.test(e)){const t=IE.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_H=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return EH(Object.entries(e.classGroups),n).forEach(([o,l])=>{L1(l,r,o,t)}),r},L1=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:UE(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(TH(a)){L1(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{L1(l,UE(t,o),n,r)})})},UE=(e,t)=>{let n=e;return t.split(WS).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},TH=e=>e.isThemeGetter,EH=(e,t)=>t?e.map(([n,r])=>{const a=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,c])=>[t+l,c])):o);return[n,a]}):e,NH=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},c4="!",CH=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],o=t.length,l=c=>{const f=[];let h=0,m=0,y;for(let b=0;b<c.length;b++){let A=c[b];if(h===0){if(A===a&&(r||c.slice(b,b+o)===t)){f.push(c.slice(m,b)),m=b+o;continue}if(A==="/"){y=b;continue}}A==="["?h++:A==="]"&&h--}const g=f.length===0?c:c.substring(m),j=g.startsWith(c4),S=j?g.substring(1):g,w=y&&y>m?y-m:void 0;return{modifiers:f,hasImportantModifier:j,baseClassName:S,maybePostfixModifierPosition:w}};return n?c=>n({className:c,parseClassName:l}):l},MH=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},PH=e=>({cache:NH(e.cacheSize),parseClassName:CH(e),...AH(e)}),RH=/\s+/,DH=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=[],l=e.trim().split(RH);let c="";for(let f=l.length-1;f>=0;f-=1){const h=l[f],{modifiers:m,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:j}=n(h);let S=!!j,w=r(S?g.substring(0,j):g);if(!w){if(!S){c=h+(c.length>0?" "+c:c);continue}if(w=r(g),!w){c=h+(c.length>0?" "+c:c);continue}S=!1}const b=MH(m).join(":"),A=y?b+c4:b,_=A+w;if(o.includes(_))continue;o.push(_);const T=a(w,S);for(let C=0;C<T.length;++C){const O=T[C];o.push(A+O)}c=h+(c.length>0?" "+c:c)}return c};function kH(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=f4(t))&&(r&&(r+=" "),r+=n);return r}const f4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=f4(e[r]))&&(n&&(n+=" "),n+=t);return n};function LH(e,...t){let n,r,a,o=l;function l(f){const h=t.reduce((m,y)=>y(m),e());return n=PH(h),r=n.cache.get,a=n.cache.set,o=c,c(f)}function c(f){const h=r(f);if(h)return h;const m=DH(f,n);return a(f,m),m}return function(){return o(kH.apply(null,arguments))}}const xt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},d4=/^\[(?:([a-z-]+):)?(.+)\]$/i,zH=/^\d+\/\d+$/,$H=new Set(["px","full","screen"]),BH=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qH=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,IH=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,UH=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ji=e=>ko(e)||$H.has(e)||zH.test(e),da=e=>jl(e,"length",ZH),ko=e=>!!e&&!Number.isNaN(Number(e)),Jv=e=>jl(e,"number",ko),Tu=e=>!!e&&Number.isInteger(Number(e)),HH=e=>e.endsWith("%")&&ko(e.slice(0,-1)),Le=e=>d4.test(e),ha=e=>BH.test(e),FH=new Set(["length","size","percentage"]),GH=e=>jl(e,FH,h4),KH=e=>jl(e,"position",h4),YH=new Set(["image","url"]),XH=e=>jl(e,YH,JH),WH=e=>jl(e,"",QH),Eu=()=>!0,jl=(e,t,n)=>{const r=d4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ZH=e=>qH.test(e)&&!IH.test(e),h4=()=>!1,QH=e=>UH.test(e),JH=e=>VH.test(e),eF=()=>{const e=xt("colors"),t=xt("spacing"),n=xt("blur"),r=xt("brightness"),a=xt("borderColor"),o=xt("borderRadius"),l=xt("borderSpacing"),c=xt("borderWidth"),f=xt("contrast"),h=xt("grayscale"),m=xt("hueRotate"),y=xt("invert"),g=xt("gap"),j=xt("gradientColorStops"),S=xt("gradientColorStopPositions"),w=xt("inset"),b=xt("margin"),A=xt("opacity"),_=xt("padding"),T=xt("saturate"),C=xt("scale"),O=xt("sepia"),E=xt("skew"),M=xt("space"),k=xt("translate"),D=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Le,t],$=()=>[Le,t],G=()=>["",ji,da],X=()=>["auto",ko,Le],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],ie=()=>["","0",Le],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[ko,Le];return{cacheSize:500,separator:":",theme:{colors:[Eu],spacing:[ji,da],blur:["none","",ha,Le],brightness:z(),borderColor:[e],borderRadius:["none","","full",ha,Le],borderSpacing:$(),borderWidth:G(),contrast:z(),grayscale:ie(),hueRotate:z(),invert:ie(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[HH,da],inset:I(),margin:I(),opacity:z(),padding:$(),saturate:z(),scale:z(),sepia:ie(),skew:z(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[ha]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),Le]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tu,Le]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",Tu,Le]}],"grid-cols":[{"grid-cols":[Eu]}],"col-start-end":[{col:["auto",{span:["full",Tu,Le]},Le]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[Eu]}],"row-start-end":[{row:["auto",{span:[Tu,Le]},Le]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,t]}],"min-w":[{"min-w":[Le,t,"min","max","fit"]}],"max-w":[{"max-w":[Le,t,"none","full","min","max","fit","prose",{screen:[ha]},ha]}],h:[{h:[Le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ha,da]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jv]}],"font-family":[{font:[Eu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Le]}],"line-clamp":[{"line-clamp":["none",ko,Jv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ji,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ji,da]}],"underline-offset":[{"underline-offset":["auto",ji,Le]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),KH]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GH]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},XH]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:L()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[ji,Le]}],"outline-w":[{outline:[ji,da]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[ji,da]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ha,WH]}],"shadow-color":[{shadow:[Eu]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",ha,Le]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[y]}],saturate:[{saturate:[T]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Tu,Le]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ji,da,Jv]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},tF=LH(eF);function qt(...e){return tF(Pe(e))}function _e(e,t="SEK"){return new Intl.NumberFormat("sv-SE",{style:"currency",currency:t,maximumFractionDigits:0}).format(e)}function VE(e){return new Intl.NumberFormat("sv-SE").format(e)}function mr(e){return new Intl.DateTimeFormat("sv-SE",{year:"numeric",month:"short",day:"numeric"}).format(new Date(e))}function ZS(e){const t=new Date,n=new Date(e),r=t.getTime()-n.getTime(),a=Math.floor(r/6e4),o=Math.floor(r/36e5),l=Math.floor(r/864e5);return a<1?"Just now":a<60?`${a}m ago`:o<24?`${o}h ago`:l<7?`${l}d ago`:mr(e)}function nF(e){return e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2)}const rF=[{path:"/",label:"Briefing",icon:gH},{path:"/dashboard",label:"Dashboard",icon:cH},{path:"/crm",label:"CRM",icon:Oa},{path:"/sales",label:"Sales",icon:Kr},{path:"/finance",label:"Finance",icon:s4},{path:"/hr",label:"HR",icon:lc},{path:"/legal",label:"Legal",icon:cs},{path:"/marketing",label:"Marketing",icon:i4},{path:"/support",label:"Support",icon:r4},{path:"/automation",label:"Automation",icon:o4}];function iF(){const{sidebarOpen:e,toggleSidebar:t}=GS(),n=kr();return d.jsxs(d.Fragment,{children:[d.jsx(Ku,{children:e&&d.jsx(cr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"fixed inset-0 bg-black/20 z-40 lg:hidden",onClick:t})}),d.jsxs(cr.aside,{initial:!1,animate:{width:e?240:72},transition:{duration:.2,ease:"easeOut"},className:qt("fixed left-0 top-0 h-full bg-sidebar z-50 flex flex-col","border-r border-border/60",e?"px-4":"px-3"),children:[d.jsxs("div",{className:"h-16 flex items-center justify-between shrink-0",children:[d.jsxs("div",{className:"flex items-center gap-2.5 overflow-hidden",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center shrink-0",children:d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 32 32",fill:"none",children:d.jsx("path",{d:"M10 22L16 10L22 22H10Z",stroke:"white",strokeWidth:"2.5",strokeLinejoin:"round"})})}),d.jsx(Ku,{children:e&&d.jsx(cr.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.15},className:"text-sm font-semibold text-text-primary whitespace-nowrap",children:"AMOS"})})]}),d.jsx("button",{onClick:t,className:"hidden lg:flex w-7 h-7 items-center justify-center rounded-lg hover:bg-bg text-text-secondary transition-colors",children:e?d.jsx(iH,{size:14}):d.jsx(aH,{size:14})})]}),d.jsx("nav",{className:"flex-1 py-4 space-y-0.5 overflow-y-auto",children:rF.map(r=>{const a=n.pathname===r.path||r.path!=="/"&&n.pathname.startsWith(r.path),o=r.icon;return d.jsxs(m3,{to:r.path,onClick:()=>{window.innerWidth<1024&&t()},className:qt("flex items-center gap-3 h-10 rounded-xl px-3 transition-colors duration-150 relative","hover:bg-primary-light",a&&"bg-primary-light text-primary",!a&&"text-text-secondary"),children:[a&&d.jsx(cr.div,{layoutId:"sidebar-active",className:"absolute left-0 top-1/2 -translate-y-1/2 w-0.5 h-5 bg-primary rounded-full",transition:{duration:.18,ease:"easeOut"}}),d.jsx(o,{size:18,strokeWidth:a?2:1.5}),d.jsx(Ku,{children:e&&d.jsx(cr.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.15},className:qt("text-sm font-medium whitespace-nowrap",a?"text-primary":"text-text-secondary"),children:r.label})})]},r.path)})})]})]})}const HE=[{id:"1",title:"Nytt avtal tecknat",description:"Acme Corp har signerat enterprise-avtalet",time:new Date(Date.now()-1e3*60*15).toISOString(),read:!1},{id:"2",title:"Faktura förfallen",description:"Faktura #INV-2024-0042 är 3 dagar försenad",time:new Date(Date.now()-1e3*60*60*2).toISOString(),read:!1},{id:"3",title:"Semester beviljad",description:"Din semesteransökan har godkänts av HR",time:new Date(Date.now()-1e3*60*60*5).toISOString(),read:!0}];function aF(){const{user:e,logout:t}=Gc(),{toggleSidebar:n}=GS(),r=_p(),[a,o]=P.useState(!1),[l,c]=P.useState(!1),f=()=>{const m=new Date().getHours();return m<12?"Good morning":m<17?"Good afternoon":"Good evening"},h=HE.filter(m=>!m.read).length;return d.jsxs("header",{className:"h-16 bg-surface border-b border-border/60 flex items-center justify-between px-6 lg:px-10 sticky top-0 z-30",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("button",{onClick:n,className:"lg:hidden w-9 h-9 flex items-center justify-center rounded-xl hover:bg-bg text-text-secondary transition-colors",children:d.jsx(hH,{size:18})}),d.jsxs("div",{children:[d.jsxs("h1",{className:"text-base font-semibold text-text-primary",children:[f(),e?`, ${e.name||"Erik Svensson"}`:", Erik Svensson"]}),d.jsx("p",{className:"text-xs text-text-secondary hidden sm:block",children:new Date().toLocaleDateString("sv-SE",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("div",{className:"hidden md:flex items-center h-9 px-3.5 rounded-xl bg-bg border border-border/60 text-text-secondary",children:[d.jsx(Ns,{size:15}),d.jsx("span",{className:"ml-2 text-sm",children:"Search..."}),d.jsx("kbd",{className:"ml-6 px-1.5 py-0.5 text-[10px] font-medium bg-surface rounded border border-border",children:"⌘K"})]}),d.jsxs("div",{className:"relative",children:[d.jsxs("button",{onClick:()=>{o(!a),c(!1)},className:"relative w-9 h-9 flex items-center justify-center rounded-xl hover:bg-bg text-text-secondary transition-colors",children:[d.jsx(R1,{size:17}),h>0&&d.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 bg-danger rounded-full"})]}),d.jsx(Ku,{children:a&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)}),d.jsxs(cr.div,{initial:{opacity:0,y:4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.98},transition:{duration:.15},className:"absolute right-0 top-full mt-2 w-80 bg-surface rounded-[18px] dropdown-shadow border border-border/60 z-50 overflow-hidden",children:[d.jsxs("div",{className:"px-4 py-3 border-b border-border/60 flex items-center justify-between",children:[d.jsx("span",{className:"text-sm font-semibold text-text-primary",children:"Notifications"}),d.jsx("span",{className:"text-xs text-primary font-medium cursor-pointer",children:"Mark all read"})]}),d.jsx("div",{className:"max-h-80 overflow-y-auto",children:HE.map(m=>d.jsx("div",{className:qt("px-4 py-3 hover:bg-bg/60 transition-colors cursor-pointer",!m.read&&"bg-primary-light/30"),children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx("div",{className:qt("w-2 h-2 rounded-full mt-1.5 shrink-0",m.read?"bg-transparent":"bg-primary")}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium text-text-primary",children:m.title}),d.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:m.description}),d.jsx("p",{className:"text-[11px] text-text-secondary/60 mt-1",children:ZS(m.time)})]})]})},m.id))})]})]})})]}),d.jsxs("div",{className:"relative",children:[d.jsxs("button",{onClick:()=>{c(!l),o(!1)},className:"flex items-center gap-2 pl-1 pr-2 h-9 rounded-xl hover:bg-bg transition-colors",children:[d.jsx("div",{className:"w-7 h-7 rounded-full bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:e?nF(e.name):"?"}),d.jsx(rH,{size:14,className:"text-text-secondary"})]}),d.jsx(Ku,{children:l&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>c(!1)}),d.jsxs(cr.div,{initial:{opacity:0,y:4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.98},transition:{duration:.15},className:"absolute right-0 top-full mt-2 w-56 bg-surface rounded-[18px] dropdown-shadow border border-border/60 z-50 overflow-hidden",children:[d.jsxs("div",{className:"px-4 py-3 border-b border-border/60",children:[d.jsx("p",{className:"text-sm font-semibold text-text-primary",children:(e==null?void 0:e.name)||"User"}),d.jsx("p",{className:"text-xs text-text-secondary",children:(e==null?void 0:e.email)||"user@amos.com"})]}),d.jsxs("div",{className:"py-1",children:[d.jsxs("button",{onClick:()=>{r("/profile"),c(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[d.jsx(k1,{size:15}),"Min Profil"]}),d.jsxs("button",{className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[d.jsx(KS,{size:15}),"Byt Verksamhet"]}),d.jsxs("button",{className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[d.jsx(jH,{size:15}),"Inställningar"]}),d.jsx("div",{className:"border-t border-border/60 mt-1 pt-1",children:d.jsxs("button",{onClick:()=>{t(),c(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-danger hover:bg-danger-light transition-colors",children:[d.jsx(dH,{size:15}),"Sign out"]})})]})]})]})})]})]})]})}function sF(){const{sidebarOpen:e}=GS();return d.jsxs("div",{className:"min-h-screen bg-bg",children:[d.jsx(iF,{}),d.jsxs("div",{className:qt("transition-all duration-200 ease-out",e?"lg:ml-[240px]":"lg:ml-[72px]"),children:[d.jsx(aF,{}),d.jsx("main",{className:"p-6 lg:p-10",children:d.jsx(fq,{})})]})]})}const z1=P.forwardRef(({label:e,error:t,icon:n,className:r,...a},o)=>d.jsxs("div",{className:"w-full",children:[e&&d.jsx("label",{className:"block text-sm font-medium text-text-primary mb-1.5",children:e}),d.jsxs("div",{className:"relative",children:[n&&d.jsx("div",{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-secondary",children:n}),d.jsx("input",{ref:o,className:qt("w-full h-11 rounded-[14px] border bg-surface text-text-primary text-sm","placeholder:text-text-secondary/50","focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30","transition-all duration-150",n?"pl-10 pr-4":"px-4",t&&"border-danger focus:ring-danger/20 focus:border-danger/30",r),...a})]}),t&&d.jsx("p",{className:"mt-1.5 text-xs text-danger",children:t})]}));z1.displayName="Input";function Yt({children:e,variant:t="primary",size:n="md",loading:r=!1,icon:a,className:o,disabled:l,...c}){const f={primary:"bg-primary text-white hover:bg-primary-hover shadow-sm",secondary:"bg-bg text-text-primary border border-border hover:bg-white",ghost:"bg-transparent text-text-secondary hover:bg-primary-light hover:text-primary",danger:"bg-danger text-white hover:opacity-90"},h={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-sm"};return d.jsxs("button",{className:qt("inline-flex items-center justify-center gap-2 rounded-[14px] font-medium transition-colors duration-150","focus:outline-none focus:ring-2 focus:ring-primary/20","disabled:opacity-50 disabled:cursor-not-allowed","active:scale-[0.98]",f[t],h[n],o),disabled:l||r,...c,children:[r?d.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[d.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),d.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):a,e]})}const oF="/api/v1";function lF(){var e;try{const t=localStorage.getItem("amos-auth");if(t){const n=JSON.parse(t);if((e=n.state)!=null&&e.token)return n.state.token}}catch{}return localStorage.getItem("amos_token")}async function Dd(e,t,n){const r=`${oF}${t}`,a={"Content-Type":"application/json"},o=lF();o&&(a.Authorization=`Bearer ${o}`);const l=await fetch(r,{method:e,headers:a,body:n?JSON.stringify(n):void 0});if(!l.ok){const c=await l.json().catch(()=>({}));throw new Error(c.message||`HTTP ${l.status}`)}return l.json()}const rt={get:e=>Dd("GET",e),post:(e,t)=>Dd("POST",e,t),put:(e,t)=>Dd("PUT",e,t),delete:e=>Dd("DELETE",e)},FE={login:(e,t)=>rt.post("/auth/login",{email:e,password:t}),me:()=>rt.get("/auth/me")},oh={customers:()=>rt.get("/crm/customers"),leads:()=>rt.get("/crm/leads"),pipeline:()=>rt.get("/crm/pipeline"),createCustomer:e=>rt.post("/crm/customers",e),updateCustomer:(e,t)=>rt.put(`/crm/customers/${e}`,t),deleteCustomer:e=>rt.delete(`/crm/customers/${e}`)},No={deals:()=>rt.get("/sales/deals"),products:()=>rt.get("/sales/products"),mrr:()=>rt.get("/sales/mrr"),arr:()=>rt.get("/sales/arr"),createDeal:e=>rt.post("/sales/deals",e),updateDeal:(e,t)=>rt.put(`/sales/deals/${e}`,t)},is={balance:()=>rt.get("/finance/balance"),income:()=>rt.get("/finance/income"),moms:()=>rt.get("/finance/moms"),accounts:()=>rt.get("/finance/accounts"),invoices:()=>rt.get("/finance/invoices"),cashflow:()=>rt.get("/finance/cashflow")},eg={accounts:()=>rt.get("/ledger/accounts"),balanceSheet:e=>rt.get(`/ledger/balance-sheet?period=${e||""}`),incomeStatement:e=>rt.get(`/ledger/income-statement?period=${e||""}`),momsReport:e=>rt.get(`/ledger/moms?period=${e||""}`)},GE={employees:()=>rt.get("/hr/employees"),leaves:()=>rt.get("/hr/leaves"),createEmployee:e=>rt.post("/hr/employees",e),createLeave:e=>rt.post("/hr/leaves",e)};function uF(){const e=_p(),{login:t}=Gc(),[n,r]=P.useState(""),[a,o]=P.useState(""),[l,c]=P.useState(!1),[f,h]=P.useState(""),[m,y]=P.useState(!1),g=async j=>{var S;j.preventDefault(),h(""),y(!0);try{const w=await FE.login(n,a);if(!w.ok){h("Invalid credentials");return}localStorage.setItem("amos_token",w.token);const b=await FE.me();t(w.token,{id:b.user.sub,email:b.user.email,name:"Erik Svensson",role:((S=b.user.roles)==null?void 0:S[0])||"user"}),e("/")}catch(w){h(w instanceof Error?w.message:"Login failed")}finally{y(!1)}};return d.jsx("div",{className:"min-h-screen bg-bg flex items-center justify-center p-4",children:d.jsxs(cr.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"w-full max-w-[400px]",children:[d.jsx("div",{className:"flex items-center justify-center mb-10",children:d.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary flex items-center justify-center",children:d.jsx("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:d.jsx("path",{d:"M10 22L16 10L22 22H10Z",stroke:"white",strokeWidth:"2.5",strokeLinejoin:"round"})})})}),d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Welcome back"}),d.jsx("p",{className:"text-sm text-text-secondary mt-1.5",children:"Sign in to your AMOS account"})]}),d.jsxs("form",{onSubmit:g,className:"space-y-4",children:[d.jsx(z1,{label:"Email",type:"email",placeholder:"you@company.com",value:n,onChange:j=>r(j.target.value),icon:d.jsx(js,{size:16}),required:!0}),d.jsxs("div",{className:"relative",children:[d.jsx(z1,{label:"Password",type:l?"text":"password",placeholder:"Enter your password",value:a,onChange:j=>o(j.target.value),icon:d.jsx(fH,{size:16}),required:!0}),d.jsx("button",{type:"button",onClick:()=>c(!l),className:"absolute right-3.5 top-[38px] text-text-secondary hover:text-text-primary transition-colors",children:l?d.jsx(oH,{size:16}):d.jsx(n4,{size:16})})]}),f&&d.jsx(cr.p,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},className:"text-sm text-danger",children:f}),d.jsx(Yt,{type:"submit",size:"lg",loading:m,className:"w-full",children:"Sign in"})]})]})})}function KE({label:e,value:t,change:n,changeLabel:r,icon:a,index:o=0}){const l=n>0,c=n===0;return d.jsxs(cr.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.18,delay:o*.04,ease:"easeOut"},className:"bg-surface rounded-[20px] card-shadow p-6 md:p-7",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsx("p",{className:"text-sm text-text-secondary",children:e}),d.jsx("p",{className:"text-2xl md:text-3xl font-semibold text-text-primary tracking-tight",children:t})]}),d.jsx("div",{className:"w-10 h-10 rounded-xl bg-bg flex items-center justify-center text-text-secondary",children:a})]}),d.jsxs("div",{className:"mt-5 flex items-center gap-2",children:[d.jsxs("span",{className:qt("inline-flex items-center gap-1 text-xs font-medium px-2 py-0.5 rounded-full",l&&"bg-success-light text-success",c&&"bg-bg text-text-secondary",!l&&!c&&"bg-danger-light text-danger"),children:[l?d.jsx(Kr,{size:12}):c?d.jsx(mH,{size:12}):d.jsx(XS,{size:12}),Math.abs(n),"%"]}),d.jsx("span",{className:"text-xs text-text-secondary",children:r})]})]})}var tg,YE;function Pn(){if(YE)return tg;YE=1;var e=Array.isArray;return tg=e,tg}var ng,XE;function p4(){if(XE)return ng;XE=1;var e=typeof Td=="object"&&Td&&Td.Object===Object&&Td;return ng=e,ng}var rg,WE;function ei(){if(WE)return rg;WE=1;var e=p4(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return rg=n,rg}var ig,ZE;function Jc(){if(ZE)return ig;ZE=1;var e=ei(),t=e.Symbol;return ig=t,ig}var ag,QE;function cF(){if(QE)return ag;QE=1;var e=Jc(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(l){var c=n.call(l,a),f=l[a];try{l[a]=void 0;var h=!0}catch{}var m=r.call(l);return h&&(c?l[a]=f:delete l[a]),m}return ag=o,ag}var sg,JE;function fF(){if(JE)return sg;JE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return sg=n,sg}var og,eN;function Li(){if(eN)return og;eN=1;var e=Jc(),t=cF(),n=fF(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?a:r:o&&o in Object(c)?t(c):n(c)}return og=l,og}var lg,tN;function zi(){if(tN)return lg;tN=1;function e(t){return t!=null&&typeof t=="object"}return lg=e,lg}var ug,nN;function Sl(){if(nN)return ug;nN=1;var e=Li(),t=zi(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return ug=r,ug}var cg,rN;function QS(){if(rN)return cg;rN=1;var e=Pn(),t=Sl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(o,l){if(e(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||l!=null&&o in Object(l)}return cg=a,cg}var fg,iN;function Ca(){if(iN)return fg;iN=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return fg=e,fg}var dg,aN;function JS(){if(aN)return dg;aN=1;var e=Li(),t=Ca(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==a||f==n||f==o}return dg=l,dg}var hg,sN;function dF(){if(sN)return hg;sN=1;var e=ei(),t=e["__core-js_shared__"];return hg=t,hg}var pg,oN;function hF(){if(oN)return pg;oN=1;var e=dF(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return pg=n,pg}var mg,lN;function m4(){if(lN)return mg;lN=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return mg=n,mg}var yg,uN;function pF(){if(uN)return yg;uN=1;var e=JS(),t=hF(),n=Ca(),r=m4(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,h=c.hasOwnProperty,m=RegExp("^"+f.call(h).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(g){if(!n(g)||t(g))return!1;var j=e(g)?m:o;return j.test(r(g))}return yg=y,yg}var vg,cN;function mF(){if(cN)return vg;cN=1;function e(t,n){return t==null?void 0:t[n]}return vg=e,vg}var gg,fN;function Cs(){if(fN)return gg;fN=1;var e=pF(),t=mF();function n(r,a){var o=t(r,a);return e(o)?o:void 0}return gg=n,gg}var xg,dN;function Dp(){if(dN)return xg;dN=1;var e=Cs(),t=e(Object,"create");return xg=t,xg}var bg,hN;function yF(){if(hN)return bg;hN=1;var e=Dp();function t(){this.__data__=e?e(null):{},this.size=0}return bg=t,bg}var jg,pN;function vF(){if(pN)return jg;pN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return jg=e,jg}var Sg,mN;function gF(){if(mN)return Sg;mN=1;var e=Dp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(o){var l=this.__data__;if(e){var c=l[o];return c===t?void 0:c}return r.call(l,o)?l[o]:void 0}return Sg=a,Sg}var wg,yN;function xF(){if(yN)return wg;yN=1;var e=Dp(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var o=this.__data__;return e?o[a]!==void 0:n.call(o,a)}return wg=r,wg}var Ag,vN;function bF(){if(vN)return Ag;vN=1;var e=Dp(),t="__lodash_hash_undefined__";function n(r,a){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&a===void 0?t:a,this}return Ag=n,Ag}var Og,gN;function jF(){if(gN)return Og;gN=1;var e=yF(),t=vF(),n=gF(),r=xF(),a=bF();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var h=l[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,Og=o,Og}var _g,xN;function SF(){if(xN)return _g;xN=1;function e(){this.__data__=[],this.size=0}return _g=e,_g}var Tg,bN;function ew(){if(bN)return Tg;bN=1;function e(t,n){return t===n||t!==t&&n!==n}return Tg=e,Tg}var Eg,jN;function kp(){if(jN)return Eg;jN=1;var e=ew();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return Eg=t,Eg}var Ng,SN;function wF(){if(SN)return Ng;SN=1;var e=kp(),t=Array.prototype,n=t.splice;function r(a){var o=this.__data__,l=e(o,a);if(l<0)return!1;var c=o.length-1;return l==c?o.pop():n.call(o,l,1),--this.size,!0}return Ng=r,Ng}var Cg,wN;function AF(){if(wN)return Cg;wN=1;var e=kp();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Cg=t,Cg}var Mg,AN;function OF(){if(AN)return Mg;AN=1;var e=kp();function t(n){return e(this.__data__,n)>-1}return Mg=t,Mg}var Pg,ON;function _F(){if(ON)return Pg;ON=1;var e=kp();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return Pg=t,Pg}var Rg,_N;function Lp(){if(_N)return Rg;_N=1;var e=SF(),t=wF(),n=AF(),r=OF(),a=_F();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var h=l[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,Rg=o,Rg}var Dg,TN;function tw(){if(TN)return Dg;TN=1;var e=Cs(),t=ei(),n=e(t,"Map");return Dg=n,Dg}var kg,EN;function TF(){if(EN)return kg;EN=1;var e=jF(),t=Lp(),n=tw();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return kg=r,kg}var Lg,NN;function EF(){if(NN)return Lg;NN=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Lg=e,Lg}var zg,CN;function zp(){if(CN)return zg;CN=1;var e=EF();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return zg=t,zg}var $g,MN;function NF(){if(MN)return $g;MN=1;var e=zp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return $g=t,$g}var Bg,PN;function CF(){if(PN)return Bg;PN=1;var e=zp();function t(n){return e(this,n).get(n)}return Bg=t,Bg}var qg,RN;function MF(){if(RN)return qg;RN=1;var e=zp();function t(n){return e(this,n).has(n)}return qg=t,qg}var Ig,DN;function PF(){if(DN)return Ig;DN=1;var e=zp();function t(n,r){var a=e(this,n),o=a.size;return a.set(n,r),this.size+=a.size==o?0:1,this}return Ig=t,Ig}var Ug,kN;function nw(){if(kN)return Ug;kN=1;var e=TF(),t=NF(),n=CF(),r=MF(),a=PF();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var h=l[c];this.set(h[0],h[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,Ug=o,Ug}var Vg,LN;function y4(){if(LN)return Vg;LN=1;var e=nw(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var o=function(){var l=arguments,c=a?a.apply(this,l):l[0],f=o.cache;if(f.has(c))return f.get(c);var h=r.apply(this,l);return o.cache=f.set(c,h)||f,h};return o.cache=new(n.Cache||e),o}return n.Cache=e,Vg=n,Vg}var Hg,zN;function RF(){if(zN)return Hg;zN=1;var e=y4(),t=500;function n(r){var a=e(r,function(l){return o.size===t&&o.clear(),l}),o=a.cache;return a}return Hg=n,Hg}var Fg,$N;function DF(){if($N)return Fg;$N=1;var e=RF(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var o=[];return a.charCodeAt(0)===46&&o.push(""),a.replace(t,function(l,c,f,h){o.push(f?h.replace(n,"$1"):c||l)}),o});return Fg=r,Fg}var Gg,BN;function rw(){if(BN)return Gg;BN=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r<a;)o[r]=n(t[r],r,t);return o}return Gg=e,Gg}var Kg,qN;function kF(){if(qN)return Kg;qN=1;var e=Jc(),t=rw(),n=Pn(),r=Sl(),a=e?e.prototype:void 0,o=a?a.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return o?o.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return Kg=l,Kg}var Yg,IN;function v4(){if(IN)return Yg;IN=1;var e=kF();function t(n){return n==null?"":e(n)}return Yg=t,Yg}var Xg,UN;function g4(){if(UN)return Xg;UN=1;var e=Pn(),t=QS(),n=DF(),r=v4();function a(o,l){return e(o)?o:t(o,l)?[o]:n(r(o))}return Xg=a,Xg}var Wg,VN;function $p(){if(VN)return Wg;VN=1;var e=Sl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Wg=t,Wg}var Zg,HN;function iw(){if(HN)return Zg;HN=1;var e=g4(),t=$p();function n(r,a){a=e(a,r);for(var o=0,l=a.length;r!=null&&o<l;)r=r[t(a[o++])];return o&&o==l?r:void 0}return Zg=n,Zg}var Qg,FN;function x4(){if(FN)return Qg;FN=1;var e=iw();function t(n,r,a){var o=n==null?void 0:e(n,r);return o===void 0?a:o}return Qg=t,Qg}var LF=x4();const Yn=it(LF);var Jg,GN;function zF(){if(GN)return Jg;GN=1;function e(t){return t==null}return Jg=e,Jg}var $F=zF();const Ne=it($F);var ex,KN;function BF(){if(KN)return ex;KN=1;var e=Li(),t=Pn(),n=zi(),r="[object String]";function a(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return ex=a,ex}var qF=BF();const Ss=it(qF);var IF=JS();const Te=it(IF);var UF=Ca();const wl=it(UF);var tx={exports:{}},Qe={};/**
* @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 YN;function VF(){if(YN)return Qe;YN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function w(b){if(typeof b=="object"&&b!==null){var A=b.$$typeof;switch(A){case e:switch(b=b.type,b){case n:case a:case r:case h:case m:return b;default:switch(b=b&&b.$$typeof,b){case c:case l:case f:case g:case y:case o:return b;default:return A}}case t:return A}}}return Qe.ContextConsumer=l,Qe.ContextProvider=o,Qe.Element=e,Qe.ForwardRef=f,Qe.Fragment=n,Qe.Lazy=g,Qe.Memo=y,Qe.Portal=t,Qe.Profiler=a,Qe.StrictMode=r,Qe.Suspense=h,Qe.SuspenseList=m,Qe.isAsyncMode=function(){return!1},Qe.isConcurrentMode=function(){return!1},Qe.isContextConsumer=function(b){return w(b)===l},Qe.isContextProvider=function(b){return w(b)===o},Qe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Qe.isForwardRef=function(b){return w(b)===f},Qe.isFragment=function(b){return w(b)===n},Qe.isLazy=function(b){return w(b)===g},Qe.isMemo=function(b){return w(b)===y},Qe.isPortal=function(b){return w(b)===t},Qe.isProfiler=function(b){return w(b)===a},Qe.isStrictMode=function(b){return w(b)===r},Qe.isSuspense=function(b){return w(b)===h},Qe.isSuspenseList=function(b){return w(b)===m},Qe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===a||b===r||b===h||b===m||b===j||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===y||b.$$typeof===o||b.$$typeof===l||b.$$typeof===f||b.$$typeof===S||b.getModuleId!==void 0)},Qe.typeOf=w,Qe}var XN;function HF(){return XN||(XN=1,tx.exports=VF()),tx.exports}var FF=HF(),nx,WN;function b4(){if(WN)return nx;WN=1;var e=Li(),t=zi(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return nx=r,nx}var rx,ZN;function GF(){if(ZN)return rx;ZN=1;var e=b4();function t(n){return e(n)&&n!=+n}return rx=t,rx}var KF=GF();const Al=it(KF);var YF=b4();const XF=it(YF);var xn=function(t){return t===0?0:t>0?1:-1},fs=function(t){return Ss(t)&&t.indexOf("%")===t.length-1},ue=function(t){return XF(t)&&!Al(t)},WF=function(t){return Ne(t)},Kt=function(t){return ue(t)||Ss(t)},ZF=0,Ms=function(t){var n=++ZF;return"".concat(t||"").concat(n)},bn=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(!ue(t)&&!Ss(t))return r;var o;if(fs(t)){var l=t.indexOf("%");o=n*parseFloat(t.slice(0,l))/100}else o=+t;return Al(o)&&(o=r),a&&o>n&&(o=n),o},va=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},QF=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},Gt=function(t,n){return ue(t)&&ue(n)?function(r){return t+r*(n-t)}:function(){return n}};function jh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Yn(r,t))===n})}var JF=function(t,n){return ue(t)&&ue(n)?t-n:Ss(t)&&Ss(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Lo(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 $1(e){"@babel/helpers - typeof";return $1=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},$1(e)}var eG=["viewBox","children"],tG=["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"],QN=["points","pathLength"],ix={svg:eG,polygon:QN,polyline:QN},aw=["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"],Sh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!wl(r))return null;var a={};return Object.keys(r).forEach(function(o){aw.includes(o)&&(a[o]=n||function(l){return r[o](r,l)})}),a},nG=function(t,n,r){return function(a){return t(n,r,a),null}},ws=function(t,n,r){if(!wl(t)||$1(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(o){var l=t[o];aw.includes(o)&&typeof l=="function"&&(a||(a={}),a[o]=nG(l,n,r))}),a},rG=["children"],iG=["children"];function JN(e,t){if(e==null)return{};var n=aG(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aG(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 B1(e){"@babel/helpers - typeof";return B1=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},B1(e)}var eC={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"},Ei=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},tC=null,ax=null,sw=function e(t){if(t===tC&&Array.isArray(ax))return ax;var n=[];return P.Children.forEach(t,function(r){Ne(r)||(FF.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),ax=n,tC=t,n};function Xn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ei(a)}):r=[Ei(t)],sw(e).forEach(function(a){var o=Yn(a,"type.displayName")||Yn(a,"type.name");r.indexOf(o)!==-1&&n.push(a)}),n}function Hn(e,t){var n=Xn(e,t);return n&&n[0]}var nC=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!ue(r)||r<=0||!ue(a)||a<=0)},sG=["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"],oG=function(t){return t&&t.type&&Ss(t.type)&&sG.indexOf(t.type)>=0},j4=function(t){return t&&B1(t)==="object"&&"clipDot"in t},lG=function(t,n,r,a){var o,l=(o=ix==null?void 0:ix[a])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Te(t)&&(a&&l.includes(n)||tG.includes(n))||r&&aw.includes(n)},je=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(P.isValidElement(t)&&(a=t.props),!wl(a))return null;var o={};return Object.keys(a).forEach(function(l){var c;lG((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(o[l]=a[l])}),o},q1=function e(t,n){if(t===n)return!0;var r=P.Children.count(t);if(r!==P.Children.count(n))return!1;if(r===0)return!0;if(r===1)return rC(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var o=t[a],l=n[a];if(Array.isArray(o)||Array.isArray(l)){if(!e(o,l))return!1}else if(!rC(o,l))return!1}return!0},rC=function(t,n){if(Ne(t)&&Ne(n))return!0;if(!Ne(t)&&!Ne(n)){var r=t.props||{},a=r.children,o=JN(r,rG),l=n.props||{},c=l.children,f=JN(l,iG);return a&&c?Lo(o,f)&&q1(a,c):!a&&!c?Lo(o,f):!1}return!1},iC=function(t,n){var r=[],a={};return sw(t).forEach(function(o,l){if(oG(o))r.push(o);else if(o){var c=Ei(o.type),f=n[c]||{},h=f.handler,m=f.once;if(h&&(!m||!a[c])){var y=h(o,c,l);r.push(y),a[c]=!0}}}),r},uG=function(t){var n=t&&t.type;return n&&eC[n]?eC[n]:null},cG=function(t,n){return sw(n).indexOf(t)},fG=["children","width","height","viewBox","className","style","title","desc"];function I1(){return I1=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},I1.apply(this,arguments)}function dG(e,t){if(e==null)return{};var n=hG(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hG(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 U1(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,o=e.className,l=e.style,c=e.title,f=e.desc,h=dG(e,fG),m=a||{width:n,height:r,x:0,y:0},y=Pe("recharts-surface",o);return q.createElement("svg",I1({},je(h,!0,"svg"),{className:y,width:n,height:r,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),q.createElement("title",null,c),q.createElement("desc",null,f),t)}var pG=["children","className"];function V1(){return V1=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},V1.apply(this,arguments)}function mG(e,t){if(e==null)return{};var n=yG(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yG(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 qe=q.forwardRef(function(e,t){var n=e.children,r=e.className,a=mG(e,pG),o=Pe("recharts-layer",r);return q.createElement("g",V1({className:o},je(a,!0),{ref:t}),n)}),Mr=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o]},sx,aC;function vG(){if(aC)return sx;aC=1;function e(t,n,r){var a=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++a<o;)l[a]=t[a+n];return l}return sx=e,sx}var ox,sC;function gG(){if(sC)return ox;sC=1;var e=vG();function t(n,r,a){var o=n.length;return a=a===void 0?o:a,!r&&a>=o?n:e(n,r,a)}return ox=t,ox}var lx,oC;function S4(){if(oC)return lx;oC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+a+o+"]");function f(h){return c.test(h)}return lx=f,lx}var ux,lC;function xG(){if(lC)return ux;lC=1;function e(t){return t.split("")}return ux=e,ux}var cx,uC;function bG(){if(uC)return cx;uC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="["+e+"]",c="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",h="(?:"+c+"|"+f+")",m="[^"+e+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",j="\\u200d",S=h+"?",w="["+o+"]?",b="(?:"+j+"(?:"+[m,y,g].join("|")+")"+w+S+")*",A=w+S+b,_="(?:"+[m+c+"?",c,y,g,l].join("|")+")",T=RegExp(f+"(?="+f+")|"+_+A,"g");function C(O){return O.match(T)||[]}return cx=C,cx}var fx,cC;function jG(){if(cC)return fx;cC=1;var e=xG(),t=S4(),n=bG();function r(a){return t(a)?n(a):e(a)}return fx=r,fx}var dx,fC;function SG(){if(fC)return dx;fC=1;var e=gG(),t=S4(),n=jG(),r=v4();function a(o){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),h=c?e(c,1).join(""):l.slice(1);return f[o]()+h}}return dx=a,dx}var hx,dC;function wG(){if(dC)return hx;dC=1;var e=SG(),t=e("toUpperCase");return hx=t,hx}var AG=wG();const Bp=it(AG);function pt(e){return function(){return e}}const w4=Math.cos,wh=Math.sin,Lr=Math.sqrt,Ah=Math.PI,qp=2*Ah,H1=Math.PI,F1=2*H1,as=1e-6,OG=F1-as;function A4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function _G(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return A4;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class TG{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?A4:_G(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,o,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,c=this._y1,f=r-t,h=a-n,m=l-t,y=c-n,g=m*m+y*y;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>as)if(!(Math.abs(y*f-h*m)>as)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let j=r-l,S=a-c,w=f*f+h*h,b=j*j+S*S,A=Math.sqrt(w),_=Math.sqrt(g),T=o*Math.tan((H1-Math.acos((w+g-b)/(2*A*_)))/2),C=T/_,O=T/A;Math.abs(C-1)>as&&this._append`L${t+C*m},${n+C*y}`,this._append`A${o},${o},0,0,${+(y*j>m*S)},${this._x1=t+O*f},${this._y1=n+O*h}`}}arc(t,n,r,a,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),f=r*Math.sin(a),h=t+c,m=n+f,y=1^l,g=l?a-o:o-a;this._x1===null?this._append`M${h},${m}`:(Math.abs(this._x1-h)>as||Math.abs(this._y1-m)>as)&&this._append`L${h},${m}`,r&&(g<0&&(g=g%F1+F1),g>OG?this._append`A${r},${r},0,1,${y},${t-c},${n-f}A${r},${r},0,1,${y},${this._x1=h},${this._y1=m}`:g>as&&this._append`A${r},${r},0,${+(g>=H1)},${y},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}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 ow(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 TG(t)}function lw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function O4(e){this._context=e}O4.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 Ip(e){return new O4(e)}function _4(e){return e[0]}function T4(e){return e[1]}function E4(e,t){var n=pt(!0),r=null,a=Ip,o=null,l=ow(c);e=typeof e=="function"?e:e===void 0?_4:pt(e),t=typeof t=="function"?t:t===void 0?T4:pt(t);function c(f){var h,m=(f=lw(f)).length,y,g=!1,j;for(r==null&&(o=a(j=l())),h=0;h<=m;++h)!(h<m&&n(y=f[h],h,f))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+e(y,h,f),+t(y,h,f));if(j)return o=null,j+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:pt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:pt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:pt(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,r!=null&&(o=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=o=null:o=a(r=f),c):r},c}function kd(e,t,n){var r=null,a=pt(!0),o=null,l=Ip,c=null,f=ow(h);e=typeof e=="function"?e:e===void 0?_4:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?T4:pt(+n);function h(y){var g,j,S,w=(y=lw(y)).length,b,A=!1,_,T=new Array(w),C=new Array(w);for(o==null&&(c=l(_=f())),g=0;g<=w;++g){if(!(g<w&&a(b=y[g],g,y))===A)if(A=!A)j=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),S=g-1;S>=j;--S)c.point(T[S],C[S]);c.lineEnd(),c.areaEnd()}A&&(T[g]=+e(b,g,y),C[g]=+t(b,g,y),c.point(r?+r(b,g,y):T[g],n?+n(b,g,y):C[g]))}if(_)return c=null,_+""||null}function m(){return E4().defined(a).curve(l).context(o)}return h.x=function(y){return arguments.length?(e=typeof y=="function"?y:pt(+y),r=null,h):e},h.x0=function(y){return arguments.length?(e=typeof y=="function"?y:pt(+y),h):e},h.x1=function(y){return arguments.length?(r=y==null?null:typeof y=="function"?y:pt(+y),h):r},h.y=function(y){return arguments.length?(t=typeof y=="function"?y:pt(+y),n=null,h):t},h.y0=function(y){return arguments.length?(t=typeof y=="function"?y:pt(+y),h):t},h.y1=function(y){return arguments.length?(n=y==null?null:typeof y=="function"?y:pt(+y),h):n},h.lineX0=h.lineY0=function(){return m().x(e).y(t)},h.lineY1=function(){return m().x(e).y(n)},h.lineX1=function(){return m().x(r).y(t)},h.defined=function(y){return arguments.length?(a=typeof y=="function"?y:pt(!!y),h):a},h.curve=function(y){return arguments.length?(l=y,o!=null&&(c=l(o)),h):l},h.context=function(y){return arguments.length?(y==null?o=c=null:c=l(o=y),h):o},h}class N4{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 EG(e){return new N4(e,!0)}function NG(e){return new N4(e,!1)}const uw={draw(e,t){const n=Lr(t/Ah);e.moveTo(n,0),e.arc(0,0,n,0,qp)}},CG={draw(e,t){const n=Lr(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()}},C4=Lr(1/3),MG=C4*2,PG={draw(e,t){const n=Lr(t/MG),r=n*C4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},RG={draw(e,t){const n=Lr(t),r=-n/2;e.rect(r,r,n,n)}},DG=.8908130915292852,M4=wh(Ah/10)/wh(7*Ah/10),kG=wh(qp/10)*M4,LG=-w4(qp/10)*M4,zG={draw(e,t){const n=Lr(t*DG),r=kG*n,a=LG*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=qp*o/5,c=w4(l),f=wh(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},px=Lr(3),$G={draw(e,t){const n=-Lr(t/(px*3));e.moveTo(0,n*2),e.lineTo(-px*n,-n),e.lineTo(px*n,-n),e.closePath()}},or=-.5,lr=Lr(3)/2,G1=1/Lr(12),BG=(G1/2+1)*3,qG={draw(e,t){const n=Lr(t/BG),r=n/2,a=n*G1,o=r,l=n*G1+n,c=-o,f=l;e.moveTo(r,a),e.lineTo(o,l),e.lineTo(c,f),e.lineTo(or*r-lr*a,lr*r+or*a),e.lineTo(or*o-lr*l,lr*o+or*l),e.lineTo(or*c-lr*f,lr*c+or*f),e.lineTo(or*r+lr*a,or*a-lr*r),e.lineTo(or*o+lr*l,or*l-lr*o),e.lineTo(or*c+lr*f,or*f-lr*c),e.closePath()}};function IG(e,t){let n=null,r=ow(a);e=typeof e=="function"?e:pt(e||uw),t=typeof t=="function"?t:pt(t===void 0?64:+t);function a(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:pt(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:pt(+o),a):t},a.context=function(o){return arguments.length?(n=o??null,a):n},a}function Oh(){}function _h(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 P4(e){this._context=e}P4.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:_h(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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UG(e){return new P4(e)}function R4(e){this._context=e}R4.prototype={areaStart:Oh,areaEnd:Oh,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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VG(e){return new R4(e)}function D4(e){this._context=e}D4.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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function HG(e){return new D4(e)}function k4(e){this._context=e}k4.prototype={areaStart:Oh,areaEnd:Oh,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 FG(e){return new k4(e)}function hC(e){return e<0?-1:1}function pC(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(o*a+l*r)/(r+a);return(hC(o)+hC(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function mC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function mx(e,t,n){var r=e._x0,a=e._y0,o=e._x1,l=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,a+c*t,o-c,l-c*n,o,l)}function Th(e){this._context=e}Th.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:mx(this,this._t0,mC(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,mx(this,mC(this,n=pC(this,e,t)),n);break;default:mx(this,this._t0,n=pC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function L4(e){this._context=new z4(e)}(L4.prototype=Object.create(Th.prototype)).point=function(e,t){Th.prototype.point.call(this,t,e)};function z4(e){this._context=e}z4.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,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function GG(e){return new Th(e)}function KG(e){return new L4(e)}function $4(e){this._context=e}$4.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=yC(e),a=yC(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function yC(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),l=new Array(n);for(a[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function YG(e){return new $4(e)}function Up(e,t){this._context=e,this._t=t}Up.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 XG(e){return new Up(e,.5)}function WG(e){return new Up(e,0)}function ZG(e){return new Up(e,1)}function Vo(e,t){if((l=e.length)>1)for(var n=1,r,a,o=e[t[0]],l,c=o.length;n<l;++n)for(a=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function K1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function QG(e,t){return e[t]}function JG(e){const t=[];return t.key=e,t}function eK(){var e=pt([]),t=K1,n=Vo,r=QG;function a(o){var l=Array.from(e.apply(this,arguments),JG),c,f=l.length,h=-1,m;for(const y of o)for(c=0,++h;c<f;++c)(l[c][h]=[0,+r(y,l[c].key,h,o)]).data=y;for(c=0,m=lw(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:pt(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:pt(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?K1:typeof o=="function"?o:pt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??Vo,a):n},a}function tK(e,t){if((r=e.length)>0){for(var n,r,a=0,o=e[0].length,l;a<o;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}Vo(e,t)}}function nK(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,o=r.length;n<o;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}Vo(e,t)}}function rK(e,t){if(!(!((l=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,o,l;r<o;++r){for(var c=0,f=0,h=0;c<l;++c){for(var m=e[t[c]],y=m[r][1]||0,g=m[r-1][1]||0,j=(y-g)/2,S=0;S<c;++S){var w=e[t[S]],b=w[r][1]||0,A=w[r-1][1]||0;j+=b-A}f+=y,h+=j*y}a[r-1][1]+=a[r-1][0]=n,f&&(n-=h/f)}a[r-1][1]+=a[r-1][0]=n,Vo(e,t)}}function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}var iK=["type","size","sizeType"];function Y1(){return Y1=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},Y1.apply(this,arguments)}function vC(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 gC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vC(Object(n),!0).forEach(function(r){aK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aK(e,t,n){return t=sK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sK(e){var t=oK(e,"string");return uc(t)=="symbol"?t:t+""}function oK(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lK(e,t){if(e==null)return{};var n=uK(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[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}var B4={symbolCircle:uw,symbolCross:CG,symbolDiamond:PG,symbolSquare:RG,symbolStar:zG,symbolTriangle:$G,symbolWye:qG},cK=Math.PI/180,fK=function(t){var n="symbol".concat(Bp(t));return B4[n]||uw},dK=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*cK;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}},hK=function(t,n){B4["symbol".concat(Bp(t))]=n},cw=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,o=a===void 0?64:a,l=t.sizeType,c=l===void 0?"area":l,f=lK(t,iK),h=gC(gC({},f),{},{type:r,size:o,sizeType:c}),m=function(){var b=fK(r),A=IG().type(b).size(dK(o,c,r));return A()},y=h.className,g=h.cx,j=h.cy,S=je(h,!0);return g===+g&&j===+j&&o===+o?q.createElement("path",Y1({},S,{className:Pe("recharts-symbols",y),transform:"translate(".concat(g,", ").concat(j,")"),d:m()})):null};cw.registerSymbol=hK;function Ho(e){"@babel/helpers - typeof";return Ho=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},Ho(e)}function X1(){return X1=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},X1.apply(this,arguments)}function xC(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 pK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xC(Object(n),!0).forEach(function(r){cc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yK(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,I4(r.key),r)}}function vK(e,t,n){return t&&yK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gK(e,t,n){return t=Eh(t),xK(e,q4()?Reflect.construct(t,n||[],Eh(e).constructor):t.apply(e,n))}function xK(e,t){if(t&&(Ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bK(e)}function bK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q4=function(){return!!e})()}function Eh(e){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(e)}function jK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W1(e,t)}function W1(e,t){return W1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},W1(e,t)}function cc(e,t,n){return t=I4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I4(e){var t=SK(e,"string");return Ho(t)=="symbol"?t:t+""}function SK(e,t){if(Ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ur=32,fw=(function(e){function t(){return mK(this,t),gK(this,t,arguments)}return jK(t,e),vK(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,o=ur/2,l=ur/6,c=ur/3,f=r.inactive?a:r.color;if(r.type==="plainline")return q.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:ur,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return q.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(o,"h").concat(c,`
A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(o,`
H`).concat(ur,"M").concat(2*c,",").concat(o,`
A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return q.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(ur/8,"h").concat(ur,"v").concat(ur*3/4,"h").concat(-ur,"z"),className:"recharts-legend-icon"});if(q.isValidElement(r.legendIcon)){var h=pK({},r);return delete h.legendIcon,q.cloneElement(r.legendIcon,h)}return q.createElement(cw,{fill:f,cx:o,cy:o,size:ur,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,o=a.payload,l=a.iconSize,c=a.layout,f=a.formatter,h=a.inactiveColor,m={x:0,y:0,width:ur,height:ur},y={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(j,S){var w=j.formatter||f,b=Pe(cc(cc({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",j.inactive));if(j.type==="none")return null;var A=Te(j.value)?null:j.value;Mr(!Te(j.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 _=j.inactive?h:j.color;return q.createElement("li",X1({className:b,style:y,key:"legend-item-".concat(S)},ws(r.props,j,S)),q.createElement(U1,{width:l,height:l,viewBox:m,style:g},r.renderIcon(j)),q.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},w?w(A,j,S):A))})}},{key:"render",value:function(){var r=this.props,a=r.payload,o=r.layout,l=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:o==="horizontal"?l:"left"};return q.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(P.PureComponent);cc(fw,"displayName","Legend");cc(fw,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var yx,bC;function wK(){if(bC)return yx;bC=1;var e=Lp();function t(){this.__data__=new e,this.size=0}return yx=t,yx}var vx,jC;function AK(){if(jC)return vx;jC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return vx=e,vx}var gx,SC;function OK(){if(SC)return gx;SC=1;function e(t){return this.__data__.get(t)}return gx=e,gx}var xx,wC;function _K(){if(wC)return xx;wC=1;function e(t){return this.__data__.has(t)}return xx=e,xx}var bx,AC;function TK(){if(AC)return bx;AC=1;var e=Lp(),t=tw(),n=nw(),r=200;function a(o,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([o,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(o,l),this.size=c.size,this}return bx=a,bx}var jx,OC;function U4(){if(OC)return jx;OC=1;var e=Lp(),t=wK(),n=AK(),r=OK(),a=_K(),o=TK();function l(c){var f=this.__data__=new e(c);this.size=f.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=o,jx=l,jx}var Sx,_C;function EK(){if(_C)return Sx;_C=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Sx=t,Sx}var wx,TC;function NK(){if(TC)return wx;TC=1;function e(t){return this.__data__.has(t)}return wx=e,wx}var Ax,EC;function V4(){if(EC)return Ax;EC=1;var e=nw(),t=EK(),n=NK();function r(a){var o=-1,l=a==null?0:a.length;for(this.__data__=new e;++o<l;)this.add(a[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Ax=r,Ax}var Ox,NC;function H4(){if(NC)return Ox;NC=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return Ox=e,Ox}var _x,CC;function F4(){if(CC)return _x;CC=1;function e(t,n){return t.has(n)}return _x=e,_x}var Tx,MC;function G4(){if(MC)return Tx;MC=1;var e=V4(),t=H4(),n=F4(),r=1,a=2;function o(l,c,f,h,m,y){var g=f&r,j=l.length,S=c.length;if(j!=S&&!(g&&S>j))return!1;var w=y.get(l),b=y.get(c);if(w&&b)return w==c&&b==l;var A=-1,_=!0,T=f&a?new e:void 0;for(y.set(l,c),y.set(c,l);++A<j;){var C=l[A],O=c[A];if(h)var E=g?h(O,C,A,c,l,y):h(C,O,A,l,c,y);if(E!==void 0){if(E)continue;_=!1;break}if(T){if(!t(c,function(M,k){if(!n(T,k)&&(C===M||m(C,M,f,h,y)))return T.push(k)})){_=!1;break}}else if(!(C===O||m(C,O,f,h,y))){_=!1;break}}return y.delete(l),y.delete(c),_}return Tx=o,Tx}var Ex,PC;function CK(){if(PC)return Ex;PC=1;var e=ei(),t=e.Uint8Array;return Ex=t,Ex}var Nx,RC;function MK(){if(RC)return Nx;RC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}return Nx=e,Nx}var Cx,DC;function dw(){if(DC)return Cx;DC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return Cx=e,Cx}var Mx,kC;function PK(){if(kC)return Mx;kC=1;var e=Jc(),t=CK(),n=ew(),r=G4(),a=MK(),o=dw(),l=1,c=2,f="[object Boolean]",h="[object Date]",m="[object Error]",y="[object Map]",g="[object Number]",j="[object RegExp]",S="[object Set]",w="[object String]",b="[object Symbol]",A="[object ArrayBuffer]",_="[object DataView]",T=e?e.prototype:void 0,C=T?T.valueOf:void 0;function O(E,M,k,D,B,I,$){switch(k){case _:if(E.byteLength!=M.byteLength||E.byteOffset!=M.byteOffset)return!1;E=E.buffer,M=M.buffer;case A:return!(E.byteLength!=M.byteLength||!I(new t(E),new t(M)));case f:case h:case g:return n(+E,+M);case m:return E.name==M.name&&E.message==M.message;case j:case w:return E==M+"";case y:var G=a;case S:var X=D&l;if(G||(G=o),E.size!=M.size&&!X)return!1;var Y=$.get(E);if(Y)return Y==M;D|=c,$.set(E,M);var L=r(G(E),G(M),D,B,I,$);return $.delete(E),L;case b:if(C)return C.call(E)==C.call(M)}return!1}return Mx=O,Mx}var Px,LC;function K4(){if(LC)return Px;LC=1;function e(t,n){for(var r=-1,a=n.length,o=t.length;++r<a;)t[o+r]=n[r];return t}return Px=e,Px}var Rx,zC;function RK(){if(zC)return Rx;zC=1;var e=K4(),t=Pn();function n(r,a,o){var l=a(r);return t(r)?l:e(l,o(r))}return Rx=n,Rx}var Dx,$C;function DK(){if($C)return Dx;$C=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=0,l=[];++r<a;){var c=t[r];n(c,r,t)&&(l[o++]=c)}return l}return Dx=e,Dx}var kx,BC;function kK(){if(BC)return kx;BC=1;function e(){return[]}return kx=e,kx}var Lx,qC;function LK(){if(qC)return Lx;qC=1;var e=DK(),t=kK(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(l){return l==null?[]:(l=Object(l),e(a(l),function(c){return r.call(l,c)}))}:t;return Lx=o,Lx}var zx,IC;function zK(){if(IC)return zx;IC=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return zx=e,zx}var $x,UC;function $K(){if(UC)return $x;UC=1;var e=Li(),t=zi(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return $x=r,$x}var Bx,VC;function hw(){if(VC)return Bx;VC=1;var e=$K(),t=zi(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return Bx=o,Bx}var Iu={exports:{}},qx,HC;function BK(){if(HC)return qx;HC=1;function e(){return!1}return qx=e,qx}Iu.exports;var FC;function Y4(){return FC||(FC=1,(function(e,t){var n=ei(),r=BK(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===a,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,h=f||r;e.exports=h})(Iu,Iu.exports)),Iu.exports}var Ix,GC;function pw(){if(GC)return Ix;GC=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var o=typeof r;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Ix=n,Ix}var Ux,KC;function mw(){if(KC)return Ux;KC=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ux=t,Ux}var Vx,YC;function qK(){if(YC)return Vx;YC=1;var e=Li(),t=mw(),n=zi(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",h="[object Map]",m="[object Number]",y="[object Object]",g="[object RegExp]",j="[object Set]",S="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",A="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",C="[object Int8Array]",O="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",k="[object Uint8ClampedArray]",D="[object Uint16Array]",B="[object Uint32Array]",I={};I[_]=I[T]=I[C]=I[O]=I[E]=I[M]=I[k]=I[D]=I[B]=!0,I[r]=I[a]=I[b]=I[o]=I[A]=I[l]=I[c]=I[f]=I[h]=I[m]=I[y]=I[g]=I[j]=I[S]=I[w]=!1;function $(G){return n(G)&&t(G.length)&&!!I[e(G)]}return Vx=$,Vx}var Hx,XC;function X4(){if(XC)return Hx;XC=1;function e(t){return function(n){return t(n)}}return Hx=e,Hx}var Uu={exports:{}};Uu.exports;var WC;function IK(){return WC||(WC=1,(function(e,t){var n=p4(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,l=o&&n.process,c=(function(){try{var f=a&&a.require&&a.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(Uu,Uu.exports)),Uu.exports}var Fx,ZC;function W4(){if(ZC)return Fx;ZC=1;var e=qK(),t=X4(),n=IK(),r=n&&n.isTypedArray,a=r?t(r):e;return Fx=a,Fx}var Gx,QC;function UK(){if(QC)return Gx;QC=1;var e=zK(),t=hw(),n=Pn(),r=Y4(),a=pw(),o=W4(),l=Object.prototype,c=l.hasOwnProperty;function f(h,m){var y=n(h),g=!y&&t(h),j=!y&&!g&&r(h),S=!y&&!g&&!j&&o(h),w=y||g||j||S,b=w?e(h.length,String):[],A=b.length;for(var _ in h)(m||c.call(h,_))&&!(w&&(_=="length"||j&&(_=="offset"||_=="parent")||S&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,A)))&&b.push(_);return b}return Gx=f,Gx}var Kx,JC;function VK(){if(JC)return Kx;JC=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Kx=t,Kx}var Yx,eM;function Z4(){if(eM)return Yx;eM=1;function e(t,n){return function(r){return t(n(r))}}return Yx=e,Yx}var Xx,tM;function HK(){if(tM)return Xx;tM=1;var e=Z4(),t=e(Object.keys,Object);return Xx=t,Xx}var Wx,nM;function FK(){if(nM)return Wx;nM=1;var e=VK(),t=HK(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var l=[];for(var c in Object(o))r.call(o,c)&&c!="constructor"&&l.push(c);return l}return Wx=a,Wx}var Zx,rM;function ef(){if(rM)return Zx;rM=1;var e=JS(),t=mw();function n(r){return r!=null&&t(r.length)&&!e(r)}return Zx=n,Zx}var Qx,iM;function Vp(){if(iM)return Qx;iM=1;var e=UK(),t=FK(),n=ef();function r(a){return n(a)?e(a):t(a)}return Qx=r,Qx}var Jx,aM;function GK(){if(aM)return Jx;aM=1;var e=RK(),t=LK(),n=Vp();function r(a){return e(a,n,t)}return Jx=r,Jx}var eb,sM;function KK(){if(sM)return eb;sM=1;var e=GK(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(o,l,c,f,h,m){var y=c&t,g=e(o),j=g.length,S=e(l),w=S.length;if(j!=w&&!y)return!1;for(var b=j;b--;){var A=g[b];if(!(y?A in l:r.call(l,A)))return!1}var _=m.get(o),T=m.get(l);if(_&&T)return _==l&&T==o;var C=!0;m.set(o,l),m.set(l,o);for(var O=y;++b<j;){A=g[b];var E=o[A],M=l[A];if(f)var k=y?f(M,E,A,l,o,m):f(E,M,A,o,l,m);if(!(k===void 0?E===M||h(E,M,c,f,m):k)){C=!1;break}O||(O=A=="constructor")}if(C&&!O){var D=o.constructor,B=l.constructor;D!=B&&"constructor"in o&&"constructor"in l&&!(typeof D=="function"&&D instanceof D&&typeof B=="function"&&B instanceof B)&&(C=!1)}return m.delete(o),m.delete(l),C}return eb=a,eb}var tb,oM;function YK(){if(oM)return tb;oM=1;var e=Cs(),t=ei(),n=e(t,"DataView");return tb=n,tb}var nb,lM;function XK(){if(lM)return nb;lM=1;var e=Cs(),t=ei(),n=e(t,"Promise");return nb=n,nb}var rb,uM;function Q4(){if(uM)return rb;uM=1;var e=Cs(),t=ei(),n=e(t,"Set");return rb=n,rb}var ib,cM;function WK(){if(cM)return ib;cM=1;var e=Cs(),t=ei(),n=e(t,"WeakMap");return ib=n,ib}var ab,fM;function ZK(){if(fM)return ab;fM=1;var e=YK(),t=tw(),n=XK(),r=Q4(),a=WK(),o=Li(),l=m4(),c="[object Map]",f="[object Object]",h="[object Promise]",m="[object Set]",y="[object WeakMap]",g="[object DataView]",j=l(e),S=l(t),w=l(n),b=l(r),A=l(a),_=o;return(e&&_(new e(new ArrayBuffer(1)))!=g||t&&_(new t)!=c||n&&_(n.resolve())!=h||r&&_(new r)!=m||a&&_(new a)!=y)&&(_=function(T){var C=o(T),O=C==f?T.constructor:void 0,E=O?l(O):"";if(E)switch(E){case j:return g;case S:return c;case w:return h;case b:return m;case A:return y}return C}),ab=_,ab}var sb,dM;function QK(){if(dM)return sb;dM=1;var e=U4(),t=G4(),n=PK(),r=KK(),a=ZK(),o=Pn(),l=Y4(),c=W4(),f=1,h="[object Arguments]",m="[object Array]",y="[object Object]",g=Object.prototype,j=g.hasOwnProperty;function S(w,b,A,_,T,C){var O=o(w),E=o(b),M=O?m:a(w),k=E?m:a(b);M=M==h?y:M,k=k==h?y:k;var D=M==y,B=k==y,I=M==k;if(I&&l(w)){if(!l(b))return!1;O=!0,D=!1}if(I&&!D)return C||(C=new e),O||c(w)?t(w,b,A,_,T,C):n(w,b,M,A,_,T,C);if(!(A&f)){var $=D&&j.call(w,"__wrapped__"),G=B&&j.call(b,"__wrapped__");if($||G){var X=$?w.value():w,Y=G?b.value():b;return C||(C=new e),T(X,Y,A,_,C)}}return I?(C||(C=new e),r(w,b,A,_,T,C)):!1}return sb=S,sb}var ob,hM;function yw(){if(hM)return ob;hM=1;var e=QK(),t=zi();function n(r,a,o,l,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,o,l,n,c)}return ob=n,ob}var lb,pM;function JK(){if(pM)return lb;pM=1;var e=U4(),t=yw(),n=1,r=2;function a(o,l,c,f){var h=c.length,m=h,y=!f;if(o==null)return!m;for(o=Object(o);h--;){var g=c[h];if(y&&g[2]?g[1]!==o[g[0]]:!(g[0]in o))return!1}for(;++h<m;){g=c[h];var j=g[0],S=o[j],w=g[1];if(y&&g[2]){if(S===void 0&&!(j in o))return!1}else{var b=new e;if(f)var A=f(S,w,j,o,l,b);if(!(A===void 0?t(w,S,n|r,f,b):A))return!1}}return!0}return lb=a,lb}var ub,mM;function J4(){if(mM)return ub;mM=1;var e=Ca();function t(n){return n===n&&!e(n)}return ub=t,ub}var cb,yM;function eY(){if(yM)return cb;yM=1;var e=J4(),t=Vp();function n(r){for(var a=t(r),o=a.length;o--;){var l=a[o],c=r[l];a[o]=[l,c,e(c)]}return a}return cb=n,cb}var fb,vM;function ez(){if(vM)return fb;vM=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return fb=e,fb}var db,gM;function tY(){if(gM)return db;gM=1;var e=JK(),t=eY(),n=ez();function r(a){var o=t(a);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(l){return l===a||e(l,a,o)}}return db=r,db}var hb,xM;function nY(){if(xM)return hb;xM=1;function e(t,n){return t!=null&&n in Object(t)}return hb=e,hb}var pb,bM;function rY(){if(bM)return pb;bM=1;var e=g4(),t=hw(),n=Pn(),r=pw(),a=mw(),o=$p();function l(c,f,h){f=e(f,c);for(var m=-1,y=f.length,g=!1;++m<y;){var j=o(f[m]);if(!(g=c!=null&&h(c,j)))break;c=c[j]}return g||++m!=y?g:(y=c==null?0:c.length,!!y&&a(y)&&r(j,y)&&(n(c)||t(c)))}return pb=l,pb}var mb,jM;function iY(){if(jM)return mb;jM=1;var e=nY(),t=rY();function n(r,a){return r!=null&&t(r,a,e)}return mb=n,mb}var yb,SM;function aY(){if(SM)return yb;SM=1;var e=yw(),t=x4(),n=iY(),r=QS(),a=J4(),o=ez(),l=$p(),c=1,f=2;function h(m,y){return r(m)&&a(y)?o(l(m),y):function(g){var j=t(g,m);return j===void 0&&j===y?n(g,m):e(y,j,c|f)}}return yb=h,yb}var vb,wM;function Ol(){if(wM)return vb;wM=1;function e(t){return t}return vb=e,vb}var gb,AM;function sY(){if(AM)return gb;AM=1;function e(t){return function(n){return n==null?void 0:n[t]}}return gb=e,gb}var xb,OM;function oY(){if(OM)return xb;OM=1;var e=iw();function t(n){return function(r){return e(r,n)}}return xb=t,xb}var bb,_M;function lY(){if(_M)return bb;_M=1;var e=sY(),t=oY(),n=QS(),r=$p();function a(o){return n(o)?e(r(o)):t(o)}return bb=a,bb}var jb,TM;function ti(){if(TM)return jb;TM=1;var e=tY(),t=aY(),n=Ol(),r=Pn(),a=lY();function o(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):a(l)}return jb=o,jb}var Sb,EM;function tz(){if(EM)return Sb;EM=1;function e(t,n,r,a){for(var o=t.length,l=r+(a?1:-1);a?l--:++l<o;)if(n(t[l],l,t))return l;return-1}return Sb=e,Sb}var wb,NM;function uY(){if(NM)return wb;NM=1;function e(t){return t!==t}return wb=e,wb}var Ab,CM;function cY(){if(CM)return Ab;CM=1;function e(t,n,r){for(var a=r-1,o=t.length;++a<o;)if(t[a]===n)return a;return-1}return Ab=e,Ab}var Ob,MM;function fY(){if(MM)return Ob;MM=1;var e=tz(),t=uY(),n=cY();function r(a,o,l){return o===o?n(a,o,l):e(a,t,l)}return Ob=r,Ob}var _b,PM;function dY(){if(PM)return _b;PM=1;var e=fY();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return _b=t,_b}var Tb,RM;function hY(){if(RM)return Tb;RM=1;function e(t,n,r){for(var a=-1,o=t==null?0:t.length;++a<o;)if(r(n,t[a]))return!0;return!1}return Tb=e,Tb}var Eb,DM;function pY(){if(DM)return Eb;DM=1;function e(){}return Eb=e,Eb}var Nb,kM;function mY(){if(kM)return Nb;kM=1;var e=Q4(),t=pY(),n=dw(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return Nb=a,Nb}var Cb,LM;function yY(){if(LM)return Cb;LM=1;var e=V4(),t=dY(),n=hY(),r=F4(),a=mY(),o=dw(),l=200;function c(f,h,m){var y=-1,g=t,j=f.length,S=!0,w=[],b=w;if(m)S=!1,g=n;else if(j>=l){var A=h?null:a(f);if(A)return o(A);S=!1,g=r,b=new e}else b=h?[]:w;e:for(;++y<j;){var _=f[y],T=h?h(_):_;if(_=m||_!==0?_:0,S&&T===T){for(var C=b.length;C--;)if(b[C]===T)continue e;h&&b.push(T),w.push(_)}else g(b,T,m)||(b!==w&&b.push(T),w.push(_))}return w}return Cb=c,Cb}var Mb,zM;function vY(){if(zM)return Mb;zM=1;var e=ti(),t=yY();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return Mb=n,Mb}var gY=vY();const $M=it(gY);function nz(e,t,n){return t===!0?$M(e,n):Te(t)?$M(e,t):e}function Fo(e){"@babel/helpers - typeof";return Fo=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},Fo(e)}var xY=["ref"];function BM(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?BM(Object(n),!0).forEach(function(r){Hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qM(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,iz(r.key),r)}}function jY(e,t,n){return t&&qM(e.prototype,t),n&&qM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SY(e,t,n){return t=Nh(t),wY(e,rz()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function wY(e,t){if(t&&(Fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AY(e)}function AY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rz=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function OY(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&&Z1(e,t)}function Z1(e,t){return Z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Z1(e,t)}function Hp(e,t,n){return t=iz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iz(e){var t=_Y(e,"string");return Fo(t)=="symbol"?t:t+""}function _Y(e,t){if(Fo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function TY(e,t){if(e==null)return{};var n=EY(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EY(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 NY(e){return e.value}function CY(e,t){if(q.isValidElement(e))return q.cloneElement(e,t);if(typeof e=="function")return q.createElement(e,t);t.ref;var n=TY(t,xY);return q.createElement(fw,n)}var IM=1,zo=(function(e){function t(){var n;bY(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=SY(this,t,[].concat(a)),Hp(n,"lastBoundingBox",{width:-1,height:-1}),n}return OY(t,e),jY(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)>IM||Math.abs(a.height-this.lastBoundingBox.height)>IM)&&(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?Si({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,o=a.layout,l=a.align,c=a.verticalAlign,f=a.margin,h=a.chartWidth,m=a.chartHeight,y,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&o==="vertical"){var j=this.getBBoxSnapshot();y={left:((h||0)-j.width)/2}}else y=l==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var S=this.getBBoxSnapshot();g={top:((m||0)-S.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Si(Si({},y),g)}},{key:"render",value:function(){var r=this,a=this.props,o=a.content,l=a.width,c=a.height,f=a.wrapperStyle,h=a.payloadUniqBy,m=a.payload,y=Si(Si({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return q.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:function(j){r.wrapperNode=j}},CY(o,Si(Si({},this.props),{},{payload:nz(m,h,NY)})))}}],[{key:"getWithHeight",value:function(r,a){var o=Si(Si({},this.defaultProps),r.props),l=o.layout;return l==="vertical"&&ue(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])})(P.PureComponent);Hp(zo,"displayName","Legend");Hp(zo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pb,UM;function MY(){if(UM)return Pb;UM=1;var e=Jc(),t=hw(),n=Pn(),r=e?e.isConcatSpreadable:void 0;function a(o){return n(o)||t(o)||!!(r&&o&&o[r])}return Pb=a,Pb}var Rb,VM;function az(){if(VM)return Rb;VM=1;var e=K4(),t=MY();function n(r,a,o,l,c){var f=-1,h=r.length;for(o||(o=t),c||(c=[]);++f<h;){var m=r[f];a>0&&o(m)?a>1?n(m,a-1,o,l,c):e(c,m):l||(c[c.length]=m)}return c}return Rb=n,Rb}var Db,HM;function PY(){if(HM)return Db;HM=1;function e(t){return function(n,r,a){for(var o=-1,l=Object(n),c=a(n),f=c.length;f--;){var h=c[t?f:++o];if(r(l[h],h,l)===!1)break}return n}}return Db=e,Db}var kb,FM;function RY(){if(FM)return kb;FM=1;var e=PY(),t=e();return kb=t,kb}var Lb,GM;function sz(){if(GM)return Lb;GM=1;var e=RY(),t=Vp();function n(r,a){return r&&e(r,a,t)}return Lb=n,Lb}var zb,KM;function DY(){if(KM)return zb;KM=1;var e=ef();function t(n,r){return function(a,o){if(a==null)return a;if(!e(a))return n(a,o);for(var l=a.length,c=r?l:-1,f=Object(a);(r?c--:++c<l)&&o(f[c],c,f)!==!1;);return a}}return zb=t,zb}var $b,YM;function vw(){if(YM)return $b;YM=1;var e=sz(),t=DY(),n=t(e);return $b=n,$b}var Bb,XM;function oz(){if(XM)return Bb;XM=1;var e=vw(),t=ef();function n(r,a){var o=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,h){l[++o]=a(c,f,h)}),l}return Bb=n,Bb}var qb,WM;function kY(){if(WM)return qb;WM=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return qb=e,qb}var Ib,ZM;function LY(){if(ZM)return Ib;ZM=1;var e=Sl();function t(n,r){if(n!==r){var a=n!==void 0,o=n===null,l=n===n,c=e(n),f=r!==void 0,h=r===null,m=r===r,y=e(r);if(!h&&!y&&!c&&n>r||c&&f&&m&&!h&&!y||o&&f&&m||!a&&m||!l)return 1;if(!o&&!c&&!y&&n<r||y&&a&&l&&!o&&!c||h&&a&&l||!f&&l||!m)return-1}return 0}return Ib=t,Ib}var Ub,QM;function zY(){if(QM)return Ub;QM=1;var e=LY();function t(n,r,a){for(var o=-1,l=n.criteria,c=r.criteria,f=l.length,h=a.length;++o<f;){var m=e(l[o],c[o]);if(m){if(o>=h)return m;var y=a[o];return m*(y=="desc"?-1:1)}}return n.index-r.index}return Ub=t,Ub}var Vb,JM;function $Y(){if(JM)return Vb;JM=1;var e=rw(),t=iw(),n=ti(),r=oz(),a=kY(),o=X4(),l=zY(),c=Ol(),f=Pn();function h(m,y,g){y.length?y=e(y,function(w){return f(w)?function(b){return t(b,w.length===1?w[0]:w)}:w}):y=[c];var j=-1;y=e(y,o(n));var S=r(m,function(w,b,A){var _=e(y,function(T){return T(w)});return{criteria:_,index:++j,value:w}});return a(S,function(w,b){return l(w,b,g)})}return Vb=h,Vb}var Hb,eP;function BY(){if(eP)return Hb;eP=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Hb=e,Hb}var Fb,tP;function qY(){if(tP)return Fb;tP=1;var e=BY(),t=Math.max;function n(r,a,o){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,c=-1,f=t(l.length-a,0),h=Array(f);++c<f;)h[c]=l[a+c];c=-1;for(var m=Array(a+1);++c<a;)m[c]=l[c];return m[a]=o(h),e(r,this,m)}}return Fb=n,Fb}var Gb,nP;function IY(){if(nP)return Gb;nP=1;function e(t){return function(){return t}}return Gb=e,Gb}var Kb,rP;function lz(){if(rP)return Kb;rP=1;var e=Cs(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Kb=t,Kb}var Yb,iP;function UY(){if(iP)return Yb;iP=1;var e=IY(),t=lz(),n=Ol(),r=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return Yb=r,Yb}var Xb,aP;function VY(){if(aP)return Xb;aP=1;var e=800,t=16,n=Date.now;function r(a){var o=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return Xb=r,Xb}var Wb,sP;function HY(){if(sP)return Wb;sP=1;var e=UY(),t=VY(),n=t(e);return Wb=n,Wb}var Zb,oP;function FY(){if(oP)return Zb;oP=1;var e=Ol(),t=qY(),n=HY();function r(a,o){return n(t(a,o,e),a+"")}return Zb=r,Zb}var Qb,lP;function Fp(){if(lP)return Qb;lP=1;var e=ew(),t=ef(),n=pw(),r=Ca();function a(o,l,c){if(!r(c))return!1;var f=typeof l;return(f=="number"?t(c)&&n(l,c.length):f=="string"&&l in c)?e(c[l],o):!1}return Qb=a,Qb}var Jb,uP;function GY(){if(uP)return Jb;uP=1;var e=az(),t=$Y(),n=FY(),r=Fp(),a=n(function(o,l){if(o==null)return[];var c=l.length;return c>1&&r(o,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(o,e(l,1),[])});return Jb=a,Jb}var KY=GY();const gw=it(KY);function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function Q1(){return Q1=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},Q1.apply(this,arguments)}function YY(e,t){return QY(e)||ZY(e,t)||WY(e,t)||XY()}function XY(){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 WY(e,t){if(e){if(typeof e=="string")return cP(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 cP(e,t)}}function cP(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 ZY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function QY(e){if(Array.isArray(e))return e}function fP(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 e0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fP(Object(n),!0).forEach(function(r){JY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JY(e,t,n){return t=eX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eX(e){var t=tX(e,"string");return fc(t)=="symbol"?t:t+""}function tX(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 nX(e){return Array.isArray(e)&&Kt(e[0])&&Kt(e[1])?e.join(" ~ "):e}var rX=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,o=a===void 0?{}:a,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,h=f===void 0?{}:f,m=t.payload,y=t.formatter,g=t.itemSorter,j=t.wrapperClassName,S=t.labelClassName,w=t.label,b=t.labelFormatter,A=t.accessibilityLayer,_=A===void 0?!1:A,T=function(){if(m&&m.length){var $={padding:0,margin:0},G=(g?gw(m,g):m).map(function(X,Y){if(X.type==="none")return null;var L=e0({display:"block",paddingTop:4,paddingBottom:4,color:X.color||"#000"},c),H=X.formatter||y||nX,Q=X.value,ie=X.name,oe=Q,z=ie;if(H&&oe!=null&&z!=null){var F=H(Q,ie,X,Y,m);if(Array.isArray(F)){var re=YY(F,2);oe=re[0],z=re[1]}else oe=F}return q.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Y),style:L},Kt(z)?q.createElement("span",{className:"recharts-tooltip-item-name"},z):null,Kt(z)?q.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,q.createElement("span",{className:"recharts-tooltip-item-value"},oe),q.createElement("span",{className:"recharts-tooltip-item-unit"},X.unit||""))});return q.createElement("ul",{className:"recharts-tooltip-item-list",style:$},G)}return null},C=e0({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),O=e0({margin:0},h),E=!Ne(w),M=E?w:"",k=Pe("recharts-default-tooltip",j),D=Pe("recharts-tooltip-label",S);E&&b&&m!==void 0&&m!==null&&(M=b(w,m));var B=_?{role:"status","aria-live":"assertive"}:{};return q.createElement("div",Q1({className:k,style:C},B),q.createElement("p",{className:D,style:O},q.isValidElement(M)?M:"".concat(M)),T())};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 Ld(e,t,n){return t=iX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iX(e){var t=aX(e,"string");return dc(t)=="symbol"?t:t+""}function aX(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 Nu="recharts-tooltip-wrapper",sX={visibility:"hidden"};function oX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Pe(Nu,Ld(Ld(Ld(Ld({},"".concat(Nu,"-right"),ue(n)&&t&&ue(t.x)&&n>=t.x),"".concat(Nu,"-left"),ue(n)&&t&&ue(t.x)&&n<t.x),"".concat(Nu,"-bottom"),ue(r)&&t&&ue(t.y)&&r>=t.y),"".concat(Nu,"-top"),ue(r)&&t&&ue(t.y)&&r<t.y))}function dP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,o=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,h=e.viewBoxDimension;if(o&&ue(o[r]))return o[r];var m=n[r]-c-a,y=n[r]+a;if(t[r])return l[r]?m:y;if(l[r]){var g=m,j=f[r];return g<j?Math.max(y,f[r]):Math.max(m,f[r])}var S=y+c,w=f[r]+h;return S>w?Math.max(m,f[r]):Math.max(y,f[r])}function lX(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 uX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,h,m,y;return l.height>0&&l.width>0&&n?(m=dP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),y=dP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),h=lX({translateX:m,translateY:y,useTranslate3d:c})):h=sX,{cssProperties:h,cssClasses:oX({translateX:m,translateY:y,coordinate:n})}}function Go(e){"@babel/helpers - typeof";return Go=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},Go(e)}function hP(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 pP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){ej(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fX(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,cz(r.key),r)}}function dX(e,t,n){return t&&fX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hX(e,t,n){return t=Ch(t),pX(e,uz()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function pX(e,t){if(t&&(Go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mX(e)}function mX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uz=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function yX(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&&J1(e,t)}function J1(e,t){return J1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},J1(e,t)}function ej(e,t,n){return t=cz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cz(e){var t=vX(e,"string");return Go(t)=="symbol"?t:t+""}function vX(e,t){if(Go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mP=1,gX=(function(e){function t(){var n;cX(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=hX(this,t,[].concat(a)),ej(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ej(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,f,h,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(h=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&h!==void 0?h:0}})}}),n}return yX(t,e),dX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>mP||Math.abs(r.height-this.state.lastBoundingBox.height)>mP)&&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,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,h=a.children,m=a.coordinate,y=a.hasPayload,g=a.isAnimationActive,j=a.offset,S=a.position,w=a.reverseDirection,b=a.useTranslate3d,A=a.viewBox,_=a.wrapperStyle,T=uX({allowEscapeViewBox:l,coordinate:m,offsetTopLeft:j,position:S,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:A}),C=T.cssClasses,O=T.cssProperties,E=pP(pP({transition:g&&o?"transform ".concat(c,"ms ").concat(f):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&y?"visible":"hidden",position:"absolute",top:0,left:0},_);return q.createElement("div",{tabIndex:-1,className:C,style:E,ref:function(k){r.wrapperNode=k}},h)}}])})(P.PureComponent),xX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ma={isSsr:xX()};function Ko(e){"@babel/helpers - typeof";return Ko=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},Ko(e)}function yP(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 vP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(n),!0).forEach(function(r){xw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jX(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,dz(r.key),r)}}function SX(e,t,n){return t&&jX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wX(e,t,n){return t=Mh(t),AX(e,fz()?Reflect.construct(t,n||[],Mh(e).constructor):t.apply(e,n))}function AX(e,t){if(t&&(Ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OX(e)}function OX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fz=function(){return!!e})()}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(e)}function _X(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&&tj(e,t)}function tj(e,t){return tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},tj(e,t)}function xw(e,t,n){return t=dz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dz(e){var t=TX(e,"string");return Ko(t)=="symbol"?t:t+""}function TX(e,t){if(Ko(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ko(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function EX(e){return e.dataKey}function NX(e,t){return q.isValidElement(e)?q.cloneElement(e,t):typeof e=="function"?q.createElement(e,t):q.createElement(rX,t)}var Fn=(function(e){function t(){return bX(this,t),wX(this,t,arguments)}return _X(t,e),SX(t,[{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,h=a.content,m=a.coordinate,y=a.filterNull,g=a.isAnimationActive,j=a.offset,S=a.payload,w=a.payloadUniqBy,b=a.position,A=a.reverseDirection,_=a.useTranslate3d,T=a.viewBox,C=a.wrapperStyle,O=S??[];y&&O.length&&(O=nz(S.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),w,EX));var E=O.length>0;return q.createElement(gX,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:o,coordinate:m,hasPayload:E,offset:j,position:b,reverseDirection:A,useTranslate3d:_,viewBox:T,wrapperStyle:C},NX(h,vP(vP({},this.props),{},{payload:O})))}}])})(P.PureComponent);xw(Fn,"displayName","Tooltip");xw(Fn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ma.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 t0,gP;function CX(){if(gP)return t0;gP=1;var e=ei(),t=function(){return e.Date.now()};return t0=t,t0}var n0,xP;function MX(){if(xP)return n0;xP=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return n0=t,n0}var r0,bP;function PX(){if(bP)return r0;bP=1;var e=MX(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return r0=n,r0}var i0,jP;function hz(){if(jP)return i0;jP=1;var e=PX(),t=Ca(),n=Sl(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(h){if(typeof h=="number")return h;if(n(h))return r;if(t(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=t(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=e(h);var y=o.test(h);return y||l.test(h)?c(h.slice(2),y?2:8):a.test(h)?r:+h}return i0=f,i0}var a0,SP;function RX(){if(SP)return a0;SP=1;var e=Ca(),t=CX(),n=hz(),r="Expected a function",a=Math.max,o=Math.min;function l(c,f,h){var m,y,g,j,S,w,b=0,A=!1,_=!1,T=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(h)&&(A=!!h.leading,_="maxWait"in h,g=_?a(n(h.maxWait)||0,f):g,T="trailing"in h?!!h.trailing:T);function C(G){var X=m,Y=y;return m=y=void 0,b=G,j=c.apply(Y,X),j}function O(G){return b=G,S=setTimeout(k,f),A?C(G):j}function E(G){var X=G-w,Y=G-b,L=f-X;return _?o(L,g-Y):L}function M(G){var X=G-w,Y=G-b;return w===void 0||X>=f||X<0||_&&Y>=g}function k(){var G=t();if(M(G))return D(G);S=setTimeout(k,E(G))}function D(G){return S=void 0,T&&m?C(G):(m=y=void 0,j)}function B(){S!==void 0&&clearTimeout(S),b=0,m=w=y=S=void 0}function I(){return S===void 0?j:D(t())}function $(){var G=t(),X=M(G);if(m=arguments,y=this,w=G,X){if(S===void 0)return O(w);if(_)return clearTimeout(S),S=setTimeout(k,f),C(w)}return S===void 0&&(S=setTimeout(k,f)),j}return $.cancel=B,$.flush=I,$}return a0=l,a0}var s0,wP;function DX(){if(wP)return s0;wP=1;var e=RX(),t=Ca(),n="Expected a function";function r(a,o,l){var c=!0,f=!0;if(typeof a!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,f="trailing"in l?!!l.trailing:f),e(a,o,{leading:c,maxWait:o,trailing:f})}return s0=r,s0}var kX=DX();const pz=it(kX);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 AP(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 zd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AP(Object(n),!0).forEach(function(r){LX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LX(e,t,n){return t=zX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zX(e){var t=$X(e,"string");return hc(t)=="symbol"?t:t+""}function $X(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 BX(e,t){return VX(e)||UX(e,t)||IX(e,t)||qX()}function qX(){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 IX(e,t){if(e){if(typeof e=="string")return OP(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 OP(e,t)}}function OP(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 UX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function VX(e){if(Array.isArray(e))return e}var Ph=P.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,o=e.width,l=o===void 0?"100%":o,c=e.height,f=c===void 0?"100%":c,h=e.minWidth,m=h===void 0?0:h,y=e.minHeight,g=e.maxHeight,j=e.children,S=e.debounce,w=S===void 0?0:S,b=e.id,A=e.className,_=e.onResize,T=e.style,C=T===void 0?{}:T,O=P.useRef(null),E=P.useRef();E.current=_,P.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var M=P.useState({containerWidth:a.width,containerHeight:a.height}),k=BX(M,2),D=k[0],B=k[1],I=P.useCallback(function(G,X){B(function(Y){var L=Math.round(G),H=Math.round(X);return Y.containerWidth===L&&Y.containerHeight===H?Y:{containerWidth:L,containerHeight:H}})},[]);P.useEffect(function(){var G=function(ie){var oe,z=ie[0].contentRect,F=z.width,re=z.height;I(F,re),(oe=E.current)===null||oe===void 0||oe.call(E,F,re)};w>0&&(G=pz(G,w,{trailing:!0,leading:!1}));var X=new ResizeObserver(G),Y=O.current.getBoundingClientRect(),L=Y.width,H=Y.height;return I(L,H),X.observe(O.current),function(){X.disconnect()}},[I,w]);var $=P.useMemo(function(){var G=D.containerWidth,X=D.containerHeight;if(G<0||X<0)return null;Mr(fs(l)||fs(f),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,l,f),Mr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Y=fs(l)?G:l,L=fs(f)?X:f;n&&n>0&&(Y?L=Y/n:L&&(Y=L*n),g&&L>g&&(L=g)),Mr(Y>0||L>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.`,Y,L,l,f,m,y,n);var H=!Array.isArray(j)&&Ei(j.type).endsWith("Chart");return q.Children.map(j,function(Q){return q.isValidElement(Q)?P.cloneElement(Q,zd({width:Y,height:L},H?{style:zd({height:"100%",width:"100%",maxHeight:L,maxWidth:Y},Q.props.style)}:{})):Q})},[n,j,f,g,y,m,D,l]);return q.createElement("div",{id:b?"".concat(b):void 0,className:Pe("recharts-responsive-container",A),style:zd(zd({},C),{},{width:l,height:f,minWidth:m,minHeight:y,maxHeight:g}),ref:O},$)}),Gp=function(t){return null};Gp.displayName="Cell";function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}function _P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function nj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_P(Object(n),!0).forEach(function(r){HX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HX(e,t,n){return t=FX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FX(e){var t=GX(e,"string");return pc(t)=="symbol"?t:t+""}function GX(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bo={widthCache:{},cacheCount:0},KX=2e3,YX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},TP="recharts_measurement_span";function XX(e){var t=nj({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Wu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ma.isSsr)return{width:0,height:0};var r=XX(n),a=JSON.stringify({text:t,copyStyle:r});if(bo.widthCache[a])return bo.widthCache[a];try{var o=document.getElementById(TP);o||(o=document.createElement("span"),o.setAttribute("id",TP),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var l=nj(nj({},YX),r);Object.assign(o.style,l),o.textContent="".concat(t);var c=o.getBoundingClientRect(),f={width:c.width,height:c.height};return bo.widthCache[a]=f,++bo.cacheCount>KX&&(bo.cacheCount=0,bo.widthCache={}),f}catch{return{width:0,height:0}}},WX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Rh(e,t){return eW(e)||JX(e,t)||QX(e,t)||ZX()}function ZX(){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 QX(e,t){if(e){if(typeof e=="string")return EP(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 EP(e,t)}}function EP(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 JX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function eW(e){if(Array.isArray(e))return e}function tW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NP(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,rW(r.key),r)}}function nW(e,t,n){return t&&NP(e.prototype,t),n&&NP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rW(e){var t=iW(e,"string");return mc(t)=="symbol"?t:t+""}function iW(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 String(e)}var CP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,MP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,sW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,mz={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},oW=Object.keys(mz),Co="NaN";function lW(e,t){return e*mz[t]}var $d=(function(){function e(t,n){tW(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!aW.test(n)&&(this.num=NaN,this.unit=""),oW.includes(n)&&(this.num=lW(t,n),this.unit="px")}return nW(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=sW.exec(n))!==null&&r!==void 0?r:[],o=Rh(a,3),l=o[1],c=o[2];return new e(parseFloat(l),c??"")}}])})();function yz(e){if(e.includes(Co))return Co;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=CP.exec(t))!==null&&n!==void 0?n:[],a=Rh(r,4),o=a[1],l=a[2],c=a[3],f=$d.parse(o??""),h=$d.parse(c??""),m=l==="*"?f.multiply(h):f.divide(h);if(m.isNaN())return Co;t=t.replace(CP,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var y,g=(y=MP.exec(t))!==null&&y!==void 0?y:[],j=Rh(g,4),S=j[1],w=j[2],b=j[3],A=$d.parse(S??""),_=$d.parse(b??""),T=w==="+"?A.add(_):A.subtract(_);if(T.isNaN())return Co;t=t.replace(MP,T.toString())}return t}var PP=/\(([^()]*)\)/;function uW(e){for(var t=e;t.includes("(");){var n=PP.exec(t),r=Rh(n,2),a=r[1];t=t.replace(PP,yz(a))}return t}function cW(e){var t=e.replace(/\s+/g,"");return t=uW(t),t=yz(t),t}function fW(e){try{return cW(e)}catch{return Co}}function o0(e){var t=fW(e.slice(5,-1));return t===Co?"":t}var dW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],hW=["dx","dy","angle","className","breakAll"];function rj(){return rj=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},rj.apply(this,arguments)}function RP(e,t){if(e==null)return{};var n=pW(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pW(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 DP(e,t){return gW(e)||vW(e,t)||yW(e,t)||mW()}function mW(){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 yW(e,t){if(e){if(typeof e=="string")return kP(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 kP(e,t)}}function kP(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 vW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function gW(e){if(Array.isArray(e))return e}var vz=/[ \f\n\r\t\v\u2028\u2029]+/,gz=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var o=[];Ne(n)||(r?o=n.toString().split(""):o=n.toString().split(vz));var l=o.map(function(f){return{word:f,width:Wu(f,a).width}}),c=r?0:Wu(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},xW=function(t,n,r,a,o){var l=t.maxLines,c=t.children,f=t.style,h=t.breakAll,m=ue(l),y=c,g=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Y.reduce(function(L,H){var Q=H.word,ie=H.width,oe=L[L.length-1];if(oe&&(a==null||o||oe.width+ie+r<Number(a)))oe.words.push(Q),oe.width+=ie+r;else{var z={words:[Q],width:ie};L.push(z)}return L},[])},j=g(n),S=function(Y){return Y.reduce(function(L,H){return L.width>H.width?L:H})};if(!m)return j;for(var w="…",b=function(Y){var L=y.slice(0,Y),H=gz({breakAll:h,style:f,children:L+w}).wordsWithComputedWidth,Q=g(H),ie=Q.length>l||S(Q).width>Number(a);return[ie,Q]},A=0,_=y.length-1,T=0,C;A<=_&&T<=y.length-1;){var O=Math.floor((A+_)/2),E=O-1,M=b(E),k=DP(M,2),D=k[0],B=k[1],I=b(O),$=DP(I,1),G=$[0];if(!D&&!G&&(A=O+1),D&&G&&(_=O-1),!D&&G){C=B;break}T++}return C||j},LP=function(t){var n=Ne(t)?[]:t.toString().split(vz);return[{words:n}]},bW=function(t){var n=t.width,r=t.scaleToFit,a=t.children,o=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!Ma.isSsr){var f,h,m=gz({breakAll:l,children:a,style:o});if(m){var y=m.wordsWithComputedWidth,g=m.spaceWidth;f=y,h=g}else return LP(a);return xW({breakAll:l,children:a,maxLines:c,style:o},f,h,n,r)}return LP(a)},zP="#808080",As=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,h=f===void 0?"0.71em":f,m=t.scaleToFit,y=m===void 0?!1:m,g=t.textAnchor,j=g===void 0?"start":g,S=t.verticalAnchor,w=S===void 0?"end":S,b=t.fill,A=b===void 0?zP:b,_=RP(t,dW),T=P.useMemo(function(){return bW({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:y,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,y,_.style,_.width]),C=_.dx,O=_.dy,E=_.angle,M=_.className,k=_.breakAll,D=RP(_,hW);if(!Kt(r)||!Kt(o))return null;var B=r+(ue(C)?C:0),I=o+(ue(O)?O:0),$;switch(w){case"start":$=o0("calc(".concat(h,")"));break;case"middle":$=o0("calc(".concat((T.length-1)/2," * -").concat(c," + (").concat(h," / 2))"));break;default:$=o0("calc(".concat(T.length-1," * -").concat(c,")"));break}var G=[];if(y){var X=T[0].width,Y=_.width;G.push("scale(".concat((ue(Y)?Y/X:1)/X,")"))}return E&&G.push("rotate(".concat(E,", ").concat(B,", ").concat(I,")")),G.length&&(D.transform=G.join(" ")),q.createElement("text",rj({},je(D,!0),{x:B,y:I,className:Pe("recharts-text",M),textAnchor:j,fill:A.includes("url")?zP:A}),T.map(function(L,H){var Q=L.words.join(k?"":" ");return q.createElement("tspan",{x:B,dy:H===0?$:c,key:"".concat(Q,"-").concat(H)},Q)}))};function Sa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bw(e){let t,n,r;e.length!==2?(t=Sa,n=(c,f)=>Sa(e(c),f),r=(c,f)=>e(c)-f):(t=e===Sa||e===jW?e:SW,n=e,r=e);function a(c,f,h=0,m=c.length){if(h<m){if(t(f,f)!==0)return m;do{const y=h+m>>>1;n(c[y],f)<0?h=y+1:m=y}while(h<m)}return h}function o(c,f,h=0,m=c.length){if(h<m){if(t(f,f)!==0)return m;do{const y=h+m>>>1;n(c[y],f)<=0?h=y+1:m=y}while(h<m)}return h}function l(c,f,h=0,m=c.length){const y=a(c,f,h,m-1);return y>h&&r(c[y-1],f)>-r(c[y],f)?y-1:y}return{left:a,center:l,right:o}}function SW(){return 0}function xz(e){return e===null?NaN:+e}function*wW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const AW=bw(Sa),tf=AW.right;bw(xz).center;class $P extends Map{constructor(t,n=TW){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(BP(this,t))}has(t){return super.has(BP(this,t))}set(t,n){return super.set(OW(this,t),n)}delete(t){return super.delete(_W(this,t))}}function BP({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function OW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function _W({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function TW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function EW(e=Sa){if(e===Sa)return bz;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 bz(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const NW=Math.sqrt(50),CW=Math.sqrt(10),MW=Math.sqrt(2);function Dh(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),l=o>=NW?10:o>=CW?5:o>=MW?2:1;let c,f,h;return a<0?(h=Math.pow(10,-a)/l,c=Math.round(e*h),f=Math.round(t*h),c/h<e&&++c,f/h>t&&--f,h=-h):(h=Math.pow(10,a)*l,c=Math.round(e/h),f=Math.round(t/h),c*h<e&&++c,f*h>t&&--f),f<c&&.5<=n&&n<2?Dh(e,t,n*2):[c,f,h]}function ij(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,l]=r?Dh(t,e,n):Dh(e,t,n);if(!(o>=a))return[];const c=o-a+1,f=new Array(c);if(r)if(l<0)for(let h=0;h<c;++h)f[h]=(o-h)/-l;else for(let h=0;h<c;++h)f[h]=(o-h)*l;else if(l<0)for(let h=0;h<c;++h)f[h]=(a+h)/-l;else for(let h=0;h<c;++h)f[h]=(a+h)*l;return f}function aj(e,t,n){return t=+t,e=+e,n=+n,Dh(e,t,n)[2]}function sj(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?aj(t,e,n):aj(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function qP(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function IP(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function jz(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?bz:EW(a);r>n;){if(r-n>600){const f=r-n+1,h=t-n+1,m=Math.log(f),y=.5*Math.exp(2*m/3),g=.5*Math.sqrt(m*y*(f-y)/f)*(h-f/2<0?-1:1),j=Math.max(n,Math.floor(t-h*y/f+g)),S=Math.min(r,Math.floor(t+(f-h)*y/f+g));jz(e,t,j,S,a)}const o=e[t];let l=n,c=r;for(Cu(e,n,t),a(e[r],o)>0&&Cu(e,n,r);l<c;){for(Cu(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?Cu(e,n,c):(++c,Cu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Cu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function PW(e,t,n){if(e=Float64Array.from(wW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return IP(e);if(t>=1)return qP(e);var r,a=(r-1)*t,o=Math.floor(a),l=qP(jz(e,o).subarray(0,o+1)),c=IP(e.subarray(o+1));return l+(c-l)*(a-o)}}function RW(e,t,n=xz){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,o=Math.floor(a),l=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return l+(c-l)*(a-o)}}function DW(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,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function vr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function $i(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 oj=Symbol("implicit");function jw(){var e=new $P,t=[],n=[],r=oj;function a(o){let l=e.get(o);if(l===void 0){if(r!==oj)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new $P;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return jw(t,n).unknown(r)},vr.apply(a,arguments),a}function yc(){var e=jw().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,l,c=!1,f=0,h=0,m=.5;delete e.unknown;function y(){var g=t().length,j=a<r,S=j?a:r,w=j?r:a;o=(w-S)/Math.max(1,g-f+h*2),c&&(o=Math.floor(o)),S+=(w-S-o*(g-f))*m,l=o*(1-f),c&&(S=Math.round(S),l=Math.round(l));var b=DW(g).map(function(A){return S+o*A});return n(j?b.reverse():b)}return e.domain=function(g){return arguments.length?(t(g),y()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,y()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,c=!0,y()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(g){return arguments.length?(c=!!g,y()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,h=+g),y()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),y()):f},e.paddingOuter=function(g){return arguments.length?(h=+g,y()):h},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),y()):m},e.copy=function(){return yc(t(),[r,a]).round(c).paddingInner(f).paddingOuter(h).align(m)},vr.apply(y(),arguments)}function Sz(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Sz(t())},e}function Zu(){return Sz(yc.apply(null,arguments).paddingInner(1))}function Sw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nf(){}var vc=.7,kh=1/vc,$o="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kW=/^#([0-9a-f]{3,8})$/,LW=new RegExp(`^rgb\\(${$o},${$o},${$o}\\)$`),zW=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),$W=new RegExp(`^rgba\\(${$o},${$o},${$o},${gc}\\)$`),BW=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${gc}\\)$`),qW=new RegExp(`^hsl\\(${gc},${Yr},${Yr}\\)$`),IW=new RegExp(`^hsla\\(${gc},${Yr},${Yr},${gc}\\)$`),UP={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};Sw(nf,xc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:VP,formatHex:VP,formatHex8:UW,formatHsl:VW,formatRgb:HP,toString:HP});function VP(){return this.rgb().formatHex()}function UW(){return this.rgb().formatHex8()}function VW(){return Az(this).formatHsl()}function HP(){return this.rgb().formatRgb()}function xc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=kW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?FP(t):n===3?new Nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Bd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Bd(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=LW.exec(e))?new Nn(t[1],t[2],t[3],1):(t=zW.exec(e))?new Nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$W.exec(e))?Bd(t[1],t[2],t[3],t[4]):(t=BW.exec(e))?Bd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qW.exec(e))?YP(t[1],t[2]/100,t[3]/100,1):(t=IW.exec(e))?YP(t[1],t[2]/100,t[3]/100,t[4]):UP.hasOwnProperty(e)?FP(UP[e]):e==="transparent"?new Nn(NaN,NaN,NaN,0):null}function FP(e){return new Nn(e>>16&255,e>>8&255,e&255,1)}function Bd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nn(e,t,n,r)}function HW(e){return e instanceof nf||(e=xc(e)),e?(e=e.rgb(),new Nn(e.r,e.g,e.b,e.opacity)):new Nn}function lj(e,t,n,r){return arguments.length===1?HW(e):new Nn(e,t,n,r??1)}function Nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Sw(Nn,lj,wz(nf,{brighter(e){return e=e==null?kh:Math.pow(kh,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vc:Math.pow(vc,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nn(gs(this.r),gs(this.g),gs(this.b),Lh(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:GP,formatHex:GP,formatHex8:FW,formatRgb:KP,toString:KP}));function GP(){return`#${ds(this.r)}${ds(this.g)}${ds(this.b)}`}function FW(){return`#${ds(this.r)}${ds(this.g)}${ds(this.b)}${ds((isNaN(this.opacity)?1:this.opacity)*255)}`}function KP(){const e=Lh(this.opacity);return`${e===1?"rgb(":"rgba("}${gs(this.r)}, ${gs(this.g)}, ${gs(this.b)}${e===1?")":`, ${e})`}`}function Lh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ds(e){return e=gs(e),(e<16?"0":"")+e.toString(16)}function YP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Er(e,t,n,r)}function Az(e){if(e instanceof Er)return new Er(e.h,e.s,e.l,e.opacity);if(e instanceof nf||(e=xc(e)),!e)return new Er;if(e instanceof Er)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,c=o-a,f=(o+a)/2;return c?(t===o?l=(n-r)/c+(n<r)*6:n===o?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?o+a:2-o-a,l*=60):c=f>0&&f<1?0:l,new Er(l,c,f,e.opacity)}function GW(e,t,n,r){return arguments.length===1?Az(e):new Er(e,t,n,r??1)}function Er(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Sw(Er,GW,wz(nf,{brighter(e){return e=e==null?kh:Math.pow(kh,e),new Er(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vc:Math.pow(vc,e),new Er(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 Nn(l0(e>=240?e-240:e+120,a,r),l0(e,a,r),l0(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Er(XP(this.h),qd(this.s),qd(this.l),Lh(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=Lh(this.opacity);return`${e===1?"hsl(":"hsla("}${XP(this.h)}, ${qd(this.s)*100}%, ${qd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function XP(e){return e=(e||0)%360,e<0?e+360:e}function qd(e){return Math.max(0,Math.min(1,e||0))}function l0(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 ww=e=>()=>e;function KW(e,t){return function(n){return e+n*t}}function YW(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 XW(e){return(e=+e)==1?Oz:function(t,n){return n-t?YW(t,n,e):ww(isNaN(t)?n:t)}}function Oz(e,t){var n=t-e;return n?KW(e,n):ww(isNaN(e)?t:e)}const WP=(function e(t){var n=XW(t);function r(a,o){var l=n((a=lj(a)).r,(o=lj(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),h=Oz(a.opacity,o.opacity);return function(m){return a.r=l(m),a.g=c(m),a.b=f(m),a.opacity=h(m),a+""}}return r.gamma=e,r})(1);function WW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function ZW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function QW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)a[l]=_l(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(c){for(l=0;l<r;++l)o[l]=a[l](c);return o}}function JW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function zh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function eZ(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]=_l(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var uj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u0=new RegExp(uj.source,"g");function tZ(e){return function(){return e}}function nZ(e){return function(t){return e(t)+""}}function rZ(e,t){var n=uj.lastIndex=u0.lastIndex=0,r,a,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=uj.exec(e))&&(a=u0.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),c[l]?c[l]+=o:c[++l]=o),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:zh(r,a)})),n=u0.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?f[0]?nZ(f[0].x):tZ(t):(t=f.length,function(h){for(var m=0,y;m<t;++m)c[(y=f[m]).i]=y.x(h);return c.join("")})}function _l(e,t){var n=typeof t,r;return t==null||n==="boolean"?ww(t):(n==="number"?zh:n==="string"?(r=xc(t))?(t=r,WP):rZ:t instanceof xc?WP:t instanceof Date?JW:ZW(t)?WW:Array.isArray(t)?QW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?eZ:zh)(e,t)}function Aw(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function iZ(e,t){t===void 0&&(t=e,e=_l);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[c](l-c)}}function aZ(e){return function(){return e}}function $h(e){return+e}var ZP=[0,1];function jn(e){return e}function cj(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:aZ(isNaN(t)?NaN:.5)}function sZ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function oZ(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=cj(a,r),o=n(l,o)):(r=cj(r,a),o=n(o,l)),function(c){return o(r(c))}}function lZ(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=cj(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var f=tf(e,c,1,r)-1;return o[f](a[f](c))}}function rf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Kp(){var e=ZP,t=ZP,n=_l,r,a,o,l=jn,c,f,h;function m(){var g=Math.min(e.length,t.length);return l!==jn&&(l=sZ(e[0],e[g-1])),c=g>2?lZ:oZ,f=h=null,y}function y(g){return g==null||isNaN(g=+g)?o:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return y.invert=function(g){return l(a((h||(h=c(t,e.map(r),zh)))(g)))},y.domain=function(g){return arguments.length?(e=Array.from(g,$h),m()):e.slice()},y.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},y.rangeRound=function(g){return t=Array.from(g),n=Aw,m()},y.clamp=function(g){return arguments.length?(l=g?!0:jn,m()):l!==jn},y.interpolate=function(g){return arguments.length?(n=g,m()):n},y.unknown=function(g){return arguments.length?(o=g,y):o},function(g,j){return r=g,a=j,m()}}function Ow(){return Kp()(jn,jn)}function uZ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Bh(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 Yo(e){return e=Bh(Math.abs(e)),e?e[1]:NaN}function cZ(e,t){return function(n,r){for(var a=n.length,o=[],l=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),o.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return o.reverse().join(t)}}function fZ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var dZ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bc(e){if(!(t=dZ.exec(e)))throw new Error("invalid format: "+e);var t;return new _w({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]})}bc.prototype=_w.prototype;function _w(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+""}_w.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 hZ(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 qh;function pZ(e,t){var n=Bh(e,t);if(!n)return qh=void 0,e.toPrecision(t);var r=n[0],a=n[1],o=a-(qh=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Bh(e,Math.max(0,t+o-1))[0]}function QP(e,t){var n=Bh(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 JP={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:uZ,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)=>QP(e*100,t),r:QP,s:pZ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eR(e){return e}var tR=Array.prototype.map,nR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function mZ(e){var t=e.grouping===void 0||e.thousands===void 0?eR:cZ(tR.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+"",o=e.numerals===void 0?eR:fZ(tR.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function h(y,g){y=bc(y);var j=y.fill,S=y.align,w=y.sign,b=y.symbol,A=y.zero,_=y.width,T=y.comma,C=y.precision,O=y.trim,E=y.type;E==="n"?(T=!0,E="g"):JP[E]||(C===void 0&&(C=12),O=!0,E="g"),(A||j==="0"&&S==="=")&&(A=!0,j="0",S="=");var M=(g&&g.prefix!==void 0?g.prefix:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():""),k=(b==="$"?r:/[%p]/.test(E)?l:"")+(g&&g.suffix!==void 0?g.suffix:""),D=JP[E],B=/[defgprs%]/.test(E);C=C===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function I($){var G=M,X=k,Y,L,H;if(E==="c")X=D($)+X,$="";else{$=+$;var Q=$<0||1/$<0;if($=isNaN($)?f:D(Math.abs($),C),O&&($=hZ($)),Q&&+$==0&&w!=="+"&&(Q=!1),G=(Q?w==="("?w:c:w==="-"||w==="("?"":w)+G,X=(E==="s"&&!isNaN($)&&qh!==void 0?nR[8+qh/3]:"")+X+(Q&&w==="("?")":""),B){for(Y=-1,L=$.length;++Y<L;)if(H=$.charCodeAt(Y),48>H||H>57){X=(H===46?a+$.slice(Y+1):$.slice(Y))+X,$=$.slice(0,Y);break}}}T&&!A&&($=t($,1/0));var ie=G.length+$.length+X.length,oe=ie<_?new Array(_-ie+1).join(j):"";switch(T&&A&&($=t(oe+$,oe.length?_-X.length:1/0),oe=""),S){case"<":$=G+$+X+oe;break;case"=":$=G+oe+$+X;break;case"^":$=oe.slice(0,ie=oe.length>>1)+G+$+X+oe.slice(ie);break;default:$=oe+G+$+X;break}return o($)}return I.toString=function(){return y+""},I}function m(y,g){var j=Math.max(-8,Math.min(8,Math.floor(Yo(g)/3)))*3,S=Math.pow(10,-j),w=h((y=bc(y),y.type="f",y),{suffix:nR[8+j/3]});return function(b){return w(S*b)}}return{format:h,formatPrefix:m}}var Id,Tw,_z;yZ({thousands:",",grouping:[3],currency:["$",""]});function yZ(e){return Id=mZ(e),Tw=Id.format,_z=Id.formatPrefix,Id}function vZ(e){return Math.max(0,-Yo(Math.abs(e)))}function gZ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yo(t)/3)))*3-Yo(Math.abs(e)))}function xZ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yo(t)-Yo(e))+1}function Tz(e,t,n,r){var a=sj(e,t,n),o;switch(r=bc(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=gZ(a,l))&&(r.precision=o),_z(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=xZ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=vZ(a))&&(r.precision=o-(r.type==="%")*2);break}}return Tw(r)}function Pa(e){var t=e.domain;return e.ticks=function(n){var r=t();return ij(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Tz(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,l=r[a],c=r[o],f,h,m=10;for(c<l&&(h=l,l=c,c=h,h=a,a=o,o=h);m-- >0;){if(h=aj(l,c,n),h===f)return r[a]=l,r[o]=c,t(r);if(h>0)l=Math.floor(l/h)*h,c=Math.ceil(c/h)*h;else if(h<0)l=Math.ceil(l*h)/h,c=Math.floor(c*h)/h;else break;f=h}return e},e}function Ih(){var e=Ow();return e.copy=function(){return rf(e,Ih())},vr.apply(e,arguments),Pa(e)}function Ez(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,$h),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Ez(e).unknown(t)},e=arguments.length?Array.from(e,$h):[0,1],Pa(n)}function Nz(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],l;return o<a&&(l=n,n=r,r=l,l=a,a=o,o=l),e[n]=t.floor(a),e[r]=t.ceil(o),e}function rR(e){return Math.log(e)}function iR(e){return Math.exp(e)}function bZ(e){return-Math.log(-e)}function jZ(e){return-Math.exp(-e)}function SZ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function wZ(e){return e===10?SZ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function AZ(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 aR(e){return(t,n)=>-e(-t,n)}function Ew(e){const t=e(rR,iR),n=t.domain;let r=10,a,o;function l(){return a=AZ(r),o=wZ(r),n()[0]<0?(a=aR(a),o=aR(o),e(bZ,jZ)):e(rR,iR),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let h=f[0],m=f[f.length-1];const y=m<h;y&&([h,m]=[m,h]);let g=a(h),j=a(m),S,w;const b=c==null?10:+c;let A=[];if(!(r%1)&&j-g<b){if(g=Math.floor(g),j=Math.ceil(j),h>0){for(;g<=j;++g)for(S=1;S<r;++S)if(w=g<0?S/o(-g):S*o(g),!(w<h)){if(w>m)break;A.push(w)}}else for(;g<=j;++g)for(S=r-1;S>=1;--S)if(w=g>0?S/o(-g):S*o(g),!(w<h)){if(w>m)break;A.push(w)}A.length*2<b&&(A=ij(h,m,b))}else A=ij(g,j,Math.min(j-g,b)).map(o);return y?A.reverse():A},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=bc(f)).precision==null&&(f.trim=!0),f=Tw(f)),c===1/0)return f;const h=Math.max(1,r*c/t.ticks().length);return m=>{let y=m/o(Math.round(a(m)));return y*r<r-.5&&(y*=r),y<=h?f(m):""}},t.nice=()=>n(Nz(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function Cz(){const e=Ew(Kp()).domain([1,10]);return e.copy=()=>rf(e,Cz()).base(e.base()),vr.apply(e,arguments),e}function sR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function oR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Nw(e){var t=1,n=e(sR(t),oR(t));return n.constant=function(r){return arguments.length?e(sR(t=+r),oR(t)):t},Pa(n)}function Mz(){var e=Nw(Kp());return e.copy=function(){return rf(e,Mz()).constant(e.constant())},vr.apply(e,arguments)}function lR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function OZ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function _Z(e){return e<0?-e*e:e*e}function Cw(e){var t=e(jn,jn),n=1;function r(){return n===1?e(jn,jn):n===.5?e(OZ,_Z):e(lR(n),lR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Pa(t)}function Mw(){var e=Cw(Kp());return e.copy=function(){return rf(e,Mw()).exponent(e.exponent())},vr.apply(e,arguments),e}function TZ(){return Mw.apply(null,arguments).exponent(.5)}function uR(e){return Math.sign(e)*e*e}function EZ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Pz(){var e=Ow(),t=[0,1],n=!1,r;function a(o){var l=EZ(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(uR(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,$h)).map(uR)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return Pz(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},vr.apply(a,arguments),Pa(a)}function Rz(){var e=[],t=[],n=[],r;function a(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=RW(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[tf(n,l)]}return o.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Sa),a()},o.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return Rz().domain(e).range(t).unknown(r)},vr.apply(o,arguments)}function Dz(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function l(f){return f!=null&&f<=f?a[tf(r,f,0,n)]:o}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(a=Array.from(f)).length-1,c()):a.slice()},l.invertExtent=function(f){var h=a.indexOf(f);return h<0?[NaN,NaN]:h<1?[e,r[0]]:h>=n?[r[n-1],t]:[r[h-1],r[h]]},l.unknown=function(f){return arguments.length&&(o=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return Dz().domain([e,t]).range(a).unknown(o)},vr.apply(Pa(l),arguments)}function kz(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[tf(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return kz().domain(e).range(t).unknown(n)},vr.apply(a,arguments)}const c0=new Date,f0=new Date;function Xt(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const l=a(o),c=a.ceil(o);return o-l<c-o?l:c},a.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),a.range=(o,l,c)=>{const f=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<l)||!(c>0))return f;let h;do f.push(h=new Date(+o)),t(o,c),e(o);while(h<o&&o<l);return f},a.filter=o=>Xt(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!o(l););else for(;--c>=0;)for(;t(l,1),!o(l););}),n&&(a.count=(o,l)=>(c0.setTime(+o),f0.setTime(+l),e(c0),e(f0),Math.floor(n(c0,f0))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?l=>r(l)%o===0:l=>a.count(0,l)%o===0):a)),a}const Uh=Xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Uh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Uh);Uh.range;const Oi=1e3,hr=Oi*60,_i=hr*60,Pi=_i*24,Pw=Pi*7,cR=Pi*30,d0=Pi*365,hs=Xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Oi)},(e,t)=>(t-e)/Oi,e=>e.getUTCSeconds());hs.range;const Rw=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oi)},(e,t)=>{e.setTime(+e+t*hr)},(e,t)=>(t-e)/hr,e=>e.getMinutes());Rw.range;const Dw=Xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*hr)},(e,t)=>(t-e)/hr,e=>e.getUTCMinutes());Dw.range;const kw=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oi-e.getMinutes()*hr)},(e,t)=>{e.setTime(+e+t*_i)},(e,t)=>(t-e)/_i,e=>e.getHours());kw.range;const Lw=Xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_i)},(e,t)=>(t-e)/_i,e=>e.getUTCHours());Lw.range;const af=Xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*hr)/Pi,e=>e.getDate()-1);af.range;const Yp=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Pi,e=>e.getUTCDate()-1);Yp.range;const Lz=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Pi,e=>Math.floor(e/Pi));Lz.range;function Ps(e){return Xt(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())*hr)/Pw)}const Xp=Ps(0),Vh=Ps(1),NZ=Ps(2),CZ=Ps(3),Xo=Ps(4),MZ=Ps(5),PZ=Ps(6);Xp.range;Vh.range;NZ.range;CZ.range;Xo.range;MZ.range;PZ.range;function Rs(e){return Xt(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)/Pw)}const Wp=Rs(0),Hh=Rs(1),RZ=Rs(2),DZ=Rs(3),Wo=Rs(4),kZ=Rs(5),LZ=Rs(6);Wp.range;Hh.range;RZ.range;DZ.range;Wo.range;kZ.range;LZ.range;const zw=Xt(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());zw.range;const $w=Xt(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());$w.range;const Ri=Xt(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());Ri.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(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)});Ri.range;const Di=Xt(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());Di.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(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)});Di.range;function zz(e,t,n,r,a,o){const l=[[hs,1,Oi],[hs,5,5*Oi],[hs,15,15*Oi],[hs,30,30*Oi],[o,1,hr],[o,5,5*hr],[o,15,15*hr],[o,30,30*hr],[a,1,_i],[a,3,3*_i],[a,6,6*_i],[a,12,12*_i],[r,1,Pi],[r,2,2*Pi],[n,1,Pw],[t,1,cR],[t,3,3*cR],[e,1,d0]];function c(h,m,y){const g=m<h;g&&([h,m]=[m,h]);const j=y&&typeof y.range=="function"?y:f(h,m,y),S=j?j.range(h,+m+1):[];return g?S.reverse():S}function f(h,m,y){const g=Math.abs(m-h)/y,j=bw(([,,b])=>b).right(l,g);if(j===l.length)return e.every(sj(h/d0,m/d0,y));if(j===0)return Uh.every(Math.max(sj(h,m,y),1));const[S,w]=l[g/l[j-1][2]<l[j][2]/g?j-1:j];return S.every(w)}return[c,f]}const[zZ,$Z]=zz(Di,$w,Wp,Lz,Lw,Dw),[BZ,qZ]=zz(Ri,zw,Xp,af,kw,Rw);function h0(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 p0(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 Mu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function IZ(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,h=Pu(a),m=Ru(a),y=Pu(o),g=Ru(o),j=Pu(l),S=Ru(l),w=Pu(c),b=Ru(c),A=Pu(f),_=Ru(f),T={a:H,A:Q,b:ie,B:oe,c:null,d:yR,e:yR,f:cQ,g:bQ,G:SQ,H:oQ,I:lQ,j:uQ,L:$z,m:fQ,M:dQ,p:z,q:F,Q:xR,s:bR,S:hQ,u:pQ,U:mQ,V:yQ,w:vQ,W:gQ,x:null,X:null,y:xQ,Y:jQ,Z:wQ,"%":gR},C={a:re,A:fe,b:pe,B:we,c:null,d:vR,e:vR,f:TQ,g:zQ,G:BQ,H:AQ,I:OQ,j:_Q,L:qz,m:EQ,M:NQ,p:ze,q:Ze,Q:xR,s:bR,S:CQ,u:MQ,U:PQ,V:RQ,w:DQ,W:kQ,x:null,X:null,y:LQ,Y:$Q,Z:qQ,"%":gR},O={a:B,A:I,b:$,B:G,c:X,d:pR,e:pR,f:rQ,g:hR,G:dR,H:mR,I:mR,j:JZ,L:nQ,m:QZ,M:eQ,p:D,q:ZZ,Q:aQ,s:sQ,S:tQ,u:GZ,U:KZ,V:YZ,w:FZ,W:XZ,x:Y,X:L,y:hR,Y:dR,Z:WZ,"%":iQ};T.x=E(n,T),T.X=E(r,T),T.c=E(t,T),C.x=E(n,C),C.X=E(r,C),C.c=E(t,C);function E(ce,Ee){return function(Ce){var le=[],yt=-1,De=0,Ot=ce.length,_t,cn,gr;for(Ce instanceof Date||(Ce=new Date(+Ce));++yt<Ot;)ce.charCodeAt(yt)===37&&(le.push(ce.slice(De,yt)),(cn=fR[_t=ce.charAt(++yt)])!=null?_t=ce.charAt(++yt):cn=_t==="e"?" ":"0",(gr=Ee[_t])&&(_t=gr(Ce,cn)),le.push(_t),De=yt+1);return le.push(ce.slice(De,yt)),le.join("")}}function M(ce,Ee){return function(Ce){var le=Mu(1900,void 0,1),yt=k(le,ce,Ce+="",0),De,Ot;if(yt!=Ce.length)return null;if("Q"in le)return new Date(le.Q);if("s"in le)return new Date(le.s*1e3+("L"in le?le.L:0));if(Ee&&!("Z"in le)&&(le.Z=0),"p"in le&&(le.H=le.H%12+le.p*12),le.m===void 0&&(le.m="q"in le?le.q:0),"V"in le){if(le.V<1||le.V>53)return null;"w"in le||(le.w=1),"Z"in le?(De=p0(Mu(le.y,0,1)),Ot=De.getUTCDay(),De=Ot>4||Ot===0?Hh.ceil(De):Hh(De),De=Yp.offset(De,(le.V-1)*7),le.y=De.getUTCFullYear(),le.m=De.getUTCMonth(),le.d=De.getUTCDate()+(le.w+6)%7):(De=h0(Mu(le.y,0,1)),Ot=De.getDay(),De=Ot>4||Ot===0?Vh.ceil(De):Vh(De),De=af.offset(De,(le.V-1)*7),le.y=De.getFullYear(),le.m=De.getMonth(),le.d=De.getDate()+(le.w+6)%7)}else("W"in le||"U"in le)&&("w"in le||(le.w="u"in le?le.u%7:"W"in le?1:0),Ot="Z"in le?p0(Mu(le.y,0,1)).getUTCDay():h0(Mu(le.y,0,1)).getDay(),le.m=0,le.d="W"in le?(le.w+6)%7+le.W*7-(Ot+5)%7:le.w+le.U*7-(Ot+6)%7);return"Z"in le?(le.H+=le.Z/100|0,le.M+=le.Z%100,p0(le)):h0(le)}}function k(ce,Ee,Ce,le){for(var yt=0,De=Ee.length,Ot=Ce.length,_t,cn;yt<De;){if(le>=Ot)return-1;if(_t=Ee.charCodeAt(yt++),_t===37){if(_t=Ee.charAt(yt++),cn=O[_t in fR?Ee.charAt(yt++):_t],!cn||(le=cn(ce,Ce,le))<0)return-1}else if(_t!=Ce.charCodeAt(le++))return-1}return le}function D(ce,Ee,Ce){var le=h.exec(Ee.slice(Ce));return le?(ce.p=m.get(le[0].toLowerCase()),Ce+le[0].length):-1}function B(ce,Ee,Ce){var le=j.exec(Ee.slice(Ce));return le?(ce.w=S.get(le[0].toLowerCase()),Ce+le[0].length):-1}function I(ce,Ee,Ce){var le=y.exec(Ee.slice(Ce));return le?(ce.w=g.get(le[0].toLowerCase()),Ce+le[0].length):-1}function $(ce,Ee,Ce){var le=A.exec(Ee.slice(Ce));return le?(ce.m=_.get(le[0].toLowerCase()),Ce+le[0].length):-1}function G(ce,Ee,Ce){var le=w.exec(Ee.slice(Ce));return le?(ce.m=b.get(le[0].toLowerCase()),Ce+le[0].length):-1}function X(ce,Ee,Ce){return k(ce,t,Ee,Ce)}function Y(ce,Ee,Ce){return k(ce,n,Ee,Ce)}function L(ce,Ee,Ce){return k(ce,r,Ee,Ce)}function H(ce){return l[ce.getDay()]}function Q(ce){return o[ce.getDay()]}function ie(ce){return f[ce.getMonth()]}function oe(ce){return c[ce.getMonth()]}function z(ce){return a[+(ce.getHours()>=12)]}function F(ce){return 1+~~(ce.getMonth()/3)}function re(ce){return l[ce.getUTCDay()]}function fe(ce){return o[ce.getUTCDay()]}function pe(ce){return f[ce.getUTCMonth()]}function we(ce){return c[ce.getUTCMonth()]}function ze(ce){return a[+(ce.getUTCHours()>=12)]}function Ze(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var Ee=E(ce+="",T);return Ee.toString=function(){return ce},Ee},parse:function(ce){var Ee=M(ce+="",!1);return Ee.toString=function(){return ce},Ee},utcFormat:function(ce){var Ee=E(ce+="",C);return Ee.toString=function(){return ce},Ee},utcParse:function(ce){var Ee=M(ce+="",!0);return Ee.toString=function(){return ce},Ee}}}var fR={"-":"",_:" ",0:"0"},en=/^\s*\d+/,UZ=/^%/,VZ=/[\\^$*+?|[\]().{}]/g;function Ye(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function HZ(e){return e.replace(VZ,"\\$&")}function Pu(e){return new RegExp("^(?:"+e.map(HZ).join("|")+")","i")}function Ru(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function FZ(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function GZ(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function KZ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function YZ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function XZ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function dR(e,t,n){var r=en.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hR(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function WZ(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 ZZ(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function QZ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function pR(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function JZ(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function mR(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function eQ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function tQ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function nQ(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function rQ(e,t,n){var r=en.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function iQ(e,t,n){var r=UZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function aQ(e,t,n){var r=en.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function sQ(e,t,n){var r=en.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function yR(e,t){return Ye(e.getDate(),t,2)}function oQ(e,t){return Ye(e.getHours(),t,2)}function lQ(e,t){return Ye(e.getHours()%12||12,t,2)}function uQ(e,t){return Ye(1+af.count(Ri(e),e),t,3)}function $z(e,t){return Ye(e.getMilliseconds(),t,3)}function cQ(e,t){return $z(e,t)+"000"}function fQ(e,t){return Ye(e.getMonth()+1,t,2)}function dQ(e,t){return Ye(e.getMinutes(),t,2)}function hQ(e,t){return Ye(e.getSeconds(),t,2)}function pQ(e){var t=e.getDay();return t===0?7:t}function mQ(e,t){return Ye(Xp.count(Ri(e)-1,e),t,2)}function Bz(e){var t=e.getDay();return t>=4||t===0?Xo(e):Xo.ceil(e)}function yQ(e,t){return e=Bz(e),Ye(Xo.count(Ri(e),e)+(Ri(e).getDay()===4),t,2)}function vQ(e){return e.getDay()}function gQ(e,t){return Ye(Vh.count(Ri(e)-1,e),t,2)}function xQ(e,t){return Ye(e.getFullYear()%100,t,2)}function bQ(e,t){return e=Bz(e),Ye(e.getFullYear()%100,t,2)}function jQ(e,t){return Ye(e.getFullYear()%1e4,t,4)}function SQ(e,t){var n=e.getDay();return e=n>=4||n===0?Xo(e):Xo.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function wQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function vR(e,t){return Ye(e.getUTCDate(),t,2)}function AQ(e,t){return Ye(e.getUTCHours(),t,2)}function OQ(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function _Q(e,t){return Ye(1+Yp.count(Di(e),e),t,3)}function qz(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function TQ(e,t){return qz(e,t)+"000"}function EQ(e,t){return Ye(e.getUTCMonth()+1,t,2)}function NQ(e,t){return Ye(e.getUTCMinutes(),t,2)}function CQ(e,t){return Ye(e.getUTCSeconds(),t,2)}function MQ(e){var t=e.getUTCDay();return t===0?7:t}function PQ(e,t){return Ye(Wp.count(Di(e)-1,e),t,2)}function Iz(e){var t=e.getUTCDay();return t>=4||t===0?Wo(e):Wo.ceil(e)}function RQ(e,t){return e=Iz(e),Ye(Wo.count(Di(e),e)+(Di(e).getUTCDay()===4),t,2)}function DQ(e){return e.getUTCDay()}function kQ(e,t){return Ye(Hh.count(Di(e)-1,e),t,2)}function LQ(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function zQ(e,t){return e=Iz(e),Ye(e.getUTCFullYear()%100,t,2)}function $Q(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function BQ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Wo(e):Wo.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function qQ(){return"+0000"}function gR(){return"%"}function xR(e){return+e}function bR(e){return Math.floor(+e/1e3)}var jo,Uz,Vz;IQ({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 IQ(e){return jo=IZ(e),Uz=jo.format,jo.parse,Vz=jo.utcFormat,jo.utcParse,jo}function UQ(e){return new Date(e)}function VQ(e){return e instanceof Date?+e:+new Date(+e)}function Bw(e,t,n,r,a,o,l,c,f,h){var m=Ow(),y=m.invert,g=m.domain,j=h(".%L"),S=h(":%S"),w=h("%I:%M"),b=h("%I %p"),A=h("%a %d"),_=h("%b %d"),T=h("%B"),C=h("%Y");function O(E){return(f(E)<E?j:c(E)<E?S:l(E)<E?w:o(E)<E?b:r(E)<E?a(E)<E?A:_:n(E)<E?T:C)(E)}return m.invert=function(E){return new Date(y(E))},m.domain=function(E){return arguments.length?g(Array.from(E,VQ)):g().map(UQ)},m.ticks=function(E){var M=g();return e(M[0],M[M.length-1],E??10)},m.tickFormat=function(E,M){return M==null?O:h(M)},m.nice=function(E){var M=g();return(!E||typeof E.range!="function")&&(E=t(M[0],M[M.length-1],E??10)),E?g(Nz(M,E)):m},m.copy=function(){return rf(m,Bw(e,t,n,r,a,o,l,c,f,h))},m}function HQ(){return vr.apply(Bw(BZ,qZ,Ri,zw,Xp,af,kw,Rw,hs,Uz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function FQ(){return vr.apply(Bw(zZ,$Z,Di,$w,Wp,Yp,Lw,Dw,hs,Vz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zp(){var e=0,t=1,n,r,a,o,l=jn,c=!1,f;function h(y){return y==null||isNaN(y=+y)?f:l(a===0?.5:(y=(o(y)-n)*a,c?Math.max(0,Math.min(1,y)):y))}h.domain=function(y){return arguments.length?([e,t]=y,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(y){return arguments.length?(c=!!y,h):c},h.interpolator=function(y){return arguments.length?(l=y,h):l};function m(y){return function(g){var j,S;return arguments.length?([j,S]=g,l=y(j,S),h):[l(0),l(1)]}}return h.range=m(_l),h.rangeRound=m(Aw),h.unknown=function(y){return arguments.length?(f=y,h):f},function(y){return o=y,n=y(e),r=y(t),a=n===r?0:1/(r-n),h}}function Ra(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Hz(){var e=Pa(Zp()(jn));return e.copy=function(){return Ra(e,Hz())},$i.apply(e,arguments)}function Fz(){var e=Ew(Zp()).domain([1,10]);return e.copy=function(){return Ra(e,Fz()).base(e.base())},$i.apply(e,arguments)}function Gz(){var e=Nw(Zp());return e.copy=function(){return Ra(e,Gz()).constant(e.constant())},$i.apply(e,arguments)}function qw(){var e=Cw(Zp());return e.copy=function(){return Ra(e,qw()).exponent(e.exponent())},$i.apply(e,arguments)}function GQ(){return qw.apply(null,arguments).exponent(.5)}function Kz(){var e=[],t=jn;function n(r){if(r!=null&&!isNaN(r=+r))return t((tf(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Sa),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,o)=>PW(e,o/r))},n.copy=function(){return Kz(t).domain(e)},$i.apply(n,arguments)}function Qp(){var e=0,t=.5,n=1,r=1,a,o,l,c,f,h=jn,m,y=!1,g;function j(w){return isNaN(w=+w)?g:(w=.5+((w=+m(w))-o)*(r*w<r*o?c:f),h(y?Math.max(0,Math.min(1,w)):w))}j.domain=function(w){return arguments.length?([e,t,n]=w,a=m(e=+e),o=m(t=+t),l=m(n=+n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,j):[e,t,n]},j.clamp=function(w){return arguments.length?(y=!!w,j):y},j.interpolator=function(w){return arguments.length?(h=w,j):h};function S(w){return function(b){var A,_,T;return arguments.length?([A,_,T]=b,h=iZ(w,[A,_,T]),j):[h(0),h(.5),h(1)]}}return j.range=S(_l),j.rangeRound=S(Aw),j.unknown=function(w){return arguments.length?(g=w,j):g},function(w){return m=w,a=w(e),o=w(t),l=w(n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,j}}function Yz(){var e=Pa(Qp()(jn));return e.copy=function(){return Ra(e,Yz())},$i.apply(e,arguments)}function Xz(){var e=Ew(Qp()).domain([.1,1,10]);return e.copy=function(){return Ra(e,Xz()).base(e.base())},$i.apply(e,arguments)}function Wz(){var e=Nw(Qp());return e.copy=function(){return Ra(e,Wz()).constant(e.constant())},$i.apply(e,arguments)}function Iw(){var e=Cw(Qp());return e.copy=function(){return Ra(e,Iw()).exponent(e.exponent())},$i.apply(e,arguments)}function KQ(){return Iw.apply(null,arguments).exponent(.5)}const jR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:yc,scaleDiverging:Yz,scaleDivergingLog:Xz,scaleDivergingPow:Iw,scaleDivergingSqrt:KQ,scaleDivergingSymlog:Wz,scaleIdentity:Ez,scaleImplicit:oj,scaleLinear:Ih,scaleLog:Cz,scaleOrdinal:jw,scalePoint:Zu,scalePow:Mw,scaleQuantile:Rz,scaleQuantize:Dz,scaleRadial:Pz,scaleSequential:Hz,scaleSequentialLog:Fz,scaleSequentialPow:qw,scaleSequentialQuantile:Kz,scaleSequentialSqrt:GQ,scaleSequentialSymlog:Gz,scaleSqrt:TZ,scaleSymlog:Mz,scaleThreshold:kz,scaleTime:HQ,scaleUtc:FQ,tickFormat:Tz},Symbol.toStringTag,{value:"Module"}));var m0,SR;function Jp(){if(SR)return m0;SR=1;var e=Sl();function t(n,r,a){for(var o=-1,l=n.length;++o<l;){var c=n[o],f=r(c);if(f!=null&&(h===void 0?f===f&&!e(f):a(f,h)))var h=f,m=c}return m}return m0=t,m0}var y0,wR;function Zz(){if(wR)return y0;wR=1;function e(t,n){return t>n}return y0=e,y0}var v0,AR;function YQ(){if(AR)return v0;AR=1;var e=Jp(),t=Zz(),n=Ol();function r(a){return a&&a.length?e(a,n,t):void 0}return v0=r,v0}var XQ=YQ();const xa=it(XQ);var g0,OR;function Qz(){if(OR)return g0;OR=1;function e(t,n){return t<n}return g0=e,g0}var x0,_R;function WQ(){if(_R)return x0;_R=1;var e=Jp(),t=Qz(),n=Ol();function r(a){return a&&a.length?e(a,n,t):void 0}return x0=r,x0}var ZQ=WQ();const em=it(ZQ);var b0,TR;function QQ(){if(TR)return b0;TR=1;var e=rw(),t=ti(),n=oz(),r=Pn();function a(o,l){var c=r(o)?e:n;return c(o,t(l,3))}return b0=a,b0}var j0,ER;function JQ(){if(ER)return j0;ER=1;var e=az(),t=QQ();function n(r,a){return e(t(r,a),1)}return j0=n,j0}var eJ=JQ();const tJ=it(eJ);var S0,NR;function nJ(){if(NR)return S0;NR=1;var e=yw();function t(n,r){return e(n,r)}return S0=t,S0}var rJ=nJ();const Os=it(rJ);var Tl=1e9,iJ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Vw,wt=!0,yr="[DecimalError] ",xs=yr+"Invalid argument: ",Uw=yr+"Exponent out of range: ",El=Math.floor,ss=Math.pow,aJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Gn,Qt=1e7,jt=7,Jz=9007199254740991,Fh=El(Jz/jt),ye={};ye.absoluteValue=ye.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ye.comparedTo=ye.cmp=function(e){var t,n,r,a,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===a?0:r>a^o.s<0?1:-1};ye.decimalPlaces=ye.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*jt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ye.dividedBy=ye.div=function(e){return Ni(this,new this.constructor(e))};ye.dividedToIntegerBy=ye.idiv=function(e){var t=this,n=t.constructor;return dt(Ni(t,new n(e),0,1),n.precision)};ye.equals=ye.eq=function(e){return!this.cmp(e)};ye.exponent=function(){return It(this)};ye.greaterThan=ye.gt=function(e){return this.cmp(e)>0};ye.greaterThanOrEqualTo=ye.gte=function(e){return this.cmp(e)>=0};ye.isInteger=ye.isint=function(){return this.e>this.d.length-2};ye.isNegative=ye.isneg=function(){return this.s<0};ye.isPositive=ye.ispos=function(){return this.s>0};ye.isZero=function(){return this.s===0};ye.lessThan=ye.lt=function(e){return this.cmp(e)<0};ye.lessThanOrEqualTo=ye.lte=function(e){return this.cmp(e)<1};ye.logarithm=ye.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Gn))throw Error(yr+"NaN");if(n.s<1)throw Error(yr+(n.s?"NaN":"-Infinity"));return n.eq(Gn)?new r(0):(wt=!1,t=Ni(jc(n,o),jc(e,o),o),wt=!0,dt(t,a))};ye.minus=ye.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?n$(t,e):e$(t,(e.s=-e.s,e))};ye.modulo=ye.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(yr+"NaN");return n.s?(wt=!1,t=Ni(n,e,0,1).times(e),wt=!0,n.minus(t)):dt(new r(n),a)};ye.naturalExponential=ye.exp=function(){return t$(this)};ye.naturalLogarithm=ye.ln=function(){return jc(this)};ye.negated=ye.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ye.plus=ye.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?e$(t,e):n$(t,(e.s=-e.s,e))};ye.precision=ye.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(xs+e);if(t=It(a)+1,r=a.d.length-1,n=r*jt+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};ye.squareRoot=ye.sqrt=function(){var e,t,n,r,a,o,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(yr+"NaN")}for(e=It(c),wt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=Hr(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=El((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 f(t)):r=new f(a.toString()),n=f.precision,a=l=n+3;;)if(o=r,r=o.plus(Ni(c,o,l+2)).times(.5),Hr(o.d).slice(0,l)===(t=Hr(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(dt(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return wt=!0,dt(r,n)};ye.times=ye.mul=function(e){var t,n,r,a,o,l,c,f,h,m=this,y=m.constructor,g=m.d,j=(e=new y(e)).d;if(!m.s||!e.s)return new y(0);for(e.s*=m.s,n=m.e+e.e,f=g.length,h=j.length,f<h&&(o=g,g=j,j=o,l=f,f=h,h=l),o=[],l=f+h,r=l;r--;)o.push(0);for(r=h;--r>=0;){for(t=0,a=f+r;a>r;)c=o[a]+j[r]*g[a-r-1]+t,o[a--]=c%Qt|0,t=c/Qt|0;o[a]=(o[a]+t)%Qt|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,wt?dt(e,y.precision):e};ye.toDecimalPlaces=ye.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Jr(e,0,Tl),t===void 0?t=r.rounding:Jr(t,0,8),dt(n,e+It(n)+1,t))};ye.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=_s(r,!0):(Jr(e,0,Tl),t===void 0?t=a.rounding:Jr(t,0,8),r=dt(new a(r),e+1,t),n=_s(r,!0,e+1)),n};ye.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?_s(a):(Jr(e,0,Tl),t===void 0?t=o.rounding:Jr(t,0,8),r=dt(new o(a),e+It(a)+1,t),n=_s(r.abs(),!1,e+It(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ye.toInteger=ye.toint=function(){var e=this,t=e.constructor;return dt(new t(e),It(e)+1,t.rounding)};ye.toNumber=function(){return+this};ye.toPower=ye.pow=function(e){var t,n,r,a,o,l,c=this,f=c.constructor,h=12,m=+(e=new f(e));if(!e.s)return new f(Gn);if(c=new f(c),!c.s){if(e.s<1)throw Error(yr+"Infinity");return c}if(c.eq(Gn))return c;if(r=f.precision,e.eq(Gn))return dt(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=c.s,l){if((n=m<0?-m:m)<=Jz){for(a=new f(Gn),t=Math.ceil(r/jt+4),wt=!1;n%2&&(a=a.times(c),MR(a.d,t)),n=El(n/2),n!==0;)c=c.times(c),MR(c.d,t);return wt=!0,e.s<0?new f(Gn).div(a):dt(a,r)}}else if(o<0)throw Error(yr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,wt=!1,a=e.times(jc(c,r+h)),wt=!0,a=t$(a),a.s=o,a};ye.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=It(a),r=_s(a,n<=o.toExpNeg||n>=o.toExpPos)):(Jr(e,1,Tl),t===void 0?t=o.rounding:Jr(t,0,8),a=dt(new o(a),e,t),n=It(a),r=_s(a,e<=n||n<=o.toExpNeg,e)),r};ye.toSignificantDigits=ye.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Jr(e,1,Tl),t===void 0?t=r.rounding:Jr(t,0,8)),dt(new r(n),e,t)};ye.toString=ye.valueOf=ye.val=ye.toJSON=ye[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=It(e),n=e.constructor;return _s(e,t<=n.toExpNeg||t>=n.toExpPos)};function e$(e,t){var n,r,a,o,l,c,f,h,m=e.constructor,y=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),wt?dt(t,y):t;if(f=e.d,h=t.d,l=e.e,a=t.e,f=f.slice(),o=l-a,o){for(o<0?(r=f,o=-o,c=h.length):(r=h,a=l,c=f.length),l=Math.ceil(y/jt),c=l>c?l+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=f.length,o=h.length,c-o<0&&(o=c,r=h,h=f,f=r),n=0;o;)n=(f[--o]=f[o]+h[o]+n)/Qt|0,f[o]%=Qt;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,wt?dt(t,y):t}function Jr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(xs+e)}function Hr(e){var t,n,r,a=e.length-1,o="",l=e[0];if(a>0){for(o+=l,t=1;t<a;t++)r=e[t]+"",n=jt-r.length,n&&(o+=ya(n)),o+=r;l=e[t],r=l+"",n=jt-r.length,n&&(o+=ya(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var Ni=(function(){function e(r,a){var o,l=0,c=r.length;for(r=r.slice();c--;)o=r[c]*a+l,r[c]=o%Qt|0,l=o/Qt|0;return l&&r.unshift(l),r}function t(r,a,o,l){var c,f;if(o!=l)f=o>l?1:-1;else for(c=f=0;c<o;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,o){for(var l=0;o--;)r[o]-=l,l=r[o]<a[o]?1:0,r[o]=l*Qt+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,l){var c,f,h,m,y,g,j,S,w,b,A,_,T,C,O,E,M,k,D=r.constructor,B=r.s==a.s?1:-1,I=r.d,$=a.d;if(!r.s)return new D(r);if(!a.s)throw Error(yr+"Division by zero");for(f=r.e-a.e,M=$.length,O=I.length,j=new D(B),S=j.d=[],h=0;$[h]==(I[h]||0);)++h;if($[h]>(I[h]||0)&&--f,o==null?_=o=D.precision:l?_=o+(It(r)-It(a))+1:_=o,_<0)return new D(0);if(_=_/jt+2|0,h=0,M==1)for(m=0,$=$[0],_++;(h<O||m)&&_--;h++)T=m*Qt+(I[h]||0),S[h]=T/$|0,m=T%$|0;else{for(m=Qt/($[0]+1)|0,m>1&&($=e($,m),I=e(I,m),M=$.length,O=I.length),C=M,w=I.slice(0,M),b=w.length;b<M;)w[b++]=0;k=$.slice(),k.unshift(0),E=$[0],$[1]>=Qt/2&&++E;do m=0,c=t($,w,M,b),c<0?(A=w[0],M!=b&&(A=A*Qt+(w[1]||0)),m=A/E|0,m>1?(m>=Qt&&(m=Qt-1),y=e($,m),g=y.length,b=w.length,c=t(y,w,g,b),c==1&&(m--,n(y,M<g?k:$,g))):(m==0&&(c=m=1),y=$.slice()),g=y.length,g<b&&y.unshift(0),n(w,y,b),c==-1&&(b=w.length,c=t($,w,M,b),c<1&&(m++,n(w,M<b?k:$,b))),b=w.length):c===0&&(m++,w=[0]),S[h++]=m,c&&w[0]?w[b++]=I[C]||0:(w=[I[C]],b=1);while((C++<O||w[0]!==void 0)&&_--)}return S[0]||S.shift(),j.e=f,dt(j,l?o+It(j)+1:o)}})();function t$(e,t){var n,r,a,o,l,c,f=0,h=0,m=e.constructor,y=m.precision;if(It(e)>16)throw Error(Uw+It(e));if(!e.s)return new m(Gn);for(wt=!1,c=y,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),h+=5;for(r=Math.log(ss(2,h))/Math.LN10*2+5|0,c+=r,n=a=o=new m(Gn),m.precision=c;;){if(a=dt(a.times(e),c),n=n.times(++f),l=o.plus(Ni(a,n,c)),Hr(l.d).slice(0,c)===Hr(o.d).slice(0,c)){for(;h--;)o=dt(o.times(o),c);return m.precision=y,t==null?(wt=!0,dt(o,y)):o}o=l}}function It(e){for(var t=e.e*jt,n=e.d[0];n>=10;n/=10)t++;return t}function w0(e,t,n){if(t>e.LN10.sd())throw wt=!0,n&&(e.precision=n),Error(yr+"LN10 precision limit exceeded");return dt(new e(e.LN10),t)}function ya(e){for(var t="";e--;)t+="0";return t}function jc(e,t){var n,r,a,o,l,c,f,h,m,y=1,g=10,j=e,S=j.d,w=j.constructor,b=w.precision;if(j.s<1)throw Error(yr+(j.s?"NaN":"-Infinity"));if(j.eq(Gn))return new w(0);if(t==null?(wt=!1,h=b):h=t,j.eq(10))return t==null&&(wt=!0),w0(w,h);if(h+=g,w.precision=h,n=Hr(S),r=n.charAt(0),o=It(j),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)j=j.times(e),n=Hr(j.d),r=n.charAt(0),y++;o=It(j),r>1?(j=new w("0."+n),o++):j=new w(r+"."+n.slice(1))}else return f=w0(w,h+2,b).times(o+""),j=jc(new w(r+"."+n.slice(1)),h-g).plus(f),w.precision=b,t==null?(wt=!0,dt(j,b)):j;for(c=l=j=Ni(j.minus(Gn),j.plus(Gn),h),m=dt(j.times(j),h),a=3;;){if(l=dt(l.times(m),h),f=c.plus(Ni(l,new w(a),h)),Hr(f.d).slice(0,h)===Hr(c.d).slice(0,h))return c=c.times(2),o!==0&&(c=c.plus(w0(w,h+2,b).times(o+""))),c=Ni(c,new w(y),h),w.precision=b,t==null?(wt=!0,dt(c,b)):c;c=f,a+=2}}function CR(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=El(n/jt),e.d=[],r=(n+1)%jt,n<0&&(r+=jt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=jt;r<a;)e.d.push(+t.slice(r,r+=jt));t=t.slice(r),r=jt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),wt&&(e.e>Fh||e.e<-Fh))throw Error(Uw+n)}else e.s=0,e.e=0,e.d=[0];return e}function dt(e,t,n){var r,a,o,l,c,f,h,m,y=e.d;for(l=1,o=y[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=jt,a=t,h=y[m=0];else{if(m=Math.ceil((r+1)/jt),o=y.length,m>=o)return e;for(h=o=y[m],l=1;o>=10;o/=10)l++;r%=jt,a=r-jt+l}if(n!==void 0&&(o=ss(10,l-a-1),c=h/o%10|0,f=t<0||y[m+1]!==void 0||h%o,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?a>0?h/ss(10,l-a):0:y[m-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return f?(o=It(e),y.length=1,t=t-o-1,y[0]=ss(10,(jt-t%jt)%jt),e.e=El(-t/jt)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(r==0?(y.length=m,o=1,m--):(y.length=m+1,o=ss(10,jt-r),y[m]=a>0?(h/ss(10,l-a)%ss(10,a)|0)*o:0),f)for(;;)if(m==0){(y[0]+=o)==Qt&&(y[0]=1,++e.e);break}else{if(y[m]+=o,y[m]!=Qt)break;y[m--]=0,o=1}for(r=y.length;y[--r]===0;)y.pop();if(wt&&(e.e>Fh||e.e<-Fh))throw Error(Uw+It(e));return e}function n$(e,t){var n,r,a,o,l,c,f,h,m,y,g=e.constructor,j=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),wt?dt(t,j):t;if(f=e.d,y=t.d,r=t.e,h=e.e,f=f.slice(),l=h-r,l){for(m=l<0,m?(n=f,l=-l,c=y.length):(n=y,r=h,c=f.length),a=Math.max(Math.ceil(j/jt),c)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=f.length,c=y.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=y[a]){m=f[a]<y[a];break}l=0}for(m&&(n=f,f=y,y=n,t.s=-t.s),c=f.length,a=y.length-c;a>0;--a)f[c++]=0;for(a=y.length;a>l;){if(f[--a]<y[a]){for(o=a;o&&f[--o]===0;)f[o]=Qt-1;--f[o],f[a]+=Qt}f[a]-=y[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,wt?dt(t,j):t):new g(0)}function _s(e,t,n){var r,a=It(e),o=Hr(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+ya(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+ya(-a-1)+o,n&&(r=n-l)>0&&(o+=ya(r))):a>=l?(o+=ya(a+1-l),n&&(r=n-a-1)>0&&(o=o+"."+ya(r))):((r=a+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(o+="."),o+=ya(r))),e.s<0?"-"+o:o}function MR(e,t){if(e.length>t)return e.length=t,!0}function r$(e){var t,n,r;function a(o){var l=this;if(!(l instanceof a))return new a(o);if(l.constructor=a,o instanceof a){l.s=o.s,l.e=o.e,l.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(xs+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return CR(l,o.toString())}else if(typeof o!="string")throw Error(xs+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,aJ.test(o))CR(l,o);else throw Error(xs+o)}if(a.prototype=ye,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=r$,a.config=a.set=sJ,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 sJ(e){if(!e||typeof e!="object")throw Error(yr+"Object expected");var t,n,r,a=["precision",1,Tl,"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(El(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(xs+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(xs+n+": "+r);return this}var Vw=r$(iJ);Gn=new Vw(1);const lt=Vw;function oJ(e){return fJ(e)||cJ(e)||uJ(e)||lJ()}function lJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uJ(e,t){if(e){if(typeof e=="string")return fj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fj(e,t)}}function cJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function fJ(e){if(Array.isArray(e))return fj(e)}function fj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dJ=function(t){return t},i$={},a$=function(t){return t===i$},PR=function(t){return function n(){return arguments.length===0||arguments.length===1&&a$(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},hJ=function e(t,n){return t===1?n:PR(function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var l=a.filter(function(c){return c!==i$}).length;return l>=t?n.apply(void 0,a):e(t-l,PR(function(){for(var c=arguments.length,f=new Array(c),h=0;h<c;h++)f[h]=arguments[h];var m=a.map(function(y){return a$(y)?f.shift():y});return n.apply(void 0,oJ(m).concat(f))}))})},tm=function(t){return hJ(t.length,t)},dj=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},pJ=tm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),mJ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return dJ;var a=n.reverse(),o=a[0],l=a.slice(1);return function(){return l.reduce(function(c,f){return f(c)},o.apply(void 0,arguments))}},hj=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},s$=function(t){var n=null,r=null;return function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return n&&o.every(function(c,f){return c===n[f]})||(n=o,r=t.apply(void 0,o)),r}};function yJ(e){var t;return e===0?t=1:t=Math.floor(new lt(e).abs().log(10).toNumber())+1,t}function vJ(e,t,n){for(var r=new lt(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var gJ=tm(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),xJ=tm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),bJ=tm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const nm={rangeStep:vJ,getDigitCount:yJ,interpolateNumber:gJ,uninterpolateNumber:xJ,uninterpolateTruncation:bJ};function pj(e){return wJ(e)||SJ(e)||o$(e)||jJ()}function jJ(){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 SJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function wJ(e){if(Array.isArray(e))return mj(e)}function Sc(e,t){return _J(e)||OJ(e,t)||o$(e,t)||AJ()}function AJ(){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 o$(e,t){if(e){if(typeof e=="string")return mj(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 mj(e,t)}}function mj(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 OJ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,o=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){a=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}}function _J(e){if(Array.isArray(e))return e}function l$(e){var t=Sc(e,2),n=t[0],r=t[1],a=n,o=r;return n>r&&(a=r,o=n),[a,o]}function u$(e,t,n){if(e.lte(0))return new lt(0);var r=nm.getDigitCount(e.toNumber()),a=new lt(10).pow(r),o=e.div(a),l=r!==1?.05:.1,c=new lt(Math.ceil(o.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?f:new lt(Math.ceil(f))}function TJ(e,t,n){var r=1,a=new lt(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new lt(10).pow(nm.getDigitCount(e)-1),a=new lt(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new lt(Math.floor(e)))}else e===0?a=new lt(Math.floor((t-1)/2)):n||(a=new lt(Math.floor(e)));var l=Math.floor((t-1)/2),c=mJ(pJ(function(f){return a.add(new lt(f-l).mul(r)).toNumber()}),dj);return c(0,t)}function c$(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 lt(0),tickMin:new lt(0),tickMax:new lt(0)};var o=u$(new lt(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new lt(0):(l=new lt(e).add(t).div(2),l=l.sub(new lt(l).mod(o)));var c=Math.ceil(l.sub(e).div(o).toNumber()),f=Math.ceil(new lt(t).sub(l).div(o).toNumber()),h=c+f+1;return h>n?c$(e,t,n,r,a+1):(h<n&&(f=t>0?f+(n-h):f,c=t>0?c:c+(n-h)),{step:o,tickMin:l.sub(new lt(c).mul(o)),tickMax:l.add(new lt(f).mul(o))})}function EJ(e){var t=Sc(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),c=l$([n,r]),f=Sc(c,2),h=f[0],m=f[1];if(h===-1/0||m===1/0){var y=m===1/0?[h].concat(pj(dj(0,a-1).map(function(){return 1/0}))):[].concat(pj(dj(0,a-1).map(function(){return-1/0})),[m]);return n>r?hj(y):y}if(h===m)return TJ(h,a,o);var g=c$(h,m,l,o),j=g.step,S=g.tickMin,w=g.tickMax,b=nm.rangeStep(S,w.add(new lt(.1).mul(j)),j);return n>r?hj(b):b}function NJ(e,t){var n=Sc(e,2),r=n[0],a=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=l$([r,a]),c=Sc(l,2),f=c[0],h=c[1];if(f===-1/0||h===1/0)return[r,a];if(f===h)return[f];var m=Math.max(t,2),y=u$(new lt(h).sub(f).div(m-1),o,0),g=[].concat(pj(nm.rangeStep(new lt(f),new lt(h).sub(new lt(.99).mul(y)),y)),[h]);return r>a?hj(g):g}var CJ=s$(EJ),MJ=s$(NJ),PJ="Invariant failed";function Ts(e,t){throw new Error(PJ)}var RJ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}function Gh(){return Gh=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},Gh.apply(this,arguments)}function DJ(e,t){return $J(e)||zJ(e,t)||LJ(e,t)||kJ()}function kJ(){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 LJ(e,t){if(e){if(typeof e=="string")return RR(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 RR(e,t)}}function RR(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 zJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function $J(e){if(Array.isArray(e))return e}function BJ(e,t){if(e==null)return{};var n=qJ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qJ(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 IJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h$(r.key),r)}}function VJ(e,t,n){return t&&UJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HJ(e,t,n){return t=Kh(t),FJ(e,f$()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function FJ(e,t){if(t&&(Zo(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 f$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f$=function(){return!!e})()}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function KJ(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&&yj(e,t)}function yj(e,t){return yj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},yj(e,t)}function d$(e,t,n){return t=h$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(e){var t=YJ(e,"string");return Zo(t)=="symbol"?t:t+""}function YJ(e,t){if(Zo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sf=(function(e){function t(){return IJ(this,t),HJ(this,t,arguments)}return KJ(t,e),VJ(t,[{key:"render",value:function(){var r=this.props,a=r.offset,o=r.layout,l=r.width,c=r.dataKey,f=r.data,h=r.dataPointFormatter,m=r.xAxis,y=r.yAxis,g=BJ(r,RJ),j=je(g,!1);this.props.direction==="x"&&m.type!=="number"&&Ts();var S=f.map(function(w){var b=h(w,c),A=b.x,_=b.y,T=b.value,C=b.errorVal;if(!C)return null;var O=[],E,M;if(Array.isArray(C)){var k=DJ(C,2);E=k[0],M=k[1]}else E=M=C;if(o==="vertical"){var D=m.scale,B=_+a,I=B+l,$=B-l,G=D(T-E),X=D(T+M);O.push({x1:X,y1:I,x2:X,y2:$}),O.push({x1:G,y1:B,x2:X,y2:B}),O.push({x1:G,y1:I,x2:G,y2:$})}else if(o==="horizontal"){var Y=y.scale,L=A+a,H=L-l,Q=L+l,ie=Y(T-E),oe=Y(T+M);O.push({x1:H,y1:oe,x2:Q,y2:oe}),O.push({x1:L,y1:ie,x2:L,y2:oe}),O.push({x1:H,y1:ie,x2:Q,y2:ie})}return q.createElement(qe,Gh({className:"recharts-errorBar",key:"bar-".concat(O.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},j),O.map(function(z){return q.createElement("line",Gh({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return q.createElement(qe,{className:"recharts-errorBars"},S)}}])})(q.Component);d$(sf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});d$(sf,"displayName","ErrorBar");function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function DR(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 es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DR(Object(n),!0).forEach(function(r){XJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XJ(e,t,n){return t=WJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WJ(e){var t=ZJ(e,"string");return wc(t)=="symbol"?t:t+""}function ZJ(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p$=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,o=t.legendContent,l=Hn(n,zo);if(!l)return null;var c=zo.defaultProps,f=c!==void 0?es(es({},c),l.props):{},h;return l.props&&l.props.payload?h=l.props&&l.props.payload:o==="children"?h=(r||[]).reduce(function(m,y){var g=y.item,j=y.props,S=j.sectors||j.data||[];return m.concat(S.map(function(w){return{type:l.props.iconType||g.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):h=(r||[]).map(function(m){var y=m.item,g=y.type.defaultProps,j=g!==void 0?es(es({},g),y.props):{},S=j.dataKey,w=j.name,b=j.legendType,A=j.hide;return{inactive:A,dataKey:S,type:f.iconType||b||"square",color:Hw(y),value:w||S,payload:j}}),es(es(es({},f),zo.getWithHeight(l,a)),{},{payload:h,item:l})};function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function kR(e){return tee(e)||eee(e)||JJ(e)||QJ()}function QJ(){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 JJ(e,t){if(e){if(typeof e=="string")return vj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vj(e,t)}}function eee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tee(e){if(Array.isArray(e))return vj(e)}function vj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LR(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 Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LR(Object(n),!0).forEach(function(r){Bo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bo(e,t,n){return t=nee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nee(e){var t=ree(e,"string");return Ac(t)=="symbol"?t:t+""}function ree(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rt(e,t,n){return Ne(e)||Ne(t)?n:Kt(t)?Yn(e,t,n):Te(t)?t(e):n}function Qu(e,t,n,r){var a=tJ(e,function(c){return Rt(c,t)});if(n==="number"){var o=a.filter(function(c){return ue(c)||parseFloat(c)});return o.length?[em(o),xa(o)]:[1/0,-1/0]}var l=r?a.filter(function(c){return!Ne(c)}):a;return l.map(function(c){return Kt(c)||c instanceof Date?c:""})}var iee=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var f=o.range,h=0;h<c;h++){var m=h>0?a[h-1].coordinate:a[c-1].coordinate,y=a[h].coordinate,g=h>=c-1?a[0].coordinate:a[h+1].coordinate,j=void 0;if(xn(y-m)!==xn(g-y)){var S=[];if(xn(g-y)===xn(f[1]-f[0])){j=g;var w=y+f[1]-f[0];S[0]=Math.min(w,(w+m)/2),S[1]=Math.max(w,(w+m)/2)}else{j=m;var b=g+f[1]-f[0];S[0]=Math.min(y,(b+y)/2),S[1]=Math.max(y,(b+y)/2)}var A=[Math.min(y,(j+y)/2),Math.max(y,(j+y)/2)];if(t>A[0]&&t<=A[1]||t>=S[0]&&t<=S[1]){l=a[h].index;break}}else{var _=Math.min(m,g),T=Math.max(m,g);if(t>(_+y)/2&&t<=(T+y)/2){l=a[h].index;break}}}else for(var C=0;C<c;C++)if(C===0&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C>0&&C<c-1&&t>(r[C].coordinate+r[C-1].coordinate)/2&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C===c-1&&t>(r[C].coordinate+r[C-1].coordinate)/2){l=r[C].index;break}return l},Hw=function(t){var n,r=t,a=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,l=o.stroke,c=o.fill,f;switch(a){case"Line":f=l;break;case"Area":case"Radar":f=l&&l!=="none"?l:c;break;default:f=c;break}return f},aee=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,o=a===void 0?{}:a;if(!o)return{};for(var l={},c=Object.keys(o),f=0,h=c.length;f<h;f++)for(var m=o[c[f]].stackGroups,y=Object.keys(m),g=0,j=y.length;g<j;g++){var S=m[y[g]],w=S.items,b=S.cateAxisId,A=w.filter(function(M){return Ei(M.type).indexOf("Bar")>=0});if(A&&A.length){var _=A[0].type.defaultProps,T=_!==void 0?Ct(Ct({},_),A[0].props):A[0].props,C=T.barSize,O=T[b];l[O]||(l[O]=[]);var E=Ne(C)?n:C;l[O].push({item:A[0],stackList:A.slice(1),barSize:Ne(E)?void 0:bn(E,r,0)})}}return l},see=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,o=t.sizeList,l=o===void 0?[]:o,c=t.maxBarSize,f=l.length;if(f<1)return null;var h=bn(n,a,0,!0),m,y=[];if(l[0].barSize===+l[0].barSize){var g=!1,j=a/f,S=l.reduce(function(C,O){return C+O.barSize||0},0);S+=(f-1)*h,S>=a&&(S-=(f-1)*h,h=0),S>=a&&j>0&&(g=!0,j*=.9,S=f*j);var w=(a-S)/2>>0,b={offset:w-h,size:0};m=l.reduce(function(C,O){var E={item:O.item,position:{offset:b.offset+b.size+h,size:g?j:O.barSize}},M=[].concat(kR(C),[E]);return b=M[M.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){M.push({item:k,position:b})}),M},y)}else{var A=bn(r,a,0,!0);a-2*A-(f-1)*h<=0&&(h=0);var _=(a-2*A-(f-1)*h)/f;_>1&&(_>>=0);var T=c===+c?Math.min(_,c):_;m=l.reduce(function(C,O,E){var M=[].concat(kR(C),[{item:O.item,position:{offset:A+(_+h)*E+(_-T)/2,size:T}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){M.push({item:k,position:M[M.length-1].position})}),M},y)}return m},oee=function(t,n,r,a){var o=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),h=p$({children:o,legendWidth:f});if(h){var m=a||{},y=m.width,g=m.height,j=h.align,S=h.verticalAlign,w=h.layout;if((w==="vertical"||w==="horizontal"&&S==="middle")&&j!=="center"&&ue(t[j]))return Ct(Ct({},t),{},Bo({},j,t[j]+(y||0)));if((w==="horizontal"||w==="vertical"&&j==="center")&&S!=="middle"&&ue(t[S]))return Ct(Ct({},t),{},Bo({},S,t[S]+(g||0)))}return t},lee=function(t,n,r){return Ne(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},m$=function(t,n,r,a,o){var l=n.props.children,c=Xn(l,sf).filter(function(h){return lee(a,o,h.props.direction)});if(c&&c.length){var f=c.map(function(h){return h.props.dataKey});return t.reduce(function(h,m){var y=Rt(m,r);if(Ne(y))return h;var g=Array.isArray(y)?[em(y),xa(y)]:[y,y],j=f.reduce(function(S,w){var b=Rt(m,w,0),A=g[0]-Math.abs(Array.isArray(b)?b[0]:b),_=g[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(A,S[0]),Math.max(_,S[1])]},[1/0,-1/0]);return[Math.min(j[0],h[0]),Math.max(j[1],h[1])]},[1/0,-1/0])}return null},uee=function(t,n,r,a,o){var l=n.map(function(c){return m$(t,c,r,o,a)}).filter(function(c){return!Ne(c)});return l&&l.length?l.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},y$=function(t,n,r,a,o){var l=n.map(function(f){var h=f.props.dataKey;return r==="number"&&h&&m$(t,f,h,a)||Qu(t,h,r,o)});if(r==="number")return l.reduce(function(f,h){return[Math.min(f[0],h[0]),Math.max(f[1],h[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,h){for(var m=0,y=h.length;m<y;m++)c[h[m]]||(c[h[m]]=!0,f.push(h[m]));return f},[])},v$=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},g$=function(t,n,r,a){if(a)return t.map(function(f){return f.coordinate});var o,l,c=t.map(function(f){return f.coordinate===n&&(o=!0),f.coordinate===r&&(l=!0),f.coordinate});return o||c.push(n),l||c.push(r),c},Ti=function(t,n,r){if(!t)return null;var a=t.scale,o=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,h=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/f:0;if(h=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?xn(c[0]-c[1])*2*h:h,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(y){var g=o?o.indexOf(y):y;return{coordinate:a(g)+h,value:y,offset:h}});return m.filter(function(y){return!Al(y.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(y,g){return{coordinate:a(y)+h,value:y,index:g,offset:h}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(y){return{coordinate:a(y)+h,value:y,offset:h}}):a.domain().map(function(y,g){return{coordinate:a(y)+h,value:o?o[y]:y,index:g,offset:h}})},A0=new WeakMap,Ud=function(t,n){if(typeof n!="function")return t;A0.has(t)||A0.set(t,new WeakMap);var r=A0.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},x$=function(t,n,r){var a=t.scale,o=t.type,l=t.layout,c=t.axisType;if(a==="auto")return l==="radial"&&c==="radiusAxis"?{scale:yc(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:Ih(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Zu(),realScaleType:"point"}:o==="category"?{scale:yc(),realScaleType:"band"}:{scale:Ih(),realScaleType:"linear"};if(Ss(a)){var f="scale".concat(Bp(a));return{scale:(jR[f]||Zu)(),realScaleType:jR[f]?f:"point"}}return Te(a)?{scale:a}:{scale:Zu(),realScaleType:"point"}},zR=1e-4,b$=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),o=Math.min(a[0],a[1])-zR,l=Math.max(a[0],a[1])+zR,c=t(n[0]),f=t(n[r-1]);(c<o||c>l||f<o||f>l)&&t.domain([n[0],n[r-1]])}},cee=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},fee=function(t,n){if(!n||n.length!==2||!ue(n[0])||!ue(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!ue(t[0])||t[0]<r)&&(o[0]=r),(!ue(t[1])||t[1]>a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]<r&&(o[1]=r),o},dee=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0,c=0;c<n;++c){var f=Al(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=o,t[c][r][1]=o+f,o=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},hee=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0;l<n;++l){var c=Al(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},pee={sign:dee,expand:tK,none:Vo,silhouette:nK,wiggle:rK,positive:hee},mee=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),o=pee[r],l=eK().keys(a).value(function(c,f){return+Rt(c,f,0)}).order(K1).offset(o);return l(t)},yee=function(t,n,r,a,o,l){if(!t)return null;var c=l?n.reverse():n,f={},h=c.reduce(function(y,g){var j,S=(j=g.type)!==null&&j!==void 0&&j.defaultProps?Ct(Ct({},g.type.defaultProps),g.props):g.props,w=S.stackId,b=S.hide;if(b)return y;var A=S[r],_=y[A]||{hasStack:!1,stackGroups:{}};if(Kt(w)){var T=_.stackGroups[w]||{numericAxisId:r,cateAxisId:a,items:[]};T.items.push(g),_.hasStack=!0,_.stackGroups[w]=T}else _.stackGroups[Ms("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[g]};return Ct(Ct({},y),{},Bo({},A,_))},f),m={};return Object.keys(h).reduce(function(y,g){var j=h[g];if(j.hasStack){var S={};j.stackGroups=Object.keys(j.stackGroups).reduce(function(w,b){var A=j.stackGroups[b];return Ct(Ct({},w),{},Bo({},b,{numericAxisId:r,cateAxisId:a,items:A.items,stackedData:mee(t,A.items,o)}))},S)}return Ct(Ct({},y),{},Bo({},g,j))},m)},j$=function(t,n){var r=n.realScaleType,a=n.type,o=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(o&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var h=t.domain();if(!h.length)return null;var m=CJ(h,o,c);return t.domain([em(m),xa(m)]),{niceTicks:m}}if(o&&a==="number"){var y=t.domain(),g=MJ(y,o,c);return{niceTicks:g}}return null};function Yh(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,o=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ne(a[t.dataKey])){var c=jh(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var f=Rt(a,Ne(l)?t.dataKey:l);return Ne(f)?null:t.scale(f)}var $R=function(t){var n=t.axis,r=t.ticks,a=t.offset,o=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var f=Rt(l,n.dataKey,n.domain[c]);return Ne(f)?null:n.scale(f)-o/2+a},vee=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return a<=0&&o>=0?0:o<0?o:a}return r[0]},gee=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(Kt(o)){var l=n[o];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},xee=function(t){return t.reduce(function(n,r){return[em(r.concat([n[0]]).filter(ue)),xa(r.concat([n[1]]).filter(ue))]},[1/0,-1/0])},S$=function(t,n,r){return Object.keys(t).reduce(function(a,o){var l=t[o],c=l.stackedData,f=c.reduce(function(h,m){var y=xee(m.slice(n,r+1));return[Math.min(h[0],y[0]),Math.max(h[1],y[1])]},[1/0,-1/0]);return[Math.min(f[0],a[0]),Math.max(f[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},BR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gj=function(t,n,r){if(Te(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(ue(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(BR.test(t[0])){var o=+BR.exec(t[0])[1];a[0]=n[0]-o}else Te(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(ue(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(qR.test(t[1])){var l=+qR.exec(t[1])[1];a[1]=n[1]+l}else Te(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Xh=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 o=gw(n,function(y){return y.coordinate}),l=1/0,c=1,f=o.length;c<f;c++){var h=o[c],m=o[c-1];l=Math.min((h.coordinate||0)-(m.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},IR=function(t,n,r){return!t||!t.length||Os(t,Yn(r,"type.defaultProps.domain"))?n:t},w$=function(t,n){var r=t.type.defaultProps?Ct(Ct({},t.type.defaultProps),t.props):t.props,a=r.dataKey,o=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,h=r.chartType,m=r.hide;return Ct(Ct({},je(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:o||a,color:Hw(t),value:Rt(n,a),type:f,payload:n,chartType:h,hide:m})};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 UR(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 Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UR(Object(n),!0).forEach(function(r){A$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A$(e,t,n){return t=bee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bee(e){var t=jee(e,"string");return Oc(t)=="symbol"?t:t+""}function jee(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function See(e,t){return _ee(e)||Oee(e,t)||Aee(e,t)||wee()}function wee(){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 Aee(e,t){if(e){if(typeof e=="string")return VR(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 VR(e,t)}}function VR(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 Oee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function _ee(e){if(Array.isArray(e))return e}var Wh=Math.PI/180,Tee=function(t){return t*180/Math.PI},mt=function(t,n,r,a){return{x:t+Math.cos(-Wh*a)*r,y:n+Math.sin(-Wh*a)*r}},O$=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,o){var l=t.width,c=t.height,f=t.startAngle,h=t.endAngle,m=bn(t.cx,l,l/2),y=bn(t.cy,c,c/2),g=O$(l,c,r),j=bn(t.innerRadius,g,0),S=bn(t.outerRadius,g,g*.8),w=Object.keys(n);return w.reduce(function(b,A){var _=n[A],T=_.domain,C=_.reversed,O;if(Ne(_.range))a==="angleAxis"?O=[f,h]:a==="radiusAxis"&&(O=[j,S]),C&&(O=[O[1],O[0]]);else{O=_.range;var E=O,M=See(E,2);f=M[0],h=M[1]}var k=x$(_,o),D=k.realScaleType,B=k.scale;B.domain(T).range(O),b$(B);var I=j$(B,Ai(Ai({},_),{},{realScaleType:D})),$=Ai(Ai(Ai({},_),I),{},{range:O,radius:S,realScaleType:D,scale:B,cx:m,cy:y,innerRadius:j,outerRadius:S,startAngle:f,endAngle:h});return Ai(Ai({},b),{},A$({},A,$))},{})},Nee=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(a-l,2))},Cee=function(t,n){var r=t.x,a=t.y,o=n.cx,l=n.cy,c=Nee({x:r,y:a},{x:o,y:l});if(c<=0)return{radius:c};var f=(r-o)/c,h=Math.acos(f);return a>l&&(h=2*Math.PI-h),{radius:c,angle:Tee(h),angleInRadian:h}},Mee=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(a,o);return{startAngle:n-l*360,endAngle:r-l*360}},Pee=function(t,n){var r=n.startAngle,a=n.endAngle,o=Math.floor(r/360),l=Math.floor(a/360),c=Math.min(o,l);return t+c*360},HR=function(t,n){var r=t.x,a=t.y,o=Cee({x:r,y:a},n),l=o.radius,c=o.angle,f=n.innerRadius,h=n.outerRadius;if(l<f||l>h)return!1;if(l===0)return!0;var m=Mee(n),y=m.startAngle,g=m.endAngle,j=c,S;if(y<=g){for(;j>g;)j-=360;for(;j<y;)j+=360;S=j>=y&&j<=g}else{for(;j>y;)j-=360;for(;j<g;)j+=360;S=j>=g&&j<=y}return S?Ai(Ai({},n),{},{radius:l,angle:Pee(j,n)}):null},_$=function(t){return!P.isValidElement(t)&&!Te(t)&&typeof t!="boolean"?t.className:""};function _c(e){"@babel/helpers - typeof";return _c=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},_c(e)}var Ree=["offset"];function Dee(e){return $ee(e)||zee(e)||Lee(e)||kee()}function kee(){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 Lee(e,t){if(e){if(typeof e=="string")return xj(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 xj(e,t)}}function zee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ee(e){if(Array.isArray(e))return xj(e)}function xj(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 Bee(e,t){if(e==null)return{};var n=qee(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qee(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 FR(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?FR(Object(n),!0).forEach(function(r){Iee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iee(e,t,n){return t=Uee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uee(e){var t=Vee(e,"string");return _c(t)=="symbol"?t:t+""}function Vee(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tc(){return Tc=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},Tc.apply(this,arguments)}var Hee=function(t){var n=t.value,r=t.formatter,a=Ne(t.children)?n:t.children;return Te(r)?r(a):a},Fee=function(t,n){var r=xn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Gee=function(t,n,r){var a=t.position,o=t.viewBox,l=t.offset,c=t.className,f=o,h=f.cx,m=f.cy,y=f.innerRadius,g=f.outerRadius,j=f.startAngle,S=f.endAngle,w=f.clockWise,b=(y+g)/2,A=Fee(j,S),_=A>=0?1:-1,T,C;a==="insideStart"?(T=j+_*l,C=w):a==="insideEnd"?(T=S-_*l,C=!w):a==="end"&&(T=S+_*l,C=w),C=A<=0?C:!C;var O=mt(h,m,b,T),E=mt(h,m,b,T+(C?1:-1)*359),M="M".concat(O.x,",").concat(O.y,`
A`).concat(b,",").concat(b,",0,1,").concat(C?0:1,`,
`).concat(E.x,",").concat(E.y),k=Ne(t.id)?Ms("recharts-radial-line-"):t.id;return q.createElement("text",Tc({},r,{dominantBaseline:"central",className:Pe("recharts-radial-bar-label",c)}),q.createElement("defs",null,q.createElement("path",{id:k,d:M})),q.createElement("textPath",{xlinkHref:"#".concat(k)},n))},Kee=function(t){var n=t.viewBox,r=t.offset,a=t.position,o=n,l=o.cx,c=o.cy,f=o.innerRadius,h=o.outerRadius,m=o.startAngle,y=o.endAngle,g=(m+y)/2;if(a==="outside"){var j=mt(l,c,h+r,g),S=j.x,w=j.y;return{x:S,y:w,textAnchor:S>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var b=(f+h)/2,A=mt(l,c,b,g),_=A.x,T=A.y;return{x:_,y:T,textAnchor:"middle",verticalAnchor:"middle"}},Yee=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,o=t.position,l=n,c=l.x,f=l.y,h=l.width,m=l.height,y=m>=0?1:-1,g=y*a,j=y>0?"end":"start",S=y>0?"start":"end",w=h>=0?1:-1,b=w*a,A=w>0?"end":"start",_=w>0?"start":"end";if(o==="top"){var T={x:c+h/2,y:f-y*a,textAnchor:"middle",verticalAnchor:j};return Ht(Ht({},T),r?{height:Math.max(f-r.y,0),width:h}:{})}if(o==="bottom"){var C={x:c+h/2,y:f+m+g,textAnchor:"middle",verticalAnchor:S};return Ht(Ht({},C),r?{height:Math.max(r.y+r.height-(f+m),0),width:h}:{})}if(o==="left"){var O={x:c-b,y:f+m/2,textAnchor:A,verticalAnchor:"middle"};return Ht(Ht({},O),r?{width:Math.max(O.x-r.x,0),height:m}:{})}if(o==="right"){var E={x:c+h+b,y:f+m/2,textAnchor:_,verticalAnchor:"middle"};return Ht(Ht({},E),r?{width:Math.max(r.x+r.width-E.x,0),height:m}:{})}var M=r?{width:h,height:m}:{};return o==="insideLeft"?Ht({x:c+b,y:f+m/2,textAnchor:_,verticalAnchor:"middle"},M):o==="insideRight"?Ht({x:c+h-b,y:f+m/2,textAnchor:A,verticalAnchor:"middle"},M):o==="insideTop"?Ht({x:c+h/2,y:f+g,textAnchor:"middle",verticalAnchor:S},M):o==="insideBottom"?Ht({x:c+h/2,y:f+m-g,textAnchor:"middle",verticalAnchor:j},M):o==="insideTopLeft"?Ht({x:c+b,y:f+g,textAnchor:_,verticalAnchor:S},M):o==="insideTopRight"?Ht({x:c+h-b,y:f+g,textAnchor:A,verticalAnchor:S},M):o==="insideBottomLeft"?Ht({x:c+b,y:f+m-g,textAnchor:_,verticalAnchor:j},M):o==="insideBottomRight"?Ht({x:c+h-b,y:f+m-g,textAnchor:A,verticalAnchor:j},M):wl(o)&&(ue(o.x)||fs(o.x))&&(ue(o.y)||fs(o.y))?Ht({x:c+bn(o.x,h),y:f+bn(o.y,m),textAnchor:"end",verticalAnchor:"end"},M):Ht({x:c+h/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Xee=function(t){return"cx"in t&&ue(t.cx)};function Jt(e){var t=e.offset,n=t===void 0?5:t,r=Bee(e,Ree),a=Ht({offset:n},r),o=a.viewBox,l=a.position,c=a.value,f=a.children,h=a.content,m=a.className,y=m===void 0?"":m,g=a.textBreakAll;if(!o||Ne(c)&&Ne(f)&&!P.isValidElement(h)&&!Te(h))return null;if(P.isValidElement(h))return P.cloneElement(h,a);var j;if(Te(h)){if(j=P.createElement(h,a),P.isValidElement(j))return j}else j=Hee(a);var S=Xee(o),w=je(a,!0);if(S&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Gee(a,j,w);var b=S?Kee(a):Yee(a);return q.createElement(As,Tc({className:Pe("recharts-label",y)},w,b,{breakAll:g}),j)}Jt.displayName="Label";var T$=function(t){var n=t.cx,r=t.cy,a=t.angle,o=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,h=t.innerRadius,m=t.outerRadius,y=t.x,g=t.y,j=t.top,S=t.left,w=t.width,b=t.height,A=t.clockWise,_=t.labelViewBox;if(_)return _;if(ue(w)&&ue(b)){if(ue(y)&&ue(g))return{x:y,y:g,width:w,height:b};if(ue(j)&&ue(S))return{x:j,y:S,width:w,height:b}}return ue(y)&&ue(g)?{x:y,y:g,width:0,height:0}:ue(n)&&ue(r)?{cx:n,cy:r,startAngle:o||a||0,endAngle:l||a||0,innerRadius:h||0,outerRadius:m||f||c||0,clockWise:A}:t.viewBox?t.viewBox:{}},Wee=function(t,n){return t?t===!0?q.createElement(Jt,{key:"label-implicit",viewBox:n}):Kt(t)?q.createElement(Jt,{key:"label-implicit",viewBox:n,value:t}):P.isValidElement(t)?t.type===Jt?P.cloneElement(t,{key:"label-implicit",viewBox:n}):q.createElement(Jt,{key:"label-implicit",content:t,viewBox:n}):Te(t)?q.createElement(Jt,{key:"label-implicit",content:t,viewBox:n}):wl(t)?q.createElement(Jt,Tc({viewBox:n},t,{key:"label-implicit"})):null:null},Zee=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,o=T$(t),l=Xn(a,Jt).map(function(f,h){return P.cloneElement(f,{viewBox:n||o,key:"label-".concat(h)})});if(!r)return l;var c=Wee(t.label,n||o);return[c].concat(Dee(l))};Jt.parseViewBox=T$;Jt.renderCallByParent=Zee;var O0,GR;function Qee(){if(GR)return O0;GR=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return O0=e,O0}var Jee=Qee();const ete=it(Jee);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)}var tte=["valueAccessor"],nte=["data","dataKey","clockWise","id","textBreakAll"];function rte(e){return ote(e)||ste(e)||ate(e)||ite()}function ite(){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 ate(e,t){if(e){if(typeof e=="string")return bj(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 bj(e,t)}}function ste(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ote(e){if(Array.isArray(e))return bj(e)}function bj(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 Zh(){return Zh=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},Zh.apply(this,arguments)}function KR(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 YR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KR(Object(n),!0).forEach(function(r){lte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lte(e,t,n){return t=ute(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ute(e){var t=cte(e,"string");return Ec(t)=="symbol"?t:t+""}function cte(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XR(e,t){if(e==null)return{};var n=fte(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fte(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 dte=function(t){return Array.isArray(t.value)?ete(t.value):t.value};function Xr(e){var t=e.valueAccessor,n=t===void 0?dte:t,r=XR(e,tte),a=r.data,o=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,h=XR(r,nte);return!a||!a.length?null:q.createElement(qe,{className:"recharts-label-list"},a.map(function(m,y){var g=Ne(o)?n(m,y):Rt(m&&m.payload,o),j=Ne(c)?{}:{id:"".concat(c,"-").concat(y)};return q.createElement(Jt,Zh({},je(m,!0),h,j,{parentViewBox:m.parentViewBox,value:g,textBreakAll:f,viewBox:Jt.parseViewBox(Ne(l)?m:YR(YR({},m),{},{clockWise:l})),key:"label-".concat(y),index:y}))}))}Xr.displayName="LabelList";function hte(e,t){return e?e===!0?q.createElement(Xr,{key:"labelList-implicit",data:t}):q.isValidElement(e)||Te(e)?q.createElement(Xr,{key:"labelList-implicit",data:t,content:e}):wl(e)?q.createElement(Xr,Zh({data:t},e,{key:"labelList-implicit"})):null:null}function pte(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=Xn(r,Xr).map(function(l,c){return P.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var o=hte(e.label,t);return[o].concat(rte(a))}Xr.renderCallByParent=pte;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 jj(){return jj=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},jj.apply(this,arguments)}function WR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ZR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WR(Object(n),!0).forEach(function(r){mte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mte(e,t,n){return t=yte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yte(e){var t=vte(e,"string");return Nc(t)=="symbol"?t:t+""}function vte(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)}var gte=function(t,n){var r=xn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Vd=function(t){var n=t.cx,r=t.cy,a=t.radius,o=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,h=t.cornerIsExternal,m=f*(c?1:-1)+a,y=Math.asin(f/m)/Wh,g=h?o:o+l*y,j=mt(n,r,m,g),S=mt(n,r,a,g),w=h?o-l*y:o,b=mt(n,r,m*Math.cos(y*Wh),w);return{center:j,circleTangency:S,lineTangency:b,theta:y}},E$=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.startAngle,c=t.endAngle,f=gte(l,c),h=l+f,m=mt(n,r,o,l),y=mt(n,r,o,h),g="M ".concat(m.x,",").concat(m.y,`
A `).concat(o,",").concat(o,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(l>h),`,
`).concat(y.x,",").concat(y.y,`
`);if(a>0){var j=mt(n,r,a,l),S=mt(n,r,a,h);g+="L ".concat(S.x,",").concat(S.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(l<=h),`,
`).concat(j.x,",").concat(j.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},xte=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,h=t.startAngle,m=t.endAngle,y=xn(m-h),g=Vd({cx:n,cy:r,radius:o,angle:h,sign:y,cornerRadius:l,cornerIsExternal:f}),j=g.circleTangency,S=g.lineTangency,w=g.theta,b=Vd({cx:n,cy:r,radius:o,angle:m,sign:-y,cornerRadius:l,cornerIsExternal:f}),A=b.circleTangency,_=b.lineTangency,T=b.theta,C=f?Math.abs(h-m):Math.abs(h-m)-w-T;if(C<0)return c?"M ".concat(S.x,",").concat(S.y,`
a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
`):E$({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m});var O="M ".concat(S.x,",").concat(S.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(j.x,",").concat(j.y,`
A`).concat(o,",").concat(o,",0,").concat(+(C>180),",").concat(+(y<0),",").concat(A.x,",").concat(A.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(_.x,",").concat(_.y,`
`);if(a>0){var E=Vd({cx:n,cy:r,radius:a,angle:h,sign:y,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),M=E.circleTangency,k=E.lineTangency,D=E.theta,B=Vd({cx:n,cy:r,radius:a,angle:m,sign:-y,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),I=B.circleTangency,$=B.lineTangency,G=B.theta,X=f?Math.abs(h-m):Math.abs(h-m)-D-G;if(X<0&&l===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat($.x,",").concat($.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(I.x,",").concat(I.y,`
A`).concat(a,",").concat(a,",0,").concat(+(X>180),",").concat(+(y>0),",").concat(M.x,",").concat(M.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(k.x,",").concat(k.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},bte={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},N$=function(t){var n=ZR(ZR({},bte),t),r=n.cx,a=n.cy,o=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,h=n.cornerIsExternal,m=n.startAngle,y=n.endAngle,g=n.className;if(l<o||m===y)return null;var j=Pe("recharts-sector",g),S=l-o,w=bn(c,S,0,!0),b;return w>0&&Math.abs(m-y)<360?b=xte({cx:r,cy:a,innerRadius:o,outerRadius:l,cornerRadius:Math.min(w,S/2),forceCornerRadius:f,cornerIsExternal:h,startAngle:m,endAngle:y}):b=E$({cx:r,cy:a,innerRadius:o,outerRadius:l,startAngle:m,endAngle:y}),q.createElement("path",jj({},je(n,!0),{className:j,d:b,role:"img"}))};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 Sj(){return Sj=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},Sj.apply(this,arguments)}function QR(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 JR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(n),!0).forEach(function(r){jte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jte(e,t,n){return t=Ste(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ste(e){var t=wte(e,"string");return Cc(t)=="symbol"?t:t+""}function wte(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 eD={curveBasisClosed:VG,curveBasisOpen:HG,curveBasis:UG,curveBumpX:EG,curveBumpY:NG,curveLinearClosed:FG,curveLinear:Ip,curveMonotoneX:GG,curveMonotoneY:KG,curveNatural:YG,curveStep:XG,curveStepAfter:ZG,curveStepBefore:WG},Hd=function(t){return t.x===+t.x&&t.y===+t.y},Du=function(t){return t.x},ku=function(t){return t.y},Ate=function(t,n){if(Te(t))return t;var r="curve".concat(Bp(t));return(r==="curveMonotone"||r==="curveBump")&&n?eD["".concat(r).concat(n==="vertical"?"Y":"X")]:eD[r]||Ip},Ote=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,o=a===void 0?[]:a,l=t.baseLine,c=t.layout,f=t.connectNulls,h=f===void 0?!1:f,m=Ate(r,c),y=h?o.filter(function(w){return Hd(w)}):o,g;if(Array.isArray(l)){var j=h?l.filter(function(w){return Hd(w)}):l,S=y.map(function(w,b){return JR(JR({},w),{},{base:j[b]})});return c==="vertical"?g=kd().y(ku).x1(Du).x0(function(w){return w.base.x}):g=kd().x(Du).y1(ku).y0(function(w){return w.base.y}),g.defined(Hd).curve(m),g(S)}return c==="vertical"&&ue(l)?g=kd().y(ku).x1(Du).x0(l):ue(l)?g=kd().x(Du).y1(ku).y0(l):g=E4().x(Du).y(ku),g.defined(Hd).curve(m),g(y)},bs=function(t){var n=t.className,r=t.points,a=t.path,o=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?Ote(t):a;return P.createElement("path",Sj({},je(t,!1),Sh(t),{className:Pe("recharts-curve",n),d:l,ref:o}))},_0={exports:{}},T0,tD;function _te(){if(tD)return T0;tD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return T0=e,T0}var E0,nD;function Tte(){if(nD)return E0;nD=1;var e=_te();function t(){}function n(){}return n.resetWarningCache=t,E0=function(){function r(l,c,f,h,m,y){if(y!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},E0}var rD;function Ete(){return rD||(rD=1,_0.exports=Tte()()),_0.exports}var Nte=Ete();const Je=it(Nte),{getOwnPropertyNames:Cte,getOwnPropertySymbols:Mte}=Object,{hasOwnProperty:Pte}=Object.prototype;function N0(e,t){return function(r,a,o){return e(r,a,o)&&t(r,a,o)}}function Fd(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:o}=a,l=o.get(n),c=o.get(r);if(l&&c)return l===r&&c===n;o.set(n,r),o.set(r,n);const f=e(n,r,a);return o.delete(n),o.delete(r),f}}function Rte(e){return e!=null?e[Symbol.toStringTag]:void 0}function iD(e){return Cte(e).concat(Mte(e))}const Dte=Object.hasOwn||((e,t)=>Pte.call(e,t));function Ds(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const kte="__v",Lte="__o",zte="_owner",{getOwnPropertyDescriptor:aD,keys:sD}=Object;function $te(e,t){return e.byteLength===t.byteLength&&Qh(new Uint8Array(e),new Uint8Array(t))}function Bte(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 qte(e,t){return e.byteLength===t.byteLength&&Qh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Ite(e,t){return Ds(e.getTime(),t.getTime())}function Ute(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Vte(e,t){return e===t}function oD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),o=e.entries();let l,c,f=0;for(;(l=o.next())&&!l.done;){const h=t.entries();let m=!1,y=0;for(;(c=h.next())&&!c.done;){if(a[y]){y++;continue}const g=l.value,j=c.value;if(n.equals(g[0],j[0],f,y,e,t,n)&&n.equals(g[1],j[1],g[0],j[0],e,t,n)){m=a[y]=!0;break}y++}if(!m)return!1;f++}return!0}const Hte=Ds;function Fte(e,t,n){const r=sD(e);let a=r.length;if(sD(t).length!==a)return!1;for(;a-- >0;)if(!C$(e,t,n,r[a]))return!1;return!0}function Lu(e,t,n){const r=iD(e);let a=r.length;if(iD(t).length!==a)return!1;let o,l,c;for(;a-- >0;)if(o=r[a],!C$(e,t,n,o)||(l=aD(e,o),c=aD(t,o),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function Gte(e,t){return Ds(e.valueOf(),t.valueOf())}function Kte(e,t){return e.source===t.source&&e.flags===t.flags}function lD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),o=e.values();let l,c;for(;(l=o.next())&&!l.done;){const f=t.values();let h=!1,m=0;for(;(c=f.next())&&!c.done;){if(!a[m]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){h=a[m]=!0;break}m++}if(!h)return!1}return!0}function Qh(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 Yte(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 C$(e,t,n,r){return(r===zte||r===Lte||r===kte)&&(e.$$typeof||t.$$typeof)?!0:Dte(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Xte="[object ArrayBuffer]",Wte="[object Arguments]",Zte="[object Boolean]",Qte="[object DataView]",Jte="[object Date]",ene="[object Error]",tne="[object Map]",nne="[object Number]",rne="[object Object]",ine="[object RegExp]",ane="[object Set]",sne="[object String]",one={"[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},lne="[object URL]",une=Object.prototype.toString;function cne({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:o,areMapsEqual:l,areNumbersEqual:c,areObjectsEqual:f,arePrimitiveWrappersEqual:h,areRegExpsEqual:m,areSetsEqual:y,areTypedArraysEqual:g,areUrlsEqual:j,unknownTagComparators:S}){return function(b,A,_){if(b===A)return!0;if(b==null||A==null)return!1;const T=typeof b;if(T!==typeof A)return!1;if(T!=="object")return T==="number"?c(b,A,_):T==="function"?o(b,A,_):!1;const C=b.constructor;if(C!==A.constructor)return!1;if(C===Object)return f(b,A,_);if(Array.isArray(b))return t(b,A,_);if(C===Date)return r(b,A,_);if(C===RegExp)return m(b,A,_);if(C===Map)return l(b,A,_);if(C===Set)return y(b,A,_);const O=une.call(b);if(O===Jte)return r(b,A,_);if(O===ine)return m(b,A,_);if(O===tne)return l(b,A,_);if(O===ane)return y(b,A,_);if(O===rne)return typeof b.then!="function"&&typeof A.then!="function"&&f(b,A,_);if(O===lne)return j(b,A,_);if(O===ene)return a(b,A,_);if(O===Wte)return f(b,A,_);if(one[O])return g(b,A,_);if(O===Xte)return e(b,A,_);if(O===Qte)return n(b,A,_);if(O===Zte||O===nne||O===sne)return h(b,A,_);if(S){let E=S[O];if(!E){const M=Rte(b);M&&(E=S[M])}if(E)return E(b,A,_)}return!1}}function fne({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:$te,areArraysEqual:n?Lu:Bte,areDataViewsEqual:qte,areDatesEqual:Ite,areErrorsEqual:Ute,areFunctionsEqual:Vte,areMapsEqual:n?N0(oD,Lu):oD,areNumbersEqual:Hte,areObjectsEqual:n?Lu:Fte,arePrimitiveWrappersEqual:Gte,areRegExpsEqual:Kte,areSetsEqual:n?N0(lD,Lu):lD,areTypedArraysEqual:n?N0(Qh,Lu):Qh,areUrlsEqual:Yte,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Fd(r.areArraysEqual),o=Fd(r.areMapsEqual),l=Fd(r.areObjectsEqual),c=Fd(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return r}function dne(e){return function(t,n,r,a,o,l,c){return e(t,n,c)}}function hne({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(c,f){const{cache:h=e?new WeakMap:void 0,meta:m}=n();return t(c,f,{cache:h,equals:r,meta:m,strict:a})};if(e)return function(c,f){return t(c,f,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const o={cache:void 0,equals:r,meta:void 0,strict:a};return function(c,f){return t(c,f,o)}}const pne=Da();Da({strict:!0});Da({circular:!0});Da({circular:!0,strict:!0});Da({createInternalComparator:()=>Ds});Da({strict:!0,createInternalComparator:()=>Ds});Da({circular:!0,createInternalComparator:()=>Ds});Da({circular:!0,createInternalComparator:()=>Ds,strict:!0});function Da(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,o=fne(e),l=cne(o),c=n?n(l):dne(l);return hne({circular:t,comparator:l,createState:r,equals:c,strict:a})}function mne(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function uD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(o){n<0&&(n=o),o-n>t?(e(o),n=-1):mne(a)};requestAnimationFrame(r)}function wj(e){"@babel/helpers - typeof";return wj=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},wj(e)}function yne(e){return bne(e)||xne(e)||gne(e)||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 gne(e,t){if(e){if(typeof e=="string")return cD(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 cD(e,t)}}function cD(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 xne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bne(e){if(Array.isArray(e))return e}function jne(){var e={},t=function(){return null},n=!1,r=function a(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var l=o,c=yne(l),f=c[0],h=c.slice(1);if(typeof f=="number"){uD(a.bind(null,h),f);return}a(f),uD(a.bind(null,h));return}wj(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function fD(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 dD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(n),!0).forEach(function(r){M$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M$(e,t,n){return t=Sne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sne(e){var t=wne(e,"string");return Mc(t)==="symbol"?t:String(t)}function wne(e,t){if(Mc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ane=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(o){return a.includes(o)})})},One=function(t){return t},_ne=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Ju=function(t,n){return Object.keys(n).reduce(function(r,a){return dD(dD({},r),{},M$({},a,t(a,n[a])))},{})},hD=function(t,n,r){return t.map(function(a){return"".concat(_ne(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Tne(e,t){return Cne(e)||Nne(e,t)||P$(e,t)||Ene()}function Ene(){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,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function Cne(e){if(Array.isArray(e))return e}function Mne(e){return Dne(e)||Rne(e)||P$(e)||Pne()}function Pne(){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 P$(e,t){if(e){if(typeof e=="string")return Aj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aj(e,t)}}function Rne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dne(e){if(Array.isArray(e))return Aj(e)}function Aj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Jh=1e-4,R$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},D$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},pD=function(t,n){return function(r){var a=R$(t,n);return D$(a,r)}},kne=function(t,n){return function(r){var a=R$(t,n),o=[].concat(Mne(a.map(function(l,c){return l*c}).slice(1)),[0]);return D$(o,r)}},mD=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],o=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,o=0,l=1,c=1;break;case"ease":a=.25,o=.1,l=.25,c=1;break;case"ease-in":a=.42,o=0,l=1,c=1;break;case"ease-out":a=.42,o=0,l=.58,c=1;break;case"ease-in-out":a=0,o=0,l=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var h=f[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),m=Tne(h,4);a=m[0],o=m[1],l=m[2],c=m[3]}}}var y=pD(a,l),g=pD(o,c),j=kne(a,l),S=function(A){return A>1?1:A<0?0:A},w=function(A){for(var _=A>1?1:A,T=_,C=0;C<8;++C){var O=y(T)-_,E=j(T);if(Math.abs(O-_)<Jh||E<Jh)return g(T);T=S(T-O/E)}return g(T)};return w.isStepper=!1,w},Lne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,o=a===void 0?8:a,l=t.dt,c=l===void 0?17:l,f=function(m,y,g){var j=-(m-y)*r,S=g*o,w=g+(j-S)*c/1e3,b=g*c/1e3+m;return Math.abs(b-y)<Jh&&Math.abs(w)<Jh?[y,0]:[b,w]};return f.isStepper=!0,f.dt=c,f},zne=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 mD(a);case"spring":return Lne();default:if(a.split("(")[0]==="cubic-bezier")return mD(a)}return typeof a=="function"?a:null};function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}function yD(e){return qne(e)||Bne(e)||k$(e)||$ne()}function $ne(){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 Bne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qne(e){if(Array.isArray(e))return _j(e)}function vD(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 on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){Oj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oj(e,t,n){return t=Ine(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ine(e){var t=Une(e,"string");return Pc(t)==="symbol"?t:String(t)}function Une(e,t){if(Pc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vne(e,t){return Gne(e)||Fne(e,t)||k$(e,t)||Hne()}function Hne(){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 k$(e,t){if(e){if(typeof e=="string")return _j(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 _j(e,t)}}function _j(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 Fne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function Gne(e){if(Array.isArray(e))return e}var ep=function(t,n,r){return t+(n-t)*r},Tj=function(t){var n=t.from,r=t.to;return n!==r},Kne=function e(t,n,r){var a=Ju(function(o,l){if(Tj(l)){var c=t(l.from,l.to,l.velocity),f=Vne(c,2),h=f[0],m=f[1];return on(on({},l),{},{from:h,velocity:m})}return l},n);return r<1?Ju(function(o,l){return Tj(l)?on(on({},l),{},{velocity:ep(l.velocity,a[o].velocity,r),from:ep(l.from,a[o].from,r)}):l},n):e(t,a,r-1)};const Yne=(function(e,t,n,r,a){var o=Ane(e,t),l=o.reduce(function(b,A){return on(on({},b),{},Oj({},A,[e[A],t[A]]))},{}),c=o.reduce(function(b,A){return on(on({},b),{},Oj({},A,{from:e[A],velocity:0,to:t[A]}))},{}),f=-1,h,m,y=function(){return null},g=function(){return Ju(function(A,_){return _.from},c)},j=function(){return!Object.values(c).filter(Tj).length},S=function(A){h||(h=A);var _=A-h,T=_/n.dt;c=Kne(n,c,T),a(on(on(on({},e),t),g())),h=A,j()||(f=requestAnimationFrame(y))},w=function(A){m||(m=A);var _=(A-m)/r,T=Ju(function(O,E){return ep.apply(void 0,yD(E).concat([n(_)]))},l);if(a(on(on(on({},e),t),T)),_<1)f=requestAnimationFrame(y);else{var C=Ju(function(O,E){return ep.apply(void 0,yD(E).concat([n(1)]))},l);a(on(on(on({},e),t),C))}};return y=n.isStepper?S:w,function(){return requestAnimationFrame(y),function(){cancelAnimationFrame(f)}}});function Qo(e){"@babel/helpers - typeof";return Qo=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},Qo(e)}var Xne=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Wne(e,t){if(e==null)return{};var n=Zne(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function C0(e){return tre(e)||ere(e)||Jne(e)||Qne()}function Qne(){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 Jne(e,t){if(e){if(typeof e=="string")return Ej(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ej(e,t)}}function ere(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tre(e){if(Array.isArray(e))return Ej(e)}function Ej(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gD(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?gD(Object(n),!0).forEach(function(r){Vu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vu(e,t,n){return t=L$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rre(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,L$(r.key),r)}}function ire(e,t,n){return t&&rre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function L$(e){var t=are(e,"string");return Qo(t)==="symbol"?t:String(t)}function are(e,t){if(Qo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sre(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&&Nj(e,t)}function Nj(e,t){return Nj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Nj(e,t)}function ore(e){var t=lre();return function(){var r=tp(e),a;if(t){var o=tp(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return Cj(this,a)}}function Cj(e,t){if(t&&(Qo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mj(e)}function Mj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lre(){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 tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tp(e)}var Rr=(function(e){sre(n,e);var t=ore(n);function n(r,a){var o;nre(this,n),o=t.call(this,r,a);var l=o.props,c=l.isActive,f=l.attributeName,h=l.from,m=l.to,y=l.steps,g=l.children,j=l.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Mj(o)),o.changeStyle=o.changeStyle.bind(Mj(o)),!c||j<=0)return o.state={style:{}},typeof g=="function"&&(o.state={style:m}),Cj(o);if(y&&y.length)o.state={style:y[0].style};else if(h){if(typeof g=="function")return o.state={style:h},Cj(o);o.state={style:f?Vu({},f,h):h}}else o.state={style:{}};return o}return ire(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.isActive,l=a.canBegin;this.mounted=!0,!(!o||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var o=this.props,l=o.isActive,c=o.canBegin,f=o.attributeName,h=o.shouldReAnimate,m=o.to,y=o.from,g=this.state.style;if(c){if(!l){var j={style:f?Vu({},f,m):m};this.state&&g&&(f&&g[f]!==m||!f&&g!==m)&&this.setState(j);return}if(!(pne(a.to,m)&&a.canBegin&&a.isActive)){var S=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=S||h?y:a.to;if(this.state&&g){var b={style:f?Vu({},f,w):w};(f&&g[f]!==w||!f&&g!==w)&&this.setState(b)}this.runAnimation(Ar(Ar({},this.props),{},{from:w,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 o=this,l=a.from,c=a.to,f=a.duration,h=a.easing,m=a.begin,y=a.onAnimationEnd,g=a.onAnimationStart,j=Yne(l,c,zne(h),f,this.changeStyle),S=function(){o.stopJSAnimation=j()};this.manager.start([g,m,S,f,y])}},{key:"runStepAnimation",value:function(a){var o=this,l=a.steps,c=a.begin,f=a.onAnimationStart,h=l[0],m=h.style,y=h.duration,g=y===void 0?0:y,j=function(w,b,A){if(A===0)return w;var _=b.duration,T=b.easing,C=T===void 0?"ease":T,O=b.style,E=b.properties,M=b.onAnimationEnd,k=A>0?l[A-1]:b,D=E||Object.keys(O);if(typeof C=="function"||C==="spring")return[].concat(C0(w),[o.runJSAnimation.bind(o,{from:k.style,to:O,duration:_,easing:C}),_]);var B=hD(D,_,C),I=Ar(Ar(Ar({},k.style),O),{},{transition:B});return[].concat(C0(w),[I,_,M]).filter(One)};return this.manager.start([f].concat(C0(l.reduce(j,[m,Math.max(g,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=jne());var o=a.begin,l=a.duration,c=a.attributeName,f=a.to,h=a.easing,m=a.onAnimationStart,y=a.onAnimationEnd,g=a.steps,j=a.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof h=="function"||typeof j=="function"||h==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var w=c?Vu({},c,f):f,b=hD(Object.keys(w),l,h);S.start([m,o,Ar(Ar({},w),{},{transition:b}),l,y])}},{key:"render",value:function(){var a=this.props,o=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var f=Wne(a,Xne),h=P.Children.count(o),m=this.state.style;if(typeof o=="function")return o(m);if(!c||h===0||l<=0)return o;var y=function(j){var S=j.props,w=S.style,b=w===void 0?{}:w,A=S.className,_=P.cloneElement(j,Ar(Ar({},f),{},{style:Ar(Ar({},b),m),className:A}));return _};return h===1?y(P.Children.only(o)):q.createElement("div",null,P.Children.map(o,function(g){return y(g)}))}}]),n})(P.PureComponent);Rr.displayName="Animate";Rr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Rr.propTypes={from:Je.oneOfType([Je.object,Je.string]),to:Je.oneOfType([Je.object,Je.string]),attributeName:Je.string,duration:Je.number,begin:Je.number,easing:Je.oneOfType([Je.string,Je.func]),steps:Je.arrayOf(Je.shape({duration:Je.number.isRequired,style:Je.object.isRequired,easing:Je.oneOfType([Je.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Je.func]),properties:Je.arrayOf("string"),onAnimationEnd:Je.func})),children:Je.oneOfType([Je.node,Je.func]),isActive:Je.bool,canBegin:Je.bool,onAnimationEnd:Je.func,shouldReAnimate:Je.bool,onAnimationStart:Je.func,onAnimationReStart:Je.func};function 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)}function np(){return np=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},np.apply(this,arguments)}function ure(e,t){return hre(e)||dre(e,t)||fre(e,t)||cre()}function cre(){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 fre(e,t){if(e){if(typeof e=="string")return xD(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 xD(e,t)}}function xD(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 dre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function hre(e){if(Array.isArray(e))return e}function bD(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 jD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bD(Object(n),!0).forEach(function(r){pre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pre(e,t,n){return t=mre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mre(e){var t=yre(e,"string");return Rc(t)=="symbol"?t:t+""}function yre(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)}var SD=function(t,n,r,a,o){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,f=r>=0?1:-1,h=a>=0&&r>=0||a<0&&r<0?1:0,m;if(l>0&&o instanceof Array){for(var y=[0,0,0,0],g=0,j=4;g<j;g++)y[g]=o[g]>l?l:o[g];m="M".concat(t,",").concat(n+c*y[0]),y[0]>0&&(m+="A ".concat(y[0],",").concat(y[0],",0,0,").concat(h,",").concat(t+f*y[0],",").concat(n)),m+="L ".concat(t+r-f*y[1],",").concat(n),y[1]>0&&(m+="A ".concat(y[1],",").concat(y[1],",0,0,").concat(h,`,
`).concat(t+r,",").concat(n+c*y[1])),m+="L ".concat(t+r,",").concat(n+a-c*y[2]),y[2]>0&&(m+="A ".concat(y[2],",").concat(y[2],",0,0,").concat(h,`,
`).concat(t+r-f*y[2],",").concat(n+a)),m+="L ".concat(t+f*y[3],",").concat(n+a),y[3]>0&&(m+="A ".concat(y[3],",").concat(y[3],",0,0,").concat(h,`,
`).concat(t,",").concat(n+a-c*y[3])),m+="Z"}else if(l>0&&o===+o&&o>0){var S=Math.min(l,o);m="M ".concat(t,",").concat(n+c*S,`
A `).concat(S,",").concat(S,",0,0,").concat(h,",").concat(t+f*S,",").concat(n,`
L `).concat(t+r-f*S,",").concat(n,`
A `).concat(S,",").concat(S,",0,0,").concat(h,",").concat(t+r,",").concat(n+c*S,`
L `).concat(t+r,",").concat(n+a-c*S,`
A `).concat(S,",").concat(S,",0,0,").concat(h,",").concat(t+r-f*S,",").concat(n+a,`
L `).concat(t+f*S,",").concat(n+a,`
A `).concat(S,",").concat(S,",0,0,").concat(h,",").concat(t,",").concat(n+a-c*S," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return m},vre=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,o=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var h=Math.min(o,o+c),m=Math.max(o,o+c),y=Math.min(l,l+f),g=Math.max(l,l+f);return r>=h&&r<=m&&a>=y&&a<=g}return!1},gre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Fw=function(t){var n=jD(jD({},gre),t),r=P.useRef(),a=P.useState(-1),o=ure(a,2),l=o[0],c=o[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&c(C)}catch{}},[]);var f=n.x,h=n.y,m=n.width,y=n.height,g=n.radius,j=n.className,S=n.animationEasing,w=n.animationDuration,b=n.animationBegin,A=n.isAnimationActive,_=n.isUpdateAnimationActive;if(f!==+f||h!==+h||m!==+m||y!==+y||m===0||y===0)return null;var T=Pe("recharts-rectangle",j);return _?q.createElement(Rr,{canBegin:l>0,from:{width:m,height:y,x:f,y:h},to:{width:m,height:y,x:f,y:h},duration:w,animationEasing:S,isActive:_},function(C){var O=C.width,E=C.height,M=C.x,k=C.y;return q.createElement(Rr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:w,isActive:A,easing:S},q.createElement("path",np({},je(n,!0),{className:T,d:SD(M,k,O,E,g),ref:r})))}):q.createElement("path",np({},je(n,!0),{className:T,d:SD(f,h,m,y,g)}))},xre=["points","className","baseLinePoints","connectNulls"];function Mo(){return Mo=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},Mo.apply(this,arguments)}function bre(e,t){if(e==null)return{};var n=jre(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jre(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 wD(e){return Ore(e)||Are(e)||wre(e)||Sre()}function Sre(){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 wre(e,t){if(e){if(typeof e=="string")return Pj(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 Pj(e,t)}}function Are(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ore(e){if(Array.isArray(e))return Pj(e)}function Pj(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 AD=function(t){return t&&t.x===+t.x&&t.y===+t.y},_re=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){AD(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),AD(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},ec=function(t,n){var r=_re(t);n&&(r=[r.reduce(function(o,l){return[].concat(wD(o),wD(l))},[])]);var a=r.map(function(o){return o.reduce(function(l,c,f){return"".concat(l).concat(f===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Tre=function(t,n,r){var a=ec(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(ec(n.reverse(),r).slice(1))},Ere=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,o=t.connectNulls,l=bre(t,xre);if(!n||!n.length)return null;var c=Pe("recharts-polygon",r);if(a&&a.length){var f=l.stroke&&l.stroke!=="none",h=Tre(n,a,o);return q.createElement("g",{className:c},q.createElement("path",Mo({},je(l,!0),{fill:h.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:h})),f?q.createElement("path",Mo({},je(l,!0),{fill:"none",d:ec(n,o)})):null,f?q.createElement("path",Mo({},je(l,!0),{fill:"none",d:ec(a,o)})):null)}var m=ec(n,o);return q.createElement("path",Mo({},je(l,!0),{fill:m.slice(-1)==="Z"?l.fill:"none",className:c,d:m}))};function Rj(){return Rj=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},Rj.apply(this,arguments)}var of=function(t){var n=t.cx,r=t.cy,a=t.r,o=t.className,l=Pe("recharts-dot",o);return n===+n&&r===+r&&a===+a?P.createElement("circle",Rj({},je(t,!1),Sh(t),{className:l,cx:n,cy:r,r:a})):null};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)}var Nre=["x","y","top","left","width","height","className"];function Dj(){return Dj=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},Dj.apply(this,arguments)}function OD(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 Cre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(n),!0).forEach(function(r){Mre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mre(e,t,n){return t=Pre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pre(e){var t=Rre(e,"string");return Dc(t)=="symbol"?t:t+""}function Rre(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)}function Dre(e,t){if(e==null)return{};var n=kre(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kre(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 Lre=function(t,n,r,a,o,l){return"M".concat(t,",").concat(o,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},zre=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.top,c=l===void 0?0:l,f=t.left,h=f===void 0?0:f,m=t.width,y=m===void 0?0:m,g=t.height,j=g===void 0?0:g,S=t.className,w=Dre(t,Nre),b=Cre({x:r,y:o,top:c,left:h,width:y,height:j},w);return!ue(r)||!ue(o)||!ue(y)||!ue(j)||!ue(c)||!ue(h)?null:q.createElement("path",Dj({},je(b,!0),{className:Pe("recharts-cross",S),d:Lre(r,o,y,j,c,h)}))},M0,_D;function $re(){if(_D)return M0;_D=1;var e=Jp(),t=Zz(),n=ti();function r(a,o){return a&&a.length?e(a,n(o,2),t):void 0}return M0=r,M0}var Bre=$re();const qre=it(Bre);var P0,TD;function Ire(){if(TD)return P0;TD=1;var e=Jp(),t=ti(),n=Qz();function r(a,o){return a&&a.length?e(a,t(o,2),n):void 0}return P0=r,P0}var Ure=Ire();const Vre=it(Ure);var Hre=["cx","cy","angle","ticks","axisLine"],Fre=["ticks","tick","angle","tickFormatter","stroke"];function Jo(e){"@babel/helpers - typeof";return Jo=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},Jo(e)}function tc(){return tc=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},tc.apply(this,arguments)}function ED(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 ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ED(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ED(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ND(e,t){if(e==null)return{};var n=Gre(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Kre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CD(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.key),r)}}function Yre(e,t,n){return t&&CD(e.prototype,t),n&&CD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xre(e,t,n){return t=rp(t),Wre(e,z$()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function Wre(e,t){if(t&&(Jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zre(e)}function Zre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z$=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function Qre(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&&kj(e,t)}function kj(e,t){return kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kj(e,t)}function rm(e,t,n){return t=$$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $$(e){var t=Jre(e,"string");return Jo(t)=="symbol"?t:t+""}function Jre(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var im=(function(e){function t(){return Kre(this,t),Xre(this,t,arguments)}return Qre(t,e),Yre(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,o=this.props,l=o.angle,c=o.cx,f=o.cy;return mt(c,f,a,l)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.angle,c=r.ticks,f=qre(c,function(m){return m.coordinate||0}),h=Vre(c,function(m){return m.coordinate||0});return{cx:a,cy:o,startAngle:l,endAngle:l,innerRadius:h.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.angle,c=r.ticks,f=r.axisLine,h=ND(r,Hre),m=c.reduce(function(S,w){return[Math.min(S[0],w.coordinate),Math.max(S[1],w.coordinate)]},[1/0,-1/0]),y=mt(a,o,m[0],l),g=mt(a,o,m[1],l),j=ts(ts(ts({},je(h,!1)),{},{fill:"none"},je(f,!1)),{},{x1:y.x,y1:y.y,x2:g.x,y2:g.y});return q.createElement("line",tc({className:"recharts-polar-radius-axis-line"},j))}},{key:"renderTicks",value:function(){var r=this,a=this.props,o=a.ticks,l=a.tick,c=a.angle,f=a.tickFormatter,h=a.stroke,m=ND(a,Fre),y=this.getTickTextAnchor(),g=je(m,!1),j=je(l,!1),S=o.map(function(w,b){var A=r.getTickValueCoord(w),_=ts(ts(ts(ts({textAnchor:y,transform:"rotate(".concat(90-c,", ").concat(A.x,", ").concat(A.y,")")},g),{},{stroke:"none",fill:h},j),{},{index:b},A),{},{payload:w});return q.createElement(qe,tc({className:Pe("recharts-polar-radius-axis-tick",_$(l)),key:"tick-".concat(w.coordinate)},ws(r.props,w,b)),t.renderTickItem(l,_,f?f(w.value,b):w.value))});return q.createElement(qe,{className:"recharts-polar-radius-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,a=r.ticks,o=r.axisLine,l=r.tick;return!a||!a.length?null:q.createElement(qe,{className:Pe("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),l&&this.renderTicks(),Jt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,o){var l;return q.isValidElement(r)?l=q.cloneElement(r,a):Te(r)?l=r(a):l=q.createElement(As,tc({},a,{className:"recharts-polar-radius-axis-tick-value"}),o),l}}])})(P.PureComponent);rm(im,"displayName","PolarRadiusAxis");rm(im,"axisType","radiusAxis");rm(im,"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 el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function os(){return os=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},os.apply(this,arguments)}function MD(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 ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MD(Object(n),!0).forEach(function(r){am(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PD(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,q$(r.key),r)}}function tie(e,t,n){return t&&PD(e.prototype,t),n&&PD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nie(e,t,n){return t=ip(t),rie(e,B$()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function rie(e,t){if(t&&(el(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iie(e)}function iie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B$=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function aie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lj(e,t)}function Lj(e,t){return Lj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Lj(e,t)}function am(e,t,n){return t=q$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q$(e){var t=sie(e,"string");return el(t)=="symbol"?t:t+""}function sie(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oie=Math.PI/180,RD=1e-5,sm=(function(e){function t(){return eie(this,t),nie(this,t,arguments)}return aie(t,e),tie(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,o=a.cx,l=a.cy,c=a.radius,f=a.orientation,h=a.tickSize,m=h||8,y=mt(o,l,c,r.coordinate),g=mt(o,l,c+(f==="inner"?-1:1)*m,r.coordinate);return{x1:y.x,y1:y.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,o=Math.cos(-r.coordinate*oie),l;return o>RD?l=a==="outer"?"start":"end":o<-RD?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.radius,c=r.axisLine,f=r.axisLineType,h=ns(ns({},je(this.props,!1)),{},{fill:"none"},je(c,!1));if(f==="circle")return q.createElement(of,os({className:"recharts-polar-angle-axis-line"},h,{cx:a,cy:o,r:l}));var m=this.props.ticks,y=m.map(function(g){return mt(a,o,l,g.coordinate)});return q.createElement(Ere,os({className:"recharts-polar-angle-axis-line"},h,{points:y}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,o=a.ticks,l=a.tick,c=a.tickLine,f=a.tickFormatter,h=a.stroke,m=je(this.props,!1),y=je(l,!1),g=ns(ns({},m),{},{fill:"none"},je(c,!1)),j=o.map(function(S,w){var b=r.getTickLineCoord(S),A=r.getTickTextAnchor(S),_=ns(ns(ns({textAnchor:A},m),{},{stroke:"none",fill:h},y),{},{index:w,payload:S,x:b.x2,y:b.y2});return q.createElement(qe,os({className:Pe("recharts-polar-angle-axis-tick",_$(l)),key:"tick-".concat(S.coordinate)},ws(r.props,S,w)),c&&q.createElement("line",os({className:"recharts-polar-angle-axis-tick-line"},g,b)),l&&t.renderTickItem(l,_,f?f(S.value,w):S.value))});return q.createElement(qe,{className:"recharts-polar-angle-axis-ticks"},j)}},{key:"render",value:function(){var r=this.props,a=r.ticks,o=r.radius,l=r.axisLine;return o<=0||!a||!a.length?null:q.createElement(qe,{className:Pe("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,o){var l;return q.isValidElement(r)?l=q.cloneElement(r,a):Te(r)?l=r(a):l=q.createElement(As,os({},a,{className:"recharts-polar-angle-axis-tick-value"}),o),l}}])})(P.PureComponent);am(sm,"displayName","PolarAngleAxis");am(sm,"axisType","angleAxis");am(sm,"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 R0,DD;function lie(){if(DD)return R0;DD=1;var e=Z4(),t=e(Object.getPrototypeOf,Object);return R0=t,R0}var D0,kD;function uie(){if(kD)return D0;kD=1;var e=Li(),t=lie(),n=zi(),r="[object Object]",a=Function.prototype,o=Object.prototype,l=a.toString,c=o.hasOwnProperty,f=l.call(Object);function h(m){if(!n(m)||e(m)!=r)return!1;var y=t(m);if(y===null)return!0;var g=c.call(y,"constructor")&&y.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return D0=h,D0}var cie=uie();const fie=it(cie);var k0,LD;function die(){if(LD)return k0;LD=1;var e=Li(),t=zi(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return k0=r,k0}var hie=die();const pie=it(hie);function kc(e){"@babel/helpers - typeof";return kc=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},kc(e)}function ap(){return ap=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},ap.apply(this,arguments)}function mie(e,t){return xie(e)||gie(e,t)||vie(e,t)||yie()}function yie(){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 vie(e,t){if(e){if(typeof e=="string")return zD(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 zD(e,t)}}function zD(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 gie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function xie(e){if(Array.isArray(e))return e}function $D(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 BD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$D(Object(n),!0).forEach(function(r){bie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bie(e,t,n){return t=jie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jie(e){var t=Sie(e,"string");return kc(t)=="symbol"?t:t+""}function Sie(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qD=function(t,n,r,a,o){var l=r-a,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+o),c+="L ".concat(t+r-l/2-a,",").concat(n+o),c+="L ".concat(t,",").concat(n," Z"),c},wie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Aie=function(t){var n=BD(BD({},wie),t),r=P.useRef(),a=P.useState(-1),o=mie(a,2),l=o[0],c=o[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&c(T)}catch{}},[]);var f=n.x,h=n.y,m=n.upperWidth,y=n.lowerWidth,g=n.height,j=n.className,S=n.animationEasing,w=n.animationDuration,b=n.animationBegin,A=n.isUpdateAnimationActive;if(f!==+f||h!==+h||m!==+m||y!==+y||g!==+g||m===0&&y===0||g===0)return null;var _=Pe("recharts-trapezoid",j);return A?q.createElement(Rr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:h},to:{upperWidth:m,lowerWidth:y,height:g,x:f,y:h},duration:w,animationEasing:S,isActive:A},function(T){var C=T.upperWidth,O=T.lowerWidth,E=T.height,M=T.x,k=T.y;return q.createElement(Rr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:w,easing:S},q.createElement("path",ap({},je(n,!0),{className:_,d:qD(M,k,C,O,E),ref:r})))}):q.createElement("g",null,q.createElement("path",ap({},je(n,!0),{className:_,d:qD(f,h,m,y,g)})))},Oie=["option","shapeType","propTransformer","activeClassName","isActive"];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 _ie(e,t){if(e==null)return{};var n=Tie(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tie(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 ID(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 sp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ID(Object(n),!0).forEach(function(r){Eie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ID(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eie(e,t,n){return t=Nie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nie(e){var t=Cie(e,"string");return Lc(t)=="symbol"?t:t+""}function Cie(e,t){if(Lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mie(e,t){return sp(sp({},t),e)}function Pie(e,t){return e==="symbols"}function UD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return q.createElement(Fw,n);case"trapezoid":return q.createElement(Aie,n);case"sector":return q.createElement(N$,n);case"symbols":if(Pie(t))return q.createElement(cw,n);break;default:return null}}function Rie(e){return P.isValidElement(e)?e.props:e}function I$(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Mie:r,o=e.activeClassName,l=o===void 0?"recharts-active-shape":o,c=e.isActive,f=_ie(e,Oie),h;if(P.isValidElement(t))h=P.cloneElement(t,sp(sp({},f),Rie(t)));else if(Te(t))h=t(f);else if(fie(t)&&!pie(t)){var m=a(t,f);h=q.createElement(UD,{shapeType:n,elementProps:m})}else{var y=f;h=q.createElement(UD,{shapeType:n,elementProps:y})}return c?q.createElement(qe,{className:l},h):h}function om(e,t){return t!=null&&"trapezoids"in e.props}function lm(e,t){return t!=null&&"sectors"in e.props}function zc(e,t){return t!=null&&"points"in e.props}function Die(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,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&o}function kie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Lie(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function zie(e,t){var n;return om(e,t)?n=Die:lm(e,t)?n=kie:zc(e,t)&&(n=Lie),n}function $ie(e,t){var n;return om(e,t)?n="trapezoids":lm(e,t)?n="sectors":zc(e,t)&&(n="points"),n}function Bie(e,t){if(om(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(lm(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 zc(e,t)?t.payload:{}}function qie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=$ie(n,t),o=Bie(n,t),l=r.filter(function(f,h){var m=Os(o,f),y=n.props[a].filter(function(S){var w=zie(n,t);return w(S,t)}),g=n.props[a].indexOf(y[y.length-1]),j=h===g;return m&&j}),c=r.indexOf(l[l.length-1]);return c}var lh;function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function Po(){return Po=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},Po.apply(this,arguments)}function VD(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?VD(Object(n),!0).forEach(function(r){fr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VD(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 HD(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,V$(r.key),r)}}function Uie(e,t,n){return t&&HD(e.prototype,t),n&&HD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vie(e,t,n){return t=op(t),Hie(e,U$()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function Hie(e,t){if(t&&(tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fie(e)}function Fie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U$=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Gie(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&&zj(e,t)}function zj(e,t){return zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},zj(e,t)}function fr(e,t,n){return t=V$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V$(e){var t=Kie(e,"string");return tl(t)=="symbol"?t:t+""}function Kie(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bi=(function(e){function t(n){var r;return Iie(this,t),r=Vie(this,t,[n]),fr(r,"pieRef",null),fr(r,"sectorRefs",[]),fr(r,"id",Ms("recharts-pie-")),fr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Te(a)&&a()}),fr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Te(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Gie(t,e),Uie(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 o=this.props,l=o.label,c=o.labelLine,f=o.dataKey,h=o.valueKey,m=je(this.props,!1),y=je(l,!1),g=je(c,!1),j=l&&l.offsetRadius||20,S=r.map(function(w,b){var A=(w.startAngle+w.endAngle)/2,_=mt(w.cx,w.cy,w.outerRadius+j,A),T=ht(ht(ht(ht({},m),w),{},{stroke:"none"},y),{},{index:b,textAnchor:t.getTextAnchor(_.x,w.cx)},_),C=ht(ht(ht(ht({},m),w),{},{fill:"none",stroke:w.fill},g),{},{index:b,points:[mt(w.cx,w.cy,w.outerRadius,A),_]}),O=f;return Ne(f)&&Ne(h)?O="value":Ne(f)&&(O=h),q.createElement(qe,{key:"label-".concat(w.startAngle,"-").concat(w.endAngle,"-").concat(w.midAngle,"-").concat(b)},c&&t.renderLabelLineItem(c,C,"line"),t.renderLabelItem(l,T,Rt(w,O)))});return q.createElement(qe,{className:"recharts-pie-labels"},S)}},{key:"renderSectorsStatically",value:function(r){var a=this,o=this.props,l=o.activeShape,c=o.blendStroke,f=o.inactiveShape;return r.map(function(h,m){if((h==null?void 0:h.startAngle)===0&&(h==null?void 0:h.endAngle)===0&&r.length!==1)return null;var y=a.isActiveIndex(m),g=f&&a.hasActiveIndex()?f:null,j=y?l:g,S=ht(ht({},h),{},{stroke:c?h.fill:h.stroke,tabIndex:-1});return q.createElement(qe,Po({ref:function(b){b&&!a.sectorRefs.includes(b)&&a.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},ws(a.props,h,m),{key:"sector-".concat(h==null?void 0:h.startAngle,"-").concat(h==null?void 0:h.endAngle,"-").concat(h.midAngle,"-").concat(m)}),q.createElement(I$,Po({option:j,isActive:y,shapeType:"sector"},S)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,o=a.sectors,l=a.isAnimationActive,c=a.animationBegin,f=a.animationDuration,h=a.animationEasing,m=a.animationId,y=this.state,g=y.prevSectors,j=y.prevIsAnimationActive;return q.createElement(Rr,{begin:c,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"pie-".concat(m,"-").concat(j),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(S){var w=S.t,b=[],A=o&&o[0],_=A.startAngle;return o.forEach(function(T,C){var O=g&&g[C],E=C>0?Yn(T,"paddingAngle",0):0;if(O){var M=Gt(O.endAngle-O.startAngle,T.endAngle-T.startAngle),k=ht(ht({},T),{},{startAngle:_+E,endAngle:_+M(w)+E});b.push(k),_=k.endAngle}else{var D=T.endAngle,B=T.startAngle,I=Gt(0,D-B),$=I(w),G=ht(ht({},T),{},{startAngle:_+E,endAngle:_+$+E});b.push(G),_=G.endAngle}}),q.createElement(qe,null,r.renderSectorsStatically(b))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var c=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[c].focus(),a.setState({sectorToFocus:c});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,o=r.isAnimationActive,l=this.state.prevSectors;return o&&a&&a.length&&(!l||!Os(l,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,o=a.hide,l=a.sectors,c=a.className,f=a.label,h=a.cx,m=a.cy,y=a.innerRadius,g=a.outerRadius,j=a.isAnimationActive,S=this.state.isAnimationFinished;if(o||!l||!l.length||!ue(h)||!ue(m)||!ue(y)||!ue(g))return null;var w=Pe("recharts-pie",c);return q.createElement(qe,{tabIndex:this.props.rootTabIndex,className:w,ref:function(A){r.pieRef=A}},this.renderSectors(),f&&this.renderLabels(l),Jt.renderCallByParent(this.props,null,!1),(!j||S)&&Xr.renderCallByParent(this.props,l,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,o){if(q.isValidElement(r))return q.cloneElement(r,a);if(Te(r))return r(a);var l=Pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return q.createElement(bs,Po({},a,{key:o,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,o){if(q.isValidElement(r))return q.cloneElement(r,a);var l=o;if(Te(r)&&(l=r(a),q.isValidElement(l)))return l;var c=Pe("recharts-pie-label-text",typeof r!="boolean"&&!Te(r)?r.className:"");return q.createElement(As,Po({},a,{alignmentBaseline:"middle",className:c}),l)}}])})(P.PureComponent);lh=Bi;fr(Bi,"displayName","Pie");fr(Bi,"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:!Ma.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});fr(Bi,"parseDeltaAngle",function(e,t){var n=xn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});fr(Bi,"getRealPieData",function(e){var t=e.data,n=e.children,r=je(e,!1),a=Xn(n,Gp);return t&&t.length?t.map(function(o,l){return ht(ht(ht({payload:o},r),o),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(o){return ht(ht({},r),o.props)}):[]});fr(Bi,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,o=t.height,l=O$(a,o),c=r+bn(e.cx,a,a/2),f=n+bn(e.cy,o,o/2),h=bn(e.innerRadius,l,0),m=bn(e.outerRadius,l,l*.8),y=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:c,cy:f,innerRadius:h,outerRadius:m,maxRadius:y}});fr(Bi,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?ht(ht({},t.type.defaultProps),t.props):t.props,a=lh.getRealPieData(r);if(!a||!a.length)return null;var o=r.cornerRadius,l=r.startAngle,c=r.endAngle,f=r.paddingAngle,h=r.dataKey,m=r.nameKey,y=r.valueKey,g=r.tooltipType,j=Math.abs(r.minAngle),S=lh.parseCoordinateOfPie(r,n),w=lh.parseDeltaAngle(l,c),b=Math.abs(w),A=h;Ne(h)&&Ne(y)?(Mr(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),A="value"):Ne(h)&&(Mr(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),A=y);var _=a.filter(function(k){return Rt(k,A,0)!==0}).length,T=(b>=360?_:_-1)*f,C=b-_*j-T,O=a.reduce(function(k,D){var B=Rt(D,A,0);return k+(ue(B)?B:0)},0),E;if(O>0){var M;E=a.map(function(k,D){var B=Rt(k,A,0),I=Rt(k,m,D),$=(ue(B)?B:0)/O,G;D?G=M.endAngle+xn(w)*f*(B!==0?1:0):G=l;var X=G+xn(w)*((B!==0?j:0)+$*C),Y=(G+X)/2,L=(S.innerRadius+S.outerRadius)/2,H=[{name:I,value:B,payload:k,dataKey:A,type:g}],Q=mt(S.cx,S.cy,L,Y);return M=ht(ht(ht({percent:$,cornerRadius:o,name:I,tooltipPayload:H,midAngle:Y,middleRadius:L,tooltipPosition:Q},k),S),{},{value:Rt(k,A),startAngle:G,endAngle:X,payload:k,paddingAngle:xn(w)*f}),M})}return ht(ht({},S),{},{sectors:E,data:a})});var L0,FD;function Yie(){if(FD)return L0;FD=1;var e=Math.ceil,t=Math.max;function n(r,a,o,l){for(var c=-1,f=t(e((a-r)/(o||1)),0),h=Array(f);f--;)h[l?f:++c]=r,r+=o;return h}return L0=n,L0}var z0,GD;function H$(){if(GD)return z0;GD=1;var e=hz(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var o=a<0?-1:1;return o*n}return a===a?a:0}return z0=r,z0}var $0,KD;function Xie(){if(KD)return $0;KD=1;var e=Yie(),t=Fp(),n=H$();function r(a){return function(o,l,c){return c&&typeof c!="number"&&t(o,l,c)&&(l=c=void 0),o=n(o),l===void 0?(l=o,o=0):l=n(l),c=c===void 0?o<l?1:-1:n(c),e(o,l,c,a)}}return $0=r,$0}var B0,YD;function Wie(){if(YD)return B0;YD=1;var e=Xie(),t=e();return B0=t,B0}var Zie=Wie();const lp=it(Zie);function $c(e){"@babel/helpers - typeof";return $c=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},$c(e)}function XD(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 WD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XD(Object(n),!0).forEach(function(r){F$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F$(e,t,n){return t=Qie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qie(e){var t=Jie(e,"string");return $c(t)=="symbol"?t:t+""}function Jie(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eae=["Webkit","Moz","O","ms"],tae=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),a=eae.reduce(function(o,l){return WD(WD({},o),{},F$({},l+r,n))},{});return a[t]=n,a};function nl(e){"@babel/helpers - typeof";return nl=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},nl(e)}function up(){return up=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},up.apply(this,arguments)}function ZD(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 q0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZD(Object(n),!0).forEach(function(r){Vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QD(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,K$(r.key),r)}}function rae(e,t,n){return t&&QD(e.prototype,t),n&&QD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iae(e,t,n){return t=cp(t),aae(e,G$()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function aae(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sae(e)}function sae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G$=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function oae(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&&$j(e,t)}function $j(e,t){return $j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$j(e,t)}function Vn(e,t,n){return t=K$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K$(e){var t=lae(e,"string");return nl(t)=="symbol"?t:t+""}function lae(e,t){if(nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uae=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,o=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,h=Zu().domain(lp(0,f)).range([o,o+l-c]),m=h.domain().map(function(y){return h(y)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:h(r),endX:h(a),scale:h,scaleValues:m}},JD=function(t){return t.changedTouches&&!!t.changedTouches.length},rl=(function(e){function t(n){var r;return nae(this,t),r=iae(this,t,[n]),Vn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),Vn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),Vn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,o=a.endIndex,l=a.onDragEnd,c=a.startIndex;l==null||l({endIndex:o,startIndex:c})}),r.detachDragEndListener()}),Vn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Vn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Vn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Vn(r,"handleSlideDragStart",function(a){var o=JD(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return oae(t,e),rae(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,o=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,h=c.data,m=h.length-1,y=Math.min(a,o),g=Math.max(a,o),j=t.getIndexInRange(l,y),S=t.getIndexInRange(l,g);return{startIndex:j-j%f,endIndex:S===m?m:S-S%f}}},{key:"getTextOfTick",value:function(r){var a=this.props,o=a.data,l=a.tickFormatter,c=a.dataKey,f=Rt(o[r],c,r);return Te(l)?l(f,r):f}},{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,o=a.slideMoveStartX,l=a.startX,c=a.endX,f=this.props,h=f.x,m=f.width,y=f.travellerWidth,g=f.startIndex,j=f.endIndex,S=f.onChange,w=r.pageX-o;w>0?w=Math.min(w,h+m-y-c,h+m-y-l):w<0&&(w=Math.max(w,h-l,h-c));var b=this.getIndex({startX:l+w,endX:c+w});(b.startIndex!==g||b.endIndex!==j)&&S&&S(b),this.setState({startX:l+w,endX:c+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var o=JD(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,o=a.brushMoveStartX,l=a.movingTravellerId,c=a.endX,f=a.startX,h=this.state[l],m=this.props,y=m.x,g=m.width,j=m.travellerWidth,S=m.onChange,w=m.gap,b=m.data,A={startX:this.state.startX,endX:this.state.endX},_=r.pageX-o;_>0?_=Math.min(_,y+g-j-h):_<0&&(_=Math.max(_,y-h)),A[l]=h+_;var T=this.getIndex(A),C=T.startIndex,O=T.endIndex,E=function(){var k=b.length-1;return l==="startX"&&(c>f?C%w===0:O%w===0)||c<f&&O===k||l==="endX"&&(c>f?O%w===0:C%w===0)||c>f&&O===k};this.setState(Vn(Vn({},l,h+_),"brushMoveStartX",r.pageX),function(){S&&E()&&S(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var o=this,l=this.state,c=l.scaleValues,f=l.startX,h=l.endX,m=this.state[a],y=c.indexOf(m);if(y!==-1){var g=y+r;if(!(g===-1||g>=c.length)){var j=c[g];a==="startX"&&j>=h||a==="endX"&&j<=f||this.setState(Vn({},a,j),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.fill,h=r.stroke;return q.createElement("rect",{stroke:h,fill:f,x:a,y:o,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.data,h=r.children,m=r.padding,y=P.Children.only(h);return y?q.cloneElement(y,{x:a,y:o,width:l,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,a){var o,l,c=this,f=this.props,h=f.y,m=f.travellerWidth,y=f.height,g=f.traveller,j=f.ariaLabel,S=f.data,w=f.startIndex,b=f.endIndex,A=Math.max(r,this.props.x),_=q0(q0({},je(this.props,!1)),{},{x:A,y:h,width:m,height:y}),T=j||"Min value: ".concat((o=S[w])===null||o===void 0?void 0:o.name,", Max value: ").concat((l=S[b])===null||l===void 0?void 0:l.name);return q.createElement(qe,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),c.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,_))}},{key:"renderSlide",value:function(r,a){var o=this.props,l=o.y,c=o.height,f=o.stroke,h=o.travellerWidth,m=Math.min(r,a)+h,y=Math.max(Math.abs(a-r)-h,0);return q.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:m,y:l,width:y,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,o=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,h=r.stroke,m=this.state,y=m.startX,g=m.endX,j=5,S={pointerEvents:"none",fill:h};return q.createElement(qe,{className:"recharts-brush-texts"},q.createElement(As,up({textAnchor:"end",verticalAnchor:"middle",x:Math.min(y,g)-j,y:l+c/2},S),this.getTextOfTick(a)),q.createElement(As,up({textAnchor:"start",verticalAnchor:"middle",x:Math.max(y,g)+f+j,y:l+c/2},S),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,a=r.data,o=r.className,l=r.children,c=r.x,f=r.y,h=r.width,m=r.height,y=r.alwaysShowText,g=this.state,j=g.startX,S=g.endX,w=g.isTextActive,b=g.isSlideMoving,A=g.isTravellerMoving,_=g.isTravellerFocused;if(!a||!a.length||!ue(c)||!ue(f)||!ue(h)||!ue(m)||h<=0||m<=0)return null;var T=Pe("recharts-brush",o),C=q.Children.count(l)===1,O=tae("userSelect","none");return q.createElement(qe,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(j,S),this.renderTravellerLayer(j,"startX"),this.renderTravellerLayer(S,"endX"),(w||b||A||_||y)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,o=r.y,l=r.width,c=r.height,f=r.stroke,h=Math.floor(o+c/2)-1;return q.createElement(q.Fragment,null,q.createElement("rect",{x:a,y:o,width:l,height:c,fill:f,stroke:"none"}),q.createElement("line",{x1:a+1,y1:h,x2:a+l-1,y2:h,fill:"none",stroke:"#fff"}),q.createElement("line",{x1:a+1,y1:h+2,x2:a+l-1,y2:h+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var o;return q.isValidElement(r)?o=q.cloneElement(r,a):Te(r)?o=r(a):o=t.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(r,a){var o=r.data,l=r.width,c=r.x,f=r.travellerWidth,h=r.updateId,m=r.startIndex,y=r.endIndex;if(o!==a.prevData||h!==a.prevUpdateId)return q0({prevData:o,prevTravellerWidth:f,prevUpdateId:h,prevX:c,prevWidth:l},o&&o.length?uae({data:o,width:l,x:c,travellerWidth:f,startIndex:m,endIndex:y}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||c!==a.prevX||f!==a.prevTravellerWidth)){a.scale.range([c,c+l-f]);var g=a.scale.domain().map(function(j){return a.scale(j)});return{prevData:o,prevTravellerWidth:f,prevUpdateId:h,prevX:c,prevWidth:l,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,a){for(var o=r.length,l=0,c=o-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>a?c=f:l=f}return a>=r[c]?c:l}}])})(P.PureComponent);Vn(rl,"displayName","Brush");Vn(rl,"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 I0,ek;function cae(){if(ek)return I0;ek=1;var e=vw();function t(n,r){var a;return e(n,function(o,l,c){return a=r(o,l,c),!a}),!!a}return I0=t,I0}var U0,tk;function fae(){if(tk)return U0;tk=1;var e=H4(),t=ti(),n=cae(),r=Pn(),a=Fp();function o(l,c,f){var h=r(l)?e:n;return f&&a(l,c,f)&&(c=void 0),h(l,t(c,3))}return U0=o,U0}var dae=fae();const hae=it(dae);var Wr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},V0,nk;function pae(){if(nk)return V0;nk=1;var e=lz();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return V0=t,V0}var H0,rk;function mae(){if(rk)return H0;rk=1;var e=pae(),t=sz(),n=ti();function r(a,o){var l={};return o=n(o,3),t(a,function(c,f,h){e(l,f,o(c,f,h))}),l}return H0=r,H0}var yae=mae();const vae=it(yae);var F0,ik;function gae(){if(ik)return F0;ik=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(!n(t[r],r,t))return!1;return!0}return F0=e,F0}var G0,ak;function xae(){if(ak)return G0;ak=1;var e=vw();function t(n,r){var a=!0;return e(n,function(o,l,c){return a=!!r(o,l,c),a}),a}return G0=t,G0}var K0,sk;function bae(){if(sk)return K0;sk=1;var e=gae(),t=xae(),n=ti(),r=Pn(),a=Fp();function o(l,c,f){var h=r(l)?e:t;return f&&a(l,c,f)&&(c=void 0),h(l,n(c,3))}return K0=o,K0}var jae=bae();const Y$=it(jae);var Sae=["x","y"];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 Bj(){return Bj=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},Bj.apply(this,arguments)}function ok(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 zu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(r){wae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wae(e,t,n){return t=Aae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aae(e){var t=Oae(e,"string");return Bc(t)=="symbol"?t:t+""}function Oae(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ae(e,t){if(e==null)return{};var n=Tae(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tae(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 Eae(e,t){var n=e.x,r=e.y,a=_ae(e,Sae),o="".concat(n),l=parseInt(o,10),c="".concat(r),f=parseInt(c,10),h="".concat(t.height||a.height),m=parseInt(h,10),y="".concat(t.width||a.width),g=parseInt(y,10);return zu(zu(zu(zu(zu({},t),a),l?{x:l}:{}),f?{y:f}:{}),{},{height:m,width:g,name:t.name,radius:t.radius})}function lk(e){return q.createElement(I$,Bj({shapeType:"rectangle",propTransformer:Eae,activeClassName:"recharts-active-bar"},e))}var Nae=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 o=ue(r)||WF(r);return o?t(r,a):(o||Ts(),n)}},Cae=["value","background"],X$;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 Mae(e,t){if(e==null)return{};var n=Pae(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pae(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 fp(){return fp=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},fp.apply(this,arguments)}function uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uk(Object(n),!0).forEach(function(r){ba(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(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,Z$(r.key),r)}}function Dae(e,t,n){return t&&ck(e.prototype,t),n&&ck(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kae(e,t,n){return t=dp(t),Lae(e,W$()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function Lae(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 zae(e)}function zae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W$=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function $ae(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&&qj(e,t)}function qj(e,t){return qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},qj(e,t)}function ba(e,t,n){return t=Z$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z$(e){var t=Bae(e,"string");return il(t)=="symbol"?t:t+""}function Bae(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 _a=(function(e){function t(){var n;Rae(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=kae(this,t,[].concat(a)),ba(n,"state",{isAnimationFinished:!1}),ba(n,"id",Ms("recharts-bar-")),ba(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),ba(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return $ae(t,e),Dae(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,o=this.props,l=o.shape,c=o.dataKey,f=o.activeIndex,h=o.activeBar,m=je(this.props,!1);return r&&r.map(function(y,g){var j=g===f,S=j?h:l,w=$t($t($t({},m),y),{},{isActive:j,option:S,index:g,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return q.createElement(qe,fp({className:"recharts-bar-rectangle"},ws(a.props,y,g),{key:"rectangle-".concat(y==null?void 0:y.x,"-").concat(y==null?void 0:y.y,"-").concat(y==null?void 0:y.value,"-").concat(g)}),q.createElement(lk,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,o=a.data,l=a.layout,c=a.isAnimationActive,f=a.animationBegin,h=a.animationDuration,m=a.animationEasing,y=a.animationId,g=this.state.prevData;return q.createElement(Rr,{begin:f,duration:h,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(y),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var S=j.t,w=o.map(function(b,A){var _=g&&g[A];if(_){var T=Gt(_.x,b.x),C=Gt(_.y,b.y),O=Gt(_.width,b.width),E=Gt(_.height,b.height);return $t($t({},b),{},{x:T(S),y:C(S),width:O(S),height:E(S)})}if(l==="horizontal"){var M=Gt(0,b.height),k=M(S);return $t($t({},b),{},{y:b.y+b.height-k,height:k})}var D=Gt(0,b.width),B=D(S);return $t($t({},b),{},{width:B})});return q.createElement(qe,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,o=r.isAnimationActive,l=this.state.prevData;return o&&a&&a.length&&(!l||!Os(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,o=a.data,l=a.dataKey,c=a.activeIndex,f=je(this.props.background,!1);return o.map(function(h,m){h.value;var y=h.background,g=Mae(h,Cae);if(!y)return null;var j=$t($t($t($t($t({},g),{},{fill:"#eee"},y),f),ws(r.props,h,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:m,className:"recharts-bar-background-rectangle"});return q.createElement(lk,fp({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},j))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.data,c=o.xAxis,f=o.yAxis,h=o.layout,m=o.children,y=Xn(m,sf);if(!y)return null;var g=h==="vertical"?l[0].height/2:l[0].width/2,j=function(b,A){var _=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:_,errorVal:Rt(b,A)}},S={clipPath:r?"url(#clipPath-".concat(a,")"):null};return q.createElement(qe,S,y.map(function(w){return q.cloneElement(w,{key:"error-bar-".concat(a,"-").concat(w.props.dataKey),data:l,xAxis:c,yAxis:f,layout:h,offset:g,dataPointFormatter:j})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,o=r.data,l=r.className,c=r.xAxis,f=r.yAxis,h=r.left,m=r.top,y=r.width,g=r.height,j=r.isAnimationActive,S=r.background,w=r.id;if(a||!o||!o.length)return null;var b=this.state.isAnimationFinished,A=Pe("recharts-bar",l),_=c&&c.allowDataOverflow,T=f&&f.allowDataOverflow,C=_||T,O=Ne(w)?this.id:w;return q.createElement(qe,{className:A},_||T?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(O)},q.createElement("rect",{x:_?h:h-y/2,y:T?m:m-g/2,width:_?y:y*2,height:T?g:g*2}))):null,q.createElement(qe,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(O,")"):null},S?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,O),(!j||b)&&Xr.renderCallByParent(this.props,o))}}],[{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}}])})(P.PureComponent);X$=_a;ba(_a,"displayName","Bar");ba(_a,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ma.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ba(_a,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,o=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,h=e.stackedData,m=e.dataStartIndex,y=e.displayedData,g=e.offset,j=cee(r,n);if(!j)return null;var S=t.layout,w=n.type.defaultProps,b=w!==void 0?$t($t({},w),n.props):n.props,A=b.dataKey,_=b.children,T=b.minPointSize,C=S==="horizontal"?l:o,O=h?C.scale.domain():null,E=vee({numericAxis:C}),M=Xn(_,Gp),k=y.map(function(D,B){var I,$,G,X,Y,L;h?I=fee(h[m+B],O):(I=Rt(D,A),Array.isArray(I)||(I=[E,I]));var H=Nae(T,X$.defaultProps.minPointSize)(I[1],B);if(S==="horizontal"){var Q,ie=[l.scale(I[0]),l.scale(I[1])],oe=ie[0],z=ie[1];$=$R({axis:o,ticks:c,bandSize:a,offset:j.offset,entry:D,index:B}),G=(Q=z??oe)!==null&&Q!==void 0?Q:void 0,X=j.size;var F=oe-z;if(Y=Number.isNaN(F)?0:F,L={x:$,y:l.y,width:X,height:l.height},Math.abs(H)>0&&Math.abs(Y)<Math.abs(H)){var re=xn(Y||H)*(Math.abs(H)-Math.abs(Y));G-=re,Y+=re}}else{var fe=[o.scale(I[0]),o.scale(I[1])],pe=fe[0],we=fe[1];if($=pe,G=$R({axis:l,ticks:f,bandSize:a,offset:j.offset,entry:D,index:B}),X=we-pe,Y=j.size,L={x:o.x,y:G,width:o.width,height:Y},Math.abs(H)>0&&Math.abs(X)<Math.abs(H)){var ze=xn(X||H)*(Math.abs(H)-Math.abs(X));X+=ze}}return $t($t($t({},D),{},{x:$,y:G,width:X,height:Y,value:h?I:I[1],payload:D,background:L},M&&M[B]&&M[B].props),{},{tooltipPayload:[w$(n,D)],tooltipPosition:{x:$+X/2,y:G+Y/2}})});return $t({data:k,layout:S},g)});function qc(e){"@babel/helpers - typeof";return qc=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},qc(e)}function qae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fk(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,Q$(r.key),r)}}function Iae(e,t,n){return t&&fk(e.prototype,t),n&&fk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dk(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 _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dk(Object(n),!0).forEach(function(r){um(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function um(e,t,n){return t=Q$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q$(e){var t=Uae(e,"string");return qc(t)=="symbol"?t:t+""}function Uae(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gw=function(t,n,r,a,o){var l=t.width,c=t.height,f=t.layout,h=t.children,m=Object.keys(n),y={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},g=!!Hn(h,_a);return m.reduce(function(j,S){var w=n[S],b=w.orientation,A=w.domain,_=w.padding,T=_===void 0?{}:_,C=w.mirror,O=w.reversed,E="".concat(b).concat(C?"Mirror":""),M,k,D,B,I;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var $=A[1]-A[0],G=1/0,X=w.categoricalDomain.sort(JF);if(X.forEach(function(fe,pe){pe>0&&(G=Math.min((fe||0)-(X[pe-1]||0),G))}),Number.isFinite(G)){var Y=G/$,L=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(M=Y*L/2),w.padding==="no-gap"){var H=bn(t.barCategoryGap,Y*L),Q=Y*L/2;M=Q-H-(Q-H)/L*H}}}a==="xAxis"?k=[r.left+(T.left||0)+(M||0),r.left+r.width-(T.right||0)-(M||0)]:a==="yAxis"?k=f==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(M||0),r.top+r.height-(T.bottom||0)-(M||0)]:k=w.range,O&&(k=[k[1],k[0]]);var ie=x$(w,o,g),oe=ie.scale,z=ie.realScaleType;oe.domain(A).range(k),b$(oe);var F=j$(oe,_r(_r({},w),{},{realScaleType:z}));a==="xAxis"?(I=b==="top"&&!C||b==="bottom"&&C,D=r.left,B=y[E]-I*w.height):a==="yAxis"&&(I=b==="left"&&!C||b==="right"&&C,D=y[E]-I*w.width,B=r.top);var re=_r(_r(_r({},w),F),{},{realScaleType:z,x:D,y:B,scale:oe,width:a==="xAxis"?r.width:w.width,height:a==="yAxis"?r.height:w.height});return re.bandSize=Xh(re,F),!w.hide&&a==="xAxis"?y[E]+=(I?-1:1)*re.height:w.hide||(y[E]+=(I?-1:1)*re.width),_r(_r({},j),{},um({},S,re))},{})},J$=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return{x:Math.min(r,o),y:Math.min(a,l),width:Math.abs(o-r),height:Math.abs(l-a)}},Vae=function(t){var n=t.x1,r=t.y1,a=t.x2,o=t.y2;return J$({x:n,y:r},{x:a,y:o})},eB=(function(){function e(t){qae(this,e),this.scale=t}return Iae(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,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(a){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],o=r[r.length-1];return a<=o?n>=a&&n<=o:n>=o&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();um(eB,"EPS",1e-4);var Kw=function(t){var n=Object.keys(t).reduce(function(r,a){return _r(_r({},r),{},um({},a,eB.create(t[a])))},{});return _r(_r({},n),{},{apply:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.bandAware,c=o.position;return vae(a,function(f,h){return n[h].apply(f,{bandAware:l,position:c})})},isInRange:function(a){return Y$(a,function(o,l){return n[l].isInRange(o)})}})};function Hae(e){return(e%180+180)%180}var Fae=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Hae(a),l=o*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},Y0,hk;function Gae(){if(hk)return Y0;hk=1;var e=ti(),t=ef(),n=Vp();function r(a){return function(o,l,c){var f=Object(o);if(!t(o)){var h=e(l,3);o=n(o),l=function(y){return h(f[y],y,f)}}var m=a(o,l,c);return m>-1?f[h?o[m]:m]:void 0}}return Y0=r,Y0}var X0,pk;function Kae(){if(pk)return X0;pk=1;var e=H$();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return X0=t,X0}var W0,mk;function Yae(){if(mk)return W0;mk=1;var e=tz(),t=ti(),n=Kae(),r=Math.max;function a(o,l,c){var f=o==null?0:o.length;if(!f)return-1;var h=c==null?0:n(c);return h<0&&(h=r(f+h,0)),e(o,t(l,3),h)}return W0=a,W0}var Z0,yk;function Xae(){if(yk)return Z0;yk=1;var e=Gae(),t=Yae(),n=e(t);return Z0=n,Z0}var Wae=Xae();const Zae=it(Wae);var Qae=y4();const Jae=it(Qae);var ese=Jae(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("")}),Yw=P.createContext(void 0),Xw=P.createContext(void 0),tB=P.createContext(void 0),nB=P.createContext({}),rB=P.createContext(void 0),iB=P.createContext(0),aB=P.createContext(0),vk=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,o=n.offset,l=t.clipPathId,c=t.children,f=t.width,h=t.height,m=ese(o);return q.createElement(Yw.Provider,{value:r},q.createElement(Xw.Provider,{value:a},q.createElement(nB.Provider,{value:o},q.createElement(tB.Provider,{value:m},q.createElement(rB.Provider,{value:l},q.createElement(iB.Provider,{value:h},q.createElement(aB.Provider,{value:f},c)))))))},tse=function(){return P.useContext(rB)},sB=function(t){var n=P.useContext(Yw);n==null&&Ts();var r=n[t];return r==null&&Ts(),r},nse=function(){var t=P.useContext(Yw);return va(t)},rse=function(){var t=P.useContext(Xw),n=Zae(t,function(r){return Y$(r.domain,Number.isFinite)});return n||va(t)},oB=function(t){var n=P.useContext(Xw);n==null&&Ts();var r=n[t];return r==null&&Ts(),r},ise=function(){var t=P.useContext(tB);return t},ase=function(){return P.useContext(nB)},Ww=function(){return P.useContext(aB)},Zw=function(){return P.useContext(iB)};function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function sse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ose(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,uB(r.key),r)}}function lse(e,t,n){return t&&ose(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function use(e,t,n){return t=hp(t),cse(e,lB()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function cse(e,t){if(t&&(al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fse(e)}function fse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lB=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function dse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ij(e,t)}function Ij(e,t){return Ij=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ij(e,t)}function gk(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 xk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gk(Object(n),!0).forEach(function(r){Qw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qw(e,t,n){return t=uB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uB(e){var t=hse(e,"string");return al(t)=="symbol"?t:t+""}function hse(e,t){if(al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pse(e,t){return gse(e)||vse(e,t)||yse(e,t)||mse()}function mse(){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 yse(e,t){if(e){if(typeof e=="string")return bk(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 bk(e,t)}}function bk(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 vse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function gse(e){if(Array.isArray(e))return e}function Uj(){return Uj=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},Uj.apply(this,arguments)}var xse=function(t,n){var r;return q.isValidElement(t)?r=q.cloneElement(t,n):Te(t)?r=t(n):r=q.createElement("line",Uj({},n,{className:"recharts-reference-line-line"})),r},bse=function(t,n,r,a,o,l,c,f,h){var m=o.x,y=o.y,g=o.width,j=o.height;if(r){var S=h.y,w=t.y.apply(S,{position:l});if(Wr(h,"discard")&&!t.y.isInRange(w))return null;var b=[{x:m+g,y:w},{x:m,y:w}];return f==="left"?b.reverse():b}if(n){var A=h.x,_=t.x.apply(A,{position:l});if(Wr(h,"discard")&&!t.x.isInRange(_))return null;var T=[{x:_,y:y+j},{x:_,y}];return c==="top"?T.reverse():T}if(a){var C=h.segment,O=C.map(function(E){return t.apply(E,{position:l})});return Wr(h,"discard")&&hae(O,function(E){return!t.isInRange(E)})?null:O}return null};function jse(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,o=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,h=tse(),m=sB(a),y=oB(o),g=ise();if(!h||!g)return null;Mr(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var j=Kw({x:m.scale,y:y.scale}),S=Kt(t),w=Kt(n),b=r&&r.length===2,A=bse(j,S,w,b,g,e.position,m.orientation,y.orientation,e);if(!A)return null;var _=pse(A,2),T=_[0],C=T.x,O=T.y,E=_[1],M=E.x,k=E.y,D=Wr(e,"hidden")?"url(#".concat(h,")"):void 0,B=xk(xk({clipPath:D},je(e,!0)),{},{x1:C,y1:O,x2:M,y2:k});return q.createElement(qe,{className:Pe("recharts-reference-line",c)},xse(l,B),Jt.renderCallByParent(e,Vae({x1:C,y1:O,x2:M,y2:k})))}var Jw=(function(e){function t(){return sse(this,t),use(this,t,arguments)}return dse(t,e),lse(t,[{key:"render",value:function(){return q.createElement(jse,this.props)}}])})(q.Component);Qw(Jw,"displayName","ReferenceLine");Qw(Jw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Vj(){return Vj=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},Vj.apply(this,arguments)}function sl(e){"@babel/helpers - typeof";return sl=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},sl(e)}function jk(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 Sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jk(Object(n),!0).forEach(function(r){cm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wse(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,fB(r.key),r)}}function Ase(e,t,n){return t&&wse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ose(e,t,n){return t=pp(t),_se(e,cB()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function _se(e,t){if(t&&(sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tse(e)}function Tse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cB=function(){return!!e})()}function pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pp(e)}function Ese(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&&Hj(e,t)}function Hj(e,t){return Hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Hj(e,t)}function cm(e,t,n){return t=fB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fB(e){var t=Nse(e,"string");return sl(t)=="symbol"?t:t+""}function Nse(e,t){if(sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cse=function(t){var n=t.x,r=t.y,a=t.xAxis,o=t.yAxis,l=Kw({x:a.scale,y:o.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return Wr(t,"discard")&&!l.isInRange(c)?null:c},fm=(function(e){function t(){return Sse(this,t),Ose(this,t,arguments)}return Ese(t,e),Ase(t,[{key:"render",value:function(){var r=this.props,a=r.x,o=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,h=Kt(a),m=Kt(o);if(Mr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!h||!m)return null;var y=Cse(this.props);if(!y)return null;var g=y.x,j=y.y,S=this.props,w=S.shape,b=S.className,A=Wr(this.props,"hidden")?"url(#".concat(f,")"):void 0,_=Sk(Sk({clipPath:A},je(this.props,!0)),{},{cx:g,cy:j});return q.createElement(qe,{className:Pe("recharts-reference-dot",b)},t.renderDot(w,_),Jt.renderCallByParent(this.props,{x:g-l,y:j-l,width:2*l,height:2*l}))}}])})(q.Component);cm(fm,"displayName","ReferenceDot");cm(fm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});cm(fm,"renderDot",function(e,t){var n;return q.isValidElement(e)?n=q.cloneElement(e,t):Te(e)?n=e(t):n=q.createElement(of,Vj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Fj(){return Fj=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},Fj.apply(this,arguments)}function ol(e){"@babel/helpers - typeof";return ol=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},ol(e)}function wk(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 Ak(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(n),!0).forEach(function(r){dm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hB(r.key),r)}}function Rse(e,t,n){return t&&Pse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dse(e,t,n){return t=mp(t),kse(e,dB()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}function kse(e,t){if(t&&(ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lse(e)}function Lse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dB=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mp(e)}function zse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gj(e,t)}function Gj(e,t){return Gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Gj(e,t)}function dm(e,t,n){return t=hB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hB(e){var t=$se(e,"string");return ol(t)=="symbol"?t:t+""}function $se(e,t){if(ol(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ol(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bse=function(t,n,r,a,o){var l=o.x1,c=o.x2,f=o.y1,h=o.y2,m=o.xAxis,y=o.yAxis;if(!m||!y)return null;var g=Kw({x:m.scale,y:y.scale}),j={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},S={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:a?g.y.apply(h,{position:"end"}):g.y.rangeMax};return Wr(o,"discard")&&(!g.isInRange(j)||!g.isInRange(S))?null:J$(j,S)},hm=(function(e){function t(){return Mse(this,t),Dse(this,t,arguments)}return zse(t,e),Rse(t,[{key:"render",value:function(){var r=this.props,a=r.x1,o=r.x2,l=r.y1,c=r.y2,f=r.className,h=r.alwaysShow,m=r.clipPathId;Mr(h===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=Kt(a),g=Kt(o),j=Kt(l),S=Kt(c),w=this.props.shape;if(!y&&!g&&!j&&!S&&!w)return null;var b=Bse(y,g,j,S,this.props);if(!b&&!w)return null;var A=Wr(this.props,"hidden")?"url(#".concat(m,")"):void 0;return q.createElement(qe,{className:Pe("recharts-reference-area",f)},t.renderRect(w,Ak(Ak({clipPath:A},je(this.props,!0)),b)),Jt.renderCallByParent(this.props,b))}}])})(q.Component);dm(hm,"displayName","ReferenceArea");dm(hm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});dm(hm,"renderRect",function(e,t){var n;return q.isValidElement(e)?n=q.cloneElement(e,t):Te(e)?n=e(t):n=q.createElement(Fw,Fj({},t,{className:"recharts-reference-area-rect"})),n});function pB(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 qse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Fae(r,n)}function Ise(e,t,n){var r=n==="width",a=e.x,o=e.y,l=e.width,c=e.height;return t===1?{start:r?a:o,end:r?a+l:o+c}:{start:r?a+l:o+c,end:r?a:o}}function yp(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-a)<=0}function Use(e,t){return pB(e,t+1)}function Vse(e,t,n,r,a){for(var o=(r||[]).slice(),l=t.start,c=t.end,f=0,h=1,m=l,y=function(){var S=r==null?void 0:r[f];if(S===void 0)return{v:pB(r,h)};var w=f,b,A=function(){return b===void 0&&(b=n(S,w)),b},_=S.coordinate,T=f===0||yp(e,_,A,m,c);T||(f=0,m=l,h+=1),T&&(m=_+e*(A()/2+a),f+=h)},g;h<=o.length;)if(g=y(),g)return g.v;return[]}function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function Ok(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 pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ok(Object(n),!0).forEach(function(r){Hse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hse(e,t,n){return t=Fse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fse(e){var t=Gse(e,"string");return Ic(t)=="symbol"?t:t+""}function Gse(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 Kse(e,t,n,r,a){for(var o=(r||[]).slice(),l=o.length,c=t.start,f=t.end,h=function(g){var j=o[g],S,w=function(){return S===void 0&&(S=n(j,g)),S};if(g===l-1){var b=e*(j.coordinate+e*w()/2-f);o[g]=j=pn(pn({},j),{},{tickCoord:b>0?j.coordinate-b*e:j.coordinate})}else o[g]=j=pn(pn({},j),{},{tickCoord:j.coordinate});var A=yp(e,j.tickCoord,w,c,f);A&&(f=j.tickCoord-e*(w()/2+a),o[g]=pn(pn({},j),{},{isShow:!0}))},m=l-1;m>=0;m--)h(m);return o}function Yse(e,t,n,r,a,o){var l=(r||[]).slice(),c=l.length,f=t.start,h=t.end;if(o){var m=r[c-1],y=n(m,c-1),g=e*(m.coordinate+e*y/2-h);l[c-1]=m=pn(pn({},m),{},{tickCoord:g>0?m.coordinate-g*e:m.coordinate});var j=yp(e,m.tickCoord,function(){return y},f,h);j&&(h=m.tickCoord-e*(y/2+a),l[c-1]=pn(pn({},m),{},{isShow:!0}))}for(var S=o?c-1:c,w=function(_){var T=l[_],C,O=function(){return C===void 0&&(C=n(T,_)),C};if(_===0){var E=e*(T.coordinate-e*O()/2-f);l[_]=T=pn(pn({},T),{},{tickCoord:E<0?T.coordinate-E*e:T.coordinate})}else l[_]=T=pn(pn({},T),{},{tickCoord:T.coordinate});var M=yp(e,T.tickCoord,O,f,h);M&&(f=T.tickCoord+e*(O()/2+a),l[_]=pn(pn({},T),{},{isShow:!0}))},b=0;b<S;b++)w(b);return l}function eA(e,t,n){var r=e.tick,a=e.ticks,o=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,h=e.tickFormatter,m=e.unit,y=e.angle;if(!a||!a.length||!r)return[];if(ue(f)||Ma.isSsr)return Use(a,typeof f=="number"&&ue(f)?f:0);var g=[],j=c==="top"||c==="bottom"?"width":"height",S=m&&j==="width"?Wu(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(T,C){var O=Te(h)?h(T.value,C):T.value;return j==="width"?qse(Wu(O,{fontSize:t,letterSpacing:n}),S,y):Wu(O,{fontSize:t,letterSpacing:n})[j]},b=a.length>=2?xn(a[1].coordinate-a[0].coordinate):1,A=Ise(o,b,j);return f==="equidistantPreserveStart"?Vse(b,A,w,a,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Yse(b,A,w,a,l,f==="preserveStartEnd"):g=Kse(b,A,w,a,l),g.filter(function(_){return _.isShow}))}var Xse=["viewBox"],Wse=["viewBox"],Zse=["ticks"];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 Ro(){return Ro=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},Ro.apply(this,arguments)}function _k(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 Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_k(Object(n),!0).forEach(function(r){tA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_k(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q0(e,t){if(e==null)return{};var n=Qse(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qse(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 Jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tk(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,yB(r.key),r)}}function eoe(e,t,n){return t&&Tk(e.prototype,t),n&&Tk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function toe(e,t,n){return t=vp(t),noe(e,mB()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}function noe(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 roe(e)}function roe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mB=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vp(e)}function ioe(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&&Kj(e,t)}function Kj(e,t){return Kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Kj(e,t)}function tA(e,t,n){return t=yB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yB(e){var t=aoe(e,"string");return ll(t)=="symbol"?t:t+""}function aoe(e,t){if(ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nl=(function(e){function t(n){var r;return Jse(this,t),r=toe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return ioe(t,e),eoe(t,[{key:"shouldComponentUpdate",value:function(r,a){var o=r.viewBox,l=Q0(r,Xse),c=this.props,f=c.viewBox,h=Q0(c,Wse);return!Lo(o,f)||!Lo(l,h)||!Lo(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,o=a.x,l=a.y,c=a.width,f=a.height,h=a.orientation,m=a.tickSize,y=a.mirror,g=a.tickMargin,j,S,w,b,A,_,T=y?-1:1,C=r.tickSize||m,O=ue(r.tickCoord)?r.tickCoord:r.coordinate;switch(h){case"top":j=S=r.coordinate,b=l+ +!y*f,w=b-T*C,_=w-T*g,A=O;break;case"left":w=b=r.coordinate,S=o+ +!y*c,j=S-T*C,A=j-T*g,_=O;break;case"right":w=b=r.coordinate,S=o+ +y*c,j=S+T*C,A=j+T*g,_=O;break;default:j=S=r.coordinate,b=l+ +y*f,w=b+T*C,_=w+T*g,A=O;break}return{line:{x1:j,y1:w,x2:S,y2:b},tick:{x:A,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l;switch(a){case"left":l=o?"start":"end";break;case"right":l=o?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=o?"start":"end";break;default:l=o?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.orientation,h=r.mirror,m=r.axisLine,y=Vt(Vt(Vt({},je(this.props,!1)),je(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!h||f==="bottom"&&h);y=Vt(Vt({},y),{},{x1:a,y1:o+g*c,x2:a+l,y2:o+g*c})}else{var j=+(f==="left"&&!h||f==="right"&&h);y=Vt(Vt({},y),{},{x1:a+j*l,y1:o,x2:a+j*l,y2:o+c})}return q.createElement("line",Ro({},y,{className:Pe("recharts-cartesian-axis-line",Yn(m,"className"))}))}},{key:"renderTicks",value:function(r,a,o){var l=this,c=this.props,f=c.tickLine,h=c.stroke,m=c.tick,y=c.tickFormatter,g=c.unit,j=eA(Vt(Vt({},this.props),{},{ticks:r}),a,o),S=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),b=je(this.props,!1),A=je(m,!1),_=Vt(Vt({},b),{},{fill:"none"},je(f,!1)),T=j.map(function(C,O){var E=l.getTickLineCoord(C),M=E.line,k=E.tick,D=Vt(Vt(Vt(Vt({textAnchor:S,verticalAnchor:w},b),{},{stroke:"none",fill:h},A),k),{},{index:O,payload:C,visibleTicksCount:j.length,tickFormatter:y});return q.createElement(qe,Ro({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},ws(l.props,C,O)),f&&q.createElement("line",Ro({},_,M,{className:Pe("recharts-cartesian-axis-tick-line",Yn(f,"className"))})),m&&t.renderTickItem(m,D,"".concat(Te(y)?y(C.value,O):C.value).concat(g||"")))});return q.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,a=this.props,o=a.axisLine,l=a.width,c=a.height,f=a.ticksGenerator,h=a.className,m=a.hide;if(m)return null;var y=this.props,g=y.ticks,j=Q0(y,Zse),S=g;return Te(f)&&(S=g&&g.length>0?f(this.props):f(j)),l<=0||c<=0||!S||!S.length?null:q.createElement(qe,{className:Pe("recharts-cartesian-axis",h),ref:function(b){r.layerReference=b}},o&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),Jt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,o){var l,c=Pe(a.className,"recharts-cartesian-axis-tick-value");return q.isValidElement(r)?l=q.cloneElement(r,Vt(Vt({},a),{},{className:c})):Te(r)?l=r(Vt(Vt({},a),{},{className:c})):l=q.createElement(As,Ro({},a,{className:"recharts-cartesian-axis-tick-value"}),o),l}}])})(P.Component);tA(Nl,"displayName","CartesianAxis");tA(Nl,"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"});var soe=["x1","y1","x2","y2","key"],ooe=["offset"];function Es(e){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Es(e)}function Ek(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 mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(n),!0).forEach(function(r){loe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function loe(e,t,n){return t=uoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uoe(e){var t=coe(e,"string");return Es(t)=="symbol"?t:t+""}function coe(e,t){if(Es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ps(){return ps=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},ps.apply(this,arguments)}function Nk(e,t){if(e==null)return{};var n=foe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function foe(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 doe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,o=t.y,l=t.width,c=t.height,f=t.ry;return q.createElement("rect",{x:a,y:o,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function vB(e,t){var n;if(q.isValidElement(e))n=q.cloneElement(e,t);else if(Te(e))n=e(t);else{var r=t.x1,a=t.y1,o=t.x2,l=t.y2,c=t.key,f=Nk(t,soe),h=je(f,!1);h.offset;var m=Nk(h,ooe);n=q.createElement("line",ps({},m,{x1:r,y1:a,x2:o,y2:l,fill:"none",key:c}))}return n}function hoe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,o=e.horizontalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,f){var h=mn(mn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return vB(a,h)});return q.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function poe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,o=e.verticalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,f){var h=mn(mn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return vB(a,h)});return q.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function moe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,o=e.width,l=e.height,c=e.horizontalPoints,f=e.horizontal,h=f===void 0?!0:f;if(!h||!t||!t.length)return null;var m=c.map(function(g){return Math.round(g+a-a)}).sort(function(g,j){return g-j});a!==m[0]&&m.unshift(0);var y=m.map(function(g,j){var S=!m[j+1],w=S?a+l-g:m[j+1]-g;if(w<=0)return null;var b=j%t.length;return q.createElement("rect",{key:"react-".concat(j),y:g,x:r,height:w,width:o,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return q.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},y)}function yoe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,o=e.x,l=e.y,c=e.width,f=e.height,h=e.verticalPoints;if(!n||!r||!r.length)return null;var m=h.map(function(g){return Math.round(g+o-o)}).sort(function(g,j){return g-j});o!==m[0]&&m.unshift(0);var y=m.map(function(g,j){var S=!m[j+1],w=S?o+c-g:m[j+1]-g;if(w<=0)return null;var b=j%r.length;return q.createElement("rect",{key:"react-".concat(j),x:g,y:l,width:w,height:f,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return q.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},y)}var voe=function(t,n){var r=t.xAxis,a=t.width,o=t.height,l=t.offset;return g$(eA(mn(mn(mn({},Nl.defaultProps),r),{},{ticks:Ti(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.left,l.left+l.width,n)},goe=function(t,n){var r=t.yAxis,a=t.width,o=t.height,l=t.offset;return g$(eA(mn(mn(mn({},Nl.defaultProps),r),{},{ticks:Ti(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.top,l.top+l.height,n)},So={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function gp(e){var t,n,r,a,o,l,c=Ww(),f=Zw(),h=ase(),m=mn(mn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:So.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:So.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:So.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:So.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:So.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:So.verticalFill,x:ue(e.x)?e.x:h.left,y:ue(e.y)?e.y:h.top,width:ue(e.width)?e.width:h.width,height:ue(e.height)?e.height:h.height}),y=m.x,g=m.y,j=m.width,S=m.height,w=m.syncWithTicks,b=m.horizontalValues,A=m.verticalValues,_=nse(),T=rse();if(!ue(j)||j<=0||!ue(S)||S<=0||!ue(y)||y!==+y||!ue(g)||g!==+g)return null;var C=m.verticalCoordinatesGenerator||voe,O=m.horizontalCoordinatesGenerator||goe,E=m.horizontalPoints,M=m.verticalPoints;if((!E||!E.length)&&Te(O)){var k=b&&b.length,D=O({yAxis:T?mn(mn({},T),{},{ticks:k?b:T.ticks}):void 0,width:c,height:f,offset:h},k?!0:w);Mr(Array.isArray(D),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Es(D),"]")),Array.isArray(D)&&(E=D)}if((!M||!M.length)&&Te(C)){var B=A&&A.length,I=C({xAxis:_?mn(mn({},_),{},{ticks:B?A:_.ticks}):void 0,width:c,height:f,offset:h},B?!0:w);Mr(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Es(I),"]")),Array.isArray(I)&&(M=I)}return q.createElement("g",{className:"recharts-cartesian-grid"},q.createElement(doe,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),q.createElement(hoe,ps({},m,{offset:h,horizontalPoints:E,xAxis:_,yAxis:T})),q.createElement(poe,ps({},m,{offset:h,verticalPoints:M,xAxis:_,yAxis:T})),q.createElement(moe,ps({},m,{horizontalPoints:E})),q.createElement(yoe,ps({},m,{verticalPoints:M})))}gp.displayName="CartesianGrid";var xoe=["type","layout","connectNulls","ref"],boe=["key"];function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function Ck(e,t){if(e==null)return{};var n=joe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function joe(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 nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nc.apply(this,arguments)}function Mk(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 Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mk(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wo(e){return Ooe(e)||Aoe(e)||woe(e)||Soe()}function Soe(){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 woe(e,t){if(e){if(typeof e=="string")return Yj(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 Yj(e,t)}}function Aoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ooe(e){if(Array.isArray(e))return Yj(e)}function Yj(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 _oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pk(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,xB(r.key),r)}}function Toe(e,t,n){return t&&Pk(e.prototype,t),n&&Pk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eoe(e,t,n){return t=xp(t),Noe(e,gB()?Reflect.construct(t,n||[],xp(e).constructor):t.apply(e,n))}function Noe(e,t){if(t&&(ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Coe(e)}function Coe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gB=function(){return!!e})()}function xp(e){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xp(e)}function Moe(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&&Xj(e,t)}function Xj(e,t){return Xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Xj(e,t)}function Tr(e,t,n){return t=xB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xB(e){var t=Poe(e,"string");return ul(t)=="symbol"?t:t+""}function Poe(e,t){if(ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lf=(function(e){function t(){var n;_oe(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Eoe(this,t,[].concat(a)),Tr(n,"state",{isAnimationFinished:!0,totalLength:0}),Tr(n,"generateSimpleStrokeDasharray",function(l,c){return"".concat(c,"px ").concat(l-c,"px")}),Tr(n,"getStrokeDasharray",function(l,c,f){var h=f.reduce(function(A,_){return A+_});if(!h)return n.generateSimpleStrokeDasharray(c,l);for(var m=Math.floor(l/h),y=l%h,g=c-l,j=[],S=0,w=0;S<f.length;w+=f[S],++S)if(w+f[S]>y){j=[].concat(wo(f.slice(0,S)),[y-w]);break}var b=j.length%2===0?[0,g]:[g];return[].concat(wo(t.repeat(f,m)),wo(j),b).map(function(A){return"".concat(A,"px")}).join(", ")}),Tr(n,"id",Ms("recharts-line-")),Tr(n,"pathRef",function(l){n.mainCurve=l}),Tr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Tr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Moe(t,e),Toe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.points,c=o.xAxis,f=o.yAxis,h=o.layout,m=o.children,y=Xn(m,sf);if(!y)return null;var g=function(w,b){return{x:w.x,y:w.y,value:w.value,errorVal:Rt(w.payload,b)}},j={clipPath:r?"url(#clipPath-".concat(a,")"):null};return q.createElement(qe,j,y.map(function(S){return q.cloneElement(S,{key:"bar-".concat(S.props.dataKey),data:l,xAxis:c,yAxis:f,layout:h,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,a,o){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,h=c.points,m=c.dataKey,y=je(this.props,!1),g=je(f,!0),j=h.map(function(w,b){var A=Un(Un(Un({key:"dot-".concat(b),r:3},y),g),{},{index:b,cx:w.x,cy:w.y,value:w.value,dataKey:m,payload:w.payload,points:h});return t.renderDotItem(f,A)}),S={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return q.createElement(qe,nc({className:"recharts-line-dots",key:"dots"},S),j)}},{key:"renderCurveStatically",value:function(r,a,o,l){var c=this.props,f=c.type,h=c.layout,m=c.connectNulls;c.ref;var y=Ck(c,xoe),g=Un(Un(Un({},je(y,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(o,")"):null,points:r},l),{},{type:f,layout:h,connectNulls:m});return q.createElement(bs,nc({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var o=this,l=this.props,c=l.points,f=l.strokeDasharray,h=l.isAnimationActive,m=l.animationBegin,y=l.animationDuration,g=l.animationEasing,j=l.animationId,S=l.animateNewValues,w=l.width,b=l.height,A=this.state,_=A.prevPoints,T=A.totalLength;return q.createElement(Rr,{begin:m,duration:y,isActive:h,easing:g,from:{t:0},to:{t:1},key:"line-".concat(j),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var O=C.t;if(_){var E=_.length/c.length,M=c.map(function($,G){var X=Math.floor(G*E);if(_[X]){var Y=_[X],L=Gt(Y.x,$.x),H=Gt(Y.y,$.y);return Un(Un({},$),{},{x:L(O),y:H(O)})}if(S){var Q=Gt(w*2,$.x),ie=Gt(b/2,$.y);return Un(Un({},$),{},{x:Q(O),y:ie(O)})}return Un(Un({},$),{},{x:$.x,y:$.y})});return o.renderCurveStatically(M,r,a)}var k=Gt(0,T),D=k(O),B;if(f){var I="".concat(f).split(/[,\s]+/gim).map(function($){return parseFloat($)});B=o.getStrokeDasharray(D,T,I)}else B=o.generateSimpleStrokeDasharray(T,D);return o.renderCurveStatically(c,r,a,{strokeDasharray:B})})}},{key:"renderCurve",value:function(r,a){var o=this.props,l=o.points,c=o.isAnimationActive,f=this.state,h=f.prevPoints,m=f.totalLength;return c&&l&&l.length&&(!h&&m>0||!Os(h,l))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(l,r,a)}},{key:"render",value:function(){var r,a=this.props,o=a.hide,l=a.dot,c=a.points,f=a.className,h=a.xAxis,m=a.yAxis,y=a.top,g=a.left,j=a.width,S=a.height,w=a.isAnimationActive,b=a.id;if(o||!c||!c.length)return null;var A=this.state.isAnimationFinished,_=c.length===1,T=Pe("recharts-line",f),C=h&&h.allowDataOverflow,O=m&&m.allowDataOverflow,E=C||O,M=Ne(b)?this.id:b,k=(r=je(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=k.r,B=D===void 0?3:D,I=k.strokeWidth,$=I===void 0?2:I,G=j4(l)?l:{},X=G.clipDot,Y=X===void 0?!0:X,L=B*2+$;return q.createElement(qe,{className:T},C||O?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(M)},q.createElement("rect",{x:C?g:g-j/2,y:O?y:y-S/2,width:C?j:j*2,height:O?S:S*2})),!Y&&q.createElement("clipPath",{id:"clipPath-dots-".concat(M)},q.createElement("rect",{x:g-L/2,y:y-L/2,width:j+L,height:S+L}))):null,!_&&this.renderCurve(E,M),this.renderErrorBar(E,M),(_||l)&&this.renderDots(E,Y,M),(!w||A)&&Xr.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var o=r.length%2!==0?[].concat(wo(r),[0]):r,l=[],c=0;c<a;++c)l=[].concat(wo(l),wo(o));return l}},{key:"renderDotItem",value:function(r,a){var o;if(q.isValidElement(r))o=q.cloneElement(r,a);else if(Te(r))o=r(a);else{var l=a.key,c=Ck(a,boe),f=Pe("recharts-line-dot",typeof r!="boolean"?r.className:"");o=q.createElement(of,nc({key:l},c,{className:f}))}return o}}])})(P.PureComponent);Tr(lf,"displayName","Line");Tr(lf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ma.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Tr(lf,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.dataKey,c=e.bandSize,f=e.displayedData,h=e.offset,m=t.layout,y=f.map(function(g,j){var S=Rt(g,l);return m==="horizontal"?{x:Yh({axis:n,ticks:a,bandSize:c,entry:g,index:j}),y:Ne(S)?null:r.scale(S),value:S,payload:g}:{x:Ne(S)?null:n.scale(S),y:Yh({axis:r,ticks:o,bandSize:c,entry:g,index:j}),value:S,payload:g}});return Un({points:y,layout:m},h)});var Roe=["layout","type","stroke","connectNulls","isRange","ref"],Doe=["key"],bB;function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function jB(e,t){if(e==null)return{};var n=koe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function koe(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 ms(){return ms=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},ms.apply(this,arguments)}function Rk(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 ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rk(Object(n),!0).forEach(function(r){Fr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Loe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dk(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,wB(r.key),r)}}function zoe(e,t,n){return t&&Dk(e.prototype,t),n&&Dk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $oe(e,t,n){return t=bp(t),Boe(e,SB()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function Boe(e,t){if(t&&(cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 SB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SB=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function Ioe(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&&Wj(e,t)}function Wj(e,t){return Wj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Wj(e,t)}function Fr(e,t,n){return t=wB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wB(e){var t=Uoe(e,"string");return cl(t)=="symbol"?t:t+""}function Uoe(e,t){if(cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ki=(function(e){function t(){var n;Loe(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=$oe(this,t,[].concat(a)),Fr(n,"state",{isAnimationFinished:!0}),Fr(n,"id",Ms("recharts-area-")),Fr(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Te(l)&&l()}),Fr(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Te(l)&&l()}),n}return Ioe(t,e),zoe(t,[{key:"renderDots",value:function(r,a,o){var l=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(l&&!c)return null;var f=this.props,h=f.dot,m=f.points,y=f.dataKey,g=je(this.props,!1),j=je(h,!0),S=m.map(function(b,A){var _=ma(ma(ma({key:"dot-".concat(A),r:3},g),j),{},{index:A,cx:b.x,cy:b.y,dataKey:y,value:b.value,payload:b.payload,points:m});return t.renderDotItem(h,_)}),w={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return q.createElement(qe,ms({className:"recharts-area-dots"},w),S)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,o=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].x,h=l[l.length-1].x,m=r*Math.abs(f-h),y=xa(l.map(function(g){return g.y||0}));return ue(o)&&typeof o=="number"?y=Math.max(o,y):o&&Array.isArray(o)&&o.length&&(y=Math.max(xa(o.map(function(g){return g.y||0})),y)),ue(y)?q.createElement("rect",{x:f<h?f:f-m,y:0,width:m,height:Math.floor(y+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,o=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].y,h=l[l.length-1].y,m=r*Math.abs(f-h),y=xa(l.map(function(g){return g.x||0}));return ue(o)&&typeof o=="number"?y=Math.max(o,y):o&&Array.isArray(o)&&o.length&&(y=Math.max(xa(o.map(function(g){return g.x||0})),y)),ue(y)?q.createElement("rect",{x:0,y:f<h?f:f-m,width:y+(c?parseInt("".concat(c),10):1),height:Math.floor(m)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,o,l){var c=this.props,f=c.layout,h=c.type,m=c.stroke,y=c.connectNulls,g=c.isRange;c.ref;var j=jB(c,Roe);return q.createElement(qe,{clipPath:o?"url(#clipPath-".concat(l,")"):null},q.createElement(bs,ms({},je(j,!0),{points:r,connectNulls:y,type:h,baseLine:a,layout:f,stroke:"none",className:"recharts-area-area"})),m!=="none"&&q.createElement(bs,ms({},je(this.props,!1),{className:"recharts-area-curve",layout:f,type:h,connectNulls:y,fill:"none",points:r})),m!=="none"&&g&&q.createElement(bs,ms({},je(this.props,!1),{className:"recharts-area-curve",layout:f,type:h,connectNulls:y,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var o=this,l=this.props,c=l.points,f=l.baseLine,h=l.isAnimationActive,m=l.animationBegin,y=l.animationDuration,g=l.animationEasing,j=l.animationId,S=this.state,w=S.prevPoints,b=S.prevBaseLine;return q.createElement(Rr,{begin:m,duration:y,isActive:h,easing:g,from:{t:0},to:{t:1},key:"area-".concat(j),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var _=A.t;if(w){var T=w.length/c.length,C=c.map(function(k,D){var B=Math.floor(D*T);if(w[B]){var I=w[B],$=Gt(I.x,k.x),G=Gt(I.y,k.y);return ma(ma({},k),{},{x:$(_),y:G(_)})}return k}),O;if(ue(f)&&typeof f=="number"){var E=Gt(b,f);O=E(_)}else if(Ne(f)||Al(f)){var M=Gt(b,0);O=M(_)}else O=f.map(function(k,D){var B=Math.floor(D*T);if(b[B]){var I=b[B],$=Gt(I.x,k.x),G=Gt(I.y,k.y);return ma(ma({},k),{},{x:$(_),y:G(_)})}return k});return o.renderAreaStatically(C,O,r,a)}return q.createElement(qe,null,q.createElement("defs",null,q.createElement("clipPath",{id:"animationClipPath-".concat(a)},o.renderClipRect(_))),q.createElement(qe,{clipPath:"url(#animationClipPath-".concat(a,")")},o.renderAreaStatically(c,f,r,a)))})}},{key:"renderArea",value:function(r,a){var o=this.props,l=o.points,c=o.baseLine,f=o.isAnimationActive,h=this.state,m=h.prevPoints,y=h.prevBaseLine,g=h.totalLength;return f&&l&&l.length&&(!m&&g>0||!Os(m,l)||!Os(y,c))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,c,r,a)}},{key:"render",value:function(){var r,a=this.props,o=a.hide,l=a.dot,c=a.points,f=a.className,h=a.top,m=a.left,y=a.xAxis,g=a.yAxis,j=a.width,S=a.height,w=a.isAnimationActive,b=a.id;if(o||!c||!c.length)return null;var A=this.state.isAnimationFinished,_=c.length===1,T=Pe("recharts-area",f),C=y&&y.allowDataOverflow,O=g&&g.allowDataOverflow,E=C||O,M=Ne(b)?this.id:b,k=(r=je(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=k.r,B=D===void 0?3:D,I=k.strokeWidth,$=I===void 0?2:I,G=j4(l)?l:{},X=G.clipDot,Y=X===void 0?!0:X,L=B*2+$;return q.createElement(qe,{className:T},C||O?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(M)},q.createElement("rect",{x:C?m:m-j/2,y:O?h:h-S/2,width:C?j:j*2,height:O?S:S*2})),!Y&&q.createElement("clipPath",{id:"clipPath-dots-".concat(M)},q.createElement("rect",{x:m-L/2,y:h-L/2,width:j+L,height:S+L}))):null,_?null:this.renderArea(E,M),(l||_)&&this.renderDots(E,Y,M),(!w||A)&&Xr.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(P.PureComponent);bB=ki;Fr(ki,"displayName","Area");Fr(ki,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ma.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Fr(ki,"getBaseValue",function(e,t,n,r){var a=e.layout,o=e.baseValue,l=t.props.baseValue,c=l??o;if(ue(c)&&typeof c=="number")return c;var f=a==="horizontal"?r:n,h=f.scale.domain();if(f.type==="number"){var m=Math.max(h[0],h[1]),y=Math.min(h[0],h[1]);return c==="dataMin"?y:c==="dataMax"||m<0?m:Math.max(Math.min(h[0],h[1]),0)}return c==="dataMin"?h[0]:c==="dataMax"?h[1]:h[0]});Fr(ki,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,o=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,f=e.dataKey,h=e.stackedData,m=e.dataStartIndex,y=e.displayedData,g=e.offset,j=t.layout,S=h&&h.length,w=bB.getBaseValue(t,n,r,a),b=j==="horizontal",A=!1,_=y.map(function(C,O){var E;S?E=h[m+O]:(E=Rt(C,f),Array.isArray(E)?A=!0:E=[w,E]);var M=E[1]==null||S&&Rt(C,f)==null;return b?{x:Yh({axis:r,ticks:o,bandSize:c,entry:C,index:O}),y:M?null:a.scale(E[1]),value:E,payload:C}:{x:M?null:r.scale(E[1]),y:Yh({axis:a,ticks:l,bandSize:c,entry:C,index:O}),value:E,payload:C}}),T;return S||A?T=_.map(function(C){var O=Array.isArray(C.value)?C.value[0]:null;return b?{x:C.x,y:O!=null&&C.y!=null?a.scale(O):null}:{x:O!=null?r.scale(O):null,y:C.y}}):T=b?a.scale(w):r.scale(w),ma({points:_,baseLine:T,layout:j,isRange:A},g)});Fr(ki,"renderDotItem",function(e,t){var n;if(q.isValidElement(e))n=q.cloneElement(e,t);else if(Te(e))n=e(t);else{var r=Pe("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,o=jB(t,Doe);n=q.createElement(of,ms({},o,{key:a,className:r}))}return n});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 Voe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hoe(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,_B(r.key),r)}}function Foe(e,t,n){return t&&Hoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Goe(e,t,n){return t=jp(t),Koe(e,AB()?Reflect.construct(t,n||[],jp(e).constructor):t.apply(e,n))}function Koe(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 Yoe(e)}function Yoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AB=function(){return!!e})()}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jp(e)}function Xoe(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&&Zj(e,t)}function Zj(e,t){return Zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zj(e,t)}function OB(e,t,n){return t=_B(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _B(e){var t=Woe(e,"string");return fl(t)=="symbol"?t:t+""}function Woe(e,t){if(fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qj(){return Qj=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},Qj.apply(this,arguments)}function Zoe(e){var t=e.xAxisId,n=Ww(),r=Zw(),a=sB(t);return a==null?null:P.createElement(Nl,Qj({},a,{className:Pe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return Ti(l,!0)}}))}var Ta=(function(e){function t(){return Voe(this,t),Goe(this,t,arguments)}return Xoe(t,e),Foe(t,[{key:"render",value:function(){return P.createElement(Zoe,this.props)}}])})(P.Component);OB(Ta,"displayName","XAxis");OB(Ta,"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 dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function Qoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Joe(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,NB(r.key),r)}}function ele(e,t,n){return t&&Joe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tle(e,t,n){return t=Sp(t),nle(e,TB()?Reflect.construct(t,n||[],Sp(e).constructor):t.apply(e,n))}function nle(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 rle(e)}function rle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TB=function(){return!!e})()}function Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sp(e)}function ile(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&&Jj(e,t)}function Jj(e,t){return Jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Jj(e,t)}function EB(e,t,n){return t=NB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NB(e){var t=ale(e,"string");return dl(t)=="symbol"?t:t+""}function ale(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 eS(){return eS=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},eS.apply(this,arguments)}var sle=function(t){var n=t.yAxisId,r=Ww(),a=Zw(),o=oB(n);return o==null?null:P.createElement(Nl,eS({},o,{className:Pe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return Ti(c,!0)}}))},Ea=(function(e){function t(){return Qoe(this,t),tle(this,t,arguments)}return ile(t,e),ele(t,[{key:"render",value:function(){return P.createElement(sle,this.props)}}])})(P.Component);EB(Ea,"displayName","YAxis");EB(Ea,"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 kk(e){return cle(e)||ule(e)||lle(e)||ole()}function ole(){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 lle(e,t){if(e){if(typeof e=="string")return tS(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 tS(e,t)}}function ule(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cle(e){if(Array.isArray(e))return tS(e)}function tS(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 nS=function(t,n,r,a,o){var l=Xn(t,Jw),c=Xn(t,fm),f=[].concat(kk(l),kk(c)),h=Xn(t,hm),m="".concat(a,"Id"),y=a[0],g=n;if(f.length&&(g=f.reduce(function(w,b){if(b.props[m]===r&&Wr(b.props,"extendDomain")&&ue(b.props[y])){var A=b.props[y];return[Math.min(w[0],A),Math.max(w[1],A)]}return w},g)),h.length){var j="".concat(y,"1"),S="".concat(y,"2");g=h.reduce(function(w,b){if(b.props[m]===r&&Wr(b.props,"extendDomain")&&ue(b.props[j])&&ue(b.props[S])){var A=b.props[j],_=b.props[S];return[Math.min(w[0],A,_),Math.max(w[1],A,_)]}return w},g)}return o&&o.length&&(g=o.reduce(function(w,b){return ue(b)?[Math.min(w[0],b),Math.max(w[1],b)]:w},g)),g},J0={exports:{}},Lk;function fle(){return Lk||(Lk=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,h,m){this.fn=f,this.context=h,this.once=m||!1}function o(f,h,m,y,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var j=new a(m,y||f,g),S=n?n+h:h;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],j]:f._events[S].push(j):(f._events[S]=j,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new r:delete f._events[h]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var h=[],m,y;if(this._eventsCount===0)return h;for(y in m=this._events)t.call(m,y)&&h.push(n?y.slice(1):y);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(m)):h},c.prototype.listeners=function(h){var m=n?n+h:h,y=this._events[m];if(!y)return[];if(y.fn)return[y.fn];for(var g=0,j=y.length,S=new Array(j);g<j;g++)S[g]=y[g].fn;return S},c.prototype.listenerCount=function(h){var m=n?n+h:h,y=this._events[m];return y?y.fn?1:y.length:0},c.prototype.emit=function(h,m,y,g,j,S){var w=n?n+h:h;if(!this._events[w])return!1;var b=this._events[w],A=arguments.length,_,T;if(b.fn){switch(b.once&&this.removeListener(h,b.fn,void 0,!0),A){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,m),!0;case 3:return b.fn.call(b.context,m,y),!0;case 4:return b.fn.call(b.context,m,y,g),!0;case 5:return b.fn.call(b.context,m,y,g,j),!0;case 6:return b.fn.call(b.context,m,y,g,j,S),!0}for(T=1,_=new Array(A-1);T<A;T++)_[T-1]=arguments[T];b.fn.apply(b.context,_)}else{var C=b.length,O;for(T=0;T<C;T++)switch(b[T].once&&this.removeListener(h,b[T].fn,void 0,!0),A){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,m);break;case 3:b[T].fn.call(b[T].context,m,y);break;case 4:b[T].fn.call(b[T].context,m,y,g);break;default:if(!_)for(O=1,_=new Array(A-1);O<A;O++)_[O-1]=arguments[O];b[T].fn.apply(b[T].context,_)}}return!0},c.prototype.on=function(h,m,y){return o(this,h,m,y,!1)},c.prototype.once=function(h,m,y){return o(this,h,m,y,!0)},c.prototype.removeListener=function(h,m,y,g){var j=n?n+h:h;if(!this._events[j])return this;if(!m)return l(this,j),this;var S=this._events[j];if(S.fn)S.fn===m&&(!g||S.once)&&(!y||S.context===y)&&l(this,j);else{for(var w=0,b=[],A=S.length;w<A;w++)(S[w].fn!==m||g&&!S[w].once||y&&S[w].context!==y)&&b.push(S[w]);b.length?this._events[j]=b.length===1?b[0]:b:l(this,j)}return this},c.prototype.removeAllListeners=function(h){var m;return h?(m=n?n+h:h,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(J0)),J0.exports}var dle=fle();const hle=it(dle);var e1=new hle,t1="recharts.syncMouseEvents";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 ple(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mle(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,CB(r.key),r)}}function yle(e,t,n){return t&&mle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n1(e,t,n){return t=CB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CB(e){var t=vle(e,"string");return Uc(t)=="symbol"?t:t+""}function vle(e,t){if(Uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gle=(function(){function e(){ple(this,e),n1(this,"activeIndex",0),n1(this,"coordinateList",[]),n1(this,"layout","horizontal")}return yle(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,o=a===void 0?null:a,l=n.container,c=l===void 0?null:l,f=n.layout,h=f===void 0?null:f,m=n.offset,y=m===void 0?null:m,g=n.mouseHandlerCallback,j=g===void 0?null:g;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=h??this.layout,this.offset=y??this.offset,this.mouseHandlerCallback=j??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(),o=a.x,l=a.y,c=a.height,f=this.coordinateList[this.activeIndex].coordinate,h=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((r=window)===null||r===void 0?void 0:r.scrollY)||0,y=o+f+h,g=l+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:y,pageY:g})}}}])})();function xle(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&&ue(r)&&ue(a))return!0}return!1}function ble(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 MB(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,o=e.endAngle,l=mt(t,n,r,a),c=mt(t,n,r,o);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:o}}function jle(e,t,n){var r,a,o,l;if(e==="horizontal")r=t.x,o=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,h=t.innerRadius,m=t.outerRadius,y=t.angle,g=mt(c,f,h,y),j=mt(c,f,m,y);r=g.x,a=g.y,o=j.x,l=j.y}else return MB(t);return[{x:r,y:a},{x:o,y:l}]}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 zk(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 Gd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zk(Object(n),!0).forEach(function(r){Sle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sle(e,t,n){return t=wle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wle(e){var t=Ale(e,"string");return Vc(t)=="symbol"?t:t+""}function Ale(e,t){if(Vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ole(e){var t,n,r=e.element,a=e.tooltipEventType,o=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,h=e.activeTooltipIndex,m=e.tooltipAxisBandSize,y=e.layout,g=e.chartName,j=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!j||!o||!l||g!=="ScatterChart"&&a!=="axis")return null;var S,w=bs;if(g==="ScatterChart")S=l,w=zre;else if(g==="BarChart")S=ble(y,l,f,m),w=Fw;else if(y==="radial"){var b=MB(l),A=b.cx,_=b.cy,T=b.radius,C=b.startAngle,O=b.endAngle;S={cx:A,cy:_,startAngle:C,endAngle:O,innerRadius:T,outerRadius:T},w=N$}else S={points:jle(y,l,f)},w=bs;var E=Gd(Gd(Gd(Gd({stroke:"#ccc",pointerEvents:"none"},f),S),je(j,!1)),{},{payload:c,payloadIndex:h,className:Pe("recharts-tooltip-cursor",j.className)});return P.isValidElement(j)?P.cloneElement(j,E):P.createElement(w,E)}var _le=["item"],Tle=["children","className","width","height","style","compact","title","desc"];function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function Do(){return Do=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},Do.apply(this,arguments)}function $k(e,t){return Cle(e)||Nle(e,t)||RB(e,t)||Ele()}function Ele(){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 Nle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){h=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw a}}return c}}function Cle(e){if(Array.isArray(e))return e}function Bk(e,t){if(e==null)return{};var n=Mle(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mle(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 Rle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DB(r.key),r)}}function Dle(e,t,n){return t&&Rle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kle(e,t,n){return t=wp(t),Lle(e,PB()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}function Lle(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 zle(e)}function zle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PB=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wp(e)}function $le(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&&rS(e,t)}function rS(e,t){return rS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},rS(e,t)}function pl(e){return Ile(e)||qle(e)||RB(e)||Ble()}function Ble(){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 RB(e,t){if(e){if(typeof e=="string")return iS(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 iS(e,t)}}function qle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ile(e){if(Array.isArray(e))return iS(e)}function iS(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 qk(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 ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qk(Object(n),!0).forEach(function(r){Oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oe(e,t,n){return t=DB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DB(e){var t=Ule(e,"string");return hl(t)=="symbol"?t:t+""}function Ule(e,t){if(hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vle={xAxis:["bottom","top"],yAxis:["left","right"]},Hle={width:"100%",height:"100%"},kB={x:0,y:0};function Kd(e){return e}var Fle=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Gle=function(t,n,r,a){var o=n.find(function(m){return m&&m.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:o.coordinate};if(t==="centric"){var l=o.coordinate,c=a.radius;return ne(ne(ne({},a),mt(a.cx,a.cy,c,l)),{},{angle:l,radius:c})}var f=o.coordinate,h=a.angle;return ne(ne(ne({},a),mt(a.cx,a.cy,f,h)),{},{angle:h,radius:f})}return kB},pm=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,o=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var h=f.props.data;return h&&h.length?[].concat(pl(c),pl(h)):c},[]);return l.length>0?l:t&&t.length&&ue(a)&&ue(o)?t.slice(a,o+1):[]};function LB(e){return e==="number"?[0,"auto"]:void 0}var aS=function(t,n,r,a){var o=t.graphicalItems,l=t.tooltipAxis,c=pm(n,t);return r<0||!o||!o.length||r>=c.length?null:o.reduce(function(f,h){var m,y=(m=h.props.data)!==null&&m!==void 0?m:n;y&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(y=y.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var j=y===void 0?c:y;g=jh(j,l.dataKey,a)}else g=y&&y[r]||c[r];return g?[].concat(pl(f),[w$(h,g)]):f},[])},Ik=function(t,n,r,a){var o=a||{x:t.chartX,y:t.chartY},l=Fle(o,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,h=t.tooltipTicks,m=iee(l,c,h,f);if(m>=0&&h){var y=h[m]&&h[m].value,g=aS(t,n,m,y),j=Gle(r,c,m,o);return{activeTooltipIndex:m,activeLabel:y,activePayload:g,activeCoordinate:j}}return null},Kle=function(t,n){var r=n.axes,a=n.graphicalItems,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,h=n.dataEndIndex,m=t.layout,y=t.children,g=t.stackOffset,j=v$(m,o);return r.reduce(function(S,w){var b,A=w.type.defaultProps!==void 0?ne(ne({},w.type.defaultProps),w.props):w.props,_=A.type,T=A.dataKey,C=A.allowDataOverflow,O=A.allowDuplicatedCategory,E=A.scale,M=A.ticks,k=A.includeHidden,D=A[l];if(S[D])return S;var B=pm(t.data,{graphicalItems:a.filter(function(F){var re,fe=l in F.props?F.props[l]:(re=F.type.defaultProps)===null||re===void 0?void 0:re[l];return fe===D}),dataStartIndex:f,dataEndIndex:h}),I=B.length,$,G,X;xle(A.domain,C,_)&&($=gj(A.domain,null,C),j&&(_==="number"||E!=="auto")&&(X=Qu(B,T,"category")));var Y=LB(_);if(!$||$.length===0){var L,H=(L=A.domain)!==null&&L!==void 0?L:Y;if(T){if($=Qu(B,T,_),_==="category"&&j){var Q=QF($);O&&Q?(G=$,$=lp(0,I)):O||($=IR(H,$,w).reduce(function(F,re){return F.indexOf(re)>=0?F:[].concat(pl(F),[re])},[]))}else if(_==="category")O?$=$.filter(function(F){return F!==""&&!Ne(F)}):$=IR(H,$,w).reduce(function(F,re){return F.indexOf(re)>=0||re===""||Ne(re)?F:[].concat(pl(F),[re])},[]);else if(_==="number"){var ie=uee(B,a.filter(function(F){var re,fe,pe=l in F.props?F.props[l]:(re=F.type.defaultProps)===null||re===void 0?void 0:re[l],we="hide"in F.props?F.props.hide:(fe=F.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return pe===D&&(k||!we)}),T,o,m);ie&&($=ie)}j&&(_==="number"||E!=="auto")&&(X=Qu(B,T,"category"))}else j?$=lp(0,I):c&&c[D]&&c[D].hasStack&&_==="number"?$=g==="expand"?[0,1]:S$(c[D].stackGroups,f,h):$=y$(B,a.filter(function(F){var re=l in F.props?F.props[l]:F.type.defaultProps[l],fe="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return re===D&&(k||!fe)}),_,m,!0);if(_==="number")$=nS(y,$,D,o,M),H&&($=gj(H,$,C));else if(_==="category"&&H){var oe=H,z=$.every(function(F){return oe.indexOf(F)>=0});z&&($=oe)}}return ne(ne({},S),{},Oe({},D,ne(ne({},A),{},{axisType:o,domain:$,categoricalDomain:X,duplicateDomain:G,originalDomain:(b=A.domain)!==null&&b!==void 0?b:Y,isCategorical:j,layout:m})))},{})},Yle=function(t,n){var r=n.graphicalItems,a=n.Axis,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,h=n.dataEndIndex,m=t.layout,y=t.children,g=pm(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:h}),j=g.length,S=v$(m,o),w=-1;return r.reduce(function(b,A){var _=A.type.defaultProps!==void 0?ne(ne({},A.type.defaultProps),A.props):A.props,T=_[l],C=LB("number");if(!b[T]){w++;var O;return S?O=lp(0,j):c&&c[T]&&c[T].hasStack?(O=S$(c[T].stackGroups,f,h),O=nS(y,O,T,o)):(O=gj(C,y$(g,r.filter(function(E){var M,k,D=l in E.props?E.props[l]:(M=E.type.defaultProps)===null||M===void 0?void 0:M[l],B="hide"in E.props?E.props.hide:(k=E.type.defaultProps)===null||k===void 0?void 0:k.hide;return D===T&&!B}),"number",m),a.defaultProps.allowDataOverflow),O=nS(y,O,T,o)),ne(ne({},b),{},Oe({},T,ne(ne({axisType:o},a.defaultProps),{},{hide:!0,orientation:Yn(Vle,"".concat(o,".").concat(w%2),null),domain:O,originalDomain:C,isCategorical:S,layout:m})))}return b},{})},Xle=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,o=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,h=n.dataEndIndex,m=t.children,y="".concat(a,"Id"),g=Xn(m,o),j={};return g&&g.length?j=Kle(t,{axes:g,graphicalItems:l,axisType:a,axisIdKey:y,stackGroups:c,dataStartIndex:f,dataEndIndex:h}):l&&l.length&&(j=Yle(t,{Axis:o,graphicalItems:l,axisType:a,axisIdKey:y,stackGroups:c,dataStartIndex:f,dataEndIndex:h})),j},Wle=function(t){var n=va(t),r=Ti(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:gw(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Xh(n,r)}},Uk=function(t){var n=t.children,r=t.defaultShowTooltip,a=Hn(n,rl),o=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(o=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Zle=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ei(n&&n.type);return r&&r.indexOf("Bar")>=0})},Vk=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"}},Qle=function(t,n){var r=t.props,a=t.graphicalItems,o=t.xAxisMap,l=o===void 0?{}:o,c=t.yAxisMap,f=c===void 0?{}:c,h=r.width,m=r.height,y=r.children,g=r.margin||{},j=Hn(y,rl),S=Hn(y,zo),w=Object.keys(f).reduce(function(O,E){var M=f[E],k=M.orientation;return!M.mirror&&!M.hide?ne(ne({},O),{},Oe({},k,O[k]+M.width)):O},{left:g.left||0,right:g.right||0}),b=Object.keys(l).reduce(function(O,E){var M=l[E],k=M.orientation;return!M.mirror&&!M.hide?ne(ne({},O),{},Oe({},k,Yn(O,"".concat(k))+M.height)):O},{top:g.top||0,bottom:g.bottom||0}),A=ne(ne({},b),w),_=A.bottom;j&&(A.bottom+=j.props.height||rl.defaultProps.height),S&&n&&(A=oee(A,a,r,n));var T=h-A.left-A.right,C=m-A.top-A.bottom;return ne(ne({brushBottom:_},A),{},{width:Math.max(T,0),height:Math.max(C,0)})},Jle=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},mm=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,h=t.legendContent,m=t.formatAxisMap,y=t.defaultProps,g=function(A,_){var T=_.graphicalItems,C=_.stackGroups,O=_.offset,E=_.updateId,M=_.dataStartIndex,k=_.dataEndIndex,D=A.barSize,B=A.layout,I=A.barGap,$=A.barCategoryGap,G=A.maxBarSize,X=Vk(B),Y=X.numericAxisName,L=X.cateAxisName,H=Zle(T),Q=[];return T.forEach(function(ie,oe){var z=pm(A.data,{graphicalItems:[ie],dataStartIndex:M,dataEndIndex:k}),F=ie.type.defaultProps!==void 0?ne(ne({},ie.type.defaultProps),ie.props):ie.props,re=F.dataKey,fe=F.maxBarSize,pe=F["".concat(Y,"Id")],we=F["".concat(L,"Id")],ze={},Ze=f.reduce(function(xr,ni){var Cl=_["".concat(ni.axisType,"Map")],fn=F["".concat(ni.axisType,"Id")];Cl&&Cl[fn]||ni.axisType==="zAxis"||Ts();var uf=Cl[fn];return ne(ne({},xr),{},Oe(Oe({},ni.axisType,uf),"".concat(ni.axisType,"Ticks"),Ti(uf)))},ze),ce=Ze[L],Ee=Ze["".concat(L,"Ticks")],Ce=C&&C[pe]&&C[pe].hasStack&&gee(ie,C[pe].stackGroups),le=Ei(ie.type).indexOf("Bar")>=0,yt=Xh(ce,Ee),De=[],Ot=H&&aee({barSize:D,stackGroups:C,totalSize:Jle(Ze,L)});if(le){var _t,cn,gr=Ne(fe)?G:fe,zr=(_t=(cn=Xh(ce,Ee,!0))!==null&&cn!==void 0?cn:gr)!==null&&_t!==void 0?_t:0;De=see({barGap:I,barCategoryGap:$,bandSize:zr!==yt?zr:yt,sizeList:Ot[we],maxBarSize:gr}),zr!==yt&&(De=De.map(function(xr){return ne(ne({},xr),{},{position:ne(ne({},xr.position),{},{offset:xr.position.offset-zr/2})})}))}var qi=ie&&ie.type&&ie.type.getComposedData;qi&&Q.push({props:ne(ne({},qi(ne(ne({},Ze),{},{displayedData:z,props:A,dataKey:re,item:ie,bandSize:yt,barPosition:De,offset:O,stackedData:Ce,layout:B,dataStartIndex:M,dataEndIndex:k}))),{},Oe(Oe(Oe({key:ie.key||"item-".concat(oe)},Y,Ze[Y]),L,Ze[L]),"animationId",E)),childIndex:cG(ie,A.children),item:ie})}),Q},j=function(A,_){var T=A.props,C=A.dataStartIndex,O=A.dataEndIndex,E=A.updateId;if(!nC({props:T}))return null;var M=T.children,k=T.layout,D=T.stackOffset,B=T.data,I=T.reverseStackOrder,$=Vk(k),G=$.numericAxisName,X=$.cateAxisName,Y=Xn(M,r),L=yee(B,Y,"".concat(G,"Id"),"".concat(X,"Id"),D,I),H=f.reduce(function(F,re){var fe="".concat(re.axisType,"Map");return ne(ne({},F),{},Oe({},fe,Xle(T,ne(ne({},re),{},{graphicalItems:Y,stackGroups:re.axisType===G&&L,dataStartIndex:C,dataEndIndex:O}))))},{}),Q=Qle(ne(ne({},H),{},{props:T,graphicalItems:Y}),_==null?void 0:_.legendBBox);Object.keys(H).forEach(function(F){H[F]=m(T,H[F],Q,F.replace("Map",""),n)});var ie=H["".concat(X,"Map")],oe=Wle(ie),z=g(T,ne(ne({},H),{},{dataStartIndex:C,dataEndIndex:O,updateId:E,graphicalItems:Y,stackGroups:L,offset:Q}));return ne(ne({formattedGraphicalItems:z,graphicalItems:Y,offset:Q,stackGroups:L},oe),H)},S=(function(b){function A(_){var T,C,O;return Ple(this,A),O=kle(this,A,[_]),Oe(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Oe(O,"accessibilityManager",new gle),Oe(O,"handleLegendBBoxUpdate",function(E){if(E){var M=O.state,k=M.dataStartIndex,D=M.dataEndIndex,B=M.updateId;O.setState(ne({legendBBox:E},j({props:O.props,dataStartIndex:k,dataEndIndex:D,updateId:B},ne(ne({},O.state),{},{legendBBox:E}))))}}),Oe(O,"handleReceiveSyncEvent",function(E,M,k){if(O.props.syncId===E){if(k===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(M)}}),Oe(O,"handleBrushChange",function(E){var M=E.startIndex,k=E.endIndex;if(M!==O.state.dataStartIndex||k!==O.state.dataEndIndex){var D=O.state.updateId;O.setState(function(){return ne({dataStartIndex:M,dataEndIndex:k},j({props:O.props,dataStartIndex:M,dataEndIndex:k,updateId:D},O.state))}),O.triggerSyncEvent({dataStartIndex:M,dataEndIndex:k})}}),Oe(O,"handleMouseEnter",function(E){var M=O.getMouseInfo(E);if(M){var k=ne(ne({},M),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var D=O.props.onMouseEnter;Te(D)&&D(k,E)}}),Oe(O,"triggeredAfterMouseMove",function(E){var M=O.getMouseInfo(E),k=M?ne(ne({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(k),O.triggerSyncEvent(k);var D=O.props.onMouseMove;Te(D)&&D(k,E)}),Oe(O,"handleItemMouseEnter",function(E){O.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),Oe(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Oe(O,"handleMouseMove",function(E){E.persist(),O.throttleTriggeredAfterMouseMove(E)}),Oe(O,"handleMouseLeave",function(E){O.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};O.setState(M),O.triggerSyncEvent(M);var k=O.props.onMouseLeave;Te(k)&&k(M,E)}),Oe(O,"handleOuterEvent",function(E){var M=uG(E),k=Yn(O.props,"".concat(M));if(M&&Te(k)){var D,B;/.*touch.*/i.test(M)?B=O.getMouseInfo(E.changedTouches[0]):B=O.getMouseInfo(E),k((D=B)!==null&&D!==void 0?D:{},E)}}),Oe(O,"handleClick",function(E){var M=O.getMouseInfo(E);if(M){var k=ne(ne({},M),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var D=O.props.onClick;Te(D)&&D(k,E)}}),Oe(O,"handleMouseDown",function(E){var M=O.props.onMouseDown;if(Te(M)){var k=O.getMouseInfo(E);M(k,E)}}),Oe(O,"handleMouseUp",function(E){var M=O.props.onMouseUp;if(Te(M)){var k=O.getMouseInfo(E);M(k,E)}}),Oe(O,"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),Oe(O,"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.handleMouseDown(E.changedTouches[0])}),Oe(O,"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.handleMouseUp(E.changedTouches[0])}),Oe(O,"handleDoubleClick",function(E){var M=O.props.onDoubleClick;if(Te(M)){var k=O.getMouseInfo(E);M(k,E)}}),Oe(O,"handleContextMenu",function(E){var M=O.props.onContextMenu;if(Te(M)){var k=O.getMouseInfo(E);M(k,E)}}),Oe(O,"triggerSyncEvent",function(E){O.props.syncId!==void 0&&e1.emit(t1,O.props.syncId,E,O.eventEmitterSymbol)}),Oe(O,"applySyncEvent",function(E){var M=O.props,k=M.layout,D=M.syncMethod,B=O.state.updateId,I=E.dataStartIndex,$=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)O.setState(ne({dataStartIndex:I,dataEndIndex:$},j({props:O.props,dataStartIndex:I,dataEndIndex:$,updateId:B},O.state)));else if(E.activeTooltipIndex!==void 0){var G=E.chartX,X=E.chartY,Y=E.activeTooltipIndex,L=O.state,H=L.offset,Q=L.tooltipTicks;if(!H)return;if(typeof D=="function")Y=D(Q,E);else if(D==="value"){Y=-1;for(var ie=0;ie<Q.length;ie++)if(Q[ie].value===E.activeLabel){Y=ie;break}}var oe=ne(ne({},H),{},{x:H.left,y:H.top}),z=Math.min(G,oe.x+oe.width),F=Math.min(X,oe.y+oe.height),re=Q[Y]&&Q[Y].value,fe=aS(O.state,O.props.data,Y),pe=Q[Y]?{x:k==="horizontal"?Q[Y].coordinate:z,y:k==="horizontal"?F:Q[Y].coordinate}:kB;O.setState(ne(ne({},E),{},{activeLabel:re,activeCoordinate:pe,activePayload:fe,activeTooltipIndex:Y}))}else O.setState(E)}),Oe(O,"renderCursor",function(E){var M,k=O.state,D=k.isTooltipActive,B=k.activeCoordinate,I=k.activePayload,$=k.offset,G=k.activeTooltipIndex,X=k.tooltipAxisBandSize,Y=O.getTooltipEventType(),L=(M=E.props.active)!==null&&M!==void 0?M:D,H=O.props.layout,Q=E.key||"_recharts-cursor";return q.createElement(Ole,{key:Q,activeCoordinate:B,activePayload:I,activeTooltipIndex:G,chartName:n,element:E,isActive:L,layout:H,offset:$,tooltipAxisBandSize:X,tooltipEventType:Y})}),Oe(O,"renderPolarAxis",function(E,M,k){var D=Yn(E,"type.axisType"),B=Yn(O.state,"".concat(D,"Map")),I=E.type.defaultProps,$=I!==void 0?ne(ne({},I),E.props):E.props,G=B&&B[$["".concat(D,"Id")]];return P.cloneElement(E,ne(ne({},G),{},{className:Pe(D,G.className),key:E.key||"".concat(M,"-").concat(k),ticks:Ti(G,!0)}))}),Oe(O,"renderPolarGrid",function(E){var M=E.props,k=M.radialLines,D=M.polarAngles,B=M.polarRadius,I=O.state,$=I.radiusAxisMap,G=I.angleAxisMap,X=va($),Y=va(G),L=Y.cx,H=Y.cy,Q=Y.innerRadius,ie=Y.outerRadius;return P.cloneElement(E,{polarAngles:Array.isArray(D)?D:Ti(Y,!0).map(function(oe){return oe.coordinate}),polarRadius:Array.isArray(B)?B:Ti(X,!0).map(function(oe){return oe.coordinate}),cx:L,cy:H,innerRadius:Q,outerRadius:ie,key:E.key||"polar-grid",radialLines:k})}),Oe(O,"renderLegend",function(){var E=O.state.formattedGraphicalItems,M=O.props,k=M.children,D=M.width,B=M.height,I=O.props.margin||{},$=D-(I.left||0)-(I.right||0),G=p$({children:k,formattedGraphicalItems:E,legendWidth:$,legendContent:h});if(!G)return null;var X=G.item,Y=Bk(G,_le);return P.cloneElement(X,ne(ne({},Y),{},{chartWidth:D,chartHeight:B,margin:I,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Oe(O,"renderTooltip",function(){var E,M=O.props,k=M.children,D=M.accessibilityLayer,B=Hn(k,Fn);if(!B)return null;var I=O.state,$=I.isTooltipActive,G=I.activeCoordinate,X=I.activePayload,Y=I.activeLabel,L=I.offset,H=(E=B.props.active)!==null&&E!==void 0?E:$;return P.cloneElement(B,{viewBox:ne(ne({},L),{},{x:L.left,y:L.top}),active:H,label:Y,payload:H?X:[],coordinate:G,accessibilityLayer:D})}),Oe(O,"renderBrush",function(E){var M=O.props,k=M.margin,D=M.data,B=O.state,I=B.offset,$=B.dataStartIndex,G=B.dataEndIndex,X=B.updateId;return P.cloneElement(E,{key:E.key||"_recharts-brush",onChange:Ud(O.handleBrushChange,E.props.onChange),data:D,x:ue(E.props.x)?E.props.x:I.left,y:ue(E.props.y)?E.props.y:I.top+I.height+I.brushBottom-(k.bottom||0),width:ue(E.props.width)?E.props.width:I.width,startIndex:$,endIndex:G,updateId:"brush-".concat(X)})}),Oe(O,"renderReferenceElement",function(E,M,k){if(!E)return null;var D=O,B=D.clipPathId,I=O.state,$=I.xAxisMap,G=I.yAxisMap,X=I.offset,Y=E.type.defaultProps||{},L=E.props,H=L.xAxisId,Q=H===void 0?Y.xAxisId:H,ie=L.yAxisId,oe=ie===void 0?Y.yAxisId:ie;return P.cloneElement(E,{key:E.key||"".concat(M,"-").concat(k),xAxis:$[Q],yAxis:G[oe],viewBox:{x:X.left,y:X.top,width:X.width,height:X.height},clipPathId:B})}),Oe(O,"renderActivePoints",function(E){var M=E.item,k=E.activePoint,D=E.basePoint,B=E.childIndex,I=E.isRange,$=[],G=M.props.key,X=M.item.type.defaultProps!==void 0?ne(ne({},M.item.type.defaultProps),M.item.props):M.item.props,Y=X.activeDot,L=X.dataKey,H=ne(ne({index:B,dataKey:L,cx:k.x,cy:k.y,r:4,fill:Hw(M.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},je(Y,!1)),Sh(Y));return $.push(A.renderActiveDot(Y,H,"".concat(G,"-activePoint-").concat(B))),D?$.push(A.renderActiveDot(Y,ne(ne({},H),{},{cx:D.x,cy:D.y}),"".concat(G,"-basePoint-").concat(B))):I&&$.push(null),$}),Oe(O,"renderGraphicChild",function(E,M,k){var D=O.filterFormatItem(E,M,k);if(!D)return null;var B=O.getTooltipEventType(),I=O.state,$=I.isTooltipActive,G=I.tooltipAxis,X=I.activeTooltipIndex,Y=I.activeLabel,L=O.props.children,H=Hn(L,Fn),Q=D.props,ie=Q.points,oe=Q.isRange,z=Q.baseLine,F=D.item.type.defaultProps!==void 0?ne(ne({},D.item.type.defaultProps),D.item.props):D.item.props,re=F.activeDot,fe=F.hide,pe=F.activeBar,we=F.activeShape,ze=!!(!fe&&$&&H&&(re||pe||we)),Ze={};B!=="axis"&&H&&H.props.trigger==="click"?Ze={onClick:Ud(O.handleItemMouseEnter,E.props.onClick)}:B!=="axis"&&(Ze={onMouseLeave:Ud(O.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:Ud(O.handleItemMouseEnter,E.props.onMouseEnter)});var ce=P.cloneElement(E,ne(ne({},D.props),Ze));function Ee(ni){return typeof G.dataKey=="function"?G.dataKey(ni.payload):null}if(ze)if(X>=0){var Ce,le;if(G.dataKey&&!G.allowDuplicatedCategory){var yt=typeof G.dataKey=="function"?Ee:"payload.".concat(G.dataKey.toString());Ce=jh(ie,yt,Y),le=oe&&z&&jh(z,yt,Y)}else Ce=ie==null?void 0:ie[X],le=oe&&z&&z[X];if(we||pe){var De=E.props.activeIndex!==void 0?E.props.activeIndex:X;return[P.cloneElement(E,ne(ne(ne({},D.props),Ze),{},{activeIndex:De})),null,null]}if(!Ne(Ce))return[ce].concat(pl(O.renderActivePoints({item:D,activePoint:Ce,basePoint:le,childIndex:X,isRange:oe})))}else{var Ot,_t=(Ot=O.getItemByXY(O.state.activeCoordinate))!==null&&Ot!==void 0?Ot:{graphicalItem:ce},cn=_t.graphicalItem,gr=cn.item,zr=gr===void 0?E:gr,qi=cn.childIndex,xr=ne(ne(ne({},D.props),Ze),{},{activeIndex:qi});return[P.cloneElement(zr,xr),null,null]}return oe?[ce,null,null]:[ce,null]}),Oe(O,"renderCustomized",function(E,M,k){return P.cloneElement(E,ne(ne({key:"recharts-customized-".concat(k)},O.props),O.state))}),Oe(O,"renderMap",{CartesianGrid:{handler:Kd,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:Kd},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:Kd},YAxis:{handler:Kd},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((T=_.id)!==null&&T!==void 0?T:Ms("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=pz(O.triggeredAfterMouseMove,(C=_.throttleDelay)!==null&&C!==void 0?C:1e3/60),O.state={},O}return $le(A,b),Dle(A,[{key:"componentDidMount",value:function(){var T,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,C=T.children,O=T.data,E=T.height,M=T.layout,k=Hn(C,Fn);if(k){var D=k.props.defaultIndex;if(!(typeof D!="number"||D<0||D>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[D]&&this.state.tooltipTicks[D].value,I=aS(this.state,O,D,B),$=this.state.tooltipTicks[D].coordinate,G=(this.state.offset.top+E)/2,X=M==="horizontal",Y=X?{x:$,y:G}:{y:$,x:G},L=this.state.formattedGraphicalItems.find(function(Q){var ie=Q.item;return ie.type.name==="Scatter"});L&&(Y=ne(ne({},Y),L.props.points[D].tooltipPosition),I=L.props.points[D].tooltipPayload);var H={activeTooltipIndex:D,isTooltipActive:!0,activeLabel:B,activePayload:I,activeCoordinate:Y};this.setState(H),this.renderCursor(k),this.accessibilityManager.setIndex(D)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var O,E;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(T){q1([Hn(T.children,Fn)],[Hn(this.props.children,Fn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=Hn(this.props.children,Fn);if(T&&typeof T.props.shared=="boolean"){var C=T.props.shared?"axis":"item";return c.indexOf(C)>=0?C:o}return o}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var C=this.container,O=C.getBoundingClientRect(),E=WX(O),M={chartX:Math.round(T.pageX-E.left),chartY:Math.round(T.pageY-E.top)},k=O.width/C.offsetWidth||1,D=this.inRange(M.chartX,M.chartY,k);if(!D)return null;var B=this.state,I=B.xAxisMap,$=B.yAxisMap,G=this.getTooltipEventType(),X=Ik(this.state,this.props.data,this.props.layout,D);if(G!=="axis"&&I&&$){var Y=va(I).scale,L=va($).scale,H=Y&&Y.invert?Y.invert(M.chartX):null,Q=L&&L.invert?L.invert(M.chartY):null;return ne(ne({},M),{},{xValue:H,yValue:Q},X)}return X?ne(ne({},M),X):null}},{key:"inRange",value:function(T,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,M=T/O,k=C/O;if(E==="horizontal"||E==="vertical"){var D=this.state.offset,B=M>=D.left&&M<=D.left+D.width&&k>=D.top&&k<=D.top+D.height;return B?{x:M,y:k}:null}var I=this.state,$=I.angleAxisMap,G=I.radiusAxisMap;if($&&G){var X=va($);return HR({x:M,y:k},X)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,C=this.getTooltipEventType(),O=Hn(T,Fn),E={};O&&C==="axis"&&(O.props.trigger==="click"?E={onClick:this.handleClick}:E={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 M=Sh(this.props,this.handleOuterEvent);return ne(ne({},M),E)}},{key:"addListener",value:function(){e1.on(t1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){e1.removeListener(t1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,C,O){for(var E=this.state.formattedGraphicalItems,M=0,k=E.length;M<k;M++){var D=E[M];if(D.item===T||D.props.key===T.key||C===Ei(D.item.type)&&O===D.childIndex)return D}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,C=this.state.offset,O=C.left,E=C.top,M=C.height,k=C.width;return q.createElement("defs",null,q.createElement("clipPath",{id:T},q.createElement("rect",{x:O,y:E,height:M,width:k})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(C,O){var E=$k(O,2),M=E[0],k=E[1];return ne(ne({},C),{},Oe({},M,k.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(C,O){var E=$k(O,2),M=E[0],k=E[1];return ne(ne({},C),{},Oe({},M,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[T])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(T){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[T])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(T){var C=this.state,O=C.formattedGraphicalItems,E=C.activeItem;if(O&&O.length)for(var M=0,k=O.length;M<k;M++){var D=O[M],B=D.props,I=D.item,$=I.type.defaultProps!==void 0?ne(ne({},I.type.defaultProps),I.props):I.props,G=Ei(I.type);if(G==="Bar"){var X=(B.data||[]).find(function(Q){return vre(T,Q)});if(X)return{graphicalItem:D,payload:X}}else if(G==="RadialBar"){var Y=(B.data||[]).find(function(Q){return HR(T,Q)});if(Y)return{graphicalItem:D,payload:Y}}else if(om(D,E)||lm(D,E)||zc(D,E)){var L=qie({graphicalItem:D,activeTooltipItem:E,itemData:$.data}),H=$.activeIndex===void 0?L:$.activeIndex;return{graphicalItem:ne(ne({},D),{},{childIndex:H}),payload:zc(D,E)?$.data[L]:D.props.data[L]}}}return null}},{key:"render",value:function(){var T=this;if(!nC(this))return null;var C=this.props,O=C.children,E=C.className,M=C.width,k=C.height,D=C.style,B=C.compact,I=C.title,$=C.desc,G=Bk(C,Tle),X=je(G,!1);if(B)return q.createElement(vk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q.createElement(U1,Do({},X,{width:M,height:k,title:I,desc:$}),this.renderClipPath(),iC(O,this.renderMap)));if(this.props.accessibilityLayer){var Y,L;X.tabIndex=(Y=this.props.tabIndex)!==null&&Y!==void 0?Y:0,X.role=(L=this.props.role)!==null&&L!==void 0?L:"application",X.onKeyDown=function(Q){T.accessibilityManager.keyboardEvent(Q)},X.onFocus=function(){T.accessibilityManager.focus()}}var H=this.parseEventsOfWrapper();return q.createElement(vk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q.createElement("div",Do({className:Pe("recharts-wrapper",E),style:ne({position:"relative",cursor:"default",width:M,height:k},D)},H,{ref:function(ie){T.container=ie}}),q.createElement(U1,Do({},X,{width:M,height:k,title:I,desc:$,style:Hle}),this.renderClipPath(),iC(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);Oe(S,"displayName",n),Oe(S,"defaultProps",ne({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},y)),Oe(S,"getDerivedStateFromProps",function(b,A){var _=b.dataKey,T=b.data,C=b.children,O=b.width,E=b.height,M=b.layout,k=b.stackOffset,D=b.margin,B=A.dataStartIndex,I=A.dataEndIndex;if(A.updateId===void 0){var $=Uk(b);return ne(ne(ne({},$),{},{updateId:0},j(ne(ne({props:b},$),{},{updateId:0}),A)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:E,prevLayout:M,prevStackOffset:k,prevMargin:D,prevChildren:C})}if(_!==A.prevDataKey||T!==A.prevData||O!==A.prevWidth||E!==A.prevHeight||M!==A.prevLayout||k!==A.prevStackOffset||!Lo(D,A.prevMargin)){var G=Uk(b),X={chartX:A.chartX,chartY:A.chartY,isTooltipActive:A.isTooltipActive},Y=ne(ne({},Ik(A,T,M)),{},{updateId:A.updateId+1}),L=ne(ne(ne({},G),X),Y);return ne(ne(ne({},L),j(ne({props:b},L),A)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:E,prevLayout:M,prevStackOffset:k,prevMargin:D,prevChildren:C})}if(!q1(C,A.prevChildren)){var H,Q,ie,oe,z=Hn(C,rl),F=z&&(H=(Q=z.props)===null||Q===void 0?void 0:Q.startIndex)!==null&&H!==void 0?H:B,re=z&&(ie=(oe=z.props)===null||oe===void 0?void 0:oe.endIndex)!==null&&ie!==void 0?ie:I,fe=F!==B||re!==I,pe=!Ne(T),we=pe&&!fe?A.updateId:A.updateId+1;return ne(ne({updateId:we},j(ne(ne({props:b},A),{},{updateId:we,dataStartIndex:F,dataEndIndex:re}),A)),{},{prevChildren:C,dataStartIndex:F,dataEndIndex:re})}return null}),Oe(S,"renderActiveDot",function(b,A,_){var T;return P.isValidElement(b)?T=P.cloneElement(b,A):Te(b)?T=b(A):T=q.createElement(of,A),q.createElement(qe,{className:"recharts-active-dot",key:_},T)});var w=P.forwardRef(function(A,_){return q.createElement(S,Do({},A,{ref:_}))});return w.displayName=S.displayName,w},eue=mm({chartName:"LineChart",GraphicalChild:lf,axisComponents:[{axisType:"xAxis",AxisComp:Ta},{axisType:"yAxis",AxisComp:Ea}],formatAxisMap:Gw}),tue=mm({chartName:"BarChart",GraphicalChild:_a,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ta},{axisType:"yAxis",AxisComp:Ea}],formatAxisMap:Gw}),nue=mm({chartName:"PieChart",GraphicalChild:Bi,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:sm},{axisType:"radiusAxis",AxisComp:im}],formatAxisMap:Eee,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),rue=mm({chartName:"AreaChart",GraphicalChild:ki,axisComponents:[{axisType:"xAxis",AxisComp:Ta},{axisType:"yAxis",AxisComp:Ea}],formatAxisMap:Gw});function he({children:e,className:t,hover:n=!1,padding:r="lg"}){const a={sm:"p-4",md:"p-5",lg:"p-6 md:p-8"};return d.jsx(cr.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.18,ease:"easeOut"},className:qt("bg-surface rounded-[20px] card-shadow",a[r],n&&"transition-shadow duration-200 hover:shadow-hover cursor-pointer",t),children:e})}function We({title:e,subtitle:t,action:n,className:r}){return d.jsxs("div",{className:qt("flex items-start justify-between mb-6",r),children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-base font-semibold text-text-primary",children:e}),t&&d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:t})]}),n&&d.jsx("div",{children:n})]})}const iue=[{month:"Jan",revenue:42e3,target:45e3},{month:"Feb",revenue:48e3,target:46e3},{month:"Mar",revenue:51e3,target:48e3},{month:"Apr",revenue:47e3,target:5e4},{month:"May",revenue:56e3,target:52e3},{month:"Jun",revenue:62e3,target:55e3},{month:"Jul",revenue:58e3,target:57e3},{month:"Aug",revenue:67e3,target:6e4},{month:"Sep",revenue:71e3,target:63e3},{month:"Oct",revenue:69e3,target:66e3},{month:"Nov",revenue:78e3,target:7e4},{month:"Dec",revenue:85e3,target:75e3}],aue=[{key:"revenue",label:"Revenue"},{key:"mrr",label:"MRR"},{key:"arr",label:"ARR"}];function sue(e){return`${(e/1e3).toFixed(0)}k`}function oue(){const[e,t]=P.useState("revenue");return d.jsxs(he,{children:[d.jsx(We,{title:"Revenue Overview",subtitle:"Monthly revenue vs target",action:d.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:aue.map(n=>d.jsx("button",{onClick:()=>t(n.key),className:qt("px-3 py-1.5 text-xs font-medium rounded-lg transition-colors",e===n.key?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"),children:n.label},n.key))})}),d.jsx("div",{className:"h-[280px]",children:d.jsx(Ph,{width:"100%",height:"100%",children:d.jsxs(rue,{data:iue,margin:{top:5,right:5,left:-10,bottom:0},children:[d.jsx("defs",{children:d.jsxs("linearGradient",{id:"colorRevenue",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#2563EB",stopOpacity:.08}),d.jsx("stop",{offset:"95%",stopColor:"#2563EB",stopOpacity:0})]})}),d.jsx(gp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),d.jsx(Ta,{dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),d.jsx(Ea,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:sue,dx:-5}),d.jsx(Fn,{content:({active:n,payload:r,label:a})=>!n||!(r!=null&&r.length)?null:d.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[d.jsx("p",{className:"text-xs font-medium text-text-secondary mb-2",children:a}),r.map((o,l)=>d.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[d.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:o.color||"#2563EB"}}),d.jsxs("span",{className:"text-text-secondary",children:[o.name,":"]}),d.jsxs("span",{className:"font-semibold text-text-primary",children:["€",Number(o.value).toLocaleString()]})]},l))]})}),d.jsx(ki,{type:"monotone",dataKey:"revenue",stroke:"#2563EB",strokeWidth:2,fill:"url(#colorRevenue)",dot:!1,activeDot:{r:4,strokeWidth:0,fill:"#2563EB"}}),d.jsx(ki,{type:"monotone",dataKey:"target",stroke:"#9CA3AF",strokeWidth:1.5,strokeDasharray:"4 4",fill:"none",dot:!1})]})})})]})}function Ke({children:e,variant:t="default",size:n="sm",className:r}){const a={default:"bg-bg text-text-secondary",success:"bg-success-light text-success",warning:"bg-warning-light text-warning",danger:"bg-danger-light text-danger",primary:"bg-primary-light text-primary"},o={sm:"px-2 py-0.5 text-[11px]",md:"px-2.5 py-1 text-xs"};return d.jsx("span",{className:qt("inline-flex items-center rounded-full font-medium",a[t],o[n],r),children:e})}const lue=[{id:"1",type:"deal",title:"Enterprise deal closed",description:"Acme Corp signed €85,000 contract",time:new Date(Date.now()-1e3*60*15).toISOString(),user:"Sarah Chen"},{id:"2",type:"customer",title:"New customer onboarded",description:"TechStart AB joined as a premium client",time:new Date(Date.now()-1e3*60*45).toISOString(),user:"Marcus Lind"},{id:"3",type:"invoice",title:"Invoice #INV-2024-0089 paid",description:"€12,400 received from Nordic Solutions",time:new Date(Date.now()-1e3*60*60*2).toISOString()},{id:"4",type:"contract",title:"Contract renewed",description:"Global Industries extended for 2 years",time:new Date(Date.now()-1e3*60*60*4).toISOString(),user:"Elena Rossi"},{id:"5",type:"employee",title:"New team member",description:"Johan Berg joined the Engineering team",time:new Date(Date.now()-1e3*60*60*6).toISOString()},{id:"6",type:"deal",title:"Deal moved to negotiation",description:"MegaCorp €120K proposal under review",time:new Date(Date.now()-1e3*60*60*8).toISOString(),user:"Sarah Chen"}],uue={deal:{icon:Kr,color:"primary",label:"Deal"},customer:{icon:Oa,color:"success",label:"Customer"},invoice:{icon:cs,color:"warning",label:"Invoice"},contract:{icon:lH,color:"primary",label:"Contract"},employee:{icon:D1,color:"success",label:"HR"}};function cue(){return d.jsxs(he,{children:[d.jsx(We,{title:"Recent Activity",subtitle:"Latest updates across your organization"}),d.jsx("div",{className:"space-y-0",children:lue.map((e,t)=>{const n=uue[e.type],r=n.icon;return d.jsxs(cr.div,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},transition:{duration:.15,delay:t*.03},className:"flex items-start gap-3 py-3.5 border-b border-border/40 last:border-0",children:[d.jsx("div",{className:`w-9 h-9 rounded-xl bg-${n.color}-light flex items-center justify-center shrink-0`,children:d.jsx(r,{size:16,className:`text-${n.color}`})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("p",{className:"text-sm font-medium text-text-primary truncate",children:e.title}),d.jsx(Ke,{variant:n.color,size:"sm",children:n.label})]}),d.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.description}),d.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[d.jsx("span",{className:"text-[11px] text-text-secondary/60",children:ZS(e.time)}),e.user&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-[11px] text-text-secondary/40",children:"·"}),d.jsx("span",{className:"text-[11px] text-text-secondary/60",children:e.user})]})]})]})]},e.id)})})]})}function fue({data:e}){const t=P.useMemo(()=>Math.max(Math.abs(e.total_assets),Math.abs(e.total_liabilities),Math.abs(e.total_equity),1),[e]),n=r=>`${Math.abs(r)/t*100}%`;return d.jsxs(he,{children:[d.jsx(We,{title:"Balance Sheet (Balansräkning)",subtitle:"Assets vs Liabilities & Equity"}),d.jsxs("div",{className:"p-6 space-y-6",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex justify-between mb-2",children:[d.jsx("span",{className:"font-semibold text-success",children:"Assets (Tillgångar)"}),d.jsx("span",{className:"font-bold",children:Ao(e.total_assets)})]}),d.jsx("div",{className:"w-full bg-surface-2 rounded-full h-4",children:d.jsx("div",{className:"bg-success h-4 rounded-full transition-all",style:{width:n(e.total_assets)}})}),d.jsx("div",{className:"mt-2 space-y-1",children:e.assets.slice(0,5).map(r=>d.jsxs("div",{className:"flex justify-between text-sm",children:[d.jsx("span",{children:r.name}),d.jsx("span",{children:Ao(r.balance)})]},r.code))})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex justify-between mb-2",children:[d.jsx("span",{className:"font-semibold text-danger",children:"Liabilities (Skulder)"}),d.jsx("span",{className:"font-bold",children:Ao(e.total_liabilities)})]}),d.jsx("div",{className:"w-full bg-surface-2 rounded-full h-4",children:d.jsx("div",{className:"bg-danger h-4 rounded-full transition-all",style:{width:n(e.total_liabilities)}})}),d.jsx("div",{className:"mt-2 space-y-1",children:e.liabilities.slice(0,5).map(r=>d.jsxs("div",{className:"flex justify-between text-sm",children:[d.jsx("span",{children:r.name}),d.jsx("span",{children:Ao(r.balance)})]},r.code))})]}),e.equity&&e.equity.length>0&&d.jsxs("div",{children:[d.jsxs("div",{className:"flex justify-between mb-2",children:[d.jsx("span",{className:"font-semibold text-primary",children:"Equity (Eget kapital)"}),d.jsx("span",{className:"font-bold",children:Ao(e.total_equity)})]}),d.jsx("div",{className:"w-full bg-surface-2 rounded-full h-4",children:d.jsx("div",{className:"bg-primary h-4 rounded-full transition-all",style:{width:n(e.total_equity)}})})]}),d.jsx("div",{className:"border-t pt-4",children:d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"text-sm text-muted",children:"Balance check:"}),d.jsx("span",{className:`font-mono ${Math.abs(e.total_assets+e.total_liabilities+e.total_equity)<.01?"text-success":"text-danger"}`,children:Ao(e.total_assets+e.total_liabilities+e.total_equity)})]})})]})]})}function Ao(e){return new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}function Cn({children:e,className:t}){return d.jsx("div",{className:"w-full overflow-x-auto",children:d.jsx("table",{className:qt("w-full",t),children:e})})}function bt({children:e,className:t}){return d.jsx("thead",{className:qt("border-b border-border",t),children:e})}function Mn({children:e,className:t}){return d.jsx("tbody",{className:t,children:e})}function Ve({children:e,className:t}){return d.jsx("tr",{className:qt("border-b border-border/50 transition-colors hover:bg-bg/50",t),children:e})}function me({children:e,className:t,align:n="left",colSpan:r}){const a={left:"text-left",center:"text-center",right:"text-right"};return d.jsx("th",{colSpan:r,className:qt("py-3 px-4 text-xs font-medium text-text-secondary uppercase tracking-wider",a[n],t),children:e})}function de({children:e,className:t,align:n="left",colSpan:r}){const a={left:"text-left",center:"text-center",right:"text-right"};return d.jsx("td",{colSpan:r,className:qt("py-3.5 px-4 text-sm text-text-primary",a[n],t),children:e})}function due({accountCode:e,accountName:t,onClose:n}){const[r,a]=P.useState([]),[o,l]=P.useState(!0);return P.useEffect(()=>{a([{id:"1",date:"2026-02-01",description:"Opening balance",debit:0,credit:0,balance:44313},{id:"2",date:"2026-02-15",description:"Purchase - Dell laptops",debit:25e3,credit:0,balance:69313},{id:"3",date:"2026-02-20",description:"Depreciation",debit:0,credit:25e3,balance:44313}]),l(!1)},[e]),d.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:d.jsx("div",{className:"bg-surface rounded-lg w-full max-w-4xl max-h-[80vh] overflow-auto",children:d.jsxs(he,{children:[d.jsx(We,{title:`${e} - ${t}`,subtitle:"Transaction History",action:d.jsx("button",{onClick:n,className:"text-sm text-primary hover:underline",children:"Close"})}),d.jsx("div",{className:"p-6",children:o?d.jsx("div",{className:"text-center py-8",children:"Loading..."}):d.jsxs(Cn,{children:[d.jsx(me,{children:d.jsxs(Ve,{children:[d.jsx(bt,{children:"Date"}),d.jsx(bt,{children:"Description"}),d.jsx(bt,{className:"text-right",children:"Debit"}),d.jsx(bt,{className:"text-right",children:"Credit"}),d.jsx(bt,{className:"text-right",children:"Balance"})]})}),d.jsx(Mn,{children:r.map(c=>d.jsxs(Ve,{children:[d.jsx(de,{children:c.date}),d.jsx(de,{children:c.description}),d.jsx(de,{className:"text-right text-success",children:c.debit>0?r1(c.debit):"-"}),d.jsx(de,{className:"text-right text-danger",children:c.credit>0?r1(c.credit):"-"}),d.jsx(de,{className:"text-right font-medium",children:r1(c.balance)})]},c.id))})]})})]})})})}function r1(e){return new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}function hue({period:e}){const[t,n]=P.useState(null),r=async a=>{n(a);try{const o=await fetch(`/api/v1/finance/export?period=${e}&format=${a}`);if(!o.ok)throw new Error("Export failed");const l=await o.blob(),c=window.URL.createObjectURL(l),f=document.createElement("a");f.href=c,f.download=`ledger-${e}.${a.toLowerCase()}`,document.body.appendChild(f),f.click(),window.URL.revokeObjectURL(c),document.body.removeChild(f)}catch(o){console.error("Export error:",o),alert(`Failed to export ${a}`)}finally{n(null)}};return d.jsxs(he,{children:[d.jsx(We,{title:"Export Reports",subtitle:"Download ledger data in various formats"}),d.jsxs("div",{className:"p-6 flex gap-4",children:[d.jsx("button",{onClick:()=>r("SIE4"),disabled:t==="SIE4",className:"px-4 py-2 bg-primary text-white rounded hover:bg-primary-dark disabled:opacity-50",children:t==="SIE4"?"Exporting...":"Export SIE4"}),d.jsx("button",{onClick:()=>r("PDF"),disabled:t==="PDF",className:"px-4 py-2 bg-danger text-white rounded hover:bg-danger-dark disabled:opacity-50",children:t==="PDF"?"Exporting...":"Export PDF"}),d.jsx("button",{onClick:()=>r("CSV"),disabled:t==="CSV",className:"px-4 py-2 bg-success text-white rounded hover:bg-success-dark disabled:opacity-50",children:t==="CSV"?"Exporting...":"Export CSV"})]})]})}const Hk=({src:e,title:t,height:n=300})=>d.jsxs("div",{className:"bg-white rounded-lg shadow-md p-4 mb-4",children:[d.jsx("h3",{className:"text-lg font-semibold mb-2",children:t}),d.jsx("iframe",{src:e,width:"100%",height:n,frameBorder:"0",title:t,className:"rounded"})]});function et({className:e}){return d.jsx("div",{className:qt("animate-pulse rounded-[14px] bg-text-secondary/8",e)})}function pue(){const[e,t]=P.useState(!0),[n,r]=P.useState(""),[a,o]=P.useState(0),[l,c]=P.useState(0),[f,h]=P.useState(0),[m,y]=P.useState([]),[g,j]=P.useState(0),[S,w]=P.useState(0),[b,A]=P.useState(0),[_,T]=P.useState(0),[C,O]=P.useState(0),[E,M]=P.useState([]),[k,D]=P.useState(null),[B,I]=P.useState("2026-02"),[$,G]=P.useState(null);P.useEffect(()=>{async function L(){t(!0),r("");try{const[H,Q,ie,oe,z,F]=await Promise.all([is.balance(),No.mrr(),oh.customers(),No.deals(),eg.balanceSheet("2026-01").catch(()=>null),eg.incomeStatement("2026-01").catch(()=>null)]);o(H.total_assets||0),c(Q.mrr||0),h(ie.total||0);const pe=oe;y(pe.deals||[]),j(pe.total||0),z&&(w(z.total_assets||0),A(z.total_liabilities||0),T(z.total_equity||0),D(z)),F&&O(F.net_income||0);const we=await eg.accounts().catch(()=>null);we&&M(we.accounts||[])}catch(H){r(H instanceof Error?H.message:"Failed to load dashboard data")}finally{t(!1)}}L()},[]);const X=[{label:"Total Assets",value:_e(a),change:0,changeLabel:"vs last month",icon:d.jsx(Xu,{size:18})},{label:"Active Customers",value:String(f),change:0,changeLabel:"vs last month",icon:d.jsx(Oa,{size:18})},{label:"MRR",value:_e(l),change:0,changeLabel:"vs last month",icon:d.jsx(Kr,{size:18})},{label:"Open Deals",value:String(g),change:0,changeLabel:"vs last month",icon:d.jsx(SH,{size:18})}],Y=[{label:"Ledger Assets",value:_e(S),change:0,changeLabel:"per balansräkning",icon:d.jsx(Xu,{size:18})},{label:"Ledger Liabilities",value:_e(b),change:0,changeLabel:"per balansräkning",icon:d.jsx(Kr,{size:18})},{label:"Net Income",value:_e(C),change:0,changeLabel:"per resultaträkning",icon:d.jsx(Kr,{size:18})},{label:"Equity",value:_e(_),change:0,changeLabel:"per balansräkning",icon:d.jsx(Xu,{size:18})}];return e?d.jsxs("div",{className:"space-y-10",children:[d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:Array.from({length:4}).map((L,H)=>d.jsx(et,{className:"h-[140px]"},H))}),d.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6",children:[d.jsx(et,{className:"h-[320px] xl:col-span-2"}),d.jsx(et,{className:"h-[320px]"})]}),d.jsx(et,{className:"h-[300px]"})]}):n?d.jsx("div",{className:"flex items-center justify-center h-64",children:d.jsx("p",{className:"text-danger",children:n})}):d.jsxs("div",{className:"space-y-10",children:[d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:X.map((L,H)=>d.jsx(KE,{...L,index:H},L.label))}),d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("label",{className:"text-sm font-medium",children:"Period:"}),d.jsxs("select",{value:B,onChange:L=>I(L.target.value),className:"border rounded px-3 py-1 text-sm",children:[d.jsx("option",{value:"2026-02",children:"2026-02"}),d.jsx("option",{value:"2026-03",children:"2026-03"}),d.jsx("option",{value:"2026-04",children:"2026-04"})]})]}),d.jsxs("div",{className:"mt-8",children:[d.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Ledger (Bokföring)"}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:Y.map((L,H)=>d.jsx(KE,{...L,index:H},L.label))})]}),k&&d.jsx(fue,{data:k}),d.jsxs("div",{className:"mt-8",children:[d.jsx("h2",{className:"text-lg font-semibold mb-4",children:"System Health"}),d.jsx(Hk,{src:"http://localhost:3050/d-solo/aamos-system/aamos-system-health?orgId=1&panelId=1&refresh=5s",title:"CPU Usage",height:200}),d.jsx(Hk,{src:"http://localhost:3050/d-solo/aamos-system/aamos-system-health?orgId=1&panelId=2&refresh=5s",title:"Memory Usage",height:200})]}),d.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6",children:[d.jsx("div",{className:"xl:col-span-2",children:d.jsx(oue,{})}),d.jsx("div",{children:d.jsx(cue,{})})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Ledger Accounts",subtitle:"All BAS accounts with balances"}),d.jsx("div",{className:"overflow-x-auto",children:d.jsxs(Cn,{children:[d.jsx(me,{children:d.jsxs(Ve,{children:[d.jsx(bt,{children:"Code"}),d.jsx(bt,{children:"Name"}),d.jsx(bt,{children:"Type"}),d.jsx(bt,{className:"text-right",children:"Balance"})]})}),d.jsx(Mn,{children:E.length===0?d.jsx(Ve,{children:d.jsx(de,{colSpan:4,className:"text-center text-muted",children:"No accounts found"})}):E.map(L=>d.jsx(Ve,{children:d.jsx(de,{colSpan:4,className:"p-0",children:d.jsxs("div",{className:"flex items-center px-4 py-3 cursor-pointer hover:bg-surface-2",onClick:()=>G({code:L.code,name:L.name}),children:[d.jsx("span",{className:"font-medium w-16",children:L.code}),d.jsx("span",{className:"flex-1",children:L.name}),d.jsx("span",{className:"w-24",children:d.jsx(Ke,{children:L.account_type})}),d.jsx("span",{className:`w-32 text-right ${L.balance>=0?"text-success":"text-danger"}`,children:_e(L.balance)})]})})},L.code))})]})})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Income Statement (Resultaträkning)",subtitle:"Revenue and expenses for period 2026-02"}),d.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6 p-6",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold mb-4 text-success",children:"Revenue (Intäkter)"}),d.jsxs(Cn,{children:[d.jsx(me,{children:d.jsxs(Ve,{children:[d.jsx(bt,{children:"Code"}),d.jsx(bt,{children:"Name"}),d.jsx(bt,{className:"text-right",children:"Amount"})]})}),d.jsx(Mn,{children:E.filter(L=>L.account_type==="revenue").map(L=>d.jsxs(Ve,{children:[d.jsx(de,{children:L.code}),d.jsx(de,{children:L.name}),d.jsx(de,{className:"text-right text-success",children:_e(Math.abs(L.balance))})]},L.code))})]})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold mb-4 text-danger",children:"Expenses (Kostnader)"}),d.jsxs(Cn,{children:[d.jsx(me,{children:d.jsxs(Ve,{children:[d.jsx(bt,{children:"Code"}),d.jsx(bt,{children:"Name"}),d.jsx(bt,{className:"text-right",children:"Amount"})]})}),d.jsx(Mn,{children:E.filter(L=>L.account_type==="expense").map(L=>d.jsxs(Ve,{children:[d.jsx(de,{children:L.code}),d.jsx(de,{children:L.name}),d.jsx(de,{className:"text-right text-danger",children:_e(L.balance)})]},L.code))})]})]})]}),d.jsx("div",{className:"border-t p-6",children:d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"text-lg font-semibold",children:"Net Income:"}),d.jsx("span",{className:`text-2xl font-bold ${C>=0?"text-success":"text-danger"}`,children:_e(C)})]})})]}),d.jsx(hue,{period:B}),$&&d.jsx(due,{accountCode:$.code,accountName:$.name,onClose:()=>G(null)}),d.jsxs(he,{children:[d.jsx(We,{title:"Recent Deals",subtitle:"Latest deals across your pipeline",action:d.jsxs("button",{className:"text-sm text-primary font-medium flex items-center gap-1 hover:underline",children:["View all ",d.jsx(P1,{size:14})]})}),d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Deal"}),d.jsx(me,{children:"Company"}),d.jsx(me,{align:"right",children:"Value"}),d.jsx(me,{children:"Stage"}),d.jsx(me,{align:"right",children:"Probability"}),d.jsx(me,{children:"Close Date"})]})}),d.jsxs(Mn,{children:[m.length===0&&d.jsx(Ve,{children:d.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No deals found"})}),m.map(L=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsx("span",{className:"font-medium",children:L.name})}),d.jsx(de,{children:L.company}),d.jsx(de,{align:"right",children:_e(L.value)}),d.jsx(de,{children:d.jsx(Ke,{variant:L.stage==="Closed Won"?"success":L.stage==="Negotiation"?"primary":"default",children:L.stage})}),d.jsxs(de,{align:"right",children:[L.probability,"%"]}),d.jsx(de,{children:mr(L.expectedClose)})]},L.id))]})]})]})]})}const mue={getRealBriefing:()=>rt.get("/briefing/real")};function Yd({title:e,value:t,subtitle:n,icon:r,trend:a,trendValue:o,variant:l="default"}){const c={default:"bg-surface border-border",success:"bg-success/5 border-success/20",warning:"bg-warning/5 border-warning/20",danger:"bg-danger/5 border-danger/20"};return d.jsxs("div",{className:`p-4 rounded-xl border ${c[l]}`,children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{className:"space-y-1",children:[d.jsx("p",{className:"text-sm text-text-secondary",children:e}),d.jsx("p",{className:"text-2xl font-semibold",children:t}),n&&d.jsx("p",{className:"text-xs text-text-tertiary",children:n})]}),r&&d.jsx("div",{className:"text-text-secondary",children:r})]}),a&&d.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[a==="up"&&d.jsx(Kr,{size:14,className:"text-success"}),a==="down"&&d.jsx(XS,{size:14,className:"text-danger"}),a==="neutral"&&d.jsx(YS,{size:14,className:"text-text-secondary"}),d.jsx("span",{className:`text-xs ${a==="up"?"text-success":a==="down"?"text-danger":"text-text-secondary"}`,children:o})]})]})}function yue({alert:e}){const t={info:{icon:d.jsx(YS,{size:16}),color:"text-primary bg-primary/5 border-primary/20"},warning:{icon:d.jsx(ja,{size:16}),color:"text-warning bg-warning/5 border-warning/20"},critical:{icon:d.jsx(ja,{size:16}),color:"text-danger bg-danger/5 border-danger/20"}},n=t[e.level]||t.info;return d.jsx("div",{className:`p-3 rounded-lg border ${n.color}`,children:d.jsxs("div",{className:"flex items-start gap-2",children:[n.icon,d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium",children:e.title}),d.jsx("p",{className:"text-xs opacity-80 mt-0.5",children:e.description})]}),d.jsx(Ke,{variant:"default",className:"text-xs",children:e.source})]})})}function vue({action:e}){const t={10:"bg-danger text-white",9:"bg-danger/80 text-white",8:"bg-warning text-white",7:"bg-warning/80 text-white",6:"bg-primary text-white",5:"bg-primary/80 text-white"};return d.jsx("div",{className:"p-3 rounded-lg border border-border bg-surface hover:bg-surface-hover transition-colors cursor-pointer group",children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx("div",{className:`w-6 h-6 rounded-full flex items-center justify-center text-xs font-medium shrink-0 ${t[e.priority]||"bg-text-secondary text-white"}`,children:e.priority}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium group-hover:text-primary transition-colors",children:e.title}),d.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.description}),d.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[d.jsxs("span",{className:"text-xs text-text-tertiary flex items-center gap-1",children:[d.jsx(Uo,{size:12}),e.time_estimate]}),d.jsx("span",{className:"text-xs text-text-tertiary",children:e.impact})]})]}),d.jsx(J9,{size:16,className:"text-text-tertiary group-hover:text-primary transition-colors shrink-0"})]})})}function gue({task:e}){const t={critical:"danger",high:"warning",medium:"default",low:"success"};return d.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-warning shrink-0"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm truncate",children:e.title}),d.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[d.jsx(Ke,{variant:t[e.priority],className:"text-xs",children:e.priority}),d.jsx("span",{className:"text-xs text-text-tertiary",children:e.category})]})]}),d.jsxs("span",{className:"text-xs text-text-tertiary shrink-0",children:[e.days_open,"d"]})]})}function xue({deal:e}){return d.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:d.jsx(lc,{size:16,className:"text-primary"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium truncate",children:e.name}),d.jsx("p",{className:"text-xs text-text-secondary",children:e.customer})]}),d.jsxs("div",{className:"text-right shrink-0",children:[d.jsx("p",{className:"text-sm font-medium",children:_e(e.value)}),d.jsxs("p",{className:"text-xs text-text-tertiary",children:[e.probability,"%"]})]})]})}function bue(){var j;const[e,t]=P.useState(null),[n,r]=P.useState(!0),[a,o]=P.useState("");if(P.useEffect(()=>{async function S(){try{r(!0);const b=await mue.getRealBriefing();t(b)}catch(b){o(b instanceof Error?b.message:"Failed to load briefing")}finally{r(!1)}}S();const w=setInterval(S,3e5);return()=>clearInterval(w)},[]),n)return d.jsxs("div",{className:"space-y-6",children:[d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:4}).map((S,w)=>d.jsx(et,{className:"h-[120px]"},w))}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[d.jsx(et,{className:"h-[400px] lg:col-span-2"}),d.jsx(et,{className:"h-[400px]"})]})]});if(a)return d.jsx("div",{className:"flex items-center justify-center h-64",children:d.jsxs("div",{className:"text-center",children:[d.jsx(ja,{size:48,className:"text-danger mx-auto mb-4"}),d.jsx("p",{className:"text-danger font-medium",children:a}),d.jsx("button",{onClick:()=>window.location.reload(),className:"mt-4 px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary-hover transition-colors",children:"Försök igen"})]})});if(!e)return null;const{company_health:l,my_tasks:c,my_deals:f,team_overview:h,financial_status:m,alerts:y,actions:g}=e;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold",children:"Dagsöversikt"}),d.jsxs("p",{className:"text-text-secondary",children:[e.user.name," • ",new Date(e.generated_at).toLocaleDateString("sv-SE",{weekday:"long",year:"numeric",month:"long",day:"numeric"})]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:`w-2 h-2 rounded-full ${l.status==="healthy"?"bg-success":l.status==="warning"?"bg-warning":"bg-danger"}`}),d.jsx("span",{className:"text-sm text-text-secondary capitalize",children:l.status})]})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[d.jsx(Yd,{title:"Cash Position",value:_e(l.cash_position),subtitle:"Eget kapital",icon:d.jsx(Xu,{size:20}),trend:l.profit_margin>0?"up":"down",trendValue:`${VE(l.profit_margin)}% marginal`,variant:l.cash_position>1e6?"success":l.cash_position>5e5?"warning":"danger"}),d.jsx(Yd,{title:"Pipeline",value:_e(l.total_pipeline),subtitle:`${l.active_deals} aktiva deals`,icon:d.jsx(lc,{size:20}),trend:"up",trendValue:"+12% vs förra månaden"}),d.jsx(Yd,{title:"Team",value:`${h.active_now}/${h.total_members}`,subtitle:`${h.on_leave} på leave`,icon:d.jsx(Oa,{size:20}),trend:h.on_leave>0?"neutral":"up",trendValue:h.on_leave>0?`${h.on_leave} borta idag`:"Alla närvarande"}),d.jsx(Yd,{title:"Mina Tasks",value:c.length,subtitle:`${c.filter(S=>S.priority==="critical").length} kritiska`,icon:d.jsx(a4,{size:20}),variant:c.filter(S=>S.priority==="critical").length>0?"danger":c.filter(S=>S.priority==="high").length>0?"warning":"success"})]}),y.length>0&&d.jsxs("div",{className:"space-y-2",children:[d.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[d.jsx(ja,{size:20,className:"text-warning"}),"Varningar"]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:y.map((S,w)=>d.jsx(yue,{alert:S},w))})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[g.length>0&&d.jsxs(he,{children:[d.jsx(We,{title:"Rekommenderade Åtgärder",subtitle:"Prioriterade baserat på din roll och aktuell data"}),d.jsx("div",{className:"p-4 space-y-3",children:g.map((S,w)=>d.jsx(vue,{action:S},w))})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Mina Uppgifter",subtitle:`${c.length} öppna uppgifter`}),d.jsx("div",{className:"p-4 space-y-1",children:c.length===0?d.jsxs("div",{className:"text-center py-8 text-text-secondary",children:[d.jsx(Zc,{size:48,className:"mx-auto mb-2 text-success"}),d.jsx("p",{children:"Alla uppgifter är klara!"})]}):c.map(S=>d.jsx(gue,{task:S},S.id))})]}),f.length>0&&d.jsxs(he,{children:[d.jsx(We,{title:"Mina Deals",subtitle:`${f.length} aktiva förhandlingar`}),d.jsx("div",{className:"p-4 space-y-1",children:f.map(S=>d.jsx(xue,{deal:S},S.id))})]})]}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs(he,{children:[d.jsx(We,{title:"Teamöversikt",subtitle:`${h.total_members} medlemmar`}),d.jsxs("div",{className:"p-4",children:[d.jsxs("div",{className:"grid grid-cols-3 gap-2 mb-4",children:[d.jsxs("div",{className:"text-center p-2 bg-success/5 rounded-lg",children:[d.jsx("p",{className:"text-2xl font-semibold text-success",children:h.active_now}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Aktiva"})]}),d.jsxs("div",{className:"text-center p-2 bg-warning/5 rounded-lg",children:[d.jsx("p",{className:"text-2xl font-semibold text-warning",children:h.on_leave}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Borta"})]}),d.jsxs("div",{className:"text-center p-2 bg-primary/5 rounded-lg",children:[d.jsx("p",{className:"text-2xl font-semibold text-primary",children:h.open_tickets}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Tickets"})]})]}),d.jsx("div",{className:"space-y-2",children:h.members.slice(0,5).map((S,w)=>d.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[d.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary",children:S.name.split(" ").map(b=>b[0]).join("")}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium truncate",children:S.name}),d.jsx("p",{className:"text-xs text-text-secondary",children:S.role})]}),S.open_tasks>0&&d.jsx(Ke,{variant:"warning",className:"text-xs",children:S.open_tasks})]},w))})]})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Finansiell Status",subtitle:"Från ledger i realtid"}),d.jsxs("div",{className:"p-4 space-y-3",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"text-sm text-text-secondary",children:"Tillgångar"}),d.jsx("span",{className:"text-sm font-medium",children:_e(m.total_assets)})]}),d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"text-sm text-text-secondary",children:"Skulder"}),d.jsx("span",{className:"text-sm font-medium",children:_e(m.total_liabilities)})]}),d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"text-sm text-text-secondary",children:"Eget Kapital"}),d.jsx("span",{className:"text-sm font-medium text-success",children:_e(m.equity)})]}),m.runway_months>0&&d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"text-sm text-text-secondary",children:"Runway"}),d.jsxs("span",{className:"text-sm font-medium",children:[VE(m.runway_months)," mån"]})]}),d.jsxs("div",{className:"pt-2 border-t border-border",children:[d.jsx("p",{className:"text-xs text-text-tertiary mb-2",children:"Top Konton"}),(j=m.top_accounts)==null?void 0:j.slice(0,3).map((S,w)=>d.jsxs("div",{className:"flex justify-between items-center py-1",children:[d.jsx("span",{className:"text-xs text-text-secondary",children:S.name}),d.jsx("span",{className:"text-xs font-medium",children:_e(S.amount)})]},w))]})]})]})]})]})]})}function jue(){return d.jsx(bue,{})}function Sue(){const{user:e}=Gc(),[t,n]=P.useState(null),[r,a]=P.useState(!0),[o,l]=P.useState(!1),[c,f]=P.useState("general");P.useEffect(()=>{setTimeout(()=>{n({id:(e==null?void 0:e.id)||"3847477b-3d56-4975-9157-ae8f9ce52aa7",name:(e==null?void 0:e.name)||"Erik Svensson",email:(e==null?void 0:e.email)||"erik@landvex.com",phone:"+46 70 123 45 67",role:(e==null?void 0:e.role)||"admin",department:"Ledning",timezone:"Europe/Stockholm",language:"sv",notifications:{email:!0,push:!0,sms:!1},theme:"light",twoFactorEnabled:!1,lastLogin:new Date().toISOString(),createdAt:"2026-01-15T10:30:00Z"}),a(!1)},500)},[e]);const h=async()=>{l(!0),await new Promise(y=>setTimeout(y,1e3)),l(!1)};if(r)return d.jsxs("div",{className:"space-y-6",children:[d.jsx(et,{className:"h-[200px]"}),d.jsx(et,{className:"h-[400px]"})]});if(!t)return null;const m=[{id:"general",label:"Allmänt",icon:k1},{id:"security",label:"Säkerhet",icon:sh},{id:"notifications",label:"Notifikationer",icon:R1},{id:"preferences",label:"Inställningar",icon:ah}];return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold",children:"Min Profil"}),d.jsx("p",{className:"text-text-secondary",children:"Hantera dina kontoinställningar"})]}),d.jsx(Yt,{onClick:h,disabled:o,icon:o?void 0:d.jsx(bH,{size:16}),children:o?"Sparar...":"Spara ändringar"})]}),d.jsxs(he,{className:"relative overflow-hidden",children:[d.jsx("div",{className:"h-32 bg-gradient-to-r from-primary to-primary-hover"}),d.jsxs("div",{className:"px-6 pb-6",children:[d.jsx("div",{className:"relative -mt-16 mb-4",children:d.jsxs("div",{className:"w-32 h-32 rounded-2xl bg-surface border-4 border-bg flex items-center justify-center text-4xl font-bold text-primary relative",children:[t.avatar?d.jsx("img",{src:t.avatar,alt:t.name,className:"w-full h-full rounded-2xl object-cover"}):t.name.split(" ").map(y=>y[0]).join(""),d.jsx("button",{className:"absolute bottom-0 right-0 w-8 h-8 bg-primary text-white rounded-full flex items-center justify-center hover:bg-primary-hover transition-colors",children:d.jsx(tH,{size:14})})]})}),d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-xl font-semibold",children:t.name}),d.jsx("p",{className:"text-text-secondary",children:t.email}),d.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[d.jsx(Ke,{variant:"primary",children:t.role}),d.jsx(Ke,{variant:"default",children:t.department})]})]}),d.jsxs("div",{className:"text-right text-sm text-text-secondary",children:[d.jsxs("p",{children:["Senaste inloggning: ",mr(t.lastLogin)]}),d.jsxs("p",{children:["Medlem sedan: ",mr(t.createdAt)]})]})]})]})]}),d.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto",children:m.map(y=>d.jsxs("button",{onClick:()=>f(y.id),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap flex items-center gap-2 ${c===y.id?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:[d.jsx(y.icon,{size:16}),y.label]},y.id))}),c==="general"&&d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[d.jsxs(he,{children:[d.jsx(We,{title:"Personlig information",subtitle:"Uppdatera dina kontouppgifter"}),d.jsxs("div",{className:"p-4 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"Fullständigt namn"}),d.jsxs("div",{className:"relative",children:[d.jsx(k1,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"text",value:t.name,onChange:y=>n({...t,name:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"E-post"}),d.jsxs("div",{className:"relative",children:[d.jsx(js,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"email",value:t.email,onChange:y=>n({...t,email:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"Telefon"}),d.jsxs("div",{className:"relative",children:[d.jsx(BE,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"tel",value:t.phone||"",onChange:y=>n({...t,phone:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"Avdelning"}),d.jsxs("div",{className:"relative",children:[d.jsx(KS,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"text",value:t.department||"",onChange:y=>n({...t,department:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]})]})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Kontoinformation",subtitle:"Dina kontodetaljer"}),d.jsxs("div",{className:"p-4 space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium",children:"Användar-ID"}),d.jsx("p",{className:"text-xs text-text-secondary",children:t.id})]}),d.jsx(Ke,{variant:"default",children:"Aktiv"})]}),d.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium",children:"Roll"}),d.jsx("p",{className:"text-xs text-text-secondary",children:t.role})]}),d.jsx(sh,{size:16,className:"text-primary"})]}),d.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium",children:"Tidszon"}),d.jsx("p",{className:"text-xs text-text-secondary",children:t.timezone})]}),d.jsx(ah,{size:16,className:"text-text-secondary"})]}),d.jsxs("div",{className:"flex items-center justify-between py-3",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium",children:"Språk"}),d.jsx("p",{className:"text-xs text-text-secondary",children:t.language==="sv"?"Svenska":t.language})]}),d.jsx(ah,{size:16,className:"text-text-secondary"})]})]})]})]}),c==="security"&&d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[d.jsxs(he,{children:[d.jsx(We,{title:"Lösenord",subtitle:"Uppdatera ditt lösenord"}),d.jsxs("div",{className:"p-4 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"Nuvarande lösenord"}),d.jsxs("div",{className:"relative",children:[d.jsx(zE,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"password",placeholder:"••••••••",className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"Nytt lösenord"}),d.jsx("input",{type:"password",placeholder:"Minst 8 tecken",className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"Bekräfta nytt lösenord"}),d.jsx("input",{type:"password",placeholder:"Upprepa lösenord",className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm"})]}),d.jsxs(Yt,{variant:"secondary",className:"w-full",children:[d.jsx(zE,{size:16,className:"mr-2"}),"Ändra lösenord"]})]})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Tvåfaktorsautentisering",subtitle:"Öka säkerheten på ditt konto"}),d.jsxs("div",{className:"p-4",children:[d.jsxs("div",{className:"flex items-center justify-between mb-4",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium",children:"2FA-status"}),d.jsx("p",{className:"text-xs text-text-secondary",children:t.twoFactorEnabled?"Aktiverad":"Ej aktiverad"})]}),d.jsx(Ke,{variant:t.twoFactorEnabled?"success":"default",children:t.twoFactorEnabled?"Aktiv":"Inaktiv"})]}),!t.twoFactorEnabled&&d.jsxs(Yt,{className:"w-full",children:[d.jsx(sh,{size:16,className:"mr-2"}),"Aktivera 2FA"]})]})]})]}),c==="notifications"&&d.jsxs(he,{children:[d.jsx(We,{title:"Notifikationsinställningar",subtitle:"Hantera hur du får notifieringar"}),d.jsx("div",{className:"p-4 space-y-4",children:[{key:"email",label:"E-postnotifikationer",description:"Få uppdateringar via e-post",icon:js},{key:"push",label:"Push-notifikationer",description:"Få notifikationer i webbläsaren",icon:R1},{key:"sms",label:"SMS-notifikationer",description:"Få viktiga uppdateringar via SMS",icon:BE}].map(y=>d.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border last:border-0",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:d.jsx(y.icon,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium",children:y.label}),d.jsx("p",{className:"text-xs text-text-secondary",children:y.description})]})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:t.notifications[y.key],onChange:g=>n({...t,notifications:{...t.notifications,[y.key]:g.target.checked}}),className:"sr-only peer"}),d.jsx("div",{className:"w-11 h-6 bg-border peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary"})]})]},y.key))})]}),c==="preferences"&&d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[d.jsxs(he,{children:[d.jsx(We,{title:"Utseende",subtitle:"Anpassa hur BOC ser ut"}),d.jsx("div",{className:"p-4 space-y-4",children:d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-2",children:"Tema"}),d.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{id:"light",label:"Ljust",icon:wH},{id:"dark",label:"Mörkt",icon:vH},{id:"system",label:"System",icon:yH}].map(y=>d.jsxs("button",{onClick:()=>n({...t,theme:y.id}),className:`p-3 rounded-xl border text-center transition-colors ${t.theme===y.id?"border-primary bg-primary/5 text-primary":"border-border hover:border-primary/30"}`,children:[d.jsx(y.icon,{size:20,className:"mx-auto mb-1"}),d.jsx("span",{className:"text-xs",children:y.label})]},y.id))})]})})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Regionala inställningar",subtitle:"Språk och tidszon"}),d.jsxs("div",{className:"p-4 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"Språk"}),d.jsxs("select",{value:t.language,onChange:y=>n({...t,language:y.target.value}),className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm",children:[d.jsx("option",{value:"sv",children:"Svenska"}),d.jsx("option",{value:"en",children:"English"}),d.jsx("option",{value:"no",children:"Norsk"}),d.jsx("option",{value:"da",children:"Dansk"}),d.jsx("option",{value:"fi",children:"Suomi"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-1",children:"Tidszon"}),d.jsxs("select",{value:t.timezone,onChange:y=>n({...t,timezone:y.target.value}),className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm",children:[d.jsx("option",{value:"Europe/Stockholm",children:"Stockholm (CET)"}),d.jsx("option",{value:"Europe/Oslo",children:"Oslo (CET)"}),d.jsx("option",{value:"Europe/Copenhagen",children:"Köpenhamn (CET)"}),d.jsx("option",{value:"Europe/Helsinki",children:"Helsingfors (EET)"}),d.jsx("option",{value:"UTC",children:"UTC"})]})]})]})]})]})]})}function Fk({icon:e,title:t,description:n,action:r,className:a}){return d.jsxs("div",{className:qt("flex flex-col items-center justify-center py-16 text-center",a),children:[e&&d.jsx("div",{className:"mb-4 text-text-secondary/40",children:e}),d.jsx("h3",{className:"text-sm font-medium text-text-primary",children:t}),n&&d.jsx("p",{className:"mt-1 text-sm text-text-secondary max-w-sm",children:n}),r&&d.jsx("div",{className:"mt-4",children:r})]})}const wue=["Customers","Leads","Pipeline"];function Aue(){const[e,t]=P.useState("Customers"),[n,r]=P.useState(""),[a,o]=P.useState(!0),[l,c]=P.useState(""),[f,h]=P.useState([]),[m,y]=P.useState(0),[g,j]=P.useState([]),[S,w]=P.useState([]);P.useEffect(()=>{async function T(){o(!0),c("");try{const[C,O,E]=await Promise.all([oh.customers(),oh.leads(),oh.pipeline()]);h(C.customers),y(C.total),j(O.leads);const M=E;w(M.stages||M.pipeline||[])}catch(C){c(C instanceof Error?C.message:"Failed to load CRM data")}finally{o(!1)}}T()},[]);const b=f.filter(T=>T.name.toLowerCase().includes(n.toLowerCase())||(T.company||"").toLowerCase().includes(n.toLowerCase())),A=g.filter(T=>T.name.toLowerCase().includes(n.toLowerCase())||(T.company||"").toLowerCase().includes(n.toLowerCase())),_=S.reduce((T,C)=>T+(C.value||0),0);return a?d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"})]}),d.jsx(et,{className:"h-[400px]"})]}):l?d.jsx("div",{className:"flex items-center justify-center h-64",children:d.jsx("p",{className:"text-danger",children:l})}):d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"CRM"}),d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Manage customers, leads, and pipeline"})]}),d.jsx(Yt,{icon:d.jsx(Mi,{size:16}),children:"Add Contact"})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(Oa,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:m}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Total Customers"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:d.jsx(js,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:g.length}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Active Leads"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:d.jsx(KS,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",maximumFractionDigits:0}).format(_)}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Pipeline Value"})]})]})})]}),d.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[d.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:wue.map(T=>d.jsx("button",{onClick:()=>t(T),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===T?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:T},T))}),d.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[d.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[d.jsx(Ns,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:T=>r(T.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),d.jsx(Yt,{variant:"secondary",size:"sm",icon:d.jsx(Qc,{size:14}),children:"Filter"})]})]}),e==="Customers"&&d.jsxs(he,{children:[d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Customer"}),d.jsx(me,{children:"Company"}),d.jsx(me,{children:"Status"}),d.jsx(me,{children:"Phone"}),d.jsx(me,{children:"Created"}),d.jsx(me,{align:"right"})]})}),d.jsx(Mn,{children:b.map(T=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:T.name.charAt(0)}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium text-text-primary",children:T.name}),d.jsx("p",{className:"text-xs text-text-secondary",children:T.email})]})]})}),d.jsx(de,{children:T.company||"—"}),d.jsx(de,{children:d.jsx(Ke,{variant:T.status==="active"?"success":T.status==="lead"?"primary":"default",children:T.status})}),d.jsx(de,{children:T.phone||"—"}),d.jsx(de,{children:mr(T.created_at)}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},T.id))})]}),b.length===0&&d.jsx(Fk,{icon:d.jsx(Oa,{size:32}),title:"No customers found",description:"Try adjusting your search or filters"})]}),e==="Leads"&&d.jsxs(he,{children:[d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Lead"}),d.jsx(me,{children:"Company"}),d.jsx(me,{children:"Source"}),d.jsx(me,{children:"Status"}),d.jsx(me,{children:"Created"}),d.jsx(me,{align:"right"})]})}),d.jsx(Mn,{children:A.map(T=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:T.name.charAt(0)}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium text-text-primary",children:T.name}),d.jsx("p",{className:"text-xs text-text-secondary",children:T.email})]})]})}),d.jsx(de,{children:T.company||"—"}),d.jsx(de,{children:T.source||"—"}),d.jsx(de,{children:d.jsx(Ke,{variant:T.status==="qualified"?"success":T.status==="contacted"?"primary":T.status==="lost"?"danger":"default",children:T.status})}),d.jsx(de,{children:mr(T.created_at)}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},T.id))})]}),A.length===0&&d.jsx(Fk,{icon:d.jsx(js,{size:32}),title:"No leads found",description:"Try adjusting your search or filters"})]}),e==="Pipeline"&&d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:[S.length===0&&d.jsx("div",{className:"col-span-full text-center text-text-secondary py-12",children:"No pipeline stages found"}),S.map(T=>d.jsxs(he,{hover:!0,children:[d.jsxs("div",{className:"flex items-center justify-between mb-4",children:[d.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:T.name}),d.jsxs(Ke,{variant:"default",children:[T.deals," deals"]})]}),d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:T.value>0?new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",maximumFractionDigits:0}).format(T.value):"—"}),d.jsx("div",{className:"mt-4 h-1.5 bg-bg rounded-full overflow-hidden",children:d.jsx("div",{className:"h-full bg-primary rounded-full transition-all",style:{width:`${_>0?T.value/_*100:0}%`}})})]},T.id))]})]})}const Oue=["Deals","Products","MRR","ARR"];function _ue(){const[e,t]=P.useState("Deals"),[n,r]=P.useState(""),[a,o]=P.useState(!0),[l,c]=P.useState(""),[f,h]=P.useState([]),[m,y]=P.useState([]),[g,j]=P.useState([]),[S,w]=P.useState([]),[b,A]=P.useState(0);P.useEffect(()=>{async function O(){o(!0),c("");try{const[E,M,k,D]=await Promise.all([No.deals(),No.products(),No.mrr(),No.arr()]);h(E.deals||[]),y(M.products||[]),A(k.mrr||0),j([]);const I=D;w([])}catch(E){c(E instanceof Error?E.message:"Failed to load sales data")}finally{o(!1)}}O()},[]);const _=f.reduce((O,E)=>O+(E.value||0),0),T=f.filter(O=>O.stage==="Closed Won").reduce((O,E)=>O+(E.value||0),0),C=m.filter(O=>O.active).length;return a?d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"})]}),d.jsx(et,{className:"h-[400px]"})]}):l?d.jsx("div",{className:"flex items-center justify-center h-64",children:d.jsx("p",{className:"text-danger",children:l})}):d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Sales"}),d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Deals, products, and revenue metrics"})]}),d.jsx(Yt,{icon:d.jsx(Mi,{size:16}),children:"New Deal"})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(Xu,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:_e(_)}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Total Pipeline"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:d.jsx(Kr,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:_e(T)}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Closed Won"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:d.jsx(xH,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:C}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Active Products"})]})]})})]}),d.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[d.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:Oue.map(O=>d.jsx("button",{onClick:()=>t(O),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===O?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:O},O))}),d.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[d.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[d.jsx(Ns,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:O=>r(O.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),d.jsx(Yt,{variant:"secondary",size:"sm",icon:d.jsx(Qc,{size:14}),children:"Filter"})]})]}),e==="Deals"&&d.jsx(he,{children:d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Deal"}),d.jsx(me,{children:"Company"}),d.jsx(me,{align:"right",children:"Value"}),d.jsx(me,{children:"Stage"}),d.jsx(me,{align:"right",children:"Probability"}),d.jsx(me,{children:"Owner"}),d.jsx(me,{align:"right"})]})}),d.jsxs(Mn,{children:[f.length===0&&d.jsx(Ve,{children:d.jsx(de,{colSpan:7,className:"text-center text-text-secondary py-8",children:"No deals found"})}),f.map(O=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsx("span",{className:"font-medium",children:O.name})}),d.jsx(de,{children:O.company}),d.jsx(de,{align:"right",children:_e(O.value)}),d.jsx(de,{children:d.jsx(Ke,{variant:O.stage==="Closed Won"?"success":O.stage==="Negotiation"?"primary":"default",children:O.stage})}),d.jsxs(de,{align:"right",children:[O.probability,"%"]}),d.jsx(de,{children:O.owner}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},O.id))]})]})}),e==="Products"&&d.jsx(he,{children:d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Product"}),d.jsx(me,{children:"SKU"}),d.jsx(me,{align:"right",children:"Price"}),d.jsx(me,{children:"Type"}),d.jsx(me,{children:"Status"}),d.jsx(me,{align:"right"})]})}),d.jsxs(Mn,{children:[m.length===0&&d.jsx(Ve,{children:d.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No products found"})}),m.map(O=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsx("span",{className:"font-medium",children:O.name})}),d.jsx(de,{children:d.jsx("code",{className:"text-xs bg-bg px-2 py-0.5 rounded-md",children:O.sku})}),d.jsx(de,{align:"right",children:_e(O.price)}),d.jsx(de,{children:d.jsx(Ke,{variant:O.recurring?"primary":"default",children:O.recurring?"Recurring":"One-time"})}),d.jsx(de,{children:d.jsx(Ke,{variant:O.active?"success":"danger",children:O.active?"Active":"Inactive"})}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},O.id))]})]})}),e==="MRR"&&d.jsxs(he,{children:[d.jsx(We,{title:"Monthly Recurring Revenue",subtitle:`Current MRR: ${_e(b)}`}),g.length>0?d.jsx("div",{className:"h-[320px]",children:d.jsx(Ph,{width:"100%",height:"100%",children:d.jsxs(tue,{data:g,margin:{top:5,right:5,left:-10,bottom:0},children:[d.jsx(gp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),d.jsx(Ta,{dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),d.jsx(Ea,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:O=>`${(O/1e3).toFixed(0)}k`,dx:-5}),d.jsx(Fn,{content:({active:O,payload:E,label:M})=>!O||!(E!=null&&E.length)?null:d.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[d.jsx("p",{className:"text-xs font-medium text-text-secondary mb-2",children:M}),E.map((k,D)=>d.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[d.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:k.color}}),d.jsxs("span",{className:"text-text-secondary",children:[k.name,":"]}),d.jsx("span",{className:"font-semibold text-text-primary",children:_e(Number(k.value))})]},D))]})}),d.jsx(_a,{dataKey:"mrr",fill:"#2563EB",radius:[4,4,0,0]}),d.jsx(_a,{dataKey:"arr",fill:"#16A34A",radius:[4,4,0,0]})]})})}):d.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No MRR history data available"})]}),e==="ARR"&&d.jsxs(he,{children:[d.jsx(We,{title:"Annual Recurring Revenue",subtitle:"ARR growth by quarter"}),S.length>0?d.jsx("div",{className:"h-[320px]",children:d.jsx(Ph,{width:"100%",height:"100%",children:d.jsxs(eue,{data:S,margin:{top:5,right:5,left:-10,bottom:0},children:[d.jsx(gp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),d.jsx(Ta,{dataKey:"quarter",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),d.jsx(Ea,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:O=>`${(O/1e3).toFixed(0)}k`,dx:-5}),d.jsx(Fn,{content:({active:O,payload:E,label:M})=>!O||!(E!=null&&E.length)?null:d.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[d.jsx("p",{className:"text-xs font-medium text-text-secondary mb-1",children:M}),d.jsx("p",{className:"text-sm font-semibold text-text-primary",children:_e(Number(E[0].value))})]})}),d.jsx(lf,{type:"monotone",dataKey:"arr",stroke:"#2563EB",strokeWidth:2,dot:{r:4,strokeWidth:0,fill:"#2563EB"},activeDot:{r:6}})]})})}):d.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No ARR history data available"})]})]})}const Tue=["Balance","Income","MOMS","Accounts","Invoices","Cashflow"],Gk=["#2563EB","#16A34A","#D97706","#DC2626","#9CA3AF"];function Eue(){var M,k;const[e,t]=P.useState("Balance"),[n,r]=P.useState(""),[a,o]=P.useState(!0),[l,c]=P.useState(""),[f,h]=P.useState(null),[m,y]=P.useState(null),[g,j]=P.useState(null),[S,w]=P.useState([]),[b,A]=P.useState([]),[_,T]=P.useState(null);P.useEffect(()=>{async function D(){o(!0),c("");try{const[B,I,$,G,X,Y]=await Promise.all([is.balance(),is.income(),is.moms(),is.accounts(),is.invoices(),is.cashflow()]);h(B),y(I),j($),w(G.accounts||[]),A(X.invoices||[]),T(Y)}catch(B){c(B instanceof Error?B.message:"Failed to load finance data")}finally{o(!1)}}D()},[]);const C=S.filter(D=>D.name.toLowerCase().includes(n.toLowerCase())||D.id.toLowerCase().includes(n.toLowerCase())),O=b.filter(D=>D.customer.toLowerCase().includes(n.toLowerCase())||D.id.toLowerCase().includes(n.toLowerCase())),E=(m==null?void 0:m.expenses.map((D,B)=>({name:D.account,value:D.amount,color:Gk[B%Gk.length]})))||[];return a?d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"})]}),d.jsx(et,{className:"h-[400px]"})]}):l?d.jsx("div",{className:"flex items-center justify-center h-64",children:d.jsx("p",{className:"text-danger",children:l})}):d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Finance"}),d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Financial reports and accounting"})]}),d.jsx(Yt,{icon:d.jsx(Mi,{size:16}),children:"New Invoice"})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(s4,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:_e((f==null?void 0:f.total_assets)||0)}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Total Assets"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:d.jsx(Kr,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:_e((m==null?void 0:m.total_revenue)||0)}),d.jsx("p",{className:"text-xs text-text-secondary",children:"YTD Revenue"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:d.jsx(XS,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:_e((m==null?void 0:m.total_expenses)||0)}),d.jsx("p",{className:"text-xs text-text-secondary",children:"YTD Expenses"})]})]})})]}),d.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[d.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto max-w-full",children:Tue.map(D=>d.jsx("button",{onClick:()=>t(D),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap ${e===D?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:D},D))}),d.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[d.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[d.jsx(Ns,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:D=>r(D.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),d.jsx(Yt,{variant:"secondary",size:"sm",icon:d.jsx(Qc,{size:14}),children:"Filter"})]})]}),e==="Balance"&&d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[d.jsxs(he,{children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsx("span",{className:"text-sm text-text-secondary",children:"Assets"}),d.jsx(P1,{size:14,className:"text-success"})]}),d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:_e((f==null?void 0:f.total_assets)||0)})]}),d.jsxs(he,{children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsx("span",{className:"text-sm text-text-secondary",children:"Liabilities"}),d.jsx(Q9,{size:14,className:"text-danger"})]}),d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:_e((f==null?void 0:f.total_liabilities)||0)})]}),d.jsxs(he,{children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsx("span",{className:"text-sm text-text-secondary",children:"Equity"}),d.jsx(P1,{size:14,className:"text-success"})]}),d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:_e((f==null?void 0:f.total_equity)||0)})]})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Balance Sheet",subtitle:`Period: ${(f==null?void 0:f.period)||""}`}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{children:[d.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Assets"}),d.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.assets.map((D,B)=>d.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[d.jsx("div",{children:d.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),d.jsx("p",{className:"text-sm font-medium text-text-primary",children:_e(D.amount)})]},B)),(!(f!=null&&f.assets)||f.assets.length===0)&&d.jsx("p",{className:"text-text-secondary text-sm",children:"No asset accounts"})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Liabilities"}),d.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.liabilities.map((D,B)=>d.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[d.jsx("div",{children:d.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),d.jsx("p",{className:"text-sm font-medium text-text-primary",children:_e(D.amount)})]},B)),(!(f!=null&&f.liabilities)||f.liabilities.length===0)&&d.jsx("p",{className:"text-text-secondary text-sm",children:"No liability accounts"})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Equity"}),d.jsxs("div",{className:"space-y-2",children:[(M=f==null?void 0:f.equity)==null?void 0:M.map((D,B)=>d.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[d.jsx("div",{children:d.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),d.jsx("p",{className:"text-sm font-medium text-text-primary",children:_e(D.amount)})]},B)),(!(f!=null&&f.equity)||((k=f.equity)==null?void 0:k.length)===0)&&d.jsx("p",{className:"text-text-secondary text-sm",children:"No equity accounts"})]})]})]})]})]}),e==="Income"&&d.jsx("div",{className:"space-y-6",children:d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[d.jsxs(he,{className:"lg:col-span-2",children:[d.jsx(We,{title:"Income Statement",subtitle:`Period: ${(m==null?void 0:m.period)||""}`}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Revenue"}),d.jsx("p",{className:"text-lg font-semibold text-text-primary",children:_e((m==null?void 0:m.total_revenue)||0)})]}),d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Expenses"}),d.jsx("p",{className:"text-lg font-semibold text-text-primary",children:_e((m==null?void 0:m.total_expenses)||0)})]}),d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Net Income"}),d.jsx("p",{className:"text-lg font-semibold text-success",children:_e((m==null?void 0:m.net_income)||0)})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("h4",{className:"text-sm font-semibold text-text-primary",children:"Revenue Accounts"}),m==null?void 0:m.revenue.map((D,B)=>d.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[d.jsx("p",{className:"text-sm text-text-primary",children:D.account}),d.jsx("p",{className:"text-sm font-medium text-text-primary",children:_e(D.amount)})]},B))]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("h4",{className:"text-sm font-semibold text-text-primary",children:"Expense Accounts"}),m==null?void 0:m.expenses.map((D,B)=>d.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[d.jsx("p",{className:"text-sm text-text-primary",children:D.account}),d.jsx("p",{className:"text-sm font-medium text-text-primary",children:_e(D.amount)})]},B))]})]})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Expense Breakdown",subtitle:"By category"}),E.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"h-[220px]",children:d.jsx(Ph,{width:"100%",height:"100%",children:d.jsxs(nue,{children:[d.jsx(Bi,{data:E,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:4,dataKey:"value",children:E.map((D,B)=>d.jsx(Gp,{fill:D.color},`cell-${B}`))}),d.jsx(Fn,{content:({active:D,payload:B})=>{if(!D||!(B!=null&&B.length))return null;const I=B[0].payload;return d.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-3 py-2",children:[d.jsx("p",{className:"text-sm font-medium text-text-primary",children:I.name}),d.jsx("p",{className:"text-xs text-text-secondary",children:_e(I.value)})]})}})]})})}),d.jsx("div",{className:"space-y-2 mt-2",children:E.map(D=>d.jsxs("div",{className:"flex items-center justify-between text-sm",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:D.color}}),d.jsx("span",{className:"text-text-secondary",children:D.name})]}),d.jsx("span",{className:"font-medium text-text-primary",children:_e(D.value)})]},D.name))})]}):d.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No expense data"})]})]})}),e==="MOMS"&&d.jsxs(he,{children:[d.jsx(We,{title:"MOMS Report",subtitle:`Period: ${(g==null?void 0:g.period)||""}`}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-6",children:[d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS In (Input VAT)"}),d.jsx("p",{className:"text-lg font-semibold text-text-primary",children:_e((g==null?void 0:g.moms_in)||0)})]}),d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS Ut (Output VAT)"}),d.jsx("p",{className:"text-lg font-semibold text-text-primary",children:_e((g==null?void 0:g.moms_ut)||0)})]}),d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS att betala"}),d.jsx("p",{className:"text-lg font-semibold text-success",children:_e((g==null?void 0:g.moms_att_betala)||0)})]})]})]}),e==="Accounts"&&d.jsxs(he,{children:[d.jsx(We,{title:"Chart of Accounts",subtitle:"General ledger accounts"}),d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Account"}),d.jsx(me,{children:"Number"}),d.jsx(me,{children:"Type"}),d.jsx(me,{align:"right",children:"Balance"}),d.jsx(me,{align:"right"})]})}),d.jsxs(Mn,{children:[C.map(D=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsx("span",{className:"font-medium",children:D.name})}),d.jsx(de,{children:d.jsx("code",{className:"text-xs bg-bg px-2 py-0.5 rounded-md",children:D.id})}),d.jsx(de,{children:d.jsx(Ke,{variant:D.type==="asset"?"success":D.type==="equity"?"primary":"warning",children:D.type})}),d.jsx(de,{align:"right",children:_e(D.balance)}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},D.id)),C.length===0&&d.jsx(Ve,{children:d.jsx(de,{colSpan:5,className:"text-center text-text-secondary py-8",children:"No accounts found"})})]})]})]}),e==="Invoices"&&d.jsxs(he,{children:[d.jsx(We,{title:"Invoices",subtitle:"All invoices"}),d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Number"}),d.jsx(me,{children:"Customer"}),d.jsx(me,{align:"right",children:"Amount"}),d.jsx(me,{children:"Status"}),d.jsx(me,{children:"Due Date"}),d.jsx(me,{align:"right"})]})}),d.jsxs(Mn,{children:[O.map(D=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsx("span",{className:"font-medium",children:D.id})}),d.jsx(de,{children:D.customer}),d.jsx(de,{align:"right",children:_e(D.amount)}),d.jsx(de,{children:d.jsx(Ke,{variant:D.status==="paid"?"success":D.status==="overdue"?"danger":D.status==="sent"||D.status==="pending"?"primary":"default",children:D.status})}),d.jsx(de,{children:mr(D.due_date)}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},D.id)),O.length===0&&d.jsx(Ve,{children:d.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No invoices found"})})]})]})]}),e==="Cashflow"&&d.jsxs(he,{children:[d.jsx(We,{title:"Cash Flow",subtitle:`Period: ${(_==null?void 0:_.period)||""}`}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-6",children:[d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Inflow"}),d.jsx("p",{className:"text-lg font-semibold text-success",children:_e((_==null?void 0:_.inflow)||0)})]}),d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Outflow"}),d.jsx("p",{className:"text-lg font-semibold text-danger",children:_e((_==null?void 0:_.outflow)||0)})]}),d.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[d.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Net"}),d.jsx("p",{className:"text-lg font-semibold text-text-primary",children:_e((_==null?void 0:_.net)||0)})]})]})]})]})}const Nue=["Employees","Leaves"],Cue={Sales:"primary",Engineering:"success",Finance:"warning",HR:"primary",Legal:"default"};function Mue(){const[e,t]=P.useState("Employees"),[n,r]=P.useState(""),[a,o]=P.useState(!0),[l,c]=P.useState(""),[f,h]=P.useState([]),[m,y]=P.useState([]);P.useEffect(()=>{async function A(){o(!0),c("");try{const[_,T]=await Promise.all([GE.employees(),GE.leaves()]);h(_.employees||[]),y(T.leaves||[])}catch(_){c(_ instanceof Error?_.message:"Failed to load HR data")}finally{o(!1)}}A()},[]);const g=f.filter(A=>A.status==="active").length,j=f.filter(A=>A.status==="on_leave").length,S=m.filter(A=>A.status==="pending").length,w=f.filter(A=>(A.name||`${A.first_name} ${A.last_name}`).toLowerCase().includes(n.toLowerCase())||A.department.toLowerCase().includes(n.toLowerCase())||(A.role||A.position).toLowerCase().includes(n.toLowerCase())),b=m.filter(A=>A.employeeName.toLowerCase().includes(n.toLowerCase())||A.type.toLowerCase().includes(n.toLowerCase()));return a?d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"})]}),d.jsx(et,{className:"h-[400px]"})]}):l?d.jsx("div",{className:"flex items-center justify-center h-64",children:d.jsx("p",{className:"text-danger",children:l})}):d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"HR"}),d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Employees and leave management"})]}),d.jsx(Yt,{icon:d.jsx(Mi,{size:16}),children:"Add Employee"})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(Oa,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:g}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Active Employees"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:d.jsx(Uo,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:j}),d.jsx("p",{className:"text-xs text-text-secondary",children:"On Leave"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:d.jsx(eH,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:S}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Pending Requests"})]})]})})]}),d.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[d.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:Nue.map(A=>d.jsx("button",{onClick:()=>t(A),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===A?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:A},A))}),d.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[d.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[d.jsx(Ns,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:A=>r(A.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),d.jsx(Yt,{variant:"secondary",size:"sm",icon:d.jsx(Qc,{size:14}),children:"Filter"})]})]}),e==="Employees"&&d.jsx(he,{children:d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Employee"}),d.jsx(me,{children:"Department"}),d.jsx(me,{children:"Role"}),d.jsx(me,{children:"Status"}),d.jsx(me,{children:"Start Date"}),d.jsx(me,{align:"right"})]})}),d.jsxs(Mn,{children:[w.map(A=>{const _=A.name||`${A.first_name} ${A.last_name}`,T=A.role||A.position,C=A.startDate||A.start_date;return d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:_.split(" ").map(O=>O[0]).join("")}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium text-text-primary",children:_}),d.jsx("p",{className:"text-xs text-text-secondary",children:A.email})]})]})}),d.jsx(de,{children:d.jsx(Ke,{variant:Cue[A.department]||"default",children:A.department})}),d.jsx(de,{children:T}),d.jsx(de,{children:d.jsx(Ke,{variant:A.status==="active"?"success":A.status==="on_leave"?"warning":"danger",children:A.status.replace("_"," ")})}),d.jsx(de,{children:mr(C||"")}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},A.id)}),w.length===0&&d.jsx(Ve,{children:d.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No employees found"})})]})]})}),e==="Leaves"&&d.jsx(he,{children:d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Employee"}),d.jsx(me,{children:"Type"}),d.jsx(me,{children:"Period"}),d.jsx(me,{align:"right",children:"Days"}),d.jsx(me,{children:"Status"}),d.jsx(me,{align:"right"})]})}),d.jsxs(Mn,{children:[b.map(A=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:A.employeeName.split(" ").map(_=>_[0]).join("")}),d.jsx("span",{className:"font-medium text-text-primary",children:A.employeeName})]})}),d.jsx(de,{children:d.jsx(Ke,{variant:A.type==="vacation"?"primary":A.type==="sick"?"warning":"default",children:A.type})}),d.jsx(de,{children:d.jsxs("span",{className:"text-sm text-text-primary",children:[mr(A.startDate)," — ",mr(A.endDate)]})}),d.jsx(de,{align:"right",children:d.jsx("span",{className:"font-medium",children:A.days})}),d.jsx(de,{children:d.jsx(Ke,{variant:A.status==="approved"?"success":A.status==="pending"?"warning":"danger",children:A.status})}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},A.id)),b.length===0&&d.jsx(Ve,{children:d.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No leave requests found"})})]})]})})]})}const Kk={draft:{variant:"default",icon:Uo},pending_signature:{variant:"warning",icon:Uo},active:{variant:"success",icon:Zc},expired:{variant:"danger",icon:ja},terminated:{variant:"default",icon:ja},disputed:{variant:"danger",icon:ja}},Pue={aamos:"primary",quixzoom:"success",legal:"warning",hr:"default"};function Yk(){const[e,t]=P.useState("contracts"),[n,r]=P.useState(""),[a,o]=P.useState(!0),[l,c]=P.useState(""),[f,h]=P.useState([]),[m,y]=P.useState([]),[g,j]=P.useState([]),[S,w]=P.useState(null),[b,A]=P.useState(!1);P.useEffect(()=>{async function O(){o(!0),c("");try{const[E,M,k]=await Promise.all([fetch("/api/v1/legal/contracts").then(D=>D.json()),fetch("/api/v1/legal/templates").then(D=>D.json()),fetch("/api/v1/legal/product-links").then(D=>D.json())]);h(E.contracts||[]),y(M.templates||[]),j(k.links||[])}catch(E){c(E instanceof Error?E.message:"Failed to load legal data")}finally{o(!1)}}O()},[]);const _=f.filter(O=>O.name.toLowerCase().includes(n.toLowerCase())||O.counterparty.toLowerCase().includes(n.toLowerCase())||O.template_type.toLowerCase().includes(n.toLowerCase())),T=m.filter(O=>O.name.toLowerCase().includes(n.toLowerCase())||O.description.toLowerCase().includes(n.toLowerCase())||O.category.toLowerCase().includes(n.toLowerCase()));if(a)return d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-5",children:[d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"}),d.jsx(et,{className:"h-[80px]"})]}),d.jsx(et,{className:"h-[400px]"})]});if(l)return d.jsx("div",{className:"flex items-center justify-center h-64",children:d.jsx("p",{className:"text-danger",children:l})});const C=[{id:"contracts",label:"Avtal",icon:cs},{id:"templates",label:"Mallar",icon:sH},{id:"products",label:"Produktkopplingar",icon:lc}];return d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Legal"}),d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Avtal, mallar och produktkopplingar"})]}),d.jsx(Yt,{icon:d.jsx(Mi,{size:16}),children:"Nytt avtal"})]}),d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-5",children:[d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:d.jsx(cs,{size:20})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold",children:f.length}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Totalt avtal"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-success/10 text-success flex items-center justify-center",children:d.jsx(Zc,{size:20})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="active").length}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Aktiva"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning/10 text-warning flex items-center justify-center",children:d.jsx(Uo,{size:20})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="pending_signature").length}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Väntar signering"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-danger/10 text-danger flex items-center justify-center",children:d.jsx(ja,{size:20})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="expired"||O.status==="terminated").length}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Utgångna"})]})]})})]}),d.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto",children:C.map(O=>d.jsxs("button",{onClick:()=>t(O.id),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap flex items-center gap-2 ${e===O.id?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:[d.jsx(O.icon,{size:16}),O.label]},O.id))}),d.jsxs("div",{className:"relative",children:[d.jsx(Ns,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"text",placeholder:"Sök avtal, mallar eller produkter...",value:n,onChange:O=>r(O.target.value),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]}),e==="contracts"&&d.jsx(he,{children:d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-border",children:[d.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Avtal"}),d.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Motpart"}),d.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Typ"}),d.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Status"}),d.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Värde"}),d.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Period"}),d.jsx("th",{className:"text-right text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3"})]})}),d.jsxs("tbody",{className:"divide-y divide-border",children:[_.map(O=>{const E=Kk[O.status]||Kk.draft;return d.jsxs("tr",{className:"hover:bg-bg transition-colors",children:[d.jsx("td",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center",children:d.jsx(cs,{size:14})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-text-primary",children:O.name}),d.jsx("p",{className:"text-xs text-text-secondary",children:O.template_type})]})]})}),d.jsxs("td",{className:"px-4 py-3",children:[d.jsx("p",{className:"text-sm text-text-primary",children:O.counterparty}),O.counterparty_org&&d.jsx("p",{className:"text-xs text-text-secondary",children:O.counterparty_org})]}),d.jsx("td",{className:"px-4 py-3",children:d.jsx(Ke,{variant:"default",className:"text-xs",children:O.template_type})}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs(Ke,{variant:E.variant,className:"text-xs flex items-center gap-1",children:[d.jsx(E.icon,{size:12}),O.status]})}),d.jsx("td",{className:"px-4 py-3",children:O.value?d.jsxs("p",{className:"text-sm font-medium",children:[_e(O.value)," ",O.currency]}):d.jsx("p",{className:"text-sm text-text-secondary",children:"—"})}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs("p",{className:"text-sm text-text-secondary",children:[O.start_date?mr(O.start_date):"—",O.end_date&&`${mr(O.end_date)}`]})}),d.jsx("td",{className:"px-4 py-3 text-right",children:d.jsxs("div",{className:"flex items-center justify-end gap-1",children:[d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(n4,{size:14})}),d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(LE,{size:14})}),d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:14})})]})})]},O.id)}),_.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"text-center text-text-secondary py-8",children:"Inga avtal hittades"})})]})]})})}),e==="templates"&&d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[T.map(O=>d.jsx("div",{className:"cursor-pointer hover:border-primary transition-colors",onClick:()=>{w(O),A(!0)},children:d.jsx(he,{children:d.jsxs("div",{className:"p-4",children:[d.jsxs("div",{className:"flex items-start justify-between mb-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:d.jsx(cs,{size:20})}),d.jsx(Ke,{variant:Pue[O.category],className:"text-xs",children:O.category})]}),d.jsx("h3",{className:"font-semibold text-text-primary mb-1",children:O.name}),d.jsx("p",{className:"text-sm text-text-secondary mb-3",children:O.description}),d.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-tertiary",children:[d.jsx(ah,{size:12}),O.jurisdiction,d.jsx("span",{className:"mx-1",children:"•"}),d.jsx(sh,{size:12}),"v",O.version,d.jsx("span",{className:"mx-1",children:"•"}),O.sections.length," sektioner"]})]})})},O.id)),T.length===0&&d.jsx("div",{className:"col-span-full text-center text-text-secondary py-8",children:"Inga mallar hittades"})]}),e==="products"&&d.jsx("div",{className:"space-y-6",children:g.map(O=>d.jsx(he,{children:d.jsxs("div",{className:"p-4",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:d.jsx(lc,{size:20})}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-text-primary",children:O.product_name}),d.jsx("p",{className:"text-sm text-text-secondary",children:O.product_type})]})]}),d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-text-secondary uppercase mb-2",children:"Krävs"}),d.jsx("div",{className:"flex flex-wrap gap-2",children:O.required_contracts.map(E=>d.jsx(Ke,{variant:"primary",className:"text-xs",children:E},E))})]}),O.optional_contracts.length>0&&d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-text-secondary uppercase mb-2",children:"Valbart"}),d.jsx("div",{className:"flex flex-wrap gap-2",children:O.optional_contracts.map(E=>d.jsx(Ke,{variant:"default",className:"text-xs",children:E},E))})]})]})]})},O.product_id))}),b&&S&&d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:d.jsx("div",{className:"w-full max-w-3xl max-h-[90vh] overflow-y-auto",children:d.jsx(he,{children:d.jsxs("div",{className:"p-6",children:[d.jsxs("div",{className:"flex items-start justify-between mb-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-xl font-semibold",children:S.name}),d.jsx("p",{className:"text-text-secondary",children:S.description})]}),d.jsx("button",{onClick:()=>A(!1),className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:"✕"})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Kategori"}),d.jsx("p",{className:"font-medium",children:S.category})]}),d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Jurisdiktion"}),d.jsx("p",{className:"font-medium",children:S.jurisdiction})]}),d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Språk"}),d.jsx("p",{className:"font-medium",children:S.language})]}),d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Version"}),d.jsx("p",{className:"font-medium",children:S.version})]})]}),d.jsx("h3",{className:"font-semibold mb-3",children:"Avtalssektioner"}),d.jsx("div",{className:"space-y-2 mb-6",children:S.sections.map(O=>d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsxs("span",{className:"text-xs text-text-tertiary",children:[O.order,"."]}),d.jsx("p",{className:"font-medium text-sm",children:O.title}),O.required&&d.jsx(Ke,{variant:"danger",className:"text-xs",children:"Krävs"})]}),d.jsx("p",{className:"text-sm text-text-secondary",children:O.content}),O.variables&&O.variables.length>0&&d.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:O.variables.map(E=>d.jsx("code",{className:"text-xs bg-primary/10 text-primary px-2 py-0.5 rounded",children:"{{"+E+"}}"},E))})]},O.id))}),d.jsx("h3",{className:"font-semibold mb-3",children:"Standardvillkor"}),d.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-6",children:[d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Betalningsvillkor"}),d.jsx("p",{className:"text-sm",children:S.default_terms.payment_terms})]}),d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Valuta"}),d.jsx("p",{className:"text-sm",children:S.default_terms.currency})]}),d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Avtalsperiod"}),d.jsx("p",{className:"text-sm",children:S.default_terms.contract_period})]}),d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Uppsägningstid"}),d.jsx("p",{className:"text-sm",children:S.default_terms.notice_period})]}),d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"Auto-förnyelse"}),d.jsx("p",{className:"text-sm",children:S.default_terms.auto_renewal?"Ja":"Nej"})]}),d.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[d.jsx("p",{className:"text-xs text-text-secondary",children:"SLA"}),d.jsx("p",{className:"text-sm",children:S.default_terms.sla_enabled?`${S.default_terms.sla_uptime}% uptime`:"Ej aktiverat"})]})]}),d.jsxs("div",{className:"flex gap-3",children:[d.jsxs(Yt,{className:"flex-1",children:[d.jsx(Mi,{size:16,className:"mr-2"}),"Skapa avtal från mall"]}),d.jsxs(Yt,{variant:"secondary",children:[d.jsx(LE,{size:16,className:"mr-2"}),"Förhandsgranska"]})]})]})})})})]})}const Rue=[{id:"1",name:"Q4 Product Launch",status:"active",channel:"Email",reach:12500,engagement:8.2,conversions:340},{id:"2",name:"Holiday Special",status:"scheduled",channel:"Social",reach:0,engagement:0,conversions:0},{id:"3",name:"Customer Retention",status:"active",channel:"Email",reach:8400,engagement:12.5,conversions:520},{id:"4",name:"Partner Webinar",status:"completed",channel:"Webinar",reach:3200,engagement:45,conversions:180}];function Due(){return d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Marketing"}),d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Campaigns and marketing metrics"})]}),d.jsx(Yt,{icon:d.jsx(Mi,{size:16}),children:"New Campaign"})]}),d.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(i4,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"4"}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Campaigns"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:d.jsx(Oa,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"24.1K"}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Total Reach"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:d.jsx(a4,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"10.4%"}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Avg. Engagement"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(Kr,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"1,040"}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Conversions"})]})]})})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Campaigns",subtitle:"Active and recent marketing campaigns"}),d.jsx("div",{className:"space-y-4",children:Rue.map(e=>d.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-bg/50 hover:bg-bg transition-colors",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:e.channel==="Email"?d.jsx(js,{size:18}):d.jsx(nH,{size:18})}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"font-medium text-text-primary",children:e.name}),d.jsx(Ke,{variant:e.status==="active"?"success":e.status==="scheduled"?"primary":"default",size:"sm",children:e.status})]}),d.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.channel})]})]}),d.jsxs("div",{className:"flex items-center gap-8 text-right",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.reach>0?e.reach.toLocaleString():"—"}),d.jsx("p",{className:"text-[11px] text-text-secondary",children:"Reach"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.engagement>0?`${e.engagement}%`:"—"}),d.jsx("p",{className:"text-[11px] text-text-secondary",children:"Engagement"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.conversions>0?e.conversions.toLocaleString():"—"}),d.jsx("p",{className:"text-[11px] text-text-secondary",children:"Conversions"})]})]})]},e.id))})]})]})}const $u=[{id:"SUP-2024-001",subject:"Login issues after password reset",customer:"Acme Corp",priority:"high",status:"open",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*30).toISOString()},{id:"SUP-2024-002",subject:"API rate limit questions",customer:"Nordic Solutions",priority:"medium",status:"in_progress",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*120).toISOString()},{id:"SUP-2024-003",subject:"Feature request: bulk export",customer:"TechStart AB",priority:"low",status:"open",assigned:"Unassigned",created:new Date(Date.now()-1e3*60*60*4).toISOString()},{id:"SUP-2024-004",subject:"Billing discrepancy on invoice #89",customer:"Global Industries",priority:"high",status:"in_progress",assigned:"Elena Rossi",created:new Date(Date.now()-1e3*60*60*6).toISOString()},{id:"SUP-2024-005",subject:"Integration documentation outdated",customer:"ScandiTech",priority:"medium",status:"resolved",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*60*24).toISOString()},{id:"SUP-2024-006",subject:"Mobile app crash on iOS",customer:"MegaCorp",priority:"high",status:"open",assigned:"Unassigned",created:new Date(Date.now()-1e3*60*60*2).toISOString()}],kue=["All","Open","In Progress","Resolved"];function Lue(){const[e,t]=P.useState("All"),[n,r]=P.useState(""),a=$u.filter(f=>f.status==="open").length,o=$u.filter(f=>f.status==="in_progress").length,l=$u.filter(f=>f.status==="resolved").length,c=$u.filter(f=>{const h=f.subject.toLowerCase().includes(n.toLowerCase())||f.customer.toLowerCase().includes(n.toLowerCase())||f.id.toLowerCase().includes(n.toLowerCase()),m=e==="All"||f.status===e.toLowerCase().replace(" ","_");return h&&m});return d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Support"}),d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Customer support tickets"})]}),d.jsx(Yt,{icon:d.jsx(Mi,{size:16}),children:"New Ticket"})]}),d.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(r4,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:$u.length}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Total Tickets"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:d.jsx(YS,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:a}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Open"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(Uo,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:o}),d.jsx("p",{className:"text-xs text-text-secondary",children:"In Progress"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:d.jsx(Zc,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:l}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Resolved"})]})]})})]}),d.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[d.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:kue.map(f=>d.jsx("button",{onClick:()=>t(f),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===f?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:f},f))}),d.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[d.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[d.jsx(Ns,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),d.jsx("input",{type:"text",placeholder:"Search tickets...",value:n,onChange:f=>r(f.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),d.jsx(Yt,{variant:"secondary",size:"sm",icon:d.jsx(Qc,{size:14}),children:"Filter"})]})]}),d.jsx(he,{children:d.jsxs(Cn,{children:[d.jsx(bt,{children:d.jsxs(Ve,{children:[d.jsx(me,{children:"Ticket"}),d.jsx(me,{children:"Subject"}),d.jsx(me,{children:"Customer"}),d.jsx(me,{children:"Priority"}),d.jsx(me,{children:"Status"}),d.jsx(me,{children:"Assigned"}),d.jsx(me,{children:"Created"}),d.jsx(me,{align:"right"})]})}),d.jsx(Mn,{children:c.map(f=>d.jsxs(Ve,{children:[d.jsx(de,{children:d.jsx("span",{className:"font-medium text-sm",children:f.id})}),d.jsx(de,{children:d.jsx("span",{className:"text-sm text-text-primary",children:f.subject})}),d.jsx(de,{children:f.customer}),d.jsx(de,{children:d.jsx(Ke,{variant:f.priority==="high"?"danger":f.priority==="medium"?"warning":"default",size:"sm",children:f.priority})}),d.jsx(de,{children:d.jsx(Ke,{variant:f.status==="resolved"?"success":f.status==="in_progress"?"primary":"warning",size:"sm",children:f.status.replace("_"," ")})}),d.jsx(de,{children:f.assigned}),d.jsx(de,{children:d.jsx("span",{className:"text-xs text-text-secondary",children:ZS(f.created)})}),d.jsx(de,{align:"right",children:d.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:d.jsx(Qr,{size:16})})})]},f.id))})]})})]})}const Bu=[{id:"1",name:"New Lead Notification",description:"Send Slack notification when a new lead is created",status:"active",trigger:"Lead Created",actions:["Send Email","Slack Message"],lastRun:"2 min ago",runs:1240},{id:"2",name:"Invoice Reminder",description:"Send reminder 3 days before invoice due date",status:"active",trigger:"Schedule",actions:["Send Email"],lastRun:"1 hour ago",runs:856},{id:"3",name:"Customer Onboarding",description:"Welcome email series for new customers",status:"active",trigger:"Customer Created",actions:["Send Email","Create Task","Add to CRM"],lastRun:"15 min ago",runs:342},{id:"4",name:"Deal Stage Alert",description:"Notify sales team when deal reaches negotiation",status:"paused",trigger:"Deal Updated",actions:["Send Email","Slack Message"],lastRun:"3 days ago",runs:89},{id:"5",name:"Employee Offboarding",description:"Automated offboarding checklist",status:"active",trigger:"Employee Terminated",actions:["Create Task","Send Email","Update HR"],lastRun:"1 week ago",runs:12}],zue={"Send Email":d.jsx(js,{size:12}),"Slack Message":d.jsx(pH,{size:12}),"Create Task":d.jsx(cs,{size:12}),"Add to CRM":d.jsx(D1,{size:12}),"Update HR":d.jsx(D1,{size:12})};function $ue(){const e=Bu.filter(n=>n.status==="active").length,t=Bu.reduce((n,r)=>n+r.runs,0);return d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Automation"}),d.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Workflows and automated tasks"})]}),d.jsx(Yt,{icon:d.jsx(Mi,{size:16}),children:"New Workflow"})]}),d.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(o4,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Bu.length}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Workflows"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:d.jsx(qE,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:e}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Active"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:d.jsx($E,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Bu.length-e}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Paused"})]})]})}),d.jsx(he,{padding:"md",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:d.jsx(Zc,{size:18})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:t.toLocaleString()}),d.jsx("p",{className:"text-xs text-text-secondary",children:"Total Runs"})]})]})})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Workflows",subtitle:"Automated processes and triggers"}),d.jsx("div",{className:"space-y-3",children:Bu.map(n=>d.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-bg/50 hover:bg-bg transition-colors",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center ${n.status==="active"?"bg-success-light text-success":"bg-warning-light text-warning"}`,children:n.status==="active"?d.jsx(qE,{size:18}):d.jsx($E,{size:18})}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"font-medium text-text-primary",children:n.name}),d.jsx(Ke,{variant:n.status==="active"?"success":"warning",size:"sm",children:n.status})]}),d.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:n.description}),d.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx(uH,{size:12,className:"text-text-secondary/60"}),d.jsx("span",{className:"text-[11px] text-text-secondary",children:n.trigger})]}),d.jsx("div",{className:"flex items-center gap-1",children:n.actions.map((r,a)=>d.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 bg-bg rounded text-[10px] text-text-secondary",children:[zue[r],r]},a))})]})]})]}),d.jsxs("div",{className:"flex items-center gap-6 text-right",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-text-primary",children:n.runs.toLocaleString()}),d.jsx("p",{className:"text-[11px] text-text-secondary",children:"runs"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-text-primary",children:n.lastRun}),d.jsx("p",{className:"text-[11px] text-text-secondary",children:"last run"})]}),d.jsx("div",{className:"flex items-center",children:d.jsx("div",{className:"w-9 h-5 rounded-full bg-success/20 relative cursor-pointer",children:d.jsx("div",{className:"absolute right-0.5 top-0.5 w-4 h-4 rounded-full bg-success"})})})]})]},n.id))})]})]})}function Bue({children:e}){const{isAuthenticated:t}=Gc();return t?d.jsx(d.Fragment,{children:e}):d.jsx(dS,{to:"/login",replace:!0})}function que({children:e}){const{isAuthenticated:t}=Gc();return t?d.jsx(dS,{to:"/",replace:!0}):d.jsx(d.Fragment,{children:e})}function Iue(){return d.jsxs(hq,{children:[d.jsx(hn,{path:"/login",element:d.jsx(que,{children:d.jsx(uF,{})})}),d.jsxs(hn,{element:d.jsx(Bue,{children:d.jsx(sF,{})}),children:[d.jsx(hn,{path:"/",element:d.jsx(jue,{})}),d.jsx(hn,{path:"/dashboard",element:d.jsx(pue,{})}),d.jsx(hn,{path:"/crm",element:d.jsx(Aue,{})}),d.jsx(hn,{path:"/sales",element:d.jsx(_ue,{})}),d.jsx(hn,{path:"/finance",element:d.jsx(Eue,{})}),d.jsx(hn,{path:"/hr",element:d.jsx(Mue,{})}),d.jsx(hn,{path:"/legal",element:d.jsx(Yk,{})}),d.jsx(hn,{path:"/marketing",element:d.jsx(Due,{})}),d.jsx(hn,{path:"/support",element:d.jsx(Lue,{})}),d.jsx(hn,{path:"/automation",element:d.jsx($ue,{})}),d.jsx(hn,{path:"/legal",element:d.jsx(Yk,{})}),d.jsx(hn,{path:"/profile",element:d.jsx(Sue,{})})]}),d.jsx(hn,{path:"*",element:d.jsx(dS,{to:"/",replace:!0})})]})}f8.createRoot(document.getElementById("root")).render(d.jsx(P.StrictMode,{children:d.jsx(zq,{children:d.jsx(Iue,{})})}));