f793fc46a4
- Add Income Statement section with Revenue and Expenses tables - Color-code revenue (green) and expenses (red) - Show Net Income prominently at bottom - Fix SQL query to use LOWER() for case-insensitive matching - Update account types in DB (asset/liability/revenue/expense/equity) - Balance Sheet and Income Statement now work correctly
456 lines
946 KiB
JavaScript
456 lines
946 KiB
JavaScript
(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:{}},ju={};/**
|
||
* @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 eT;function e8(){if(eT)return ju;eT=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 ju.Fragment=t,ju.jsx=n,ju.jsxs=n,ju}var tT;function t8(){return tT||(tT=1,Ev.exports=e8()),Ev.exports}var d=t8(),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 nT;function n8(){if(nT)return Me;nT=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 S($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@iterator"],typeof $=="function"?$:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function A($,H,ie){this.props=$,this.context=H,this.refs=b,this.updater=ie||j}A.prototype.isReactComponent={},A.prototype.setState=function($,H){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,H,"setState")},A.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function _(){}_.prototype=A.prototype;function T($,H,ie){this.props=$,this.context=H,this.refs=b,this.updater=ie||j}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($,H,ie){var fe=ie.ref;return{$$typeof:e,type:$,key:H,ref:fe!==void 0?fe:null,props:ie}}function L($,H){return D($.type,H,$.props)}function I($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function B($){var H={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(ie){return H[ie]})}var F=/\/+/g;function X($,H){return typeof $=="object"&&$!==null&&$.key!=null?B(""+$.key):H.toString(36)}function G($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(E,E):($.status="pending",$.then(function(H){$.status==="pending"&&($.status="fulfilled",$.value=H)},function(H){$.status==="pending"&&($.status="rejected",$.reason=H)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function z($,H,ie,fe,ge){var we=typeof $;(we==="undefined"||we==="boolean")&&($=null);var ze=!1;if($===null)ze=!0;else switch(we){case"bigint":case"string":case"number":ze=!0;break;case"object":switch($.$$typeof){case e:case t:ze=!0;break;case m:return ze=$._init,z(ze($._payload),H,ie,fe,ge)}}if(ze)return ge=ge($),ze=fe===""?"."+X($,0):fe,O(ge)?(ie="",ze!=null&&(ie=ze.replace(F,"$&/")+"/"),z(ge,H,ie,"",function(Ee){return Ee})):ge!=null&&(I(ge)&&(ge=L(ge,ie+(ge.key==null||$&&$.key===ge.key?"":(""+ge.key).replace(F,"$&/")+"/")+ze)),H.push(ge)),1;ze=0;var Ze=fe===""?".":fe+":";if(O($))for(var ce=0;ce<$.length;ce++)fe=$[ce],we=Ze+X(fe,ce),ze+=z(fe,H,ie,we,ge);else if(ce=S($),typeof ce=="function")for($=ce.call($),ce=0;!(fe=$.next()).done;)fe=fe.value,we=Ze+X(fe,ce++),ze+=z(fe,H,ie,we,ge);else if(we==="object"){if(typeof $.then=="function")return z(G($),H,ie,fe,ge);throw H=String($),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ze}function K($,H,ie){if($==null)return $;var fe=[],ge=0;return z($,fe,"","",function(we){return H.call(ie,we,ge++)}),fe}function Q($){if($._status===-1){var H=$._result;H=H(),H.then(function(ie){($._status===0||$._status===-1)&&($._status=1,$._result=ie)},function(ie){($._status===0||$._status===-1)&&($._status=2,$._result=ie)}),$._status===-1&&($._status=0,$._result=H)}if($._status===1)return $._result.default;throw $._result}var re=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},oe={map:K,forEach:function($,H,ie){K($,function(){H.apply(this,arguments)},ie)},count:function($){var H=0;return K($,function(){H++}),H},toArray:function($){return K($,function(H){return H})||[]},only:function($){if(!I($))throw Error("React.Children.only expected to receive a single React element child.");return $}};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($){return M.H.useMemoCache($)}},Me.cache=function($){return function(){return $.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function($,H,ie){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var fe=w({},$.props),ge=$.key;if(H!=null)for(we in H.key!==void 0&&(ge=""+H.key),H)!k.call(H,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&H.ref===void 0||(fe[we]=H[we]);var we=arguments.length-2;if(we===1)fe.children=ie;else if(1<we){for(var ze=Array(we),Ze=0;Ze<we;Ze++)ze[Ze]=arguments[Ze+2];fe.children=ze}return D($.type,ge,fe)},Me.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:o,_context:$},$},Me.createElement=function($,H,ie){var fe,ge={},we=null;if(H!=null)for(fe in H.key!==void 0&&(we=""+H.key),H)k.call(H,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(ge[fe]=H[fe]);var ze=arguments.length-2;if(ze===1)ge.children=ie;else if(1<ze){for(var Ze=Array(ze),ce=0;ce<ze;ce++)Ze[ce]=arguments[ce+2];ge.children=Ze}if($&&$.defaultProps)for(fe in ze=$.defaultProps,ze)ge[fe]===void 0&&(ge[fe]=ze[fe]);return D($,we,ge)},Me.createRef=function(){return{current:null}},Me.forwardRef=function($){return{$$typeof:c,render:$}},Me.isValidElement=I,Me.lazy=function($){return{$$typeof:m,_payload:{_status:-1,_result:$},_init:Q}},Me.memo=function($,H){return{$$typeof:h,type:$,compare:H===void 0?null:H}},Me.startTransition=function($){var H=M.T,ie={};M.T=ie;try{var fe=$(),ge=M.S;ge!==null&&ge(ie,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(E,re)}catch(we){re(we)}finally{H!==null&&ie.types!==null&&(H.types=ie.types),M.T=H}},Me.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Me.use=function($){return M.H.use($)},Me.useActionState=function($,H,ie){return M.H.useActionState($,H,ie)},Me.useCallback=function($,H){return M.H.useCallback($,H)},Me.useContext=function($){return M.H.useContext($)},Me.useDebugValue=function(){},Me.useDeferredValue=function($,H){return M.H.useDeferredValue($,H)},Me.useEffect=function($,H){return M.H.useEffect($,H)},Me.useEffectEvent=function($){return M.H.useEffectEvent($)},Me.useId=function(){return M.H.useId()},Me.useImperativeHandle=function($,H,ie){return M.H.useImperativeHandle($,H,ie)},Me.useInsertionEffect=function($,H){return M.H.useInsertionEffect($,H)},Me.useLayoutEffect=function($,H){return M.H.useLayoutEffect($,H)},Me.useMemo=function($,H){return M.H.useMemo($,H)},Me.useOptimistic=function($,H){return M.H.useOptimistic($,H)},Me.useReducer=function($,H,ie){return M.H.useReducer($,H,ie)},Me.useRef=function($){return M.H.useRef($)},Me.useState=function($){return M.H.useState($)},Me.useSyncExternalStore=function($,H,ie){return M.H.useSyncExternalStore($,H,ie)},Me.useTransition=function(){return M.H.useTransition()},Me.version="19.2.7",Me}var rT;function aj(){return rT||(rT=1,Nv.exports=n8()),Nv.exports}var P=aj();const q=it(P);var Cv={exports:{}},wu={},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 iT;function r8(){return iT||(iT=1,(function(e){function t(z,K){var Q=z.length;z.push(K);e:for(;0<Q;){var re=Q-1>>>1,oe=z[re];if(0<a(oe,K))z[re]=K,z[Q]=oe,Q=re;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var K=z[0],Q=z.pop();if(Q!==K){z[0]=Q;e:for(var re=0,oe=z.length,$=oe>>>1;re<$;){var H=2*(re+1)-1,ie=z[H],fe=H+1,ge=z[fe];if(0>a(ie,Q))fe<oe&&0>a(ge,ie)?(z[re]=ge,z[fe]=Q,re=fe):(z[re]=ie,z[H]=Q,re=H);else if(fe<oe&&0>a(ge,Q))z[re]=ge,z[fe]=Q,re=fe;else break e}}return K}function a(z,K){var Q=z.sortIndex-K.sortIndex;return Q!==0?Q:z.id-K.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,S=!1,j=!1,w=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(z){for(var K=n(h);K!==null;){if(K.callback===null)r(h);else if(K.startTime<=z)r(h),K.sortIndex=K.expirationTime,t(f,K);else break;K=n(h)}}function O(z){if(w=!1,C(z),!j)if(n(f)!==null)j=!0,E||(E=!0,B());else{var K=n(h);K!==null&&G(O,K.startTime-z)}}var E=!1,M=-1,k=5,D=-1;function L(){return b?!0:!(e.unstable_now()-D<k)}function I(){if(b=!1,E){var z=e.unstable_now();D=z;var K=!0;try{e:{j=!1,w&&(w=!1,_(M),M=-1),S=!0;var Q=g;try{t:{for(C(z),y=n(f);y!==null&&!(y.expirationTime>z&&L());){var re=y.callback;if(typeof re=="function"){y.callback=null,g=y.priorityLevel;var oe=re(y.expirationTime<=z);if(z=e.unstable_now(),typeof oe=="function"){y.callback=oe,C(z),K=!0;break t}y===n(f)&&r(f),C(z)}else r(f);y=n(f)}if(y!==null)K=!0;else{var $=n(h);$!==null&&G(O,$.startTime-z),K=!1}}break e}finally{y=null,g=Q,S=!1}K=void 0}}finally{K?B():E=!1}}}var B;if(typeof T=="function")B=function(){T(I)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,X=F.port2;F.port1.onmessage=I,B=function(){X.postMessage(null)}}else B=function(){A(I,0)};function G(z,K){M=A(function(){z(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(z){switch(g){case 1:case 2:case 3:var K=3;break;default:K=g}var Q=g;g=K;try{return z()}finally{g=Q}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Q=g;g=z;try{return K()}finally{g=Q}},e.unstable_scheduleCallback=function(z,K,Q){var re=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?re+Q:re):Q=re,z){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,z={id:m++,callback:K,priorityLevel:z,startTime:Q,expirationTime:oe,sortIndex:-1},Q>re?(z.sortIndex=Q,t(h,z),n(f)===null&&z===n(h)&&(w?(_(M),M=-1):w=!0,G(O,Q-re))):(z.sortIndex=oe,t(f,z),j||S||(j=!0,E||(E=!0,B()))),z},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(z){var K=g;return function(){var Q=g;g=K;try{return z.apply(this,arguments)}finally{g=Q}}}})(Pv)),Pv}var aT;function i8(){return aT||(aT=1,Mv.exports=r8()),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 sT;function a8(){if(sT)return dn;sT=1;var e=aj();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,S=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:S}):m==="script"&&r.d.X(f,{crossOrigin:y,integrity:g,fetchPriority:S,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 oT;function s8(){if(oT)return Rv.exports;oT=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=a8(),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 lT;function o8(){if(lT)return wu;lT=1;var e=i8(),t=aj(),n=s8();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"),S=Symbol.for("react.transitional.element"),j=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"),L=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function B(i){return i===null||typeof i!="object"?null:(i=I&&i[I]||i["@@iterator"],typeof i=="function"?i:null)}var F=Symbol.for("react.client.reference");function X(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===F?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 j: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 G=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},re=[],oe=-1;function $(i){return{current:i}}function H(i){0>oe||(i.current=re[oe],re[oe]=null,oe--)}function ie(i,s){oe++,re[oe]=i.current,i.current=s}var fe=$(null),ge=$(null),we=$(null),ze=$(null);function Ze(i,s){switch(ie(we,s),ie(ge,i),ie(fe,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?w2(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=w2(s),i=A2(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}H(fe),ie(fe,i)}function ce(){H(fe),H(ge),H(we)}function Ee(i){i.memoizedState!==null&&ie(ze,i);var s=fe.current,u=A2(s,i.type);s!==u&&(ie(ge,i),ie(fe,u))}function Ce(i){ge.current===i&&(H(fe),H(ge)),ze.current===i&&(H(ze),gu._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 At=!1;function Ot(i,s){if(!i||At)return"";At=!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{At=!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 Ot(i.type,!1);case 11:return Ot(i.type.render,!1);case 1:return Ot(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,Nl=e.unstable_requestPaint,fn=e.unstable_now,uf=e.unstable_getCurrentPriorityLevel,tA=e.unstable_ImmediatePriority,nA=e.unstable_UserBlockingPriority,cf=e.unstable_NormalPriority,kB=e.unstable_LowPriority,rA=e.unstable_IdlePriority,LB=e.log,zB=e.unstable_setDisableYieldValue,Cl=null,Mn=null;function Ii(i){if(typeof LB=="function"&&zB(i),Mn&&typeof Mn.setStrictMode=="function")try{Mn.setStrictMode(Cl,i)}catch{}}var Pn=Math.clz32?Math.clz32:qB,$B=Math.log,BB=Math.LN2;function qB(i){return i>>>=0,i===0?32:31-($B(i)/BB|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 Ml(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function IB(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 iA(){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 Pl(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function UB(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-Pn(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&&aA(i,p,0),x!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=x&~(N&~s))}function aA(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var p=31-Pn(s);i.entangledLanes|=s,i.entanglements[p]=i.entanglements[p]|1073741824|u&261930}function sA(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var p=31-Pn(u),v=1<<p;v&s|i[p]&s&&(i[p]|=s),u&=~v}}function oA(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 lA(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:K2(i.type))}function uA(i,s){var u=K.p;try{return K.p=i,s()}finally{K.p=u}}var Ui=Math.random().toString(36).slice(2),tn="__reactFiber$"+Ui,jn="__reactProps$"+Ui,ks="__reactContainer$"+Ui,xm="__reactEvents$"+Ui,VB="__reactListeners$"+Ui,HB="__reactHandles$"+Ui,cA="__reactResources$"+Ui,Rl="__reactMarker$"+Ui;function bm(i){delete i[tn],delete i[jn],delete i[xm],delete i[VB],delete i[HB]}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=M2(i);i!==null;){if(u=i[tn])return u;i=M2(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 Dl(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[cA];return s||(s=i[cA]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Wt(i){i[Rl]=!0}var fA=new Set,dA={};function La(i,s){Bs(i,s),Bs(i+"Capture",s)}function Bs(i,s){for(dA[i]=s,i=0;i<s.length;i++)fA.add(s[i])}var GB=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]*$"),hA={},pA={};function FB(i){return zr.call(pA,i)?!0:zr.call(hA,i)?!1:GB.test(i)?pA[i]=!0:(hA[i]=!0,!1)}function mf(i,s,u){if(FB(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 mA(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function KB(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 Sm(i){if(!i._valueTracker){var s=mA(i)?"checked":"value";i._valueTracker=KB(i,s,""+i[s])}}function yA(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),p="";return i&&(p=mA(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 YB=/[\n"\\]/g;function Qn(i){return i.replace(YB,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function jm(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 vA(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)){Sm(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),Sm(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 gA(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 xA(i,s,u,p){if(s==null){if(p!=null){if(u!=null)throw Error(r(92));if(G(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),Sm(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 XB=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 bA(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||XB.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&&bA(i,v,p)}else for(var x in s)s.hasOwnProperty(x)&&bA(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 WB=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"]]),ZB=/^[\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 ZB.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 jA(i){var s=zs(i);if(s&&(i=s.stateNode)){var u=i[jn]||null;e:switch(i=s.stateNode,s.type){case"input":if(jm(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[jn]||null;if(!v)throw Error(r(90));jm(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&&yA(p)}break e;case"textarea":gA(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&qs(i,!!u.multiple,s,!1)}}}var Tm=!1;function wA(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,jA(s),i)))for(s=0;s<i.length;s++)jA(i[s])}}function kl(i,s){var u=i.stateNode;if(u===null)return null;var p=u[jn]||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 Ll={};Object.defineProperty(Ll,"passive",{get:function(){Em=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{Em=!1}var Vi=null,Nm=null,xf=null;function AA(){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 Sf(){return!0}function OA(){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)?Sf:OA,this.isPropagationStopped=OA,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=Sf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Sf)},persist:function(){},isPersistent:Sf}),s}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jf=wn(za),zl=y({},za,{view:0,detail:0}),QB=wn(zl),Cm,Mm,$l,wf=y({},zl,{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!==$l&&($l&&i.type==="mousemove"?(Cm=i.screenX-$l.screenX,Mm=i.screenY-$l.screenY):Mm=Cm=0,$l=i),Cm)},movementY:function(i){return"movementY"in i?i.movementY:Mm}}),_A=wn(wf),JB=y({},wf,{dataTransfer:0}),e5=wn(JB),t5=y({},zl,{relatedTarget:0}),Pm=wn(t5),n5=y({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),r5=wn(n5),i5=y({},za,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),a5=wn(i5),s5=y({},za,{data:0}),TA=wn(s5),o5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l5={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"},u5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c5(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=u5[i])?!!s[i]:!1}function Rm(){return c5}var f5=y({},zl,{key:function(i){if(i.key){var s=o5[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"?l5[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}}),d5=wn(f5),h5=y({},wf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),EA=wn(h5),p5=y({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rm}),m5=wn(p5),y5=y({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),v5=wn(y5),g5=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}),x5=wn(g5),b5=y({},za,{newState:0,oldState:0}),S5=wn(b5),j5=[9,13,27,32],Dm=ai&&"CompositionEvent"in window,Bl=null;ai&&"documentMode"in document&&(Bl=document.documentMode);var w5=ai&&"TextEvent"in window&&!Bl,NA=ai&&(!Dm||Bl&&8<Bl&&11>=Bl),CA=" ",MA=!1;function PA(i,s){switch(i){case"keyup":return j5.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RA(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Hs=!1;function A5(i,s){switch(i){case"compositionend":return RA(s);case"keypress":return s.which!==32?null:(MA=!0,CA);case"textInput":return i=s.data,i===CA&&MA?null:i;default:return null}}function O5(i,s){if(Hs)return i==="compositionend"||!Dm&&PA(i,s)?(i=AA(),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 NA&&s.locale!=="ko"?null:s.data;default:return null}}var _5={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 DA(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!_5[i.type]:s==="textarea"}function kA(i,s,u,p){Us?Vs?Vs.push(p):Vs=[p]:Us=p,s=dd(s,"onChange"),0<s.length&&(u=new jf("onChange","change",null,u,p),i.push({event:u,listeners:s}))}var ql=null,Il=null;function T5(i){v2(i,0)}function Af(i){var s=Dl(i);if(yA(s))return i}function LA(i,s){if(i==="change")return s}var zA=!1;if(ai){var km;if(ai){var Lm="oninput"in document;if(!Lm){var $A=document.createElement("div");$A.setAttribute("oninput","return;"),Lm=typeof $A.oninput=="function"}km=Lm}else km=!1;zA=km&&(!document.documentMode||9<document.documentMode)}function BA(){ql&&(ql.detachEvent("onpropertychange",qA),Il=ql=null)}function qA(i){if(i.propertyName==="value"&&Af(Il)){var s=[];kA(s,Il,i,_m(i)),wA(T5,s)}}function E5(i,s,u){i==="focusin"?(BA(),ql=s,Il=u,ql.attachEvent("onpropertychange",qA)):i==="focusout"&&BA()}function N5(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Af(Il)}function C5(i,s){if(i==="click")return Af(s)}function M5(i,s){if(i==="input"||i==="change")return Af(s)}function P5(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Rn=typeof Object.is=="function"?Object.is:P5;function Ul(i,s){if(Rn(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)||!Rn(i[v],s[v]))return!1}return!0}function IA(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function UA(i,s){var u=IA(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=IA(u)}}function VA(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?VA(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function HA(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 R5=ai&&"documentMode"in document&&11>=document.documentMode,Gs=null,$m=null,Vl=null,Bm=!1;function GA(i,s,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Bm||Gs==null||Gs!==vf(p)||(p=Gs,"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}),Vl&&Ul(Vl,p)||(Vl=p,p=dd($m,"onSelect"),0<p.length&&(s=new jf("onSelect","select",null,s,u),i.push({event:s,listeners:p}),s.target=Gs)))}function $a(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Fs={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={},FA={};ai&&(FA=document.createElement("div").style,"AnimationEvent"in window||(delete Fs.animationend.animation,delete Fs.animationiteration.animation,delete Fs.animationstart.animation),"TransitionEvent"in window||delete Fs.transitionend.transition);function Ba(i){if(qm[i])return qm[i];if(!Fs[i])return i;var s=Fs[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in FA)return qm[i]=s[u];return i}var KA=Ba("animationend"),YA=Ba("animationiteration"),XA=Ba("animationstart"),D5=Ba("transitionrun"),k5=Ba("transitionstart"),L5=Ba("transitioncancel"),WA=Ba("transitionend"),ZA=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){ZA.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&&QA(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 QA(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-Pn(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<fu)throw fu=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 z5(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 Dn(i,s,u,p){return new z5(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=Dn(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 JA(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=U6(i,u,fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case D:return i=Dn(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=Dn(12,u,s,v|2),i.elementType=A,i.lanes=x,i;case O:return i=Dn(13,u,s,v),i.elementType=O,i.lanes=x,i;case E:return i=Dn(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=Dn(N,u,s,v),s.elementType=i,s.type=p,s.lanes=x,s}function Ia(i,s,u,p){return i=Dn(7,i,p,s),i.lanes=u,i}function Gm(i,s,u){return i=Dn(6,i,null,s),i.lanes=u,i}function eO(i){var s=Dn(18,null,null,0);return s.stateNode=i,s}function Fm(i,s,u){return s=Dn(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var tO=new WeakMap;function er(i,s){if(typeof i=="object"&&i!==null){var u=tO.get(i);return u!==void 0?u:(s={value:i,source:s,stack:gr(s)},tO.set(i,s),s)}return{value:i,source:s,stack:gr(s)}}var Xs=[],Ws=0,Cf=null,Hl=0,tr=[],nr=0,Hi=null,$r=1,Br="";function oi(i,s){Xs[Ws++]=Hl,Xs[Ws++]=Cf,Cf=i,Hl=s}function nO(i,s,u){tr[nr++]=$r,tr[nr++]=Br,tr[nr++]=Hi,Hi=i;var p=$r;i=Br;var v=32-Pn(p)-1;p&=~(1<<v),u+=1;var x=32-Pn(s)+v;if(30<x){var N=v-v%5;x=(p&(1<<N)-1).toString(32),p>>=N,v-=N,$r=1<<32-Pn(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),nO(i,1,0))}function Ym(i){for(;i===Cf;)Cf=Xs[--Ws],Xs[Ws]=null,Hl=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 rO(i,s){tr[nr++]=$r,tr[nr++]=Br,tr[nr++]=Hi,$r=s.id,Br=s.overflow,Hi=i}var nn=null,vt=null,Ve=!1,Gi=null,rr=!1,Xm=Error(r(519));function Fi(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gl(er(s,i)),Xm}function iO(i){var s=i.stateNode,u=i.type,p=i.memoizedProps;switch(s[tn]=i,s[jn]=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<hu.length;u++)Be(hu[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),vA(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),xA(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||S2(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||Fi(i,!0)}function aO(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(!Ve)return aO(i),Ve=!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&&Fi(i),aO(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));vt=C2(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));vt=C2(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,Ve=!1}function Wm(){var i=Gi;return i!==null&&(Tn===null?Tn=i:Tn.push.apply(Tn,i),Gi=null),i}function Gl(i){Gi===null?Gi=[i]:Gi.push(i)}var Zm=$(null),Va=null,li=null;function Ki(i,s,u){ie(Zm,s._currentValue),s._currentValue=u}function ui(i){i._currentValue=Zm.current,H(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;Rn(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(gu):i=[gu])}v=v.return}i!==null&&Jm(s,i,u,p),s.flags|=262144}function Mf(i){for(i=i.firstContext;i!==null;){if(!Rn(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 sO(Va,i)}function Pf(i,s){return Va===null&&Ha(i),sO(i,s)}function sO(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 $5=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()})}},B5=e.unstable_scheduleCallback,q5=e.unstable_NormalPriority,Rt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ey(){return{controller:new $5,data:new Map,refCount:0}}function Fl(i){i.refCount--,i.refCount===0&&B5(q5,function(){i.controller.abort()})}var Kl=null,ty=0,Js=0,eo=null;function I5(i,s){if(Kl===null){var u=Kl=[];ty=0,Js=iv(),eo={status:"pending",value:void 0,then:function(p){u.push(p)}}}return ty++,s.then(oO,oO),s}function oO(){if(--ty===0&&Kl!==null){eo!==null&&(eo.status="fulfilled");var i=Kl;Kl=null,Js=0,eo=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function U5(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 lO=z.S;z.S=function(i,s){G_=fn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&I5(i,s),lO!==null&&lO(i,s)};var Ga=$(null);function ny(){var i=Ga.current;return i!==null?i:ut.pooledCache}function Rf(i,s){s===null?ie(Ga,Ga.current):ie(Ga,s.pool)}function uO(){var i=ny();return i===null?null:{parent:Rt._currentValue,pool:i}}var to=Error(r(460)),ry=Error(r(474)),Df=Error(r(542)),kf={then:function(){}};function cO(i){return i=i.status,i==="fulfilled"||i==="rejected"}function fO(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,hO(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,hO(i),i}throw Ka=s,to}}function Fa(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 dO(){if(Ka===null)throw Error(r(459));var i=Ka;return Ka=null,i}function hO(i){if(i===to||i===Df)throw Error(r(483))}var no=null,Yl=0;function Lf(i){var s=Yl;return Yl+=1,no===null&&(no=[]),fO(no,i,s)}function Xl(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 pO(i){function s(Y,V){if(i){var W=Y.deletions;W===null?(Y.deletions=[V],Y.flags|=16):W.push(V)}}function u(Y,V){if(!i)return null;for(;V!==null;)s(Y,V),V=V.sibling;return null}function p(Y){for(var V=new Map;Y!==null;)Y.key!==null?V.set(Y.key,Y):V.set(Y.index,Y),Y=Y.sibling;return V}function v(Y,V){return Y=si(Y,V),Y.index=0,Y.sibling=null,Y}function x(Y,V,W){return Y.index=W,i?(W=Y.alternate,W!==null?(W=W.index,W<V?(Y.flags|=67108866,V):W):(Y.flags|=67108866,V)):(Y.flags|=1048576,V)}function N(Y){return i&&Y.alternate===null&&(Y.flags|=67108866),Y}function R(Y,V,W,ae){return V===null||V.tag!==6?(V=Gm(W,Y.mode,ae),V.return=Y,V):(V=v(V,W),V.return=Y,V)}function U(Y,V,W,ae){var je=W.type;return je===w?te(Y,V,W.props.children,ae,W.key):V!==null&&(V.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===k&&Fa(je)===V.type)?(V=v(V,W.props),Xl(V,W),V.return=Y,V):(V=Nf(W.type,W.key,W.props,null,Y.mode,ae),Xl(V,W),V.return=Y,V)}function Z(Y,V,W,ae){return V===null||V.tag!==4||V.stateNode.containerInfo!==W.containerInfo||V.stateNode.implementation!==W.implementation?(V=Fm(W,Y.mode,ae),V.return=Y,V):(V=v(V,W.children||[]),V.return=Y,V)}function te(Y,V,W,ae,je){return V===null||V.tag!==7?(V=Ia(W,Y.mode,ae,je),V.return=Y,V):(V=v(V,W),V.return=Y,V)}function se(Y,V,W){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Gm(""+V,Y.mode,W),V.return=Y,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return W=Nf(V.type,V.key,V.props,null,Y.mode,W),Xl(W,V),W.return=Y,W;case j:return V=Fm(V,Y.mode,W),V.return=Y,V;case k:return V=Fa(V),se(Y,V,W)}if(G(V)||B(V))return V=Ia(V,Y.mode,W,null),V.return=Y,V;if(typeof V.then=="function")return se(Y,Lf(V),W);if(V.$$typeof===T)return se(Y,Pf(Y,V),W);zf(Y,V)}return null}function J(Y,V,W,ae){var je=V!==null?V.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return je!==null?null:R(Y,V,""+W,ae);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case S:return W.key===je?U(Y,V,W,ae):null;case j:return W.key===je?Z(Y,V,W,ae):null;case k:return W=Fa(W),J(Y,V,W,ae)}if(G(W)||B(W))return je!==null?null:te(Y,V,W,ae,null);if(typeof W.then=="function")return J(Y,V,Lf(W),ae);if(W.$$typeof===T)return J(Y,V,Pf(Y,W),ae);zf(Y,W)}return null}function ee(Y,V,W,ae,je){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return Y=Y.get(W)||null,R(V,Y,""+ae,je);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case S:return Y=Y.get(ae.key===null?W:ae.key)||null,U(V,Y,ae,je);case j:return Y=Y.get(ae.key===null?W:ae.key)||null,Z(V,Y,ae,je);case k:return ae=Fa(ae),ee(Y,V,W,ae,je)}if(G(ae)||B(ae))return Y=Y.get(W)||null,te(V,Y,ae,je,null);if(typeof ae.then=="function")return ee(Y,V,W,Lf(ae),je);if(ae.$$typeof===T)return ee(Y,V,W,Pf(V,ae),je);zf(V,ae)}return null}function me(Y,V,W,ae){for(var je=null,Ge=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 Fe=J(Y,xe,W[ke],ae);if(Fe===null){xe===null&&(xe=Ue);break}i&&xe&&Fe.alternate===null&&s(Y,xe),V=x(Fe,V,ke),Ge===null?je=Fe:Ge.sibling=Fe,Ge=Fe,xe=Ue}if(ke===W.length)return u(Y,xe),Ve&&oi(Y,ke),je;if(xe===null){for(;ke<W.length;ke++)xe=se(Y,W[ke],ae),xe!==null&&(V=x(xe,V,ke),Ge===null?je=xe:Ge.sibling=xe,Ge=xe);return Ve&&oi(Y,ke),je}for(xe=p(xe);ke<W.length;ke++)Ue=ee(xe,Y,ke,W[ke],ae),Ue!==null&&(i&&Ue.alternate!==null&&xe.delete(Ue.key===null?ke:Ue.key),V=x(Ue,V,ke),Ge===null?je=Ue:Ge.sibling=Ue,Ge=Ue);return i&&xe.forEach(function(fa){return s(Y,fa)}),Ve&&oi(Y,ke),je}function Ae(Y,V,W,ae){if(W==null)throw Error(r(151));for(var je=null,Ge=null,xe=V,ke=V=0,Ue=null,Fe=W.next();xe!==null&&!Fe.done;ke++,Fe=W.next()){xe.index>ke?(Ue=xe,xe=null):Ue=xe.sibling;var fa=J(Y,xe,Fe.value,ae);if(fa===null){xe===null&&(xe=Ue);break}i&&xe&&fa.alternate===null&&s(Y,xe),V=x(fa,V,ke),Ge===null?je=fa:Ge.sibling=fa,Ge=fa,xe=Ue}if(Fe.done)return u(Y,xe),Ve&&oi(Y,ke),je;if(xe===null){for(;!Fe.done;ke++,Fe=W.next())Fe=se(Y,Fe.value,ae),Fe!==null&&(V=x(Fe,V,ke),Ge===null?je=Fe:Ge.sibling=Fe,Ge=Fe);return Ve&&oi(Y,ke),je}for(xe=p(xe);!Fe.done;ke++,Fe=W.next())Fe=ee(xe,Y,ke,Fe.value,ae),Fe!==null&&(i&&Fe.alternate!==null&&xe.delete(Fe.key===null?ke:Fe.key),V=x(Fe,V,ke),Ge===null?je=Fe:Ge.sibling=Fe,Ge=Fe);return i&&xe.forEach(function(J6){return s(Y,J6)}),Ve&&oi(Y,ke),je}function ot(Y,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 S:e:{for(var je=W.key;V!==null;){if(V.key===je){if(je=W.type,je===w){if(V.tag===7){u(Y,V.sibling),ae=v(V,W.props.children),ae.return=Y,Y=ae;break e}}else if(V.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===k&&Fa(je)===V.type){u(Y,V.sibling),ae=v(V,W.props),Xl(ae,W),ae.return=Y,Y=ae;break e}u(Y,V);break}else s(Y,V);V=V.sibling}W.type===w?(ae=Ia(W.props.children,Y.mode,ae,W.key),ae.return=Y,Y=ae):(ae=Nf(W.type,W.key,W.props,null,Y.mode,ae),Xl(ae,W),ae.return=Y,Y=ae)}return N(Y);case j:e:{for(je=W.key;V!==null;){if(V.key===je)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){u(Y,V.sibling),ae=v(V,W.children||[]),ae.return=Y,Y=ae;break e}else{u(Y,V);break}else s(Y,V);V=V.sibling}ae=Fm(W,Y.mode,ae),ae.return=Y,Y=ae}return N(Y);case k:return W=Fa(W),ot(Y,V,W,ae)}if(G(W))return me(Y,V,W,ae);if(B(W)){if(je=B(W),typeof je!="function")throw Error(r(150));return W=je.call(W),Ae(Y,V,W,ae)}if(typeof W.then=="function")return ot(Y,V,Lf(W),ae);if(W.$$typeof===T)return ot(Y,V,Pf(Y,W),ae);zf(Y,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(u(Y,V.sibling),ae=v(V,W),ae.return=Y,Y=ae):(u(Y,V),ae=Gm(W,Y.mode,ae),ae.return=Y,Y=ae),N(Y)):u(Y,V)}return function(Y,V,W,ae){try{Yl=0;var je=ot(Y,V,W,ae);return no=null,je}catch(xe){if(xe===to||xe===Df)throw xe;var Ge=Dn(29,xe,null,Y.mode);return Ge.lanes=ae,Ge.return=Y,Ge}finally{}}}var Ya=pO(!0),mO=pO(!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),QA(i,null,u),s}return Tf(i,p,s,u),Ef(i)}function Wl(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,sA(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 Zl(){if(oy){var i=eo;if(i!==null)throw i}}function Ql(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 me=i,Ae=R;J=s;var ot=u;switch(Ae.tag){case 1:if(me=Ae.payload,typeof me=="function"){se=me.call(ot,se,J);break e}se=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=Ae.payload,J=typeof me=="function"?me.call(ot,se,J):me,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 yO(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function vO(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)yO(u[i],s)}var ro=$(null),$f=$(0);function gO(i,s){i=gi,ie($f,i),ie(ro,s),gi=i|s.baseLanes}function ly(){ie($f,gi),ie(ro,ro.current)}function uy(){gi=$f.current,H(ro),H($f)}var kn=$(null),ir=null;function Zi(i){var s=i.alternate;ie(Ct,Ct.current&1),ie(kn,i),ir===null&&(s===null||ro.current!==null||s.memoizedState!==null)&&(ir=i)}function cy(i){ie(Ct,Ct.current),ie(kn,i),ir===null&&(ir=i)}function xO(i){i.tag===22?(ie(Ct,Ct.current),ie(kn,i),ir===null&&(ir=i)):Qi()}function Qi(){ie(Ct,Ct.current),ie(kn,kn.current)}function Ln(i){H(kn),ir===i&&(ir=null),H(Ct)}var Ct=$(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,Dt=null,qf=!1,io=!1,Xa=!1,If=0,Jl=0,ao=null,V5=0;function _t(){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(!Rn(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,z.H=i===null||i.memoizedState===null?n_:Ty,Xa=!1,x=u(p,v),Xa=!1,io&&(x=SO(s,u,p,v)),bO(i),x}function bO(i){z.H=nu;var s=at!==null&&at.next!==null;if(ci=0,Dt=at=Re=null,qf=!1,Jl=0,ao=null,s)throw Error(r(300));i===null||kt||(i=i.dependencies,i!==null&&Mf(i)&&(kt=!0))}function SO(i,s,u,p){Re=i;var v=0;do{if(io&&(ao=null),Jl=0,io=!1,25<=v)throw Error(r(301));if(v+=1,Dt=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)}z.H=r_,x=s(u,p)}while(io);return x}function H5(){var i=z.H,s=i.useState()[0];return s=typeof s.then=="function"?eu(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,Dt=at=Re=null,io=!1,Jl=If=0,ao=null}function yn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?Re.memoizedState=Dt=i:Dt=Dt.next=i,Dt}function Mt(){if(at===null){var i=Re.alternate;i=i!==null?i.memoizedState:null}else i=at.next;var s=Dt===null?Re.memoizedState:Dt.next;if(s!==null)Dt=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},Dt===null?Re.memoizedState=Dt=i:Dt=Dt.next=i}return Dt}function Uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function eu(i){var s=Jl;return Jl+=1,ao===null&&(ao=[]),i=fO(ao,i,s),s=Re,(Dt===null?s.memoizedState:Dt.next)===null&&(s=s.alternate,z.H=s===null||s.memoizedState===null?n_:Ty),i}function Vf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return eu(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]=L;return s.index++,u}function fi(i,s){return typeof s=="function"?s(i):s}function Hf(i){var s=Mt();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,!Rn(x,i.memoizedState)&&(kt=!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=Mt(),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);Rn(x,s.memoizedState)||(kt=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),u.lastRenderedState=x}return[x,p]}function jO(i,s,u){var p=Re,v=Mt(),x=Ve;if(x){if(u===void 0)throw Error(r(407));u=u()}else u=s();var N=!Rn((at||v).memoizedState,u);if(N&&(v.memoizedState=u,kt=!0),v=v.queue,Sy(OO.bind(null,p,v,i),[i]),v.getSnapshot!==s||N||Dt!==null&&Dt.memoizedState.tag&1){if(p.flags|=2048,so(9,{destroy:void 0},AO.bind(null,p,v,u,s),null),ut===null)throw Error(r(349));x||(ci&127)!==0||wO(p,s,u)}return u}function wO(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 AO(i,s,u,p){s.value=u,s.getSnapshot=p,_O(s)&&TO(i)}function OO(i,s,u){return u(function(){_O(s)&&TO(i)})}function _O(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!Rn(i,u)}catch{return!0}}function TO(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 EO(i,s,u,p){return i.baseState=u,vy(i,at,typeof p=="function"?p:fi)}function G5(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)}};z.T!==null?u(!0):x.isTransition=!1,p(x),u=s.pending,u===null?(x.next=s.pending=x,NO(s,x)):(x.next=u.next,s.pending=u.next=x)}}function NO(i,s){var u=s.action,p=s.payload,v=i.state;if(s.isTransition){var x=z.T,N={};z.T=N;try{var R=u(v,p),U=z.S;U!==null&&U(N,R),CO(i,s,R)}catch(Z){by(i,s,Z)}finally{x!==null&&N.types!==null&&(x.types=N.types),z.T=x}}else try{x=u(v,p),CO(i,s,x)}catch(Z){by(i,s,Z)}}function CO(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){MO(i,s,p)},function(p){return by(i,s,p)}):MO(i,s,u)}function MO(i,s,u){s.status="fulfilled",s.value=u,PO(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,NO(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,PO(s),s=s.next;while(s!==p)}i.action=null}function PO(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function RO(i,s){return s}function DO(i,s){if(Ve){var u=ut.formState;if(u!==null){e:{var p=Re;if(Ve){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}}Fi(p)}p=!1}p&&(s=u[0])}}return u=yn(),u.memoizedState=u.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:RO,lastRenderedState:s},u.queue=p,u=JO.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=G5.bind(null,Re,v,x,u),v.dispatch=u,p.memoizedState=i,[s,u,!1]}function kO(i){var s=Mt();return LO(s,at,i)}function LO(i,s,u){if(s=vy(i,s,RO)[0],i=Hf(fi)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=eu(s)}catch(N){throw N===to?Df:N}else p=s;s=Mt();var v=s.queue,x=v.dispatch;return u!==s.memoizedState&&(Re.flags|=2048,so(9,{destroy:void 0},F5.bind(null,v,u),null)),[p,x,i]}function F5(i,s){i.action=s}function zO(i){var s=Mt(),u=at;if(u!==null)return LO(s,u,i);Mt(),s=s.memoizedState,u=Mt();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 $O(){return Mt().memoizedState}function Gf(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 Ff(i,s,u,p){var v=Mt();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 BO(i,s){Gf(8390656,8,i,s)}function Sy(i,s){Ff(2048,8,i,s)}function K5(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 qO(i){var s=Mt().memoizedState;return K5({ref:s,nextImpl:i}),function(){if((Xe&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function IO(i,s){return Ff(4,2,i,s)}function UO(i,s){return Ff(4,4,i,s)}function VO(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 HO(i,s,u){u=u!=null?u.concat([i]):null,Ff(4,4,VO.bind(null,s,i),u)}function jy(){}function GO(i,s){var u=Mt();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 FO(i,s){var u=Mt();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=K_(),Re.lanes|=i,ta|=i,u)}function KO(i,s,u,p){return Rn(u,s)?u:ro.current!==null?(i=wy(i,u,p),Rn(i,s)||(kt=!0),i):(ci&42)===0||(ci&1073741824)!==0&&(Ie&261930)===0?(kt=!0,i.memoizedState=u):(i=K_(),Re.lanes|=i,ta|=i,s)}function YO(i,s,u,p,v){var x=K.p;K.p=x!==0&&8>x?x:8;var N=z.T,R={};z.T=R,_y(i,!1,s,u);try{var U=v(),Z=z.S;if(Z!==null&&Z(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var te=U5(U,p);tu(i,s,te,Bn(i))}else tu(i,s,p,Bn(i))}catch(se){tu(i,s,{then:function(){},status:"rejected",reason:se},Bn())}finally{K.p=x,N!==null&&R.types!==null&&(N.types=R.types),z.T=N}}function Y5(){}function Ay(i,s,u,p){if(i.tag!==5)throw Error(r(476));var v=XO(i).queue;YO(i,v,s,Q,u===null?Y5:function(){return WO(i),u(p)})}function XO(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 WO(i){var s=XO(i);s.next===null&&(s=i.alternate.memoizedState),tu(i,s.next.queue,{},Bn())}function Oy(){return rn(gu)}function ZO(){return Mt().memoizedState}function QO(){return Mt().memoizedState}function X5(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=Bn();i=Xi(u);var p=Wi(s,i,u);p!==null&&(En(p,s,u),Wl(p,s,u)),s={cache:ey()},i.payload=s;return}s=s.return}}function W5(i,s,u){var p=Bn();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Kf(i)?e_(s,u):(u=Vm(i,s,u,p),u!==null&&(En(u,i,p),t_(u,s,p)))}function JO(i,s,u){var p=Bn();tu(i,s,u,p)}function tu(i,s,u,p){var v={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Kf(i))e_(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,Rn(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),t_(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 e_(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 t_(i,s,u){if((u&4194048)!==0){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,sA(i,u)}}var nu={readContext:rn,use:Vf,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};nu.useEffectEvent=_t;var n_={readContext:rn,use:Vf,useCallback:function(i,s){return yn().memoizedState=[i,s===void 0?null:s],i},useContext:rn,useEffect:BO,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Gf(4194308,4,VO.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Gf(4194308,4,i,s)},useInsertionEffect:function(i,s){Gf(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=W5.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=JO.bind(null,Re,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:jy,useDeferredValue:function(i,s){var u=yn();return wy(u,i,s)},useTransition:function(){var i=xy(!1);return i=YO.bind(null,Re,i.queue,!0,!1),yn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var p=Re,v=yn();if(Ve){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),ut===null)throw Error(r(349));(Ie&127)!==0||wO(p,s,u)}v.memoizedState=u;var x={value:u,getSnapshot:s};return v.queue=x,BO(OO.bind(null,p,x,i),[i]),p.flags|=2048,so(9,{destroy:void 0},AO.bind(null,p,x,u,s),null),u},useId:function(){var i=yn(),s=ut.identifierPrefix;if(Ve){var u=Br,p=$r;u=(p&~(1<<32-Pn(p)-1)).toString(32)+u,s="_"+s+"R_"+u,u=If++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=V5++,s="_"+s+"r_"+u.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:Oy,useFormState:DO,useActionState:DO,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=X5.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:Sy,useImperativeHandle:HO,useInsertionEffect:IO,useLayoutEffect:UO,useMemo:FO,useReducer:Hf,useRef:$O,useState:function(){return Hf(fi)},useDebugValue:jy,useDeferredValue:function(i,s){var u=Mt();return KO(u,at.memoizedState,i,s)},useTransition:function(){var i=Hf(fi)[0],s=Mt().memoizedState;return[typeof i=="boolean"?i:eu(i),s]},useSyncExternalStore:jO,useId:ZO,useHostTransitionStatus:Oy,useFormState:kO,useActionState:kO,useOptimistic:function(i,s){var u=Mt();return EO(u,at,i,s)},useMemoCache:yy,useCacheRefresh:QO};Ty.useEffectEvent=qO;var r_={readContext:rn,use:Vf,useCallback:GO,useContext:rn,useEffect:Sy,useImperativeHandle:HO,useInsertionEffect:IO,useLayoutEffect:UO,useMemo:FO,useReducer:gy,useRef:$O,useState:function(){return gy(fi)},useDebugValue:jy,useDeferredValue:function(i,s){var u=Mt();return at===null?wy(u,i,s):KO(u,at.memoizedState,i,s)},useTransition:function(){var i=gy(fi)[0],s=Mt().memoizedState;return[typeof i=="boolean"?i:eu(i),s]},useSyncExternalStore:jO,useId:ZO,useHostTransitionStatus:Oy,useFormState:zO,useActionState:zO,useOptimistic:function(i,s){var u=Mt();return at!==null?EO(u,at,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:yy,useCacheRefresh:QO};r_.useEffectEvent=qO;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=Bn(),v=Xi(p);v.payload=s,u!=null&&(v.callback=u),s=Wi(i,v,p),s!==null&&(En(s,i,p),Wl(s,i,p))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var p=Bn(),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),Wl(s,i,p))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=Bn(),p=Xi(u);p.tag=2,s!=null&&(p.callback=s),s=Wi(i,p,u),s!==null&&(En(s,i,u),Wl(s,i,u))}};function i_(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?!Ul(u,p)||!Ul(v,x):!0}function a_(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 s_(i){Of(i)}function o_(i){console.error(i)}function l_(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 u_(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 c_(i){return i=Xi(i),i.tag=3,i}function f_(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(){u_(s,u,p)}}var N=u.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){u_(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 Z5(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=kn.current,u!==null){switch(u.tag){case 31:case 13:return ir===null?sd():u.alternate===null&&Tt===0&&(Tt=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(Ve)return s=kn.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),Tt!==4&&(Tt=2)),!1;var x=Error(r(520),{cause:p});if(x=er(x,u),cu===null?cu=[x]:cu.push(x),Tt!==4&&(Tt=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=c_(v),f_(v,i,u,p),sy(u,v),!1}u=u.return}while(u!==null);return!1}var My=Error(r(461)),kt=!1;function an(i,s,u,p){s.child=i===null?mO(s,null,u,p):Ya(s,i.child,u,p)}function d_(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&&!kt?(py(i,s,v),di(i,s,v)):(Ve&&R&&Km(s),s.flags|=1,an(i,s,p,v),s.child)}function h_(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,p_(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:Ul,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 p_(i,s,u,p,v){if(i!==null){var x=i.memoizedProps;if(Ul(x,p)&&i.ref===s.ref)if(kt=!1,s.pendingProps=p=x,By(i,v))(i.flags&131072)!==0&&(kt=!0);else return s.lanes=i.lanes,di(i,s,v)}return Py(i,s,u,p,v)}function m_(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 y_(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?gO(s,x):ly(),xO(s);else return p=s.lanes=536870912,y_(i,s,x!==null?x.baseLanes|u:u,u,p)}else x!==null?(Rf(s,x.cachePool),gO(s,x),Qi(),s.memoizedState=null):(i!==null&&Rf(s,null),ly(),Qi());return an(i,s,v,u),s.child}function ru(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function y_(i,s,u,p,v){var x=ny();return x=x===null?null:{parent:Rt._currentValue,pool:x},s.memoizedState={baseLanes:u,cachePool:x},i!==null&&Rf(s,null),ly(),xO(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 v_(i,s,u){return Ya(s,i.child,null,u),i=Xf(s,s.pendingProps),i.flags|=2,Ln(s),s.memoizedState=null,i}function Q5(i,s,u){var p=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(Ve){if(p.mode==="hidden")return i=Xf(s,p),s.lanes=536870912,ru(null,i);if(cy(s),(i=vt)?(i=N2(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=eO(i),u.return=s,s.child=u,nn=s,vt=null)):i=null,i===null)throw Fi(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=v_(i,s,u);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(kt||Qs(i,s,u,!1),v=(u&i.childLanes)!==0,kt||v){if(p=ut,p!==null&&(N=oA(p,u),N!==0&&N!==x.retryLane))throw x.retryLane=N,qa(i,N),En(p,i,N),My;sd(),s=v_(i,s,u)}else i=x.treeContext,vt=ar(N.nextSibling),nn=s,Ve=!0,Gi=null,rr=!1,i!==null&&rO(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&&!kt?(py(i,s,v),di(i,s,v)):(Ve&&p&&Km(s),s.flags|=1,an(i,s,u,v),s.child)}function g_(i,s,u,p,v,x){return Ha(s),s.updateQueue=null,u=SO(s,p,u,v),bO(i),p=hy(),i!==null&&!kt?(py(i,s,x),di(i,s,x)):(Ve&&p&&Km(s),s.flags|=1,an(i,s,u,x),s.child)}function x_(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),Ql(s,p,x,v),Zl(),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)&&a_(s,x,p,N),Yi=!1;var J=s.memoizedState;x.state=J,Ql(s,p,x,v),Zl(),Z=s.memoizedState,R||J!==Z||Yi?(typeof se=="function"&&(Ey(s,u,se,p),Z=s.memoizedState),(U=Yi||i_(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)&&a_(s,x,p,U),Yi=!1,J=s.memoizedState,x.state=J,Ql(s,p,x,v),Zl();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||i_(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 b_(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:uO()}}function ky(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=$n),i}function S_(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:(Ct.current&2)!==0),N&&(v=!0,s.flags&=-129),N=(s.flags&32)!==0,s.flags&=-33,i===null){if(Ve){if(v?Zi(s):Qi(),(i=vt)?(i=N2(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=eO(i),u.return=s,s.child=u,nn=s,vt=null)):i=null,i===null)throw Fi(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,ru(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=ru(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(kt||Qs(i,s,u,!1),N=(u&i.childLanes)!==0,kt||N){if(N=ut,N!==null&&(p=oA(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,Ve=!0,Gi=null,rr=!1,i!==null&&rO(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,ru(null,p),p=s.child,R=i.child.memoizedState,R===null?R=Dy(u):(v=R.cachePool,v!==null?(U=Rt._currentValue,v=v.parent!==U?{parent:U,pool:U}:v):v=uO(),R={baseLanes:R.baseLanes|u,cachePool:v}),p.memoizedState=R,p.childLanes=ky(i,N,u),s.memoizedState=Ry,ru(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=Dn(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 j_(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 w_(i,s,u){var p=s.pendingProps,v=p.revealOrder,x=p.tail;p=p.children;var N=Ct.current,R=(N&2)!==0;if(R?(N=N&1|2,s.flags|=128):N&=1,ie(Ct,N),an(i,s,p,u),p=Ve?Hl:0,!R&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&j_(i,u,s);else if(i.tag===19)j_(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 J5(i,s,u){switch(s.tag){case 3:Ze(s,s.stateNode.containerInfo),Ki(s,Rt,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?S_(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 w_(i,s,u);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ie(Ct,Ct.current),p)break;return null;case 22:return s.lanes=0,m_(i,s,u,s.pendingProps);case 24:Ki(s,Rt,i.memoizedState.cache)}return di(i,s,u)}function A_(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)kt=!0;else{if(!By(i,u)&&(s.flags&128)===0)return kt=!1,J5(i,s,u);kt=(i.flags&131072)!==0}else kt=!1,Ve&&(s.flags&1048576)!==0&&nO(s,Hl,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(i=Fa(s.elementType),s.type=i,typeof i=="function")Hm(i)?(p=Wa(i,p),s.tag=1,s=x_(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=d_(null,s,i,p,u);break e}else if(v===M){s.tag=14,s=h_(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),x_(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),Ql(s,p,null,u);var N=s.memoizedState;if(p=N.cache,Ki(s,Rt,p),p!==x.cache&&Jm(s,[Rt],u,!0),Zl(),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=b_(i,s,p,u);break e}else if(p!==v){v=er(Error(r(424)),s),Gl(v),s=b_(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,Ve=!0,Gi=null,rr=!0,u=mO(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=k2(s.type,null,s.pendingProps,null))?s.memoizedState=u:Ve||(u=s.type,i=s.pendingProps,p=hd(we.current).createElement(u),p[tn]=s,p[jn]=i,sn(p,u,i),Wt(p),s.stateNode=p):s.memoizedState=k2(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Ee(s),i===null&&Ve&&(p=s.stateNode=P2(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&&Ve&&((v=p=vt)&&(p=N6(p,s.type,s.pendingProps,rr),p!==null?(s.stateNode=p,nn=s,vt=ar(p.firstChild),rr=!1,v=!0):v=!1),v||Fi(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,H5,null,null,u),gu._currentValue=v),Wf(i,s),an(i,s,p,u),s.child;case 6:return i===null&&Ve&&((i=u=vt)&&(u=C6(u,s.pendingProps,rr),u!==null?(s.stateNode=u,nn=s,vt=null,i=!0):i=!1),i||Fi(s)),null;case 13:return S_(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 d_(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 h_(i,s,s.type,s.pendingProps,u);case 15:return p_(i,s,s.type,s.pendingProps,u);case 19:return w_(i,s,u);case 31:return Q5(i,s,u);case 22:return m_(i,s,u,s.pendingProps);case 24:return Ha(s),p=rn(Rt),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,Rt,v)):((i.lanes&u)!==0&&(ay(i,s),Ql(s,null,null,u),Zl()),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,Rt,p)):(p=x.cache,Ki(s,Rt,p),p!==v.cache&&Jm(s,[Rt],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(Z_())i.flags|=8192;else throw Ka=kf,ry}else i.flags&=-16777217}function O_(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!q2(s))if(Z_())i.flags|=8192;else throw Ka=kf,ry}function Qf(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?iA():536870912,i.lanes|=s,co|=s)}function iu(i,s){if(!Ve)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 e6(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(Rt),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),O_(s,x)):(gt(s),qy(s,v,null,p,u))):x?x!==i.memoizedState?(hi(s),gt(s),O_(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)?iO(s):(i=P2(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))iO(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[jn]=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||S2(i.nodeValue,u)),i||Fi(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?(Ln(s),s):(Ln(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?(Ln(s),s):(Ln(s),null)}return Ln(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(H(Ct),p=s.memoizedState,p===null)return gt(s),null;if(v=(s.flags&128)!==0,x=p.rendering,x===null)if(v)iu(p,!1);else{if(Tt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(x=Bf(i),x!==null){for(s.flags|=128,iu(p,!1),i=x.updateQueue,s.updateQueue=i,Qf(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)JA(u,i),u=u.sibling;return ie(Ct,Ct.current&1|2),Ve&&oi(s,p.treeForkCount),s.child}i=i.sibling}p.tail!==null&&fn()>rd&&(s.flags|=128,v=!0,iu(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),iu(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!Ve)return gt(s),null}else 2*fn()-p.renderingStartTime>rd&&u!==536870912&&(s.flags|=128,v=!0,iu(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=Ct.current,ie(Ct,v?u&1|2:u&1),Ve&&oi(s,p.treeForkCount),i):(gt(s),null);case 22:case 23:return Ln(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&&H(Ga),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),ui(Rt),gt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function t6(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(Rt),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(Ln(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(Ln(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 H(Ct),null;case 4:return ce(),null;case 10:return ui(s.type),null;case 22:case 23:return Ln(s),uy(),i!==null&&H(Ga),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return ui(Rt),null;case 25:return null;default:return null}}function __(i,s){switch(Ym(s),s.tag){case 3:ui(Rt),ce();break;case 26:case 27:case 5:Ce(s);break;case 4:ce();break;case 31:s.memoizedState!==null&&Ln(s);break;case 13:Ln(s);break;case 19:H(Ct);break;case 10:ui(s.type);break;case 22:case 23:Ln(s),uy(),i!==null&&H(Ga);break;case 24:ui(Rt)}}function au(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 T_(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{vO(s,u)}catch(p){nt(i,i.return,p)}}}function E_(i,s,u){u.props=Wa(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(p){nt(i,s,p)}}function su(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 N_(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;w6(p,i.type,u,s),p[jn]=s}catch(v){nt(i,i.return,v)}}function C_(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||C_(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 M_(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[jn]=u}catch(x){nt(i,i.return,x)}}var pi=!1,Lt=!1,Hy=!1,P_=typeof WeakSet=="function"?WeakSet:Set,Zt=null;function n6(i,s){if(i=i.containerInfo,fv=bd,i=HA(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 me=Wa(u.type,v);i=p.getSnapshotBeforeUpdate(me,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 R_(i,s,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:yi(i,u),p&4&&au(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&&T_(u),p&512&&su(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{vO(i,s)}catch(N){nt(u,u.return,N)}}break;case 27:s===null&&p&4&&M_(u);case 26:case 5:yi(i,u),s===null&&p&4&&N_(u),p&512&&su(u,u.return);break;case 12:yi(i,u);break;case 31:yi(i,u),p&4&&L_(i,u);break;case 13:yi(i,u),p&4&&z_(i,u),p&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=f6.bind(null,u),M6(i,u))));break;case 22:if(p=u.memoizedState!==null||pi,!p){s=s!==null&&s.memoizedState!==null||Lt,v=pi;var x=Lt;pi=p,(Lt=s)&&!x?vi(i,u,(u.subtreeFlags&8772)!==0):yi(i,u),pi=v,Lt=x}break;case 30:break;default:yi(i,u)}}function D_(i){var s=i.alternate;s!==null&&(i.alternate=null,D_(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;)k_(i,s,u),u=u.sibling}function k_(i,s,u){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(Cl,u)}catch{}switch(u.tag){case 26:Lt||qr(u,s),mi(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Lt||qr(u,s);var p=St,v=An;sa(u.type)&&(St=u.stateNode,An=!1),mi(i,s,u),mu(u.stateNode),St=p,An=v;break;case 5:Lt||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,T2(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),xo(i)):T2(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),Lt||Ji(4,u,s),mi(i,s,u);break;case 1:Lt||(qr(u,s),p=u.stateNode,typeof p.componentWillUnmount=="function"&&E_(u,s,p)),mi(i,s,u);break;case 21:mi(i,s,u);break;case 22:Lt=(p=Lt)||u.memoizedState!==null,mi(i,s,u),Lt=p;break;default:mi(i,s,u)}}function L_(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 z_(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 r6(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new P_),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new P_),s;default:throw Error(r(435,i.tag))}}function ed(i,s){var u=r6(i);s.forEach(function(p){if(!u.has(p)){u.add(p);var v=d6.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));k_(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;)$_(s,i),s=s.sibling}var Sr=null;function $_(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),au(3,i),Ji(5,i,i.return));break;case 1:On(s,i),_n(i),p&512&&(Lt||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=Sr;if(On(s,i),_n(i),p&512&&(Lt||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[Rl]||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=$2("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=$2("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 B2(v,i.type,i.stateNode);else i.stateNode=z2(v,p,i.memoizedProps);else x!==p?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,p===null?B2(v,i.type,i.stateNode):z2(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&&(Lt||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&&(Lt||u===null||qr(u,u.return)),i.flags&32){v=i.stateNode;try{Is(v,"")}catch(me){nt(i,i.return,me)}}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(me){nt(i,i.return,me)}}break;case 3:if(yd=null,v=Sr,Sr=pd(s.containerInfo),On(s,i),Sr=v,_n(i),p&4&&u!==null&&u.memoizedState.isDehydrated)try{xo(s.containerInfo)}catch(me){nt(i,i.return,me)}Hy&&(Hy=!1,B_(i));break;case 4:p=Sr,Sr=pd(i.stateNode.containerInfo),On(s,i),_n(i),Sr=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=Lt;if(pi=Z||v,Lt=te||U,On(s,i),Lt=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||Lt||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(me){nt(U,U.return,me)}}}else if(s.tag===6){if(u===null){U=s;try{U.stateNode.nodeValue=v?"":U.memoizedProps}catch(me){nt(U,U.return,me)}}}else if(s.tag===18){if(u===null){U=s;try{var ee=U.stateNode;v?E2(ee,!0):E2(U.stateNode,!1)}catch(me){nt(U,U.return,me)}}}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(C_(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 B_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;B_(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;)R_(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"&&E_(s,s.return,u),Za(s);break;case 27:mu(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),au(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++)yO(U[v],R)}catch(Z){nt(p,p.return,Z)}}u&&N&64&&T_(x),su(x,x.return);break;case 27:M_(x);case 26:case 5:vi(v,x,u),u&&p===null&&N&4&&N_(x),su(x,x.return);break;case 12:vi(v,x,u);break;case 31:vi(v,x,u),u&&N&4&&L_(v,x);break;case 13:vi(v,x,u),u&&N&4&&z_(v,x);break;case 22:x.memoizedState===null&&vi(v,x,u),su(x,x.return);break;case 30:break;default:vi(v,x,u)}s=s.sibling}}function Gy(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&&Fl(u))}function Fy(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Fl(i))}function jr(i,s,u,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)q_(i,s,u,p),s=s.sibling}function q_(i,s,u,p){var v=s.flags;switch(s.tag){case 0:case 11:case 15:jr(i,s,u,p),v&2048&&au(9,s);break;case 1:jr(i,s,u,p);break;case 3:jr(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&&Fl(i)));break;case 12:if(v&2048){jr(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 jr(i,s,u,p);break;case 31:jr(i,s,u,p);break;case 13:jr(i,s,u,p);break;case 23:break;case 22:x=s.stateNode,N=s.alternate,s.memoizedState!==null?x._visibility&2?jr(i,s,u,p):ou(i,s):x._visibility&2?jr(i,s,u,p):(x._visibility|=2,oo(i,s,u,p,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Gy(N,s);break;case 24:jr(i,s,u,p),v&2048&&Fy(s.alternate,s);break;default:jr(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),au(8,N);break;case 23:break;case 22:var te=N.stateNode;N.memoizedState!==null?te._visibility&2?oo(x,N,R,U,v):ou(x,N):(te._visibility|=2,oo(x,N,R,U,v)),v&&Z&2048&&Gy(N.alternate,N);break;case 24:oo(x,N,R,U,v),v&&Z&2048&&Fy(N.alternate,N);break;default:oo(x,N,R,U,v)}s=s.sibling}}function ou(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:ou(u,p),v&2048&&Gy(p.alternate,p);break;case 24:ou(u,p),v&2048&&Fy(p.alternate,p);break;default:ou(u,p)}s=s.sibling}}var lu=8192;function lo(i,s,u){if(i.subtreeFlags&lu)for(i=i.child;i!==null;)I_(i,s,u),i=i.sibling}function I_(i,s,u){switch(i.tag){case 26:lo(i,s,u),i.flags&lu&&i.memoizedState!==null&&V6(u,Sr,i.memoizedState,i.memoizedProps);break;case 5:lo(i,s,u);break;case 3:case 4:var p=Sr;Sr=pd(i.stateNode.containerInfo),lo(i,s,u),Sr=p;break;case 22:i.memoizedState===null&&(p=i.alternate,p!==null&&p.memoizedState!==null?(p=lu,lu=16777216,lo(i,s,u),lu=p):lo(i,s,u));break;default:lo(i,s,u)}}function U_(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 uu(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,H_(p,i)}U_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)V_(i),i=i.sibling}function V_(i){switch(i.tag){case 0:case 11:case 15:uu(i),i.flags&2048&&Ji(9,i,i.return);break;case 3:uu(i);break;case 12:uu(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)):uu(i);break;default:uu(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,H_(p,i)}U_(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 H_(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:Fl(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(D_(p),p===u){Zt=null;break e}if(v!==null){v.return=x,Zt=v;break e}Zt=x}}}var i6={getCacheForType:function(i){var s=rn(Rt),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u},cacheSignal:function(){return rn(Rt).controller.signal}},a6=typeof WeakMap=="function"?WeakMap:Map,Xe=0,ut=null,$e=null,Ie=0,tt=0,zn=null,ea=!1,uo=!1,Ky=!1,gi=0,Tt=0,ta=0,Qa=0,Yy=0,$n=0,co=0,cu=null,Tn=null,Xy=!1,nd=0,G_=0,rd=1/0,id=null,na=null,Ut=0,ra=null,fo=null,xi=0,Wy=0,Zy=null,F_=null,fu=0,Qy=null;function Bn(){return(Xe&2)!==0&&Ie!==0?Ie&-Ie:z.T!==null?iv():lA()}function K_(){if($n===0)if((Ie&536870912)===0||Ve){var i=df;df<<=1,(df&3932160)===0&&(df=262144),$n=i}else $n=536870912;return i=kn.current,i!==null&&(i.flags|=32),$n}function En(i,s,u){(i===ut&&(tt===2||tt===9)||i.cancelPendingCommit!==null)&&(ho(i,0),ia(i,Ie,$n,!1)),Pl(i,u),((Xe&2)===0||i!==ut)&&(i===ut&&((Xe&2)===0&&(Qa|=u),Tt===4&&ia(i,Ie,$n,!1)),Ir(i))}function Y_(i,s,u){if((Xe&6)!==0)throw Error(r(327));var p=!u&&(s&127)===0&&(s&i.expiredLanes)===0||Ml(i,s),v=p?l6(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&&!s6(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=cu;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,$n,!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,$n,!ea),pf(p,0,!0)!==0)break e;xi=s,p.timeoutHandle=O2(X_.bind(null,p,u,Tn,id,Xy,s,$n,Qa,co,ea,x,"Throttled",-0,0),v);break e}X_(p,u,Tn,id,Xy,s,$n,Qa,co,ea,x,null,-0,0)}}break}while(!0);Ir(i)}function X_(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},I_(s,x,se);var me=(x&62914560)===x?nd-fn():(x&4194048)===x?G_-fn():0;if(me=H6(se,me),me!==null){xi=x,i.cancelPendingCommit=me(r2.bind(null,i,s,x,u,p,v,N,R,U,te,se,null,J,ee)),ia(i,x,N,!Z);return}}r2(i,s,x,u,p,v,N,R,U)}function s6(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(!Rn(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-Pn(v),N=1<<x;p[x]=-1,v&=~N}u!==0&&aA(i,u,s)}function ad(){return(Xe&6)===0?(du(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,Yl=0,i=$e;for(;i!==null;)__(i.alternate,i),i=i.return;$e=null}}function ho(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,_6(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,zn=null,ea=!1,uo=Ml(i,s),Ky=!1,co=$n=Yy=Qa=ta=Tt=0,Tn=cu=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-Pn(p),x=1<<v;s|=i[v],p&=~x}return gi=s,_f(),u}function W_(i,s){Re=null,z.H=nu,s===to||s===Df?(s=dO(),tt=3):s===ry?(s=dO(),tt=4):tt=s===My?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,zn=s,$e===null&&(Tt=1,Yf(i,er(s,i.current)))}function Z_(){var i=kn.current;return i===null?!0:(Ie&4194048)===Ie?ir===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?i===ir:!1}function Q_(){var i=z.H;return z.H=nu,i===null?nu:i}function J_(){var i=z.A;return z.A=i6,i}function sd(){Tt=4,ea||(Ie&4194048)!==Ie&&kn.current!==null||(uo=!0),(ta&134217727)===0&&(Qa&134217727)===0||ut===null||ia(ut,Ie,$n,!1)}function ev(i,s,u){var p=Xe;Xe|=2;var v=Q_(),x=J_();(ut!==i||Ie!==s)&&(id=null,ho(i,s)),s=!1;var N=Tt;e:do try{if(tt!==0&&$e!==null){var R=$e,U=zn;switch(tt){case 8:Jy(),N=6;break e;case 3:case 2:case 9:case 6:kn.current===null&&(s=!0);var Z=tt;if(tt=0,zn=null,po(i,R,U,Z),u&&uo){N=0;break e}break;default:Z=tt,tt=0,zn=null,po(i,R,U,Z)}}o6(),N=Tt;break}catch(te){W_(i,te)}while(!0);return s&&i.shellSuspendCounter++,li=Va=null,Xe=p,z.H=v,z.A=x,$e===null&&(ut=null,Ie=0,_f()),N}function o6(){for(;$e!==null;)e2($e)}function l6(i,s){var u=Xe;Xe|=2;var p=Q_(),v=J_();ut!==i||Ie!==s?(id=null,rd=fn()+500,ho(i,s)):uo=Ml(i,s);e:do try{if(tt!==0&&$e!==null){s=$e;var x=zn;t:switch(tt){case 1:tt=0,zn=null,po(i,s,x,1);break;case 2:case 9:if(cO(x)){tt=0,zn=null,t2(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:cO(x)?(tt=0,zn=null,t2(s)):(tt=0,zn=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?q2(N):R.stateNode.complete){tt=0,zn=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,zn=null,po(i,s,x,5);break;case 6:tt=0,zn=null,po(i,s,x,6);break;case 8:Jy(),Tt=6;break e;default:throw Error(r(462))}}u6();break}catch(te){W_(i,te)}while(!0);return li=Va=null,z.H=p,z.A=v,Xe=u,$e!==null?0:(ut=null,Ie=0,_f(),Tt)}function u6(){for(;$e!==null&&!ni();)e2($e)}function e2(i){var s=A_(i.alternate,i,gi);i.memoizedProps=i.pendingProps,s===null?od(i):$e=s}function t2(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=g_(u,s,s.pendingProps,s.type,void 0,Ie);break;case 11:s=g_(u,s,s.pendingProps,s.type.render,s.ref,Ie);break;case 5:my(s);default:__(u,s),s=$e=JA(s,gi),s=A_(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,Yl=0;var v=s.return;try{if(Z5(i,v,s,u,Ie)){Tt=1,Yf(i,er(u,i.current)),$e=null;return}}catch(x){if(v!==null)throw $e=v,x;Tt=1,Yf(i,er(u,i.current)),$e=null;return}s.flags&32768?(Ve||p===1?i=!0:uo||(Ie&536870912)!==0?i=!1:(ea=i=!0,(p===2||p===9||p===3||p===6)&&(p=kn.current,p!==null&&p.tag===13&&(p.flags|=16384))),n2(s,i)):od(s)}function od(i){var s=i;do{if((s.flags&32768)!==0){n2(s,ea);return}i=s.return;var u=e6(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);Tt===0&&(Tt=5)}function n2(i,s){do{var u=t6(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);Tt=6,$e=null}function r2(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,UB(i,u,x,N,R,U),i===ut&&($e=ut=null,Ie=0),fo=s,ra=i,xi=u,Wy=x,Zy=v,F_=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,h6(cf,function(){return l2(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=z.T,z.T=null,v=K.p,K.p=2,N=Xe,Xe|=4;try{n6(i,s,u)}finally{Xe=N,K.p=v,z.T=p}}Ut=1,i2(),a2(),s2()}}function i2(){if(Ut===1){Ut=0;var i=ra,s=fo,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=z.T,z.T=null;var p=K.p;K.p=2;var v=Xe;Xe|=4;try{$_(s,i);var x=dv,N=HA(i.containerInfo),R=x.focusedElem,U=x.selectionRange;if(N!==R&&R&&R.ownerDocument&&VA(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(),me=R.textContent.length,Ae=Math.min(U.start,me),ot=U.end===void 0?Ae:Math.min(U.end,me);!ee.extend&&Ae>ot&&(N=ot,ot=Ae,Ae=N);var Y=UA(R,Ae),V=UA(R,ot);if(Y&&V&&(ee.rangeCount!==1||ee.anchorNode!==Y.node||ee.anchorOffset!==Y.offset||ee.focusNode!==V.node||ee.focusOffset!==V.offset)){var W=se.createRange();W.setStart(Y.node,Y.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,K.p=p,z.T=u}}i.current=s,Ut=2}}function a2(){if(Ut===2){Ut=0;var i=ra,s=fo,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=z.T,z.T=null;var p=K.p;K.p=2;var v=Xe;Xe|=4;try{R_(i,s.alternate,s)}finally{Xe=v,K.p=p,z.T=u}}Ut=3}}function s2(){if(Ut===4||Ut===3){Ut=0,Nl();var i=ra,s=fo,u=xi,p=F_;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Ut=5:(Ut=0,fo=ra=null,o2(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(na=null),gm(u),s=s.stateNode,Mn&&typeof Mn.onCommitFiberRoot=="function")try{Mn.onCommitFiberRoot(Cl,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=z.T,v=K.p,K.p=2,z.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{z.T=s,K.p=v}}(xi&3)!==0&&ld(),Ir(i),v=i.pendingLanes,(u&261930)!==0&&(v&42)!==0?i===Qy?fu++:(fu=0,Qy=i):fu=0,du(0)}}function o2(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Fl(s)))}function ld(){return i2(),a2(),s2(),l2()}function l2(){if(Ut!==5)return!1;var i=ra,s=Wy;Wy=0;var u=gm(xi),p=z.T,v=K.p;try{K.p=32>u?32:u,z.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,V_(x.current),q_(x,x.current,N,u),Xe=R,du(0,!1),Mn&&typeof Mn.onPostCommitFiberRoot=="function")try{Mn.onPostCommitFiberRoot(Cl,x)}catch{}return!0}finally{K.p=v,z.T=p,o2(i,s)}}function u2(i,s,u){s=er(u,s),s=Cy(i.stateNode,s,2),i=Wi(i,s,2),i!==null&&(Pl(i,2),Ir(i))}function nt(i,s,u){if(i.tag===3)u2(i,i,u);else for(;s!==null;){if(s.tag===3){u2(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=c_(2),p=Wi(s,u,2),p!==null&&(f_(u,p,s,i),Pl(p,2),Ir(p));break}}s=s.return}}function tv(i,s,u){var p=i.pingCache;if(p===null){p=i.pingCache=new a6;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=c6.bind(null,i,s,u),s.then(i,i))}function c6(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&&(Tt===4||Tt===3&&(Ie&62914560)===Ie&&300>fn()-nd?(Xe&2)===0&&ho(i,0):Yy|=u,co===Ie&&(co=0)),Ir(i)}function c2(i,s){s===0&&(s=iA()),i=qa(i,s),i!==null&&(Pl(i,s),Ir(i))}function f6(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),c2(i,u)}function d6(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),c2(i,u)}function h6(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,m6())}function du(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-Pn(42|i)+1)-1,x&=v&~(N&~R),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,p2(p,x))}else x=Ie,x=pf(p,p===ut?x:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(x&3)===0||Ml(p,x)||(u=!0,p2(p,x));p=p.next}while(u);rv=!1}}function p6(){f2()}function f2(){cd=nv=!1;var i=0;aa!==0&&O6()&&(i=aa);for(var s=fn(),u=null,p=ud;p!==null;){var v=p.next,x=d2(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||du(i),aa!==0&&(aa=0)}function d2(i,s){for(var u=i.suspendedLanes,p=i.pingedLanes,v=i.expirationTimes,x=i.pendingLanes&-62914561;0<x;){var N=31-Pn(x),R=1<<N,U=v[N];U===-1?((R&u)===0||(R&p)!==0)&&(v[N]=IB(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||Ml(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(p!==null&&xr(p),gm(u)){case 2:case 8:u=nA;break;case 32:u=cf;break;case 268435456:u=rA;break;default:u=cf}return p=h2.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 h2(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:(Y_(i,p,s),d2(i,fn()),i.callbackNode!=null&&i.callbackNode===u?h2.bind(null,i):null)}function p2(i,s){if(ld())return null;Y_(i,s,!0)}function m6(){T6(function(){(Xe&6)!==0?qi(tA,p6):f2()})}function iv(){if(aa===0){var i=Js;i===0&&(i=ff,ff<<=1,(ff&261888)===0&&(ff=256)),aa=i}return aa}function m2(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:gf(""+i)}function y2(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 y6(i,s,u,p,v){if(s==="submit"&&u&&u.stateNode===v){var x=m2((v[jn]||null).action),N=p.submitter;N&&(s=(s=N[jn]||null)?m2(s.formAction):N.getAttribute("formAction"),s!==null&&(x=s,N=null));var R=new jf("action","action",null,p,v);i.push({event:R,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(aa!==0){var U=N?y2(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?y2(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],v6=sv.toLowerCase(),g6=sv[0].toUpperCase()+sv.slice(1);br(v6,"on"+g6)}br(KA,"onAnimationEnd"),br(YA,"onAnimationIteration"),br(XA,"onAnimationStart"),br("dblclick","onDoubleClick"),br("focusin","onFocus"),br("focusout","onBlur"),br(D5,"onTransitionRun"),br(k5,"onTransitionStart"),br(L5,"onTransitionCancel"),br(WA,"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 hu="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(" "),x6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hu));function v2(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)||(g2(s,i,2,!1),u.add(p))}function ov(i,s,u){var p=0;s&&(p|=4),g2(u,i,p,s)}var fd="_reactListening"+Math.random().toString(36).slice(2);function lv(i){if(!i[fd]){i[fd]=!0,fA.forEach(function(u){u!=="selectionchange"&&(x6.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 g2(i,s,u,p){switch(K2(s)){case 2:var v=K6;break;case 8:v=Y6;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}wA(function(){var Z=x,te=_m(u),se=[];e:{var J=ZA.get(i);if(J!==void 0){var ee=jf,me=i;switch(i){case"keypress":if(bf(u)===0)break e;case"keydown":case"keyup":ee=d5;break;case"focusin":me="focus",ee=Pm;break;case"focusout":me="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=_A;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=e5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=m5;break;case KA:case YA:case XA:ee=r5;break;case WA:ee=v5;break;case"scroll":case"scrollend":ee=QB;break;case"wheel":ee=x5;break;case"copy":case"cut":case"paste":ee=a5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=EA;break;case"toggle":case"beforetoggle":ee=S5}var Ae=(s&4)!==0,ot=!Ae&&(i==="scroll"||i==="scrollend"),Y=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||Y===null||(ae=kl(V,Y),ae!=null&&Ae.push(pu(V,ae,W))),ot)break;V=V.return}0<Ae.length&&(J=new ee(J,me,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&&(me=u.relatedTarget||u.fromElement)&&(Ls(me)||me[ks]))break e;if((ee||J)&&(J=te.window===te?te:(J=te.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(me=u.relatedTarget||u.toElement,ee=Z,me=me?Ls(me):null,me!==null&&(ot=o(me),Ae=me.tag,me!==ot||Ae!==5&&Ae!==27&&Ae!==6)&&(me=null)):(ee=null,me=Z),ee!==me)){if(Ae=_A,ae="onMouseLeave",Y="onMouseEnter",V="mouse",(i==="pointerout"||i==="pointerover")&&(Ae=EA,ae="onPointerLeave",Y="onPointerEnter",V="pointer"),ot=ee==null?J:Dl(ee),W=me==null?J:Dl(me),J=new Ae(ae,V+"leave",ee,u,te),J.target=ot,J.relatedTarget=W,ae=null,Ls(te)===Z&&(Ae=new Ae(Y,V+"enter",me,u,te),Ae.target=W,Ae.relatedTarget=ot,ae=Ae),ot=ae,ee&&me)t:{for(Ae=b6,Y=ee,V=me,W=0,ae=Y;ae;ae=Ae(ae))W++;ae=0;for(var je=V;je;je=Ae(je))ae++;for(;0<W-ae;)Y=Ae(Y),W--;for(;0<ae-W;)V=Ae(V),ae--;for(;W--;){if(Y===V||V!==null&&Y===V.alternate){Ae=Y;break t}Y=Ae(Y),V=Ae(V)}Ae=null}else Ae=null;ee!==null&&x2(se,J,ee,Ae,!1),me!==null&&ot!==null&&x2(se,ot,me,Ae,!0)}}e:{if(J=Z?Dl(Z):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var Ge=LA;else if(DA(J))if(zA)Ge=M5;else{Ge=N5;var xe=E5}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Z&&Am(Z.elementType)&&(Ge=LA):Ge=C5;if(Ge&&(Ge=Ge(i,Z))){kA(se,Ge,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?Dl(Z):window,i){case"focusin":(DA(xe)||xe.contentEditable==="true")&&(Gs=xe,$m=Z,Vl=null);break;case"focusout":Vl=$m=Gs=null;break;case"mousedown":Bm=!0;break;case"contextmenu":case"mouseup":case"dragend":Bm=!1,GA(se,u,te);break;case"selectionchange":if(R5)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?PA(i,u)&&(Ue="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Ue="onCompositionStart");Ue&&(NA&&u.locale!=="ko"&&(Hs||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Hs&&(ke=AA()):(Vi=te,Nm="value"in Vi?Vi.value:Vi.textContent,Hs=!0)),xe=dd(Z,Ue),0<xe.length&&(Ue=new TA(Ue,i,null,u,te),se.push({event:Ue,listeners:xe}),ke?Ue.data=ke:(ke=RA(u),ke!==null&&(Ue.data=ke)))),(ke=w5?A5(i,u):O5(i,u))&&(Ue=dd(Z,"onBeforeInput"),0<Ue.length&&(xe=new TA("onBeforeInput","beforeinput",null,u,te),se.push({event:xe,listeners:Ue}),xe.data=ke)),y6(se,i,Z,u,te)}v2(se,s)})}function pu(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=kl(i,u),v!=null&&p.unshift(pu(i,v,x)),v=kl(i,s),v!=null&&p.push(pu(i,v,x))),i.tag===3)return p;i=i.return}return[]}function b6(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function x2(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=kl(u,x),Z!=null&&N.unshift(pu(u,Z,U))):v||(Z=kl(u,x),Z!=null&&N.push(pu(u,Z,U)))),u=u.return}N.length!==0&&i.push({event:s,listeners:N})}var S6=/\r\n?/g,j6=/\u0000|\uFFFD/g;function b2(i){return(typeof i=="string"?i:""+i).replace(S6,`
|
||
`).replace(j6,"")}function S2(i,s){return s=b2(s),b2(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=WB.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(!dA.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[jn]||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)}}vA(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)}xA(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<hu.length;p++)Be(hu[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 w6(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)}}jm(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)}gA(i,J,ee);return;case"option":for(var me in u)if(J=u[me],u.hasOwnProperty(me)&&J!=null&&!p.hasOwnProperty(me))switch(me){case"selected":i.selected=!1;break;default:st(i,s,me,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 Y in u)J=u[Y],u.hasOwnProperty(Y)&&J!=null&&!p.hasOwnProperty(Y)&&st(i,s,Y,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 j2(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function A6(){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&&j2(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&&j2(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 w2(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 A2(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 O6(){var i=window.event;return i&&i.type==="popstate"?i===pv?!1:(pv=i,!0):(pv=null,!1)}var O2=typeof setTimeout=="function"?setTimeout:void 0,_6=typeof clearTimeout=="function"?clearTimeout:void 0,_2=typeof Promise=="function"?Promise:void 0,T6=typeof queueMicrotask=="function"?queueMicrotask:typeof _2<"u"?function(i){return _2.resolve(null).then(i).catch(E6)}:O2;function E6(i){setTimeout(function(){throw i})}function sa(i){return i==="head"}function T2(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")mu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,mu(u);for(var x=u.firstChild;x;){var N=x.nextSibling,R=x.nodeName;x[Rl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=N}}else u==="body"&&mu(i.ownerDocument.body);u=v}while(u);xo(s)}function E2(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 N6(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[Rl])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 C6(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 N2(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 M6(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 C2(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 M2(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 P2(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 mu(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);bm(i)}var sr=new Map,R2=new Set;function pd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var bi=K.d;K.d={f:P6,r:R6,D:D6,C:k6,L:L6,m:z6,X:B6,S:$6,M:q6};function P6(){var i=bi.f(),s=ad();return i||s}function R6(i){var s=zs(i);s!==null&&s.tag===5&&s.type==="form"?WO(s):bi.r(i)}var yo=typeof document>"u"?null:document;function D2(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+'"]'),R2.has(v)||(R2.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 D6(i){bi.D(i),D2("dns-prefetch",i,null)}function k6(i,s){bi.C(i,s),D2("preconnect",i,s)}function L6(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(yu(x))||s==="script"&&p.querySelector(vu(x))||(s=p.createElement("link"),sn(s,"link",i),Wt(s),p.head.appendChild(s)))}}function z6(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(vu(x)))return}p=u.createElement("link"),sn(p,"link",i),Wt(p),u.head.appendChild(p)}}}function $6(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(yu(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 B6(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(vu(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 q6(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(vu(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 k2(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(yu(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||I6(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 yu(i){return'link[rel="stylesheet"]['+i+"]"}function L2(i){return y({},i,{"data-precedence":i.precedence,precedence:null})}function I6(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 vu(i){return"script[async]"+i}function z2(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(yu(v));if(x)return s.state.loading|=4,s.instance=x,Wt(x),x;p=L2(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(vu(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 $2(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[Rl]||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 B2(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function U6(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 q2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function V6(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(yu(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=L2(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 Sv=0;function H6(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&&Sv===0&&(Sv=62500*A6());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>Sv?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(G6,i),gd=null,vd.call(i))}function G6(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 gu={$$typeof:T,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function F6(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 I2(i,s,u,p,v,x,N,R,U,Z,te,se){return i=new F6(i,s,u,N,U,Z,te,se,R),s=1,x===!0&&(s|=24),x=Dn(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 U2(i){return i?(i=Ys,i):Ys}function V2(i,s,u,p,v,x){v=U2(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),Wl(u,i,s))}function H2(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function jv(i,s){H2(i,s),(i=i.alternate)&&H2(i,s)}function G2(i){if(i.tag===13||i.tag===31){var s=qa(i,67108864);s!==null&&En(s,i,67108864),jv(i,67108864)}}function F2(i){if(i.tag===13||i.tag===31){var s=Bn();s=vm(s);var u=qa(i,s);u!==null&&En(u,i,s),jv(i,s)}}var bd=!0;function K6(i,s,u,p){var v=z.T;z.T=null;var x=K.p;try{K.p=2,wv(i,s,u,p)}finally{K.p=x,z.T=v}}function Y6(i,s,u,p){var v=z.T;z.T=null;var x=K.p;try{K.p=8,wv(i,s,u,p)}finally{K.p=x,z.T=v}}function wv(i,s,u,p){if(bd){var v=Av(p);if(v===null)uv(i,s,p,Sd,u),Y2(i,p);else if(W6(v,i,s,u,p))p.stopPropagation();else if(Y2(i,p),s&4&&-1<X6.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-Pn(N);R.entanglements[1]|=U,N&=~U}Ir(x),(Xe&6)===0&&(rd=fn()+500,du(0))}}break;case 31:case 13:R=qa(x,2),R!==null&&En(R,x,2),ad(),jv(x,2)}if(x=Av(p),x===null&&uv(i,s,p,Sd,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 Sd=null;function Ov(i){if(Sd=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 Sd=i,null}function K2(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 tA:return 2;case nA:return 8;case cf:case kB:return 32;case rA:return 268435456;default:return 32}default:return 32}}var _v=!1,oa=null,la=null,ua=null,xu=new Map,bu=new Map,ca=[],X6="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 Y2(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":xu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":bu.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&&G2(s)),i):(i.eventSystemFlags|=p,s=i.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),i)}function W6(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 xu.set(x,Su(xu.get(x)||null,i,s,u,p,v)),!0;case"gotpointercapture":return x=v.pointerId,bu.set(x,Su(bu.get(x)||null,i,s,u,p,v)),!0}return!1}function X2(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,uA(i.priority,function(){F2(u)});return}}else if(s===31){if(s=c(u),s!==null){i.blockedOn=s,uA(i.priority,function(){F2(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 jd(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&&G2(s),i.blockedOn=u,!1;s.shift()}return!0}function W2(i,s,u){jd(i)&&u.delete(s)}function Z6(){_v=!1,oa!==null&&jd(oa)&&(oa=null),la!==null&&jd(la)&&(la=null),ua!==null&&jd(ua)&&(ua=null),xu.forEach(W2),bu.forEach(W2)}function wd(i,s){i.blockedOn===s&&(i.blockedOn=null,_v||(_v=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Z6)))}var Ad=null;function Z2(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),xu.forEach(s),bu.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);)X2(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[jn]||null;if(typeof x=="function")N||Z2(u);else if(N){var R=null;if(x&&x.hasAttribute("formAction")){if(v=x,N=x[jn]||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),Z2(u)}}}function Q2(){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=Bn();V2(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;V2(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=lA();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&&X2(i)}};var J2=t.version;if(J2!=="19.2.7")throw Error(r(527,J2,"19.2.7"));K.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 Q6={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_d.isDisabled&&_d.supportsFiber)try{Cl=_d.inject(Q6),Mn=_d}catch{}}return wu.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,p="",v=s_,x=o_,N=l_;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=I2(i,1,!1,null,null,u,p,null,v,x,N,Q2),i[ks]=s.current,lv(i),new Tv(s)},wu.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var p=!1,v="",x=s_,N=o_,R=l_,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=I2(i,1,!0,s,u??null,p,v,U,x,N,R,Q2),s.context=U2(null),u=s.current,p=Bn(),p=vm(p),v=Xi(p),v.callback=null,Wi(u,v,p),u=p,s.current.lanes=u,Pl(s,u),Ir(s),i[ks]=s.current,lv(i),new Od(s)},wu.version="19.2.7",wu}var uT;function l8(){if(uT)return Cv.exports;uT=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=o8(),Cv.exports}var u8=l8();/**
|
||
* 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 sj=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Kk=/^[\\/]{2}/;function c8(e,t){return t+e.replace(/\\/g,"/")}var cT="popstate";function fT(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function f8(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 r1("",{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 h8(t,n,null,e)}function wt(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 d8(){return Math.random().toString(36).substring(2,10)}function dT(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 r1(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pl(t):t,state:n,key:t&&t.key||r||d8(),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 pl(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 h8(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 _=fT(b)?b:r1(w.location,b,A);h=m()+1;let T=dT(_,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 S(b,A){c="REPLACE";let _=fT(b)?b:r1(w.location,b,A);h=m();let T=dT(_,h),C=w.createHref(_.mask||_);l.replaceState(T,"",C),o&&f&&f({action:c,location:w.location,delta:0})}function j(b){return p8(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(cT,y),f=b,()=>{a.removeEventListener(cT,y),f=null}},createHref(b){return t(a,b)},createURL:j,encodeLocation(b){let A=j(b);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:g,replace:S,go(b){return l.go(b)}};return w}function p8(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),wt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:rc(t);return a=a.replace(/ $/,"%20"),!n&&Kk.test(a)&&(a=r+a),new URL(a,r)}function Yk(e,t,n="/"){return m8(e,t,n,!1)}function m8(e,t,n,r,a){let o=typeof t=="string"?pl(t):t,l=Ci(o.pathname||"/",n);if(l==null)return null;let c=y8(e),f=null,h=T8(l);for(let m=0;f==null&&m<c.length;++m)f=_8(c[m],h,r);return f}function y8(e){let t=Xk(e);return v8(t),t}function Xk(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;wt(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&&(wt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Xk(l.children,t,g,y,f)),!(l.path==null&&!l.index)&&t.push({path:y,score:A8(y,l.index),routesMeta:g.map((S,j)=>{let[w,b]=Qk(S.relativePath,S.caseSensitive,j===g.length-1);return{...S,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 Wk(l.path))o(l,c,!0,h)}),t}function Wk(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=Wk(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 v8(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:O8(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var g8=/^:[\w-]+$/,x8=3,b8=2,S8=1,j8=10,w8=-2,hT=e=>e==="*";function A8(e,t){let n=e.split("/"),r=n.length;return n.some(hT)&&(r+=w8),t&&(r+=b8),n.filter(a=>!hT(a)).reduce((a,o)=>a+(g8.test(o)?x8:o===""?S8:j8),r)}function O8(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 _8(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?Zk(y,m,f.matcher,f.compiledParams):uh(y,m),S=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:C8(Nr([o,g.pathnameBase])),route:S}),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]=Qk(e.path,e.caseSensitive,e.end);return Zk(e,t,n,r)}function Zk(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 j=c[g]||"";l=o.slice(0,o.length-j.length).replace(/(.)\/+$/,"$1")}const S=c[g];return y&&!S?h[m]=void 0:h[m]=(S||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function Qk(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 T8(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 E8(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?pl(e):e,o;return n?(n=Jk(n),n.startsWith("/")?o=pT(n.substring(1),"/"):o=pT(n,t)):o=t,{pathname:o,search:M8(r),hash:P8(a)}}function pT(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 N8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function oj(e){let t=N8(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=pl(e):(a={...e},wt(!a.pathname||!a.pathname.includes("?"),Dv("?","pathname","search",a)),wt(!a.pathname||!a.pathname.includes("#"),Dv("#","pathname","hash",a)),wt(!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=E8(a,c),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var Jk=e=>e.replace(/[\\/]{2,}/g,"/"),Nr=e=>Jk(e.join("/")),ch=e=>e.replace(/\/+$/,""),C8=e=>ch(e).replace(/^\/*/,"/"),M8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,R8=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 D8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function k8(e){let t=e.map(n=>n.route.path).filter(Boolean);return Nr(t)||"/"}var e3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function t3(e,t){let n=e;if(typeof n!="string"||!sj.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(e3)try{let o=new URL(window.location.href),l=Kk.test(n)?new URL(c8(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 n3=["POST","PUT","PATCH","DELETE"];new Set(n3);var L8=["GET",...n3];new Set(L8);var z8=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function $8(e){try{return z8.includes(new URL(e).protocol)}catch{return!1}}var ml=P.createContext(null);ml.displayName="DataRouter";var Op=P.createContext(null);Op.displayName="DataRouterState";var r3=P.createContext(!1);function B8(){return P.useContext(r3)}var i3=P.createContext({isTransitioning:!1});i3.displayName="ViewTransition";var q8=P.createContext(new Map);q8.displayName="Fetchers";var I8=P.createContext(null);I8.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 lj=P.createContext(null);lj.displayName="RouteError";var a3="REACT_ROUTER_ERROR",U8="REDIRECT",V8="ROUTE_ERROR_RESPONSE";function H8(e){if(e.startsWith(`${a3}:${U8}:{`))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 G8(e){if(e.startsWith(`${a3}:${V8}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new R8(t.status,t.statusText,t.data)}catch{}}function F8(e,{relative:t}={}){wt(yl(),"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}=Gc(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:Nr([n,o])),r.createHref({pathname:c,search:l,hash:a})}function yl(){return P.useContext(Hc)!=null}function kr(){return wt(yl(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(Hc).location}var s3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function o3(e){P.useContext(Wn).static||P.useLayoutEffect(e)}function _p(){let{isDataRoute:e}=P.useContext(Dr);return e?oq():K8()}function K8(){wt(yl(),"useNavigate() may be used only in the context of a <Router> component.");let e=P.useContext(ml),{basename:t,navigator:n}=P.useContext(Wn),{matches:r}=P.useContext(Dr),{pathname:a}=kr(),o=JSON.stringify(oj(r)),l=P.useRef(!1);return o3(()=>{l.current=!0}),P.useCallback((f,h={})=>{if(Pr(l.current,s3),!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 Y8=P.createContext(null);function X8(e){let t=P.useContext(Dr).outlet;return P.useMemo(()=>t&&P.createElement(Y8.Provider,{value:e},t),[t,e])}function Gc(e,{relative:t}={}){let{matches:n}=P.useContext(Dr),{pathname:r}=kr(),a=JSON.stringify(oj(n));return P.useMemo(()=>Ap(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function W8(e,t){return l3(e,t)}function l3(e,t,n){var b;wt(yl(),"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||"";c3(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"?pl(t):t;wt(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||"/",S=g;if(f!=="/"){let A=f.replace(/^\//,"").split("/");S="/"+g.replace(/^\//,"").split("/").slice(A.length).join("/")}let j=n&&n.state.matches.length?n.state.matches.map(A=>Object.assign(A,{route:n.manifest[A.route.id]||A.route})):Yk(e,{pathname:S});Pr(h||j!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Pr(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.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=tq(j&&j.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 Z8(){let e=sq(),t=D8(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 Q8=P.createElement(Z8,null),u3=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=G8(e.digest);n&&(e=n)}let t=e!==void 0?P.createElement(Dr.Provider,{value:this.props.routeContext},P.createElement(lj.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?P.createElement(J8,{error:e},t):t}};u3.contextType=r3;var kv=new WeakMap;function J8({children:e,error:t}){let{basename:n}=P.useContext(Wn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=H8(t.digest);if(r){let a=kv.get(t);if(a)throw a;let o=t3(r.location,n),l=o.absoluteURL||o.to;if($8(l))throw new Error("Invalid redirect location");if(e3&&!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 eq({routeContext:e,match:t,children:n}){let r=P.useContext(ml);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 tq(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);wt(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:S}=r,j=y.route.loader&&!g.hasOwnProperty(y.route.id)&&(!S||S[y.route.id]===void 0);if(y.route.lazy||j){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,S;f(m,{location:r.location,params:((S=(g=r.matches)==null?void 0:g[0])==null?void 0:S.params)??{},pattern:k8(r.matches),errorInfo:y})}:void 0;return a.reduceRight((m,y,g)=>{let S,j=!1,w=null,b=null;r&&(S=o&&y.route.id?o[y.route.id]:void 0,w=y.route.errorElement||Q8,l&&(c<0&&g===0?(c3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,b=null):c===g&&(j=!0,b=y.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,g+1)),_=()=>{let T;return S?T=w:j?T=b:y.route.Component?T=P.createElement(y.route.Component,null):y.route.element?T=y.route.element:T=m,P.createElement(eq,{match:y,routeContext:{outlet:m,matches:A,isDataRoute:r!=null},children:T})};return r&&(y.route.ErrorBoundary||y.route.errorElement||g===0)?P.createElement(u3,{location:r.location,revalidation:r.revalidation,component:w,error:S,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):_()},null)}function uj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nq(e){let t=P.useContext(ml);return wt(t,uj(e)),t}function rq(e){let t=P.useContext(Op);return wt(t,uj(e)),t}function iq(e){let t=P.useContext(Dr);return wt(t,uj(e)),t}function cj(e){let t=iq(e),n=t.matches[t.matches.length-1];return wt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function aq(){return cj("useRouteId")}function sq(){var r;let e=P.useContext(lj),t=rq("useRouteError"),n=cj("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function oq(){let{router:e}=nq("useNavigate"),t=cj("useNavigate"),n=P.useRef(!1);return o3(()=>{n.current=!0}),P.useCallback(async(a,o={})=>{Pr(n.current,s3),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var mT={};function c3(e,t,n){!t&&!mT[e]&&(mT[e]=!0,Pr(!1,n))}P.memo(lq);function lq({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return l3(e,void 0,{manifest:t,state:r,isStatic:a,onError:o})}function fj({to:e,replace:t,state:n,relative:r}){wt(yl(),"<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,oj(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 uq(e){return X8(e.context)}function hn(e){wt(!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 cq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,useTransitions:l}){wt(!yl(),"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=pl(n));let{pathname:h="/",search:m="",hash:y="",state:g=null,key:S="default",mask:j}=n,w=P.useMemo(()=>{let b=Ci(h,c);return b==null?null:{location:{pathname:b,search:m,hash:y,state:g,key:S,mask:j},navigationType:r}},[c,h,m,y,g,S,r,j]);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 fq({children:e,location:t}){return W8(i1(e),t)}function i1(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,i1(r.props.children,o));return}wt(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>`),wt(!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=i1(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 dq(e){return Tp(e)&&e.tagName.toLowerCase()==="button"}function hq(e){return Tp(e)&&e.tagName.toLowerCase()==="form"}function pq(e){return Tp(e)&&e.tagName.toLowerCase()==="input"}function mq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yq(e,t){return e.button===0&&(!t||t==="_self")&&!mq(e)}var Ed=null;function vq(){if(Ed===null)try{new FormData(document.createElement("form"),0),Ed=!1}catch{Ed=!0}return Ed}var gq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lv(e){return e!=null&&!gq.has(e)?(Pr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wd}"`),null):e}function xq(e,t){let n,r,a,o,l;if(hq(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(dq(e)||pq(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),!vq()){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 dj(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function f3(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 bq(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 Sq(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 jq(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await bq(o,n);return l.links?l.links():[]}return[]}));return _q(r.flat(1).filter(Sq).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function yT(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 wq(e,t,{includeHydrateFallback:n}={}){return Aq(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 Aq(e){return[...new Set(e)]}function Oq(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function _q(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(Oq(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function hj(){let e=P.useContext(ml);return dj(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Tq(){let e=P.useContext(Op);return dj(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var pj=P.createContext(void 0);pj.displayName="FrameworkContext";function Ep(){let e=P.useContext(pj);return dj(e,"You must render this element inside a <HydratedRouter> element"),e}function Eq(e,t){let n=P.useContext(pj),[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 S=()=>{a(!0)},j=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Au(c,S),onBlur:Au(f,j),onMouseEnter:Au(h,S),onMouseLeave:Au(m,j),onTouchStart:Au(y,S)}]:[!1,g,{}]}function Au(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Nq({page:e,...t}){let n=B8(),{nonce:r}=Ep(),{router:a}=hj(),o=P.useMemo(()=>Yk(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?(t.nonce==null&&r&&(t={...t,nonce:r}),n?P.createElement(Mq,{page:e,matches:o,...t}):P.createElement(Pq,{page:e,matches:o,...t})):null}function Cq(e){let{manifest:t,routeModules:n}=Ep(),[r,a]=P.useState([]);return P.useEffect(()=>{let o=!1;return jq(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function Mq({page:e,matches:t,...n}){let r=kr(),{future:a}=Ep(),{basename:o}=hj(),l=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let c=f3(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 Pq({page:e,matches:t,...n}){let r=kr(),{future:a,manifest:o,routeModules:l}=Ep(),{basename:c}=hj(),{loaderData:f,matches:h}=Tq(),m=P.useMemo(()=>yT(e,t,h,o,r,"data"),[e,t,h,o,r]),y=P.useMemo(()=>yT(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=f3(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]),S=P.useMemo(()=>wq(y,o),[y,o]),j=Cq(y);return P.createElement(P.Fragment,null,g.map(w=>P.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),S.map(w=>P.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),j.map(({key:w,link:b})=>P.createElement("link",{key:w,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function Rq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Dq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dq&&(window.__reactRouterVersion="7.18.1")}catch{}function kq({basename:e,children:t,useTransitions:n,window:r}){let a=P.useRef();a.current==null&&(a.current=f8({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(cq,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,useTransitions:n})}var d3=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:S,...j},w){let{basename:b,navigator:A,useTransitions:_}=P.useContext(Wn),T=typeof m=="string"&&sj.test(m),C=t3(m,b);m=C.to;let O=F8(m,{relative:a}),E=kr(),M=null;if(c){let G=Ap(c,[],E.mask?E.mask.pathname:"/",!0);b!=="/"&&(G.pathname=G.pathname==="/"?b:Nr([b,G.pathname])),M=A.createHref(G)}let[k,D,L]=Eq(r,j),I=$q(m,{replace:l,mask:c,state:f,target:h,preventScrollReset:y,relative:a,viewTransition:g,defaultShouldRevalidate:S,useTransitions:_});function B(G){t&&t(G),G.defaultPrevented||I(G)}let F=!(C.isExternal||o),X=P.createElement("a",{...j,...L,href:(F?M:void 0)||C.absoluteURL||O,onClick:F?B:t,ref:Rq(w,D),target:h,"data-discover":!T&&n==="render"?"true":void 0});return k&&!T?P.createElement(P.Fragment,null,X,P.createElement(Nq,{page:O})):X});d3.displayName="Link";var h3=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=Gc(l,{relative:h.relative}),g=kr(),S=P.useContext(Op),{navigator:j,basename:w}=P.useContext(Wn),b=S!=null&&Vq(y)&&c===!0,A=j.encodeLocation?j.encodeLocation(y).pathname:y.pathname,_=g.pathname,T=S&&S.navigation&&S.navigation.location?S.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 L=typeof o=="function"?o(M):o;return P.createElement(d3,{...h,"aria-current":k,className:D,ref:m,style:L,to:l,viewTransition:c},typeof f=="function"?f(M):f)});h3.displayName="NavLink";var Lq=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,...S},j)=>{let{useTransitions:w}=P.useContext(Wn),b=Iq(),A=Uq(c,{relative:h}),_=l.toLowerCase()==="get"?"get":"post",T=typeof c=="string"&&sj.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:j,method:_,action:A,onSubmit:r?f:C,...S,"data-discover":!T&&e==="render"?"true":void 0})});Lq.displayName="Form";function zq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p3(e){let t=P.useContext(ml);return wt(t,zq(e)),t}function $q(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=Gc(e,{relative:l});return P.useCallback(S=>{if(yq(S,t)){S.preventDefault();let j=n!==void 0?n:rc(y)===rc(g),w=()=>m(e,{replace:j,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 Bq=0,qq=()=>`__${String(++Bq)}__`;function Iq(){let{router:e}=p3("useSubmit"),{basename:t}=P.useContext(Wn),n=aq(),r=e.fetch,a=e.navigate;return P.useCallback(async(o,l={})=>{let{action:c,method:f,encType:h,formData:m,body:y}=xq(o,t);if(l.navigate===!1){let g=l.fetcherKey||qq();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 Uq(e,{relative:t}={}){let{basename:n}=P.useContext(Wn),r=P.useContext(Dr);wt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Gc(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 Vq(e,{relative:t}={}){let n=P.useContext(i3);wt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=p3("useViewTransitionState"),a=Gc(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 vT=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(S=>S(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},Hq=(e=>e?vT(e):vT),Gq=e=>e;function Fq(e,t=Gq){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 gT=e=>{const t=Hq(e),n=r=>Fq(t,r);return Object.assign(n,t),n},m3=(e=>e?gT(e):gT);function Kq(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 a1=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return a1(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return a1(r)(n)}}}},Yq=(e,t)=>(n,r,a)=>{let o={storage:Kq(()=>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 S=e((...b)=>(n(...b),y()),r,a);a.getInitialState=()=>S;let j;const w=()=>{var b,A;if(!m)return;const _=++c;l=!1,f.forEach(C=>{var O;return C((O=r())!=null?O:S)});const T=((A=o.onRehydrateStorage)==null?void 0:A.call(o,(b=r())!=null?b:S))||void 0;return a1(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(j=o.merge(M,(O=r())!=null?O:S),n(j,!0),E)return y()}).then(()=>{_===c&&(T==null||T(r(),void 0),j=r(),l=!0,h.forEach(C=>C(j)))}).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(),j||S},Xq=Yq,Fc=m3()(Xq(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})})),mj=P.createContext({});function yj(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wq=typeof window<"u",vj=Wq?P.useLayoutEffect:P.useEffect,Np=P.createContext(null);function gj(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 xj=()=>{};const wa={},y3=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),v3=e=>typeof e=="object"&&e!==null,g3=e=>/^0[^.\s]+$/u.test(e);function x3(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 bj{constructor(){this.subscriptions=[]}add(t){return gj(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,b3=(e,t)=>t?e*(1e3/t):0,S3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Zq=1e-7,Qq=12;function Jq(e,t,n,r,a){let o,l,c=0;do l=t+(n-t)/2,o=S3(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>Zq&&++c<Qq);return l}function Yc(e,t,n,r){if(e===t&&n===r)return pr;const a=o=>Jq(o,0,1,e,n);return o=>o===0||o===1?o:S3(a(o),t,r)}const j3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,w3=e=>t=>1-e(1-t),A3=Yc(.33,1.53,.69,.99),Sj=w3(A3),O3=j3(Sj),_3=e=>e>=1?1:(e*=2)<1?.5*Sj(e):.5*(2-Math.pow(2,-10*(e-1))),jj=e=>1-Math.sin(Math.acos(e)),T3=w3(jj),E3=j3(jj),eI=Yc(.42,0,1,1),tI=Yc(0,0,.58,1),N3=Yc(.42,0,.58,1),nI=e=>Array.isArray(e)&&typeof e[0]!="number",C3=e=>Array.isArray(e)&&typeof e[0]=="number",rI={linear:pr,easeIn:eI,easeInOut:N3,easeOut:tI,circIn:jj,circInOut:E3,circOut:T3,backIn:Sj,backInOut:O3,backOut:A3,anticipate:_3},iI=e=>typeof e=="string",xT=e=>{if(C3(e)){xj(e.length===4);const[t,n,r,a]=e;return Yc(t,n,r,a)}else if(iI(e))return rI[e];return e},Nd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aI(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 S=y&&r?t:n;return m&&o.add(h),S.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 sI=40;function M3(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]=aI(o),T),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:m,update:y,preRender:g,render:S,postRender:j}=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,sI),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),S.process(a),j.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}=M3(typeof requestAnimationFrame<"u"?requestAnimationFrame:pr,!0);let Zd;function oI(){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(oI)}},P3=e=>t=>typeof t=="string"&&t.startsWith(e),R3=P3("--"),lI=P3("var(--"),wj=e=>lI(e)?uI.test(e.split("/*")[0].trim()):!1,uI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function bT(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const vl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ac={...vl,transform:e=>Zr(0,1,e)},Cd={...vl,default:1},Hu=e=>Math.round(e*1e5)/1e5,Aj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cI(e){return e==null}const fI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oj=(e,t)=>n=>!!(typeof n=="string"&&fI.test(n)&&n.startsWith(e)||t&&!cI(n)&&Object.prototype.hasOwnProperty.call(n,t)),D3=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,c]=r.match(Aj);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},dI=e=>Zr(0,255,e),$v={...vl,transform:e=>Math.round(dI(e))},ls={test:Oj("rgb","red"),parse:D3("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 hI(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 s1={test:Oj("#"),parse:hI,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"),Fr=Xc("%"),ve=Xc("px"),pI=Xc("vh"),mI=Xc("vw"),ST={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},Oo={test:Oj("hsl","hue"),parse:D3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fr.transform(Hu(t))+", "+Fr.transform(Hu(n))+", "+Hu(ac.transform(r))+")"},Bt={test:e=>ls.test(e)||s1.test(e)||Oo.test(e),parse:e=>ls.test(e)?ls.parse(e):Oo.test(e)?Oo.parse(e):s1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ls.transform(e):Oo.transform(e),getAnimatableNone:e=>{const t=Bt.parse(e);return t.alpha=0,Bt.transform(t)}},yI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Aj))==null?void 0:t.length)||0)+(((n=e.match(yI))==null?void 0:n.length)||0)>0}const k3="number",L3="color",gI="var",xI="var(",jT="${}",bI=/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 Bo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const c=t.replace(bI,f=>(Bt.test(f)?(r.color.push(o),a.push(L3),n.push(Bt.parse(f))):f.startsWith(xI)?(r.var.push(o),a.push(gI),n.push(f)):(r.number.push(o),a.push(k3),n.push(parseFloat(f))),++o,jT)).split(jT);return{values:n,split:c,indexes:r,types:a}}function SI(e){return Bo(e).values}function z3({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===k3?a+=Hu(r[o]):l===L3?a+=Bt.transform(r[o]):a+=r[o]}return a}}function jI(e){return z3(Bo(e))}const wI=e=>typeof e=="number"?0:Bt.test(e)?Bt.getAnimatableNone(e):e,AI=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:wI(e);function OI(e){const t=Bo(e);return z3(t)(t.values.map((r,a)=>AI(r,t.split[a])))}const Cr={test:vI,parse:SI,createTransformer:jI,getAnimatableNone:OI};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 _I({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)},TI=[s1,ls,Oo],EI=e=>TI.find(t=>t.test(e));function wT(e){const t=EI(e);if(!t)return!1;let n=t.parse(e);return t===Oo&&(n=_I(n)),n}const AT=(e,t)=>{const n=wT(e),r=wT(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))},o1=new Set(["none","hidden"]);function NI(e,t){return o1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function CI(e,t){return n=>ct(e,t,n)}function _j(e){return typeof e=="number"?CI:typeof e=="string"?wj(e)?dh:Bt.test(e)?AT:RI:Array.isArray(e)?$3:typeof e=="object"?Bt.test(e)?AT:MI:dh}function $3(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>_j(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function MI(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=_j(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function PI(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 RI=(e,t)=>{const n=Cr.createTransformer(t),r=Bo(e),a=Bo(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?o1.has(e)&&!a.values.length||o1.has(t)&&!r.values.length?NI(e,t):Kc($3(PI(r,a),a.values),n):dh(e,t)};function B3(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):_j(e)(e,t)}const DI=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()}},q3=(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 Tj(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 kI(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Tj(r),hh);return{type:"keyframes",ease:o=>r.next(a*o).value/t,duration:dr(a)}}const Et={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 l1(e,t){return e*Math.sqrt(1-t*t)}const LI=12;function zI(e,t,n){let r=n;for(let a=1;a<LI;a++)r=r-e(r)/t(r);return r}const Iv=.001;function $I({duration:e=Et.duration,bounce:t=Et.bounce,velocity:n=Et.velocity,mass:r=Et.mass}){let a,o,l=1-t;l=Zr(Et.minDamping,Et.maxDamping,l),e=Zr(Et.minDuration,Et.maxDuration,dr(e)),l<1?(a=h=>{const m=h*l,y=m*e,g=m-n,S=l1(h,l),j=Math.exp(-y);return Iv-g/S*j},o=h=>{const y=h*l*e,g=y*n+n,S=Math.pow(l,2)*Math.pow(h,2)*e,j=Math.exp(-y),w=l1(Math.pow(h,2),l);return(-a(h)+Iv>0?-1:1)*((g-S)*j)/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=zI(a,o,c);if(e=Kn(e),isNaN(f))return{stiffness:Et.stiffness,damping:Et.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const BI=["duration","bounce"],qI=["stiffness","damping","mass"];function OT(e,t){return t.some(n=>e[n]!==void 0)}function II(e){let t={velocity:Et.velocity,stiffness:Et.stiffness,damping:Et.damping,mass:Et.mass,isResolvedFromDuration:!1,...e};if(!OT(e,qI)&&OT(e,BI))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:Et.mass,stiffness:a,damping:o}}else{const n=$I({...e,velocity:0});t={...t,...n,mass:Et.mass},t.isResolvedFromDuration=!0}return t}function ph(e=Et.visualDuration,t=Et.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:S}=II({...n,velocity:-dr(n.velocity||0)}),j=g||0,w=h/(2*Math.sqrt(f*m)),b=l-o,A=dr(Math.sqrt(f/m)),_=Math.abs(b)<5;r||(r=_?Et.restSpeed.granular:Et.restSpeed.default),a||(a=_?Et.restDelta.granular:Et.restDelta.default);let T,C,O,E,M,k;if(w<1)O=l1(A,w),E=(j+w*A*b)/O,T=L=>{const I=Math.exp(-w*A*L);return l-I*(E*Math.sin(O*L)+b*Math.cos(O*L))},M=w*A*E+b*O,k=w*A*b-E*O,C=L=>Math.exp(-w*A*L)*(M*Math.sin(O*L)+k*Math.cos(O*L));else if(w===1){T=I=>l-Math.exp(-A*I)*(b+(j+A*b)*I);const L=j+A*b;C=I=>Math.exp(-A*I)*(A*L*I-j)}else{const L=A*Math.sqrt(w*w-1);T=X=>{const G=Math.exp(-w*A*X),z=Math.min(L*X,300);return l-G*((j+w*A*b)*Math.sinh(z)+L*b*Math.cosh(z))/L};const I=(j+w*A*b)/L,B=w*A*I-b*L,F=w*A*b-I*L;C=X=>{const G=Math.exp(-w*A*X),z=Math.min(L*X,300);return G*(B*Math.sinh(z)+F*Math.cosh(z))}}const D={calculatedDuration:S&&y||null,velocity:L=>Kn(C(L)),next:L=>{if(!S&&w<1){const B=Math.exp(-w*A*L),F=Math.sin(O*L),X=Math.cos(O*L),G=l-B*(E*F+b*X),z=Kn(B*(M*F+k*X));return c.done=Math.abs(z)<=r&&Math.abs(l-G)<=a,c.value=c.done?l:G,c}const I=T(L);if(S)c.done=L>=y;else{const B=Kn(C(L));c.done=Math.abs(B)<=r&&Math.abs(l-I)<=a}return c.value=c.done?l:I,c},toString:()=>{const L=Math.min(Tj(D),hh),I=q3(B=>D.next(L*B).value,L,30);return L+"ms "+I},toTransition:()=>{}};return D}ph.applyToOptions=e=>{const t=kI(e,100,ph);return e.ease=t.ease,e.duration=Kn(t.duration),e.type="keyframes",e};const UI=5;function I3(e,t,n){const r=Math.max(t-UI,0);return b3(n-e(r),t-r)}function u1({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},S=k=>c!==void 0&&k<c||f!==void 0&&k>f,j=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),L=T(k);g.done=Math.abs(D)<=h,g.value=g.done?A:L};let O,E;const M=k=>{S(g.value)&&(O=k,E=ph({keyframes:[g.value,j(g.value)],velocity:I3(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 VI(e,t,n){const r=[],a=n||wa.mix||B3,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 HI(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(xj(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=VI(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 GI(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 FI(e){const t=[0];return GI(t,e.length-1),t}function KI(e,t){return e.map(n=>n*t)}function YI(e,t){return e.map(()=>t||N3).splice(0,e.length-1)}function Gu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=nI(r)?r.map(xT):xT(r),o={done:!1,value:t[0]},l=KI(n&&n.length===t.length?n:FI(t),e),c=HI(l,t,{ease:Array.isArray(a)?a:YI(t,a)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const XI=e=>e!==null;function Cp(e,{repeat:t,repeatType:n="loop"},r,a=1){const o=e.filter(XI),c=a<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||r===void 0?o[c]:r}const WI={decay:u1,inertia:u1,tween:Gu,keyframes:Gu,spring:ph};function U3(e){typeof e.type=="string"&&(e.type=WI[e.type])}class Ej{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 ZI=e=>e/100;class mh extends Ej{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;U3(t);const{type:n=Gu,repeat:r=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=t;let{keyframes:c}=t;const f=n||Gu;f!==Gu&&typeof c[0]!="number"&&(this.mixKeyframes=Kc(ZI,B3(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=Tj(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:S,type:j,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),L=k%1;!L&&k>=1&&(L=1),L===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(g==="reverse"?(L=1-L,S&&(L-=S/c)):g==="mirror"&&(C=l)),T=Zr(0,1,L)*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&&j!==u1&&(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 I3(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=DI,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 QI(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const us=e=>e*180/Math.PI,c1=e=>{const t=us(Math.atan2(e[1],e[0]));return f1(t)},JI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:c1,rotateZ:c1,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},f1=e=>(e=e%360,e<0&&(e+=360),e),_T=c1,TT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ET=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eU={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:TT,scaleY:ET,scale:e=>(TT(e)+ET(e))/2,rotateX:e=>f1(us(Math.atan2(e[6],e[5]))),rotateY:e=>f1(us(Math.atan2(-e[2],e[0]))),rotateZ:_T,rotate:_T,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 d1(e){return e.includes("scale")?1:0}function h1(e,t){if(!e||e==="none")return d1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=eU,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=JI,a=c}if(!a)return d1(t);const o=r[t],l=a[1].split(",").map(nU);return typeof o=="function"?o(l):l[o]}const tU=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return h1(n,t)};function nU(e){return parseFloat(e.trim())}const gl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xl=new Set([...gl,"pathRotation"]),NT=e=>e===vl||e===ve,rU=new Set(["x","y","z"]),iU=gl.filter(e=>!rU.has(e));function aU(e){const t=[];return iU.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})=>h1(t,"x"),y:(e,{transform:t})=>h1(t,"y")};ga.translateX=ga.x;ga.translateY=ga.y;const ys=new Set;let p1=!1,m1=!1,y1=!1;function V3(){if(m1){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=aU(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)})}m1=!1,p1=!1,ys.forEach(e=>e.complete(y1)),ys.clear()}function H3(){ys.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(m1=!0)})}function sU(){y1=!0,H3(),V3(),y1=!1}class Nj{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),p1||(p1=!0,ft.read(H3),ft.resolveKeyframes(V3))):(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])}QI(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 oU=e=>e.startsWith("--");function G3(e,t,n){oU(t)?e.style.setProperty(t,n):e.style[t]=n}const lU={};function F3(e,t){const n=x3(e);return()=>lU[t]??n()}const uU=F3(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),K3=F3(()=>{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})`,CT={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 Y3(e,t){if(e)return typeof e=="function"?K3()?q3(e,t):"ease-out":C3(e)?qu(e):Array.isArray(e)?e.map(n=>Y3(n,t)||CT.easeOut):CT[e]}function cU(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=Y3(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 X3(e){return typeof e=="function"&&"applyToOptions"in e}function fU({type:e,...t}){return X3(e)&&K3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class W3 extends Ej{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,xj(typeof t.type!="string");const h=fU(t);this.animation=cU(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),G3(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&&uU()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),pr):a(this)}}const Z3={anticipate:_3,backInOut:O3,circInOut:E3};function dU(e){return e in Z3}function hU(e){typeof e.ease=="string"&&dU(e.ease)&&(e.ease=Z3[e.ease])}const Uv=10;class pU extends W3{constructor(t){hU(t),U3(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&&G3(o,y,m),n.setWithVelocity(c.sample(Math.max(0,f-h)).value,m,h),c.stop()}}const MT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Cr.test(e)||e==="0")&&!e.startsWith("url("));function mU(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 yU(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=MT(a,t),c=MT(o,t);return!l||!c?!1:mU(e)||(n==="spring"||X3(n))&&r}function v1(e){e.duration=0,e.type="keyframes"}const Q3=new Set(["opacity","clipPath","filter","transform"]),vU=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function gU(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&vU.test(e[t]))return!0;return!1}const xU=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),bU=x3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function SU(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 bU()&&n&&(Q3.has(n)||xU.has(n)&&gU(c))&&(n!=="transform"||!m)&&!h&&!r&&a!=="mirror"&&o!==0&&l!=="inertia"}const jU=40;class wU extends Ej{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 j;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},S=(m==null?void 0:m.KeyframeResolver)||Nj;this.keyframeResolver=new S(c,(w,b,A)=>this.onKeyframesResolved(w,b,g,!A),f,h,m),(j=this.keyframeResolver)==null||j.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;yU(t,o,l,c)||(y=!1,(wa.instantAnimations||!f)&&(m==null||m(Cp(t,r,n))),t[0]=t[t.length-1],v1(r),r.repeat=0);const S={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>jU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},j=y&&!h&&SU(S),w=(_=(A=S.motionValue)==null?void 0:A.owner)==null?void 0:_.current;let b;if(j)try{b=new pU({...S,element:w})}catch{b=new mh(S)}else b=new mh(S);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(),sU()),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 J3(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 PT=30,AU=e=>!isNaN(parseFloat(e));class OU{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=AU(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 bj);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>PT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,PT);return b3(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 qo(e,t){return new OU(e,t)}function eL(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Cj(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?eL(n,e):n}const _U={type:"spring",stiffness:500,damping:25,restSpeed:10},TU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),EU={type:"keyframes",duration:.8},NU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CU=(e,{keyframes:t})=>t.length>2?EU:xl.has(e)?e.startsWith("scale")?TU(t[1]):_U:NU,MU=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function PU(e){for(const t in e)if(!MU.has(t))return!0;return!1}const Mj=(e,t,n,r={},a,o)=>l=>{const c=Cj(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};PU(c)||Object.assign(m,CU(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)&&(v1(m),m.delay===0&&(y=!0)),(wa.instantAnimations||wa.skipAnimations||a!=null&&a.shouldSkipAnimations||c.skipAnimations)&&(y=!0,v1(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 wU(m)},RU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DU(e){const t=RU.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function tL(e,t,n=1){const[r,a]=DU(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return y3(l)?parseFloat(l):l}return wj(a)?tL(a,t,n+1):a}function RT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pj(e,t,n,r){if(typeof t=="function"){const[a,o]=RT(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]=RT(r);t=t(n!==void 0?n:e.custom,a,o)}return t}function vs(e,t,n){const r=e.getProps();return Pj(r,t,n!==void 0?n:r.custom,e)}const nL=new Set(["width","height","top","left","right","bottom",...gl]),g1=e=>Array.isArray(e);function kU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qo(n))}function LU(e){return g1(e)?e[e.length-1]||0:e}function zU(e,t){const n=vs(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const c=LU(o[l]);kU(e,l,c)}}const un=e=>!!(e&&e.getVelocity);function $U(e){return!!(un(e)&&e.add)}function x1(e,t){const n=e.getValue("willChange");if($U(n))return n.add(t);if(!n&&wa.WillChange){const r=new wa.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Rj(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const BU="framerAppearId",rL="data-"+Rj(BU);function iL(e){return e.props[rL]}function qU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function aL(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:o,transitionEnd:l,...c}=t;const f=e.getDefaultTransition();o=o?eL(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],S=o==null?void 0:o.path;S&&S.animateVisualElement(e,c,o,n,y);for(const j in c){const w=e.getValue(j,e.latestValues[j]??null),b=c[j];if(b===void 0||g&&qU(g,j))continue;const A={delay:n,...Cj(o||{},j)};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=iL(e);if(E){const M=window.MotionHandoffAnimation(E,j,ft);M!==null&&(A.startTime=M,T=!0)}}x1(e,j);const C=h??e.shouldReduceMotion;w.start(Mj(j,w,b,C&&nL.has(j)?{type:!1}:A,e,T));const O=w.animation;O&&y.push(O)}if(l){const j=()=>ft.update(()=>{l&&zU(e,l)});y.length?Promise.all(y).then(j):j()}return y}function b1(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(aL(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:g}=a;return IU(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 IU(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(b1(f,t,{...l,delay:n+(typeof r=="function"?0:r)+J3(e.variantChildren,f,r,a,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function UU(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>b1(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=b1(e,t,n);else{const a=typeof t=="function"?vs(e,t,n.custom):t;r=Promise.all(aL(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const VU={test:e=>e==="auto",parse:e=>e},sL=e=>t=>t.test(e),oL=[vl,ve,Fr,wi,mI,pI,VU],DT=e=>oL.find(sL(e));function HU(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||g3(e):!0}const GU=new Set(["brightness","contrast","saturate","opacity"]);function FU(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Aj)||[];if(!r)return e;const a=n.replace(r,"");let o=GU.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const KU=/\b([a-z-]*)\(.*?\)/gu,S1={...Cr,getAnimatableNone:e=>{const t=e.match(KU);return t?t.map(FU).join(" "):e}},j1={...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))}},kT={...vl,transform:Math.round},YU={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:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:ac,originX:ST,originY:ST,originZ:ve},yh={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,inset:ve,insetBlock:ve,insetBlockStart:ve,insetBlockEnd:ve,insetInline:ve,insetInlineStart:ve,insetInlineEnd:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,paddingBlock:ve,paddingBlockStart:ve,paddingBlockEnd:ve,paddingInline:ve,paddingInlineStart:ve,paddingInlineEnd:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,marginBlock:ve,marginBlockStart:ve,marginBlockEnd:ve,marginInline:ve,marginInlineStart:ve,marginInlineEnd:ve,fontSize:ve,backgroundPositionX:ve,backgroundPositionY:ve,...YU,zIndex:kT,fillOpacity:ac,strokeOpacity:ac,numOctaves:kT},XU={...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:j1,WebkitMask:j1},lL=e=>XU[e],WU=new Set([S1,j1]);function uL(e,t){let n=lL(e);return WU.has(n)||(n=Cr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ZU=new Set(["auto","none","0"]);function QU(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!ZU.has(o)&&Bo(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=uL(n,a)}class JU extends Nj{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(),wj(y))){const g=tL(y,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!nL.has(r)||t.length!==2)return;const[a,o]=t,l=DT(a),c=DT(o),f=bT(a),h=bT(o);if(f!==h&&ga[r]){this.needsMeasurement=!0;return}if(l!==c)if(NT(l)&&NT(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||HU(t[a]))&&r.push(a);r.length&&QU(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 Dj=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function cL(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 w1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Qd(e){return v3(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:kj}=M3(queueMicrotask,!1),Or={x:!1,y:!1};function fL(){return Or.x||Or.y}function eV(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 dL(e,t){const n=cL(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function tV(e){return!(e.pointerType==="touch"||fL())}function nV(e,t,n={}){const[r,a,o]=dL(e,n);return r.forEach(l=>{let c=!1,f=!1,h;const m=()=>{l.removeEventListener("pointerleave",j)},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))},S=()=>{c=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},j=b=>{if(b.pointerType!=="touch"){if(c){f=!0;return}y(b)}},w=b=>{if(!tV(b))return;f=!1;const A=t(l,b);typeof A=="function"&&(h=A,l.addEventListener("pointerleave",j,a))};l.addEventListener("pointerenter",w,a),l.addEventListener("pointerdown",S,a)}),o}const hL=(e,t)=>t?e===t?!0:hL(e,t.parentElement):!1,Lj=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iV(e){return rV.has(e.tagName)||e.isContentEditable===!0}const aV=new Set(["INPUT","SELECT","TEXTAREA"]);function sV(e){return aV.has(e.tagName)||e.isContentEditable===!0}const Jd=new WeakSet;function LT(e){return t=>{t.key==="Enter"&&e(t)}}function Vv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const oV=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=LT(()=>{if(Jd.has(n))return;Vv(n,"down");const a=LT(()=>{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 zT(e){return Lj(e)&&!fL()}const $T=new WeakSet;function lV(e,t,n={}){const[r,a,o]=dL(e,n),l=c=>{const f=c.currentTarget;if(!zT(c)||$T.has(c))return;Jd.add(f),n.stopPropagation&&$T.add(c);const h=t(f,c),m={...a,capture:!0},y=(j,w)=>{window.removeEventListener("pointerup",g,m),window.removeEventListener("pointercancel",S,m),Jd.has(f)&&Jd.delete(f),zT(j)&&typeof h=="function"&&h(j,{success:w})},g=j=>{y(j,f===window||f===document||n.useGlobalTarget||hL(f,j.target))},S=j=>{y(j,!1)};window.addEventListener("pointerup",g,m),window.addEventListener("pointercancel",S,m)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),Qd(c)&&(c.addEventListener("focus",h=>oV(h,a)),!iV(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),o}function zj(e){return v3(e)&&"ownerSVGElement"in e}const eh=new WeakMap;let pa;const pL=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:zj(r)&&"getBBox"in r?r.getBBox()[t]:r[n],uV=pL("inline","width","offsetWidth"),cV=pL("block","height","offsetHeight");function fV({target:e,borderBoxSize:t}){var n;(n=eh.get(e))==null||n.forEach(r=>{r(e,{get width(){return uV(e,t)},get height(){return cV(e,t)}})})}function dV(e){e.forEach(fV)}function hV(){typeof ResizeObserver>"u"||(pa=new ResizeObserver(dV))}function pV(e,t){pa||hV();const n=cL(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 _o;function mV(){_o=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};th.forEach(t=>t(e))},window.addEventListener("resize",_o)}function yV(e){return th.add(e),_o||mV(),()=>{th.delete(e),!th.size&&typeof _o=="function"&&(window.removeEventListener("resize",_o),_o=void 0)}}function BT(e,t){return typeof e=="function"?yV(e):pV(e,t)}function vV(e){return zj(e)&&e.tagName==="svg"}const gV=[...oL,Bt,Cr],xV=e=>gV.find(sL(e)),qT=()=>({translate:0,scale:1,origin:0,originPoint:0}),To=()=>({x:qT(),y:qT()}),IT=()=>({min:0,max:0}),Gt=()=>({x:IT(),y:IT()}),bV=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 $j=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bj=["initial",...$j];function Pp(e){return Mp(e.animate)||Bj.some(t=>sc(e[t]))}function mL(e){return!!(Pp(e)||e.variants)}function SV(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,qo(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,qo(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const A1={current:null},yL={current:!1},jV=typeof window<"u";function wV(){if(yL.current=!0,!!jV)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>A1.current=e.matches;e.addEventListener("change",t),t()}else A1.current=!1}const UT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let vh={};function vL(e){vh=e}function AV(){return vh}class OV{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=Nj,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 S=vn.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,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=mL(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const S in g){const j=g[S];h[S]!==void 0&&un(j)&&j.set(h[S])}}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,bV.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:(yL.current||wV(),this.shouldReduceMotion=A1.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&&Q3.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:c,times:f,ease:h,duration:m}=n.accelerate,y=new W3({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=xl.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):Gt()}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<UT.length;r++){const a=UT[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=SV(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=qo(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"&&(y3(r)||g3(r))?r=parseFloat(r):!xV(r)&&Cr.test(n)&&(r=uL(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=Pj(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 bj),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){kj.render(this.render)}}class gL extends OV{constructor(){super(...arguments),this.KeyframeResolver=JU}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 xL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _V({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function TV(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 O1({scale:e,scaleX:t,scaleY:n}){return!Hv(e)||!Hv(t)||!Hv(n)}function rs(e){return O1(e)||bL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bL(e){return VT(e.x)||VT(e.y)}function VT(e){return e&&e!=="0%"}function gh(e,t,n){const r=e-n,a=t*r;return n+a}function HT(e,t,n,r,a){return a!==void 0&&(e=gh(e,a,r)),gh(e,n,r)+t}function _1(e,t=0,n=1,r,a){e.min=HT(e.min,t,n,r,a),e.max=HT(e.max,t,n,r,a)}function SL(e,{x:t,y:n}){_1(e.x,t.translate,t.scale,t.originPoint),_1(e.y,n.translate,n.scale,n.originPoint)}const GT=.999999999999,FT=1.0000000000001;function EV(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,SL(e,l)),r&&rs(o.latestValues)&&nh(e,o.latestValues,(c=o.layout)==null?void 0:c.layoutBox))}t.x<FT&&t.x>GT&&(t.x=1),t.y<FT&&t.y>GT&&(t.y=1)}function Vr(e,t){e.min+=t,e.max+=t}function KT(e,t,n,r,a=.5){const o=ct(e.min,e.max,a);_1(e,t,n,o,r)}function YT(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function nh(e,t,n){const r=n??e;KT(e.x,YT(t.x,r.x),t.scaleX,t.scale,t.originX),KT(e.y,YT(t.y,r.y),t.scaleY,t.scale,t.originY)}function jL(e,t){return xL(TV(e.getBoundingClientRect(),t))}function NV(e,t,n){const r=jL(e,n),{scroll:a}=t;return a&&(Vr(r.x,a.offset.x),Vr(r.y,a.offset.y)),r}const CV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MV=gl.length;function PV(e,t,n){let r="",a=!0;for(let l=0;l<MV;l++){const c=gl[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=w1(f,yh[c]);if(!h){a=!1;const y=CV[c]||c;r+=`${y}(${m}) `}n&&(t[c]=m)}}const o=e.pathRotation;return o&&(a=!1,r+=`rotate(${w1(o,yh.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function qj(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(xl.has(f)){l=!0;continue}else if(R3(f)){a[f]=h;continue}else{const m=w1(h,yh[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=PV(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 wL(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 XT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ou={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ve.test(e))e=parseFloat(e);else return e;const n=XT(e,t.target.x),r=XT(e,t.target.y);return`${n}% ${r}%`}},RV={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)}},T1={borderRadius:{...Ou,applyTo:[...Dj]},borderTopLeftRadius:Ou,borderTopRightRadius:Ou,borderBottomLeftRadius:Ou,borderBottomRightRadius:Ou,boxShadow:RV};function AL(e,{layout:t,layoutId:n}){return xl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!T1[e]||e==="opacity")}function Ij(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])||AL(c,e)||((l=n==null?void 0:n.getValue(c))==null?void 0:l.liveStyle)!==void 0)&&(o[c]=r[c]);return o}function DV(e){return window.getComputedStyle(e)}class kV extends gL{constructor(){super(...arguments),this.type="html",this.renderInstance=wL}readValueFromInstance(t,n){var r;if(xl.has(n))return(r=this.projection)!=null&&r.isProjecting?d1(n):tU(t,n);{const a=DV(t),o=(R3(n)?a.getPropertyValue(n):a[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return jL(t,n)}build(t,n,r){qj(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ij(t,n,r)}}const LV={offset:"stroke-dashoffset",array:"stroke-dasharray"},zV={offset:"strokeDashoffset",array:"strokeDasharray"};function $V(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?LV:zV;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const BV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function OL(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...c},f,h,m){if(qj(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 S of BV)y[S]!==void 0&&(g[S]=y[S],delete y[S]);t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&$V(y,a,o,l,!1)}const _L=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"]),TL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qV(e,t,n,r){wL(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(_L.has(a)?a:Rj(a),t.attrs[a])}function EL(e,t,n){const r=Ij(e,t,n);for(const a in e)if(un(e[a])||un(t[a])){const o=gl.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}class IV extends gL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Gt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xl.has(n)){const r=lL(n);return r&&r.default||0}return n=_L.has(n)?n:Rj(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return EL(t,n,r)}build(t,n,r){OL(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){qV(t,n,r,a)}mount(t){this.isSVGTag=TL(t.tagName),super.mount(t)}}const UV=Bj.length;function NL(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?NL(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<UV;n++){const r=Bj[n],a=e.props[r];(sc(a)||a===!1)&&(t[r]=a)}return t}function CL(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 VV=[...$j].reverse(),HV=$j.length;function GV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>UU(e,n,r)))}function FV(e){let t=GV(e),n=WT(),r=!0,a=!1;const o=h=>(m,y)=>{var S;const g=vs(e,y,h==="exit"?(S=e.presenceContext)==null?void 0:S.custom:void 0);if(g){const{transition:j,transitionEnd:w,...b}=g;m={...m,...b,...w}}return m};function l(h){t=h(e)}function c(h){const{props:m}=e,y=NL(e.parent)||{},g=[],S=new Set;let j={},w=1/0;for(let A=0;A<HV;A++){const _=VV[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={...j},!T.isActive&&E===null||!C&&!T.prevProp||Mp(C)||typeof C=="boolean")continue;if(_==="exit"&&T.isActive&&E!==!0){T.prevResolvedValues&&(j={...j,...T.prevResolvedValues});continue}const k=KV(T.prevProp,C);let D=k||_===h&&T.isActive&&!M&&O||A>w&&O,L=!1;const I=Array.isArray(C)?C:[C];let B=I.reduce(o(_),{});E===!1&&(B={});const{prevResolvedValues:F={}}=T,X={...F,...B},G=Q=>{D=!0,S.has(Q)&&(L=!0,S.delete(Q)),T.needsAnimating[Q]=!0;const re=e.getValue(Q);re&&(re.liveStyle=!1)};for(const Q in X){const re=B[Q],oe=F[Q];if(j.hasOwnProperty(Q))continue;let $=!1;g1(re)&&g1(oe)?$=!CL(re,oe)||k:$=re!==oe,$?re!=null?G(Q):S.add(Q):re!==void 0&&S.has(Q)?G(Q):T.protectedKeys[Q]=!0}T.prevProp=C,T.prevResolvedValues=B,T.isActive&&(j={...j,...B}),(r||a)&&e.blockInitialAnimation&&(D=!1);const z=M&&k;D&&(!z||L)&&g.push(...I.map(Q=>{const re={type:_};if(typeof Q=="string"&&(r||a)&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,$=vs(oe,Q);if(oe.enteringChildren&&$){const{delayChildren:H}=$.transition||{};re.delay=J3(oe.enteringChildren,e,H)}}return{animation:Q,options:re}}))}if(S.size){const A={};if(typeof m.initial!="boolean"){const _=vs(e,Array.isArray(m.initial)?m.initial[0]:m.initial);_&&_.transition&&(A.transition=_.transition)}S.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(S=>{var j;return(j=S.animationState)==null?void 0:j.setActive(h,m)}),n[h].isActive=m;const y=c(h);for(const S in n)n[S].protectedKeys={};return y}return{animateChanges:c,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=WT(),a=!0}}}function KV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!CL(t,e):!1}function Ja(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WT(){return{animate:Ja(!0),whileInView:Ja(),whileHover:Ja(),whileTap:Ja(),whileDrag:Ja(),whileFocus:Ja(),exit:Ja()}}function E1(e,t){e.min=t.min,e.max=t.max}function wr(e,t){E1(e.x,t.x),E1(e.y,t.y)}function ZT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const ML=1e-4,YV=1-ML,XV=1+ML,PL=.01,WV=0-PL,ZV=0+PL;function gn(e){return e.max-e.min}function QV(e,t,n){return Math.abs(e-t)<=n}function QT(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>=YV&&e.scale<=XV||isNaN(e.scale))&&(e.scale=1),(e.translate>=WV&&e.translate<=ZV||isNaN(e.translate))&&(e.translate=0)}function Fu(e,t,n,r){QT(e.x,t.x,n.x,r?r.originX:void 0),QT(e.y,t.y,n.y,r?r.originY:void 0)}function JT(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 JV(e,t,n,r){JT(e.x,t.x,n.x,r==null?void 0:r.x),JT(e.y,t.y,n.y,r==null?void 0:r.y)}function eE(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){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,a){return e-=t,e=gh(e,1/n,r),a!==void 0&&(e=gh(e,1/a,r)),e}function e7(e,t=0,n=1,r=.5,a,o=e,l=e){if(Fr.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=tE(e.min,t,n,c,a),e.max=tE(e.max,t,n,c,a)}function nE(e,t,[n,r,a],o,l){e7(e,t[n],t[r],t[a],t.scale,o,l)}const t7=["x","scaleX","originX"],n7=["y","scaleY","originY"];function rE(e,t,n,r){nE(e.x,t,t7,n?n.x:void 0,r?r.x:void 0),nE(e.y,t,n7,n?n.y:void 0,r?r.y:void 0)}function iE(e){return e.translate===0&&e.scale===1}function RL(e){return iE(e.x)&&iE(e.y)}function aE(e,t){return e.min===t.min&&e.max===t.max}function r7(e,t){return aE(e.x,t.x)&&aE(e.y,t.y)}function sE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function DL(e,t){return sE(e.x,t.x)&&sE(e.y,t.y)}function oE(e){return gn(e.x)/gn(e.y)}function lE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ur(e){return[e("x"),e("y")]}function i7(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:S,skewX:j,skewY:w}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),y&&(r+=`rotate(${y}deg) `),g&&(r+=`rotateX(${g}deg) `),S&&(r+=`rotateY(${S}deg) `),j&&(r+=`skewX(${j}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 a7=Dj.length,uE=e=>typeof e=="string"?parseFloat(e):e,cE=e=>typeof e=="number"||ve.test(e);function s7(e,t,n,r,a,o){a?(e.opacity=ct(0,n.opacity??1,o7(r)),e.opacityExit=ct(t.opacity??1,0,l7(r))):o&&(e.opacity=ct(t.opacity??1,n.opacity??1,r));for(let l=0;l<a7;l++){const c=Dj[l];let f=fE(t,c),h=fE(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||cE(f)===cE(h)?(e[c]=Math.max(ct(uE(f),uE(h),r),0),(Fr.test(h)||Fr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,r))}function fE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const o7=kL(0,.5,T3),l7=kL(.5,.95,pr);function kL(e,t,n){return r=>r<e?0:r>t?1:n(ic(e,t,r))}function u7(e,t,n){const r=un(e)?e:qo(e);return r.start(Mj("",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 c7=(e,t)=>e.depth-t.depth;class f7{constructor(){this.children=[],this.isDirty=!1}add(t){gj(this.children,t),this.isDirty=!0}remove(t){fh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(c7),this.isDirty=!1,this.children.forEach(t)}}function d7(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 h7{constructor(){this.members=[]}add(t){gj(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},Gv=["","X","Y","Z"],p7=1e3;let m7=0;function Fv(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function LL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=iL(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&&LL(r)}function zL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t==null?void 0:t()){this.id=m7++,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(g7),this.nodes.forEach(A7),this.nodes.forEach(O7),this.nodes.forEach(x7)},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 f7)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new bj),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=zj(l)&&!vV(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 S=window.innerWidth;S!==y&&(y=S,this.root.updateBlockedByResize=!0,m&&m(),m=d7(g,250),ih.hasAnimatedSinceResize&&(ih.hasAnimatedSinceResize=!1,this.nodes.forEach(pE)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:g,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||h.getDefaultTransition()||C7,{onLayoutAnimationStart:w,onLayoutAnimationComplete:b}=h.getProps(),A=!this.targetLayout||!DL(this.targetLayout,S),_=!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={...Cj(j,"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||pE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}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(_7),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&&LL(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(S7),this.nodes.forEach(dE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(j7),this.nodes.forEach(w7),this.nodes.forEach(y7),this.nodes.forEach(v7)):this.nodes.forEach(hE),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,kj.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(b7),this.sharedNodes.forEach(T7)}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=Gt()),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&&!RL(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)),M7(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:l}=this.options;if(!l)return Gt();const c=l.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(P7))){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=Gt();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||Gt();wr(h,l);for(let g=0;g<this.path.length;g++){const S=this.path[g];!c&&S.options.layoutScroll&&S.scroll&&S!==S.root&&(Vr(h.x,-S.scroll.offset.x),Vr(h.y,-S.scroll.offset.y)),rs(S.latestValues)&&nh(h,S.latestValues,(m=S.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=Gt();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&&(O1(m.latestValues)&&m.updateSnapshot(),y=Gt(),wr(y,m.measurePageBox())),rE(c,m.latestValues,(f=m.snapshot)==null?void 0:f.layoutBox,y)}return rs(this.latestValues)&&rE(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 S;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||(S=this.parent)!=null&&S.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=Gt(),this.targetWithTransforms=Gt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JV(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),SL(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||O1(this.parent.latestValues)||bL(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=Gt(),this.relativeTargetOrigin=Gt(),xh(this.relativeTargetOrigin,c,f,this.options.layoutAnchor||void 0),wr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var j;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(j=this.parent)!=null&&j.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;EV(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=Gt());const{target:S}=l;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ZT(this.prevProjectionDelta.x,this.projectionDelta.x),ZT(this.prevProjectionDelta.y,this.projectionDelta.y)),Fu(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==g||!lE(this.projectionDelta.x,this.prevProjectionDelta.x)||!lE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}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=To(),this.projectionDelta=To(),this.projectionDeltaWithTransform=To()}setAnimationOrigin(l,c=!1,f){const h=this.snapshot,m=h?h.latestValues:{},y={...this.latestValues},g=To();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const S=Gt(),j=h?h.source:void 0,w=this.layout?this.layout.source:void 0,b=j!==w,A=this.getStack(),_=!A||A.members.length<=1,T=!!(b&&!_&&this.options.crossfade===!0&&!this.path.some(N7));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):(mE(g.x,l.x,M),mE(g.y,l.y,M)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xh(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),E7(this.relativeTarget,this.relativeTargetOrigin,S,M),C&&r7(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Gt()),wr(C,this.relativeTarget)),b&&(this.animationValues=y,s7(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=qo(0)),this.motionValue.jump(0,!1),this.currentAnimation=u7(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(p7),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&&$L(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Gt();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),Fu(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new h7),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&&Fv("z",l,h,this.animationValues);for(let m=0;m<Gv.length;m++)Fv(`rotate${Gv[m]}`,l,h,this.animationValues),Fv(`skew${Gv[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=i7(this.projectionDeltaWithTransform,this.treeScale,m);f&&(y=f(m,y)),l.transform=y;const{x:g,y:S}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${S.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 j in T1){if(m[j]===void 0)continue;const{correct:w,applyTo:b,isCSSVariable:A}=T1[j],_=y==="none"?m[j]:w(m[j],h);if(b){const T=b.length;for(let C=0;C<T;C++)l[b[C]]=_}else A?this.options.visualElement.renderState.vars[j]=_:l[j]=_}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(dE),this.root.sharedNodes.clear()}}}function y7(e){e.updateLayout()}function v7(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],S=gn(g);g.min=r[y].min,g.max=g.min+S});else if(o==="x"||o==="y"){const y=o==="x"?"y":"x";E1(l?t.measuredBox[y]:t.layoutBox[y],r[y])}else $L(o,t.layoutBox,r)&&Ur(y=>{const g=l?t.measuredBox[y]:t.layoutBox[y],S=gn(r[y]);g.max=g.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+S)});const c=To();Fu(c,r,t.layoutBox);const f=To();l?Fu(f,e.applyTransform(a,!0),t.measuredBox):Fu(f,r,t.layoutBox);const h=!RL(c);let m=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:g,layout:S}=y;if(g&&S){const j=e.options.layoutAnchor||void 0,w=Gt();xh(w,t.layoutBox,g.layoutBox,j);const b=Gt();xh(b,r,S.layoutBox,j),DL(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 g7(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 x7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function b7(e){e.clearSnapshot()}function dE(e){e.clearMeasurements()}function S7(e){e.isLayoutDirty=!0,e.updateLayout()}function hE(e){e.isLayoutDirty=!1}function j7(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function w7(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function A7(e){e.resolveTargetDelta()}function O7(e){e.calcProjection()}function _7(e){e.resetSkewAndRotation()}function T7(e){e.removeLeadSnapshot()}function mE(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 yE(e,t,n,r){e.min=ct(t.min,n.min,r),e.max=ct(t.max,n.max,r)}function E7(e,t,n,r){yE(e.x,t.x,n.x,r),yE(e.y,t.y,n.y,r)}function N7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const C7={duration:.45,ease:[.4,0,.1,1]},vE=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gE=vE("applewebkit/")&&!vE("chrome/")?Math.round:pr;function xE(e){e.min=gE(e.min),e.max=gE(e.max)}function M7(e){xE(e.x),xE(e.y)}function $L(e,t,n){return e==="position"||e==="preserve-aspect"&&!QV(oE(t),oE(n),.2)}function P7(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const R7=zL({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},BL=zL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Kv.current){const e=new R7({});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"}),Uj=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function bE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function D7(...e){return t=>{let n=!1;const r=e.map(a=>{const o=bE(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():bE(e[a],null)}}}}function k7(...e){return P.useCallback(D7(...e),e)}class L7 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 z7({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(Uj),m=((g=e.props)==null?void 0:g.ref)??(e==null?void 0:e.ref),y=k7(c,m);return P.useInsertionEffect(()=>{const{width:S,height:j,top:w,left:b,right:A,bottom:_,direction:T}=f.current;if(t||o===!1||!c.current||!S||!j)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: ${S}px !important;
|
||
height: ${j}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(L7,{isPresent:t,childRef:c,sizeRef:f,pop:o,children:o===!1?e:P.cloneElement(e,{ref:y})})}const $7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:l,anchorX:c,anchorY:f,root:h})=>{const m=yj(B7),y=P.useId(),g=P.useRef(n),S=P.useRef(r);vj(()=>{g.current=n,S.current=r});let j=!0,w=P.useMemo(()=>(j=!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=S.current)==null||A.call(S))})}),[n,m,r]);return o&&j&&(w={...w}),P.useMemo(()=>{m.forEach((b,A)=>m.set(A,!1))},[n]),P.useEffect(()=>{!n&&!m.size&&r&&r()},[n]),e=d.jsx(z7,{pop:l==="popLayout",isPresent:n,anchorX:c,anchorY:f,root:h,children:e}),d.jsx(Np.Provider,{value:w,children:e})};function B7(){return new Map}function qL(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]=qL(l),g=P.useMemo(()=>SE(e),[e]),S=l&&!m?[]:g.map(Md),j=P.useRef(!0),w=P.useRef(g),b=yj(()=>new Map),A=P.useRef(new Set),[_,T]=P.useState(g),[C,O]=P.useState(g);vj(()=>{j.current=!1,w.current=g;for(let k=0;k<C.length;k++){const D=Md(C[k]);S.includes(D)?(b.delete(D),A.current.delete(D)):b.get(D)!==!0&&b.set(D,!1)}},[C,S.length,S.join("-")]);const E=[];if(g!==_){let k=[...g];for(let D=0;D<C.length;D++){const L=C[D],I=Md(L);S.includes(I)||(k.splice(D,0,L),E.push(L))}return o==="wait"&&E.length&&(k=E),O(SE(k)),T(g),null}const{forceRender:M}=P.useContext(mj);return d.jsx(d.Fragment,{children:C.map(k=>{const D=Md(k),L=l&&!m?!1:g===C||S.includes(D),I=()=>{if(A.current.has(D))return;if(b.has(D))A.current.add(D),b.set(D,!0);else return;let B=!0;b.forEach(F=>{F||(B=!1)}),B&&(M==null||M(),O(w.current),l&&(y==null||y()),r&&r())};return d.jsx($7,{isPresent:L,initial:!j.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:h,onExitComplete:L?void 0:I,anchorX:c,anchorY:f,children:k},D)})})},IL=P.createContext({strict:!1}),jE={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 wE=!1;function q7(){if(wE)return;const e={};for(const t in jE)e[t]={isEnabled:n=>jE[t].some(r=>!!n[r])};vL(e),wE=!0}function UL(){return q7(),AV()}function I7(e){const t=UL();for(const n in e)t[n]={...t[n],...e[n]};vL(t)}const U7=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")||U7.has(e)}let VL=e=>!bh(e);function V7(e){typeof e=="function"&&(VL=t=>t.startsWith("on")?!bh(t):e(t))}try{V7(require("@emotion/is-prop-valid").default)}catch{}function H7(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||un(e[a])||(VL(a)||n===!0&&bh(a)||!t&&!bh(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Rp=P.createContext({});function G7(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 F7(e){const{initial:t,animate:n}=G7(e,P.useContext(Rp));return P.useMemo(()=>({initial:t,animate:n}),[AE(t),AE(n)])}function AE(e){return Array.isArray(e)?e.join(" "):e}const Vj=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HL(e,t,n){for(const r in t)!un(t[r])&&!AL(r,n)&&(e[r]=t[r])}function K7({transformTemplate:e},t){return P.useMemo(()=>{const n=Vj();return qj(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Y7(e,t){const n=e.style||{},r={};return HL(r,n,e),Object.assign(r,K7(e,t)),r}function X7(e,t){const n={},r=Y7(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 GL=()=>({...Vj(),attrs:{}});function W7(e,t,n,r){const a=P.useMemo(()=>{const o=GL();return OL(o,t,TL(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};HL(o,e.style,e),a.style={...o,...a.style}}return a}const Z7=["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 Hj(e){return typeof e!="string"||e.includes("-")?!1:!!(Z7.indexOf(e)>-1||/[A-Z]/u.test(e))}function Q7(e,t,n,{latestValues:r},a,o=!1,l){const f=(l??Hj(e)?W7:X7)(t,r,a,e),h=H7(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 J7({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:e9(n,r,a,e),renderState:t()}}function e9(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=mL(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 S=0;S<g.length;S++){const j=Pj(e,g[S]);if(j){const{transitionEnd:w,transition:b,...A}=j;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 FL=e=>(t,n)=>{const r=P.useContext(Rp),a=P.useContext(Np),o=()=>J7(e,t,r,a);return n?o():yj(o)},t9=FL({scrapeMotionValuesFromProps:Ij,createRenderState:Vj}),n9=FL({scrapeMotionValuesFromProps:EL,createRenderState:GL}),r9=Symbol.for("motionComponentSymbol");function i9(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 KL=P.createContext({});function Ao(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function a9(e,t,n,r,a,o){var T,C;const{visualElement:l}=P.useContext(Rp),c=P.useContext(IL),f=P.useContext(Np),h=P.useContext(Uj),m=h.reducedMotion,y=h.skipAnimations,g=P.useRef(null),S=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}),S.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const j=g.current,w=P.useContext(KL);j&&!j.projection&&a&&(j.type==="html"||j.type==="svg")&&s9(g.current,n,a,w);const b=P.useRef(!1);P.useInsertionEffect(()=>{j&&b.current&&j.update(n,f)});const A=n[rL],_=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 vj(()=>{S.current=!0,j&&(b.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),_.current&&j.animationState&&j.animationState.animateChanges())}),P.useEffect(()=>{j&&(!_.current&&j.animationState&&j.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,A)}),_.current=!1),j.enteringChildren=void 0)}),j}function s9(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:YL(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||c&&Ao(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:f,layoutRoot:h,layoutAnchor:m})}function YL(e){if(e)return e.options.allowProjection!==!1?e.projection:YL(e.parent)}function Yv(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&I7(r);const o=n?n==="svg":Hj(e),l=o?n9:t9;function c(h,m){let y;const g={...P.useContext(Uj),...h,layoutId:o9(h)},{isStatic:S}=g,j=F7(h),w=l(h,S);if(!S&&typeof window<"u"){l9();const b=u9(g);y=b.MeasureLayout,j.visualElement=a9(e,w,g,a,b.ProjectionNode,o)}return d.jsxs(Rp.Provider,{value:j,children:[y&&j.visualElement?d.jsx(y,{visualElement:j.visualElement,...g}):null,Q7(e,h,i9(w,j.visualElement,m),w,S,t,o)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=P.forwardRef(c);return f[r9]=e,f}function o9({layoutId:e}){const t=P.useContext(mj).id;return t&&e!==void 0?t+"-"+e:e}function l9(e,t){P.useContext(IL).strict}function u9(e){const t=UL(),{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 c9(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 f9=(e,t)=>t.isSVG??Hj(e)?new IV(t):new kV(t,{allowProjection:e!==P.Fragment});class d9 extends Na{constructor(t){super(t),t.animationState||(t.animationState=FV(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 h9=0;class p9 extends Na{constructor(){super(...arguments),this.id=h9++,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 m9={animation:{Feature:d9},exit:{Feature:p9}};function Wc(e){return{point:{x:e.pageX,y:e.pageY}}}const y9=e=>t=>Lj(t)&&e(t,Wc(t));function Yu(e,t,n,r){return oc(e,t,y9(n),r)}const XL=({current:e})=>e?e.ownerDocument.defaultView:null,OE=(e,t)=>Math.abs(e-t);function v9(e,t){const n=OE(e.x,t.x),r=OE(e.y,t.y);return Math.sqrt(n**2+r**2)}const _E=new Set(["auto","scroll"]);class WL{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=j=>{this.handleScroll(j.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Pd(this.lastRawMoveEventInfo,this.transformPagePoint));const j=Xv(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,b=v9(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!b)return;const{point:A}=j,{timestamp:_}=ln;this.history.push({...A,timestamp:_});const{onStart:T,onMove:C}=this.handlers;w||(T&&T(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,j)},this.handlePointerMove=(j,w)=>{this.lastMoveEvent=j,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Pd(w,this.transformPagePoint),ft.update(this.updatePoint,!0)},this.handlePointerUp=(j,w)=>{this.end();const{onEnd:b,onSessionEnd:A,resumeAnimation:_}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Xv(j.type==="pointercancel"?this.lastMoveEventInfo:Pd(w,this.transformPagePoint),this.history);this.startEvent&&b&&b(j,T),A&&A(j,T)},!Lj(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 S={passive:!0,capture:!0};this.removeListeners=Kc(Yu(this.contextWindow,"pointermove",this.handlePointerMove,S),Yu(this.contextWindow,"pointerup",this.handlePointerUp,S),Yu(this.contextWindow,"pointercancel",this.handlePointerUp,S)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(_E.has(r.overflowX)||_E.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 TE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xv({point:e},t){return{point:e,delta:TE(e,ZL(t)),offset:TE(e,g9(t)),velocity:x9(t,.1)}}function g9(e){return e[0]}function ZL(e){return e[e.length-1]}function x9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=ZL(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 b9(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 EE(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 S9(e,{top:t,left:n,bottom:r,right:a}){return{x:EE(e.x,n,a),y:EE(e.y,t,r)}}function NE(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 j9(e,t){return{x:NE(e.x,t.x),y:NE(e.y,t.y)}}function w9(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 A9(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 N1=.35;function O9(e=N1){return e===!1?e=0:e===!0&&(e=N1),{x:CE(e,"left","right"),y:CE(e,"top","bottom")}}function CE(e,t,n){return{min:ME(e,t),max:ME(e,n)}}function ME(e,t){return typeof e=="number"?e:e[t]||0}const _9=new WeakMap;class T9{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=Gt(),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:S,dragPropagation:j,onDragStart:w}=this.getProps();if(S&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=eV(S),!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(Fr.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),x1(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},c=(y,g)=>{this.latestPointerEvent=y,this.latestPanInfo=g;const{dragPropagation:S,dragDirectionLock:j,onDirectionLock:w,onDrag:b}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:A}=g;if(j&&this.currentDirection===null){this.currentDirection=N9(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 WL(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:XL(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=b9(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&&Ao(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=S9(r.layoutBox,t):this.constraints=!1,this.elastic=O9(n),a!==this.constraints&&!Ao(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ur(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=A9(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ao(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=NV(r,a.root,this.visualElement.getTransformPagePoint());let l=j9(a.layout.layoutBox,o);if(n){const c=n(_V(l));this.hasMutatedConstraints=!!c,c&&(l=xL(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,S=a?40:1e7,j={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...o,...y};return this.startAxisValueAnimation(m,j)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return x1(this.visualElement,t),r.start(Mj(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(!Ao(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]=w9({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;_9.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,S=g!==t&&sV(g);m&&y&&!S&&this.start(h)});let r;const a=()=>{const{dragConstraints:h}=this.getProps();Ao(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),r||(r=E9(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=N1,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function PE(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function E9(e,t,n){const r=BT(e,PE(n)),a=BT(t,PE(n));return()=>{r(),a()}}function Rd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function N9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class C9 extends Na{constructor(t){super(t),this.removeGroupControls=pr,this.removeListeners=pr,this.controls=new T9(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 M9 extends Na{constructor(){super(...arguments),this.removePointerDownListener=pr}onPointerDown(t){this.session=new WL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:XL(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 P9 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(),kj.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 QL(e){const[t,n]=qL(),r=P.useContext(mj);return d.jsx(P9,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(KL),isPresent:t,safeToRemove:n})}const R9={pan:{Feature:M9},drag:{Feature:C9,ProjectionNode:BL,MeasureLayout:QL}};function RE(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 D9 extends Na{mount(){const{current:t}=this.node;t&&(this.unmount=nV(t,(n,r)=>(RE(this.node,r,"Start"),a=>RE(this.node,a,"End"))))}unmount(){}}class k9 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 DE(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 L9 extends Na{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=lV(t,(a,o)=>(DE(this.node,o,"Start"),(l,{success:c})=>DE(this.node,l,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const C1=new WeakMap,Qv=new WeakMap,z9=e=>{const t=C1.get(e.target);t&&t(e)},$9=e=>{e.forEach(z9)};function B9({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($9,{root:e,...t})),r[a]}function q9(e,t,n){const r=B9(t);return C1.set(e,n),r.observe(e),()=>{C1.delete(e),r.unobserve(e)}}const I9={some:0,all:1};class U9 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:I9[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(),S=m?y:g;S&&S(h)};this.stopObserver=q9(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(V9(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function V9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const H9={inView:{Feature:U9},tap:{Feature:L9},focus:{Feature:k9},hover:{Feature:D9}},G9={layout:{ProjectionNode:BL,MeasureLayout:QL}},F9={...m9,...H9,...R9,...G9},cr=c9(F9,f9),Gj=m3(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 K9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),JL=(...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 Y9={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 X9=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,...Y9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:JL("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(X9,{ref:o,iconNode:t,className:JL(`lucide-${K9(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 W9=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 Z9=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 M1=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 P1=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 Fj=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 Q9=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 J9=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 eH=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 tH=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 nH=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 rH=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 Kj=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 Io=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 iH=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 kE=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 aH=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 e4=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 sH=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 oH=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 t4=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 LE=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 lH=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 uH=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 cH=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 Ss=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 n4=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 fH=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 dH=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 hH=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 pH=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 mH=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 yH=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 vH=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 zE=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 $E=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 BE=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 gH=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 xH=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 bH=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 SH=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 r4=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 Yj=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 Sa=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 R1=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 D1=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 i4=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 a4=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 s4(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=s4(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=s4(e))&&(r&&(r+=" "),r+=t);return r}const Xj="-",jH=e=>{const t=AH(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(Xj);return c[0]===""&&c.length!==1&&c.shift(),o4(c,t)||wH(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},o4=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?o4(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(Xj);return(l=t.validators.find(({validator:c})=>c(o)))==null?void 0:l.classGroupId},qE=/^\[(.+)\]$/,wH=e=>{if(qE.test(e)){const t=qE.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},AH=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return _H(Object.entries(e.classGroups),n).forEach(([o,l])=>{k1(l,r,o,t)}),r},k1=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:IE(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(OH(a)){k1(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{k1(l,IE(t,o),n,r)})})},IE=(e,t)=>{let n=e;return t.split(Xj).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},OH=e=>e.isThemeGetter,_H=(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,TH=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)}}},l4="!",EH=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),S=g.startsWith(l4),j=S?g.substring(1):g,w=y&&y>m?y-m:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:j,maybePostfixModifierPosition:w}};return n?c=>n({className:c,parseClassName:l}):l},NH=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},CH=e=>({cache:TH(e.cacheSize),parseClassName:EH(e),...jH(e)}),MH=/\s+/,PH=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=[],l=e.trim().split(MH);let c="";for(let f=l.length-1;f>=0;f-=1){const h=l[f],{modifiers:m,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:S}=n(h);let j=!!S,w=r(j?g.substring(0,S):g);if(!w){if(!j){c=h+(c.length>0?" "+c:c);continue}if(w=r(g),!w){c=h+(c.length>0?" "+c:c);continue}j=!1}const b=NH(m).join(":"),A=y?b+l4:b,_=A+w;if(o.includes(_))continue;o.push(_);const T=a(w,j);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 RH(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=u4(t))&&(r&&(r+=" "),r+=n);return r}const u4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=u4(e[r]))&&(n&&(n+=" "),n+=t);return n};function DH(e,...t){let n,r,a,o=l;function l(f){const h=t.reduce((m,y)=>y(m),e());return n=CH(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=PH(f,n);return a(f,m),m}return function(){return o(RH.apply(null,arguments))}}const xt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},c4=/^\[(?:([a-z-]+):)?(.+)\]$/i,kH=/^\d+\/\d+$/,LH=new Set(["px","full","screen"]),zH=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$H=/\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$/,BH=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qH=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Si=e=>Do(e)||LH.has(e)||kH.test(e),da=e=>bl(e,"length",XH),Do=e=>!!e&&!Number.isNaN(Number(e)),Jv=e=>bl(e,"number",Do),_u=e=>!!e&&Number.isInteger(Number(e)),UH=e=>e.endsWith("%")&&Do(e.slice(0,-1)),Le=e=>c4.test(e),ha=e=>zH.test(e),VH=new Set(["length","size","percentage"]),HH=e=>bl(e,VH,f4),GH=e=>bl(e,"position",f4),FH=new Set(["image","url"]),KH=e=>bl(e,FH,ZH),YH=e=>bl(e,"",WH),Tu=()=>!0,bl=(e,t,n)=>{const r=c4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},XH=e=>$H.test(e)&&!BH.test(e),f4=()=>!1,WH=e=>qH.test(e),ZH=e=>IH.test(e),QH=()=>{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"),S=xt("gradientColorStops"),j=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"],L=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Le,t],B=()=>[Le,t],F=()=>["",Si,da],X=()=>["auto",Do,Le],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],K=()=>["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"],re=()=>["","0",Le],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Do,Le];return{cacheSize:500,separator:":",theme:{colors:[Tu],spacing:[Si,da],blur:["none","",ha,Le],brightness:$(),borderColor:[e],borderRadius:["none","","full",ha,Le],borderSpacing:B(),borderWidth:F(),contrast:$(),grayscale:re(),hueRotate:$(),invert:re(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[UH,da],inset:I(),margin:I(),opacity:$(),padding:B(),saturate:$(),scale:$(),sepia:re(),skew:$(),space:B(),translate:B()},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:[...G(),Le]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],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",_u,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:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",_u,Le]}],"grid-cols":[{"grid-cols":[Tu]}],"col-start-end":[{col:["auto",{span:["full",_u,Le]},Le]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[Tu]}],"row-start-end":[{row:["auto",{span:[_u,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:[Tu]}],"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",Do,Jv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Si,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:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Si,da]}],"underline-offset":[{"underline-offset":["auto",Si,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:B()}],"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:[...G(),GH]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",HH]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},KH]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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:[...z(),"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:z()}],"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:["",...z()]}],"outline-offset":[{"outline-offset":[Si,Le]}],"outline-w":[{outline:[Si,da]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Si,da]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ha,YH]}],"shadow-color":[{shadow:[Tu]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],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:$()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:$()}],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:[_u,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":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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:[Si,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"]}}},JH=DH(QH);function qt(...e){return JH(Pe(e))}function _e(e,t="SEK"){return new Intl.NumberFormat("sv-SE",{style:"currency",currency:t,maximumFractionDigits:0}).format(e)}function UE(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 Wj(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 eG(e){return e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2)}const tG=[{path:"/",label:"Briefing",icon:yH},{path:"/dashboard",label:"Dashboard",icon:lH},{path:"/crm",label:"CRM",icon:Oa},{path:"/sales",label:"Sales",icon:Kr},{path:"/finance",label:"Finance",icon:i4},{path:"/hr",label:"HR",icon:lc},{path:"/legal",label:"Legal",icon:cs},{path:"/marketing",label:"Marketing",icon:n4},{path:"/support",label:"Support",icon:t4},{path:"/automation",label:"Automation",icon:a4}];function nG(){const{sidebarOpen:e,toggleSidebar:t}=Gj(),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(nH,{size:14}):d.jsx(rH,{size:14})})]}),d.jsx("nav",{className:"flex-1 py-4 space-y-0.5 overflow-y-auto",children:tG.map(r=>{const a=n.pathname===r.path||r.path!=="/"&&n.pathname.startsWith(r.path),o=r.icon;return d.jsxs(h3,{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 VE=[{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 rG(){const{user:e,logout:t}=Fc(),{toggleSidebar:n}=Gj(),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=VE.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(fH,{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(P1,{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:VE.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:Wj(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?eG(e.name):"?"}),d.jsx(tH,{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(D1,{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(Fj,{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(xH,{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(cH,{size:15}),"Sign out"]})})]})]})]})})]})]})]})}function iG(){const{sidebarOpen:e}=Gj();return d.jsxs("div",{className:"min-h-screen bg-bg",children:[d.jsx(nG,{}),d.jsxs("div",{className:qt("transition-all duration-200 ease-out",e?"lg:ml-[240px]":"lg:ml-[72px]"),children:[d.jsx(rG,{}),d.jsx("main",{className:"p-6 lg:p-10",children:d.jsx(uq,{})})]})]})}const L1=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})]}));L1.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 aG="/api/v1";function sG(){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=`${aG}${t}`,a={"Content-Type":"application/json"},o=sG();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)},HE={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}`)},Eo={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 oG(){const e=_p(),{login:t}=Fc(),[n,r]=P.useState(""),[a,o]=P.useState(""),[l,c]=P.useState(!1),[f,h]=P.useState(""),[m,y]=P.useState(!1),g=async S=>{var j;S.preventDefault(),h(""),y(!0);try{const w=await HE.login(n,a);if(!w.ok){h("Invalid credentials");return}localStorage.setItem("amos_token",w.token);const b=await HE.me();t(w.token,{id:b.user.sub,email:b.user.email,name:"Erik Svensson",role:((j=b.user.roles)==null?void 0:j[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(L1,{label:"Email",type:"email",placeholder:"you@company.com",value:n,onChange:S=>r(S.target.value),icon:d.jsx(Ss,{size:16}),required:!0}),d.jsxs("div",{className:"relative",children:[d.jsx(L1,{label:"Password",type:l?"text":"password",placeholder:"Enter your password",value:a,onChange:S=>o(S.target.value),icon:d.jsx(uH,{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(aH,{size:16}):d.jsx(e4,{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 FE({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(hH,{size:12}):d.jsx(Yj,{size:12}),Math.abs(n),"%"]}),d.jsx("span",{className:"text-xs text-text-secondary",children:r})]})]})}var tg,KE;function Cn(){if(KE)return tg;KE=1;var e=Array.isArray;return tg=e,tg}var ng,YE;function d4(){if(YE)return ng;YE=1;var e=typeof Td=="object"&&Td&&Td.Object===Object&&Td;return ng=e,ng}var rg,XE;function ei(){if(XE)return rg;XE=1;var e=d4(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return rg=n,rg}var ig,WE;function Jc(){if(WE)return ig;WE=1;var e=ei(),t=e.Symbol;return ig=t,ig}var ag,ZE;function lG(){if(ZE)return ag;ZE=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,QE;function uG(){if(QE)return sg;QE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return sg=n,sg}var og,JE;function Li(){if(JE)return og;JE=1;var e=Jc(),t=lG(),n=uG(),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,eN;function zi(){if(eN)return lg;eN=1;function e(t){return t!=null&&typeof t=="object"}return lg=e,lg}var ug,tN;function Sl(){if(tN)return ug;tN=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,nN;function Zj(){if(nN)return cg;nN=1;var e=Cn(),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,rN;function Ca(){if(rN)return fg;rN=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return fg=e,fg}var dg,iN;function Qj(){if(iN)return dg;iN=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,aN;function cG(){if(aN)return hg;aN=1;var e=ei(),t=e["__core-js_shared__"];return hg=t,hg}var pg,sN;function fG(){if(sN)return pg;sN=1;var e=cG(),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,oN;function h4(){if(oN)return mg;oN=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,lN;function dG(){if(lN)return yg;lN=1;var e=Qj(),t=fG(),n=Ca(),r=h4(),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 S=e(g)?m:o;return S.test(r(g))}return yg=y,yg}var vg,uN;function hG(){if(uN)return vg;uN=1;function e(t,n){return t==null?void 0:t[n]}return vg=e,vg}var gg,cN;function Cs(){if(cN)return gg;cN=1;var e=dG(),t=hG();function n(r,a){var o=t(r,a);return e(o)?o:void 0}return gg=n,gg}var xg,fN;function Dp(){if(fN)return xg;fN=1;var e=Cs(),t=e(Object,"create");return xg=t,xg}var bg,dN;function pG(){if(dN)return bg;dN=1;var e=Dp();function t(){this.__data__=e?e(null):{},this.size=0}return bg=t,bg}var Sg,hN;function mG(){if(hN)return Sg;hN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Sg=e,Sg}var jg,pN;function yG(){if(pN)return jg;pN=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 jg=a,jg}var wg,mN;function vG(){if(mN)return wg;mN=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,yN;function gG(){if(yN)return Ag;yN=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,vN;function xG(){if(vN)return Og;vN=1;var e=pG(),t=mG(),n=yG(),r=vG(),a=gG();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,gN;function bG(){if(gN)return _g;gN=1;function e(){this.__data__=[],this.size=0}return _g=e,_g}var Tg,xN;function Jj(){if(xN)return Tg;xN=1;function e(t,n){return t===n||t!==t&&n!==n}return Tg=e,Tg}var Eg,bN;function kp(){if(bN)return Eg;bN=1;var e=Jj();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 SG(){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,jN;function jG(){if(jN)return Cg;jN=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,wN;function wG(){if(wN)return Mg;wN=1;var e=kp();function t(n){return e(this.__data__,n)>-1}return Mg=t,Mg}var Pg,AN;function AG(){if(AN)return Pg;AN=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,ON;function Lp(){if(ON)return Rg;ON=1;var e=bG(),t=SG(),n=jG(),r=wG(),a=AG();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,_N;function ew(){if(_N)return Dg;_N=1;var e=Cs(),t=ei(),n=e(t,"Map");return Dg=n,Dg}var kg,TN;function OG(){if(TN)return kg;TN=1;var e=xG(),t=Lp(),n=ew();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return kg=r,kg}var Lg,EN;function _G(){if(EN)return Lg;EN=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,NN;function zp(){if(NN)return zg;NN=1;var e=_G();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,CN;function TG(){if(CN)return $g;CN=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,MN;function EG(){if(MN)return Bg;MN=1;var e=zp();function t(n){return e(this,n).get(n)}return Bg=t,Bg}var qg,PN;function NG(){if(PN)return qg;PN=1;var e=zp();function t(n){return e(this,n).has(n)}return qg=t,qg}var Ig,RN;function CG(){if(RN)return Ig;RN=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,DN;function tw(){if(DN)return Ug;DN=1;var e=OG(),t=TG(),n=EG(),r=NG(),a=CG();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,kN;function p4(){if(kN)return Vg;kN=1;var e=tw(),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,LN;function MG(){if(LN)return Hg;LN=1;var e=p4(),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 Gg,zN;function PG(){if(zN)return Gg;zN=1;var e=MG(),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 Gg=r,Gg}var Fg,$N;function nw(){if($N)return Fg;$N=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 Fg=e,Fg}var Kg,BN;function RG(){if(BN)return Kg;BN=1;var e=Jc(),t=nw(),n=Cn(),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,qN;function m4(){if(qN)return Yg;qN=1;var e=RG();function t(n){return n==null?"":e(n)}return Yg=t,Yg}var Xg,IN;function y4(){if(IN)return Xg;IN=1;var e=Cn(),t=Zj(),n=PG(),r=m4();function a(o,l){return e(o)?o:t(o,l)?[o]:n(r(o))}return Xg=a,Xg}var Wg,UN;function $p(){if(UN)return Wg;UN=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,VN;function rw(){if(VN)return Zg;VN=1;var e=y4(),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,HN;function v4(){if(HN)return Qg;HN=1;var e=rw();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 DG=v4();const Yn=it(DG);var Jg,GN;function kG(){if(GN)return Jg;GN=1;function e(t){return t==null}return Jg=e,Jg}var LG=kG();const Ne=it(LG);var ex,FN;function zG(){if(FN)return ex;FN=1;var e=Li(),t=Cn(),n=zi(),r="[object String]";function a(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return ex=a,ex}var $G=zG();const js=it($G);var BG=Qj();const Te=it(BG);var qG=Ca();const jl=it(qG);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 KN;function IG(){if(KN)return Qe;KN=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"),S=Symbol.for("react.offscreen"),j;j=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===S||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===y||b.$$typeof===o||b.$$typeof===l||b.$$typeof===f||b.$$typeof===j||b.getModuleId!==void 0)},Qe.typeOf=w,Qe}var YN;function UG(){return YN||(YN=1,tx.exports=IG()),tx.exports}var VG=UG(),nx,XN;function g4(){if(XN)return nx;XN=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,WN;function HG(){if(WN)return rx;WN=1;var e=g4();function t(n){return e(n)&&n!=+n}return rx=t,rx}var GG=HG();const wl=it(GG);var FG=g4();const KG=it(FG);var xn=function(t){return t===0?0:t>0?1:-1},fs=function(t){return js(t)&&t.indexOf("%")===t.length-1},ue=function(t){return KG(t)&&!wl(t)},YG=function(t){return Ne(t)},Kt=function(t){return ue(t)||js(t)},XG=0,Ms=function(t){var n=++XG;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)&&!js(t))return r;var o;if(fs(t)){var l=t.indexOf("%");o=n*parseFloat(t.slice(0,l))/100}else o=+t;return wl(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},WG=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},Ft=function(t,n){return ue(t)&&ue(n)?function(r){return t+r*(n-t)}:function(){return n}};function Sh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Yn(r,t))===n})}var ZG=function(t,n){return ue(t)&&ue(n)?t-n:js(t)&&js(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function ko(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 z1(e){"@babel/helpers - typeof";return z1=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},z1(e)}var QG=["viewBox","children"],JG=["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"],ZN=["points","pathLength"],ix={svg:QG,polygon:ZN,polyline:ZN},iw=["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"],jh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!jl(r))return null;var a={};return Object.keys(r).forEach(function(o){iw.includes(o)&&(a[o]=n||function(l){return r[o](r,l)})}),a},eF=function(t,n,r){return function(a){return t(n,r,a),null}},ws=function(t,n,r){if(!jl(t)||z1(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(o){var l=t[o];iw.includes(o)&&typeof l=="function"&&(a||(a={}),a[o]=eF(l,n,r))}),a},tF=["children"],nF=["children"];function QN(e,t){if(e==null)return{};var n=rF(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 rF(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 $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 JN={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":""},eC=null,ax=null,aw=function e(t){if(t===eC&&Array.isArray(ax))return ax;var n=[];return P.Children.forEach(t,function(r){Ne(r)||(VG.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),ax=n,eC=t,n};function Xn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ei(a)}):r=[Ei(t)],aw(e).forEach(function(a){var o=Yn(a,"type.displayName")||Yn(a,"type.name");r.indexOf(o)!==-1&&n.push(a)}),n}function Un(e,t){var n=Xn(e,t);return n&&n[0]}var tC=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)},iF=["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"],aF=function(t){return t&&t.type&&js(t.type)&&iF.indexOf(t.type)>=0},x4=function(t){return t&&$1(t)==="object"&&"clipDot"in t},sF=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)||JG.includes(n))||r&&iw.includes(n)},Se=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(P.isValidElement(t)&&(a=t.props),!jl(a))return null;var o={};return Object.keys(a).forEach(function(l){var c;sF((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(o[l]=a[l])}),o},B1=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 nC(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(!nC(o,l))return!1}return!0},nC=function(t,n){if(Ne(t)&&Ne(n))return!0;if(!Ne(t)&&!Ne(n)){var r=t.props||{},a=r.children,o=QN(r,tF),l=n.props||{},c=l.children,f=QN(l,nF);return a&&c?ko(o,f)&&B1(a,c):!a&&!c?ko(o,f):!1}return!1},rC=function(t,n){var r=[],a={};return aw(t).forEach(function(o,l){if(aF(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},oF=function(t){var n=t&&t.type;return n&&JN[n]?JN[n]:null},lF=function(t,n){return aw(n).indexOf(t)},uF=["children","width","height","viewBox","className","style","title","desc"];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 cF(e,t){if(e==null)return{};var n=fF(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 fF(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 I1(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=cF(e,uF),m=a||{width:n,height:r,x:0,y:0},y=Pe("recharts-surface",o);return q.createElement("svg",q1({},Se(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 dF=["children","className"];function U1(){return U1=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},U1.apply(this,arguments)}function hF(e,t){if(e==null)return{};var n=pF(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 pF(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=hF(e,dF),o=Pe("recharts-layer",r);return q.createElement("g",U1({className:o},Se(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,iC;function mF(){if(iC)return sx;iC=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,aC;function yF(){if(aC)return ox;aC=1;var e=mF();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,sC;function b4(){if(sC)return lx;sC=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,oC;function vF(){if(oC)return ux;oC=1;function e(t){return t.split("")}return ux=e,ux}var cx,lC;function gF(){if(lC)return cx;lC=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]",S="\\u200d",j=h+"?",w="["+o+"]?",b="(?:"+S+"(?:"+[m,y,g].join("|")+")"+w+j+")*",A=w+j+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,uC;function xF(){if(uC)return fx;uC=1;var e=vF(),t=b4(),n=gF();function r(a){return t(a)?n(a):e(a)}return fx=r,fx}var dx,cC;function bF(){if(cC)return dx;cC=1;var e=yF(),t=b4(),n=xF(),r=m4();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,fC;function SF(){if(fC)return hx;fC=1;var e=bF(),t=e("toUpperCase");return hx=t,hx}var jF=SF();const Bp=it(jF);function pt(e){return function(){return e}}const S4=Math.cos,wh=Math.sin,Lr=Math.sqrt,Ah=Math.PI,qp=2*Ah,V1=Math.PI,H1=2*V1,as=1e-6,wF=H1-as;function j4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function AF(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return j4;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 OF{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?j4:AF(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 S=r-l,j=a-c,w=f*f+h*h,b=S*S+j*j,A=Math.sqrt(w),_=Math.sqrt(g),T=o*Math.tan((V1-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*S>m*j)},${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%H1+H1),g>wF?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>=V1)},${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 sw(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 OF(t)}function ow(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function w4(e){this._context=e}w4.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 w4(e)}function A4(e){return e[0]}function O4(e){return e[1]}function _4(e,t){var n=pt(!0),r=null,a=Ip,o=null,l=sw(c);e=typeof e=="function"?e:e===void 0?A4:pt(e),t=typeof t=="function"?t:t===void 0?O4:pt(t);function c(f){var h,m=(f=ow(f)).length,y,g=!1,S;for(r==null&&(o=a(S=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(S)return o=null,S+""||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=sw(h);e=typeof e=="function"?e:e===void 0?A4:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?O4:pt(+n);function h(y){var g,S,j,w=(y=ow(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)S=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),j=g-1;j>=S;--j)c.point(T[j],C[j]);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 _4().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 T4{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 _F(e){return new T4(e,!0)}function TF(e){return new T4(e,!1)}const lw={draw(e,t){const n=Lr(t/Ah);e.moveTo(n,0),e.arc(0,0,n,0,qp)}},EF={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()}},E4=Lr(1/3),NF=E4*2,CF={draw(e,t){const n=Lr(t/NF),r=n*E4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},MF={draw(e,t){const n=Lr(t),r=-n/2;e.rect(r,r,n,n)}},PF=.8908130915292852,N4=wh(Ah/10)/wh(7*Ah/10),RF=wh(qp/10)*N4,DF=-S4(qp/10)*N4,kF={draw(e,t){const n=Lr(t*PF),r=RF*n,a=DF*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=qp*o/5,c=S4(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),LF={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),zF=(G1/2+1)*3,$F={draw(e,t){const n=Lr(t/zF),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 BF(e,t){let n=null,r=sw(a);e=typeof e=="function"?e:pt(e||lw),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 C4(e){this._context=e}C4.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 qF(e){return new C4(e)}function M4(e){this._context=e}M4.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 IF(e){return new M4(e)}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(){(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 UF(e){return new P4(e)}function R4(e){this._context=e}R4.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 VF(e){return new R4(e)}function dC(e){return e<0?-1:1}function hC(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(dC(o)+dC(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function pC(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,pC(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,pC(this,n=hC(this,e,t)),n);break;default:mx(this,this._t0,n=hC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function D4(e){this._context=new k4(e)}(D4.prototype=Object.create(Th.prototype)).point=function(e,t){Th.prototype.point.call(this,t,e)};function k4(e){this._context=e}k4.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 HF(e){return new Th(e)}function GF(e){return new D4(e)}function L4(e){this._context=e}L4.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=mC(e),a=mC(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 mC(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 FF(e){return new L4(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 KF(e){return new Up(e,.5)}function YF(e){return new Up(e,0)}function XF(e){return new Up(e,1)}function Uo(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 F1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function WF(e,t){return e[t]}function ZF(e){const t=[];return t.key=e,t}function QF(){var e=pt([]),t=F1,n=Uo,r=WF;function a(o){var l=Array.from(e.apply(this,arguments),ZF),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=ow(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?F1:typeof o=="function"?o:pt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??Uo,a):n},a}function JF(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}Uo(e,t)}}function eK(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}Uo(e,t)}}function tK(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,S=(y-g)/2,j=0;j<c;++j){var w=e[t[j]],b=w[r][1]||0,A=w[r-1][1]||0;S+=b-A}f+=y,h+=S*y}a[r-1][1]+=a[r-1][0]=n,f&&(n-=h/f)}a[r-1][1]+=a[r-1][0]=n,Uo(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 nK=["type","size","sizeType"];function K1(){return K1=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},K1.apply(this,arguments)}function yC(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 vC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yC(Object(n),!0).forEach(function(r){rK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rK(e,t,n){return t=iK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iK(e){var t=aK(e,"string");return uc(t)=="symbol"?t:t+""}function aK(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 sK(e,t){if(e==null)return{};var n=oK(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 oK(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 z4={symbolCircle:lw,symbolCross:EF,symbolDiamond:CF,symbolSquare:MF,symbolStar:kF,symbolTriangle:LF,symbolWye:$F},lK=Math.PI/180,uK=function(t){var n="symbol".concat(Bp(t));return z4[n]||lw},cK=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*lK;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}},fK=function(t,n){z4["symbol".concat(Bp(t))]=n},uw=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=sK(t,nK),h=vC(vC({},f),{},{type:r,size:o,sizeType:c}),m=function(){var b=uK(r),A=BF().type(b).size(cK(o,c,r));return A()},y=h.className,g=h.cx,S=h.cy,j=Se(h,!0);return g===+g&&S===+S&&o===+o?q.createElement("path",K1({},j,{className:Pe("recharts-symbols",y),transform:"translate(".concat(g,", ").concat(S,")"),d:m()})):null};uw.registerSymbol=fK;function Vo(e){"@babel/helpers - typeof";return Vo=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},Vo(e)}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 gC(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 dK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gC(Object(n),!0).forEach(function(r){cc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hK(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,B4(r.key),r)}}function mK(e,t,n){return t&&pK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yK(e,t,n){return t=Eh(t),vK(e,$4()?Reflect.construct(t,n||[],Eh(e).constructor):t.apply(e,n))}function vK(e,t){if(t&&(Vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gK(e)}function gK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($4=function(){return!!e})()}function Eh(e){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(e)}function xK(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&&X1(e,t)}function X1(e,t){return X1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},X1(e,t)}function cc(e,t,n){return t=B4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B4(e){var t=bK(e,"string");return Vo(t)=="symbol"?t:t+""}function bK(e,t){if(Vo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ur=32,cw=(function(e){function t(){return hK(this,t),yK(this,t,arguments)}return xK(t,e),mK(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=dK({},r);return delete h.legendIcon,q.cloneElement(r.legendIcon,h)}return q.createElement(uw,{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(S,j){var w=S.formatter||f,b=Pe(cc(cc({"recharts-legend-item":!0},"legend-item-".concat(j),!0),"inactive",S.inactive));if(S.type==="none")return null;var A=Te(S.value)?null:S.value;Mr(!Te(S.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 _=S.inactive?h:S.color;return q.createElement("li",Y1({className:b,style:y,key:"legend-item-".concat(j)},ws(r.props,S,j)),q.createElement(I1,{width:l,height:l,viewBox:m,style:g},r.renderIcon(S)),q.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},w?w(A,S,j):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(cw,"displayName","Legend");cc(cw,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var yx,xC;function SK(){if(xC)return yx;xC=1;var e=Lp();function t(){this.__data__=new e,this.size=0}return yx=t,yx}var vx,bC;function jK(){if(bC)return vx;bC=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 wK(){if(SC)return gx;SC=1;function e(t){return this.__data__.get(t)}return gx=e,gx}var xx,jC;function AK(){if(jC)return xx;jC=1;function e(t){return this.__data__.has(t)}return xx=e,xx}var bx,wC;function OK(){if(wC)return bx;wC=1;var e=Lp(),t=ew(),n=tw(),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 Sx,AC;function q4(){if(AC)return Sx;AC=1;var e=Lp(),t=SK(),n=jK(),r=wK(),a=AK(),o=OK();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,Sx=l,Sx}var jx,OC;function _K(){if(OC)return jx;OC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return jx=t,jx}var wx,_C;function TK(){if(_C)return wx;_C=1;function e(t){return this.__data__.has(t)}return wx=e,wx}var Ax,TC;function I4(){if(TC)return Ax;TC=1;var e=tw(),t=_K(),n=TK();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,EC;function U4(){if(EC)return Ox;EC=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,NC;function V4(){if(NC)return _x;NC=1;function e(t,n){return t.has(n)}return _x=e,_x}var Tx,CC;function H4(){if(CC)return Tx;CC=1;var e=I4(),t=U4(),n=V4(),r=1,a=2;function o(l,c,f,h,m,y){var g=f&r,S=l.length,j=c.length;if(S!=j&&!(g&&j>S))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<S;){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,MC;function EK(){if(MC)return Ex;MC=1;var e=ei(),t=e.Uint8Array;return Ex=t,Ex}var Nx,PC;function NK(){if(PC)return Nx;PC=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,RC;function fw(){if(RC)return Cx;RC=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,DC;function CK(){if(DC)return Mx;DC=1;var e=Jc(),t=EK(),n=Jj(),r=H4(),a=NK(),o=fw(),l=1,c=2,f="[object Boolean]",h="[object Date]",m="[object Error]",y="[object Map]",g="[object Number]",S="[object RegExp]",j="[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,L,I,B){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 S:case w:return E==M+"";case y:var F=a;case j:var X=D&l;if(F||(F=o),E.size!=M.size&&!X)return!1;var G=B.get(E);if(G)return G==M;D|=c,B.set(E,M);var z=r(F(E),F(M),D,L,I,B);return B.delete(E),z;case b:if(C)return C.call(E)==C.call(M)}return!1}return Mx=O,Mx}var Px,kC;function G4(){if(kC)return Px;kC=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,LC;function MK(){if(LC)return Rx;LC=1;var e=G4(),t=Cn();function n(r,a,o){var l=a(r);return t(r)?l:e(l,o(r))}return Rx=n,Rx}var Dx,zC;function PK(){if(zC)return Dx;zC=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,$C;function RK(){if($C)return kx;$C=1;function e(){return[]}return kx=e,kx}var Lx,BC;function DK(){if(BC)return Lx;BC=1;var e=PK(),t=RK(),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,qC;function kK(){if(qC)return zx;qC=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,IC;function LK(){if(IC)return $x;IC=1;var e=Li(),t=zi(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return $x=r,$x}var Bx,UC;function dw(){if(UC)return Bx;UC=1;var e=LK(),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,VC;function zK(){if(VC)return qx;VC=1;function e(){return!1}return qx=e,qx}Iu.exports;var HC;function F4(){return HC||(HC=1,(function(e,t){var n=ei(),r=zK(),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 hw(){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,FC;function pw(){if(FC)return Ux;FC=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ux=t,Ux}var Vx,KC;function $K(){if(KC)return Vx;KC=1;var e=Li(),t=pw(),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]",S="[object Set]",j="[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]",L="[object Uint32Array]",I={};I[_]=I[T]=I[C]=I[O]=I[E]=I[M]=I[k]=I[D]=I[L]=!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[S]=I[j]=I[w]=!1;function B(F){return n(F)&&t(F.length)&&!!I[e(F)]}return Vx=B,Vx}var Hx,YC;function K4(){if(YC)return Hx;YC=1;function e(t){return function(n){return t(n)}}return Hx=e,Hx}var Uu={exports:{}};Uu.exports;var XC;function BK(){return XC||(XC=1,(function(e,t){var n=d4(),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 Gx,WC;function Y4(){if(WC)return Gx;WC=1;var e=$K(),t=K4(),n=BK(),r=n&&n.isTypedArray,a=r?t(r):e;return Gx=a,Gx}var Fx,ZC;function qK(){if(ZC)return Fx;ZC=1;var e=kK(),t=dw(),n=Cn(),r=F4(),a=hw(),o=Y4(),l=Object.prototype,c=l.hasOwnProperty;function f(h,m){var y=n(h),g=!y&&t(h),S=!y&&!g&&r(h),j=!y&&!g&&!S&&o(h),w=y||g||S||j,b=w?e(h.length,String):[],A=b.length;for(var _ in h)(m||c.call(h,_))&&!(w&&(_=="length"||S&&(_=="offset"||_=="parent")||j&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,A)))&&b.push(_);return b}return Fx=f,Fx}var Kx,QC;function IK(){if(QC)return Kx;QC=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,JC;function X4(){if(JC)return Yx;JC=1;function e(t,n){return function(r){return t(n(r))}}return Yx=e,Yx}var Xx,eM;function UK(){if(eM)return Xx;eM=1;var e=X4(),t=e(Object.keys,Object);return Xx=t,Xx}var Wx,tM;function VK(){if(tM)return Wx;tM=1;var e=IK(),t=UK(),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,nM;function ef(){if(nM)return Zx;nM=1;var e=Qj(),t=pw();function n(r){return r!=null&&t(r.length)&&!e(r)}return Zx=n,Zx}var Qx,rM;function Vp(){if(rM)return Qx;rM=1;var e=qK(),t=VK(),n=ef();function r(a){return n(a)?e(a):t(a)}return Qx=r,Qx}var Jx,iM;function HK(){if(iM)return Jx;iM=1;var e=MK(),t=DK(),n=Vp();function r(a){return e(a,n,t)}return Jx=r,Jx}var eb,aM;function GK(){if(aM)return eb;aM=1;var e=HK(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(o,l,c,f,h,m){var y=c&t,g=e(o),S=g.length,j=e(l),w=j.length;if(S!=w&&!y)return!1;for(var b=S;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<S;){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,L=l.constructor;D!=L&&"constructor"in o&&"constructor"in l&&!(typeof D=="function"&&D instanceof D&&typeof L=="function"&&L instanceof L)&&(C=!1)}return m.delete(o),m.delete(l),C}return eb=a,eb}var tb,sM;function FK(){if(sM)return tb;sM=1;var e=Cs(),t=ei(),n=e(t,"DataView");return tb=n,tb}var nb,oM;function KK(){if(oM)return nb;oM=1;var e=Cs(),t=ei(),n=e(t,"Promise");return nb=n,nb}var rb,lM;function W4(){if(lM)return rb;lM=1;var e=Cs(),t=ei(),n=e(t,"Set");return rb=n,rb}var ib,uM;function YK(){if(uM)return ib;uM=1;var e=Cs(),t=ei(),n=e(t,"WeakMap");return ib=n,ib}var ab,cM;function XK(){if(cM)return ab;cM=1;var e=FK(),t=ew(),n=KK(),r=W4(),a=YK(),o=Li(),l=h4(),c="[object Map]",f="[object Object]",h="[object Promise]",m="[object Set]",y="[object WeakMap]",g="[object DataView]",S=l(e),j=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 S:return g;case j:return c;case w:return h;case b:return m;case A:return y}return C}),ab=_,ab}var sb,fM;function WK(){if(fM)return sb;fM=1;var e=q4(),t=H4(),n=CK(),r=GK(),a=XK(),o=Cn(),l=F4(),c=Y4(),f=1,h="[object Arguments]",m="[object Array]",y="[object Object]",g=Object.prototype,S=g.hasOwnProperty;function j(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,L=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 B=D&&S.call(w,"__wrapped__"),F=L&&S.call(b,"__wrapped__");if(B||F){var X=B?w.value():w,G=F?b.value():b;return C||(C=new e),T(X,G,A,_,C)}}return I?(C||(C=new e),r(w,b,A,_,T,C)):!1}return sb=j,sb}var ob,dM;function mw(){if(dM)return ob;dM=1;var e=WK(),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,hM;function ZK(){if(hM)return lb;hM=1;var e=q4(),t=mw(),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 S=g[0],j=o[S],w=g[1];if(y&&g[2]){if(j===void 0&&!(S in o))return!1}else{var b=new e;if(f)var A=f(j,w,S,o,l,b);if(!(A===void 0?t(w,j,n|r,f,b):A))return!1}}return!0}return lb=a,lb}var ub,pM;function Z4(){if(pM)return ub;pM=1;var e=Ca();function t(n){return n===n&&!e(n)}return ub=t,ub}var cb,mM;function QK(){if(mM)return cb;mM=1;var e=Z4(),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,yM;function Q4(){if(yM)return fb;yM=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,vM;function JK(){if(vM)return db;vM=1;var e=ZK(),t=QK(),n=Q4();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,gM;function eY(){if(gM)return hb;gM=1;function e(t,n){return t!=null&&n in Object(t)}return hb=e,hb}var pb,xM;function tY(){if(xM)return pb;xM=1;var e=y4(),t=dw(),n=Cn(),r=hw(),a=pw(),o=$p();function l(c,f,h){f=e(f,c);for(var m=-1,y=f.length,g=!1;++m<y;){var S=o(f[m]);if(!(g=c!=null&&h(c,S)))break;c=c[S]}return g||++m!=y?g:(y=c==null?0:c.length,!!y&&a(y)&&r(S,y)&&(n(c)||t(c)))}return pb=l,pb}var mb,bM;function nY(){if(bM)return mb;bM=1;var e=eY(),t=tY();function n(r,a){return r!=null&&t(r,a,e)}return mb=n,mb}var yb,SM;function rY(){if(SM)return yb;SM=1;var e=mw(),t=v4(),n=nY(),r=Zj(),a=Z4(),o=Q4(),l=$p(),c=1,f=2;function h(m,y){return r(m)&&a(y)?o(l(m),y):function(g){var S=t(g,m);return S===void 0&&S===y?n(g,m):e(y,S,c|f)}}return yb=h,yb}var vb,jM;function Al(){if(jM)return vb;jM=1;function e(t){return t}return vb=e,vb}var gb,wM;function iY(){if(wM)return gb;wM=1;function e(t){return function(n){return n==null?void 0:n[t]}}return gb=e,gb}var xb,AM;function aY(){if(AM)return xb;AM=1;var e=rw();function t(n){return function(r){return e(r,n)}}return xb=t,xb}var bb,OM;function sY(){if(OM)return bb;OM=1;var e=iY(),t=aY(),n=Zj(),r=$p();function a(o){return n(o)?e(r(o)):t(o)}return bb=a,bb}var Sb,_M;function ti(){if(_M)return Sb;_M=1;var e=JK(),t=rY(),n=Al(),r=Cn(),a=sY();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 Sb=o,Sb}var jb,TM;function J4(){if(TM)return jb;TM=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 jb=e,jb}var wb,EM;function oY(){if(EM)return wb;EM=1;function e(t){return t!==t}return wb=e,wb}var Ab,NM;function lY(){if(NM)return Ab;NM=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,CM;function uY(){if(CM)return Ob;CM=1;var e=J4(),t=oY(),n=lY();function r(a,o,l){return o===o?n(a,o,l):e(a,t,l)}return Ob=r,Ob}var _b,MM;function cY(){if(MM)return _b;MM=1;var e=uY();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return _b=t,_b}var Tb,PM;function fY(){if(PM)return Tb;PM=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,RM;function dY(){if(RM)return Eb;RM=1;function e(){}return Eb=e,Eb}var Nb,DM;function hY(){if(DM)return Nb;DM=1;var e=W4(),t=dY(),n=fw(),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,kM;function pY(){if(kM)return Cb;kM=1;var e=I4(),t=cY(),n=fY(),r=V4(),a=hY(),o=fw(),l=200;function c(f,h,m){var y=-1,g=t,S=f.length,j=!0,w=[],b=w;if(m)j=!1,g=n;else if(S>=l){var A=h?null:a(f);if(A)return o(A);j=!1,g=r,b=new e}else b=h?[]:w;e:for(;++y<S;){var _=f[y],T=h?h(_):_;if(_=m||_!==0?_:0,j&&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,LM;function mY(){if(LM)return Mb;LM=1;var e=ti(),t=pY();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return Mb=n,Mb}var yY=mY();const zM=it(yY);function ez(e,t,n){return t===!0?zM(e,n):Te(t)?zM(e,t):e}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)}var vY=["ref"];function $M(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 ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){Hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BM(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,nz(r.key),r)}}function xY(e,t,n){return t&&BM(e.prototype,t),n&&BM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bY(e,t,n){return t=Nh(t),SY(e,tz()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function SY(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 jY(e)}function jY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tz=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function wY(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 Hp(e,t,n){return t=nz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nz(e){var t=AY(e,"string");return Ho(t)=="symbol"?t:t+""}function AY(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)}function OY(e,t){if(e==null)return{};var n=_Y(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 _Y(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 TY(e){return e.value}function EY(e,t){if(q.isValidElement(e))return q.cloneElement(e,t);if(typeof e=="function")return q.createElement(e,t);t.ref;var n=OY(t,vY);return q.createElement(cw,n)}var qM=1,Lo=(function(e){function t(){var n;gY(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=bY(this,t,[].concat(a)),Hp(n,"lastBoundingBox",{width:-1,height:-1}),n}return wY(t,e),xY(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)>qM||Math.abs(a.height-this.lastBoundingBox.height)>qM)&&(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?ji({},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 S=this.getBBoxSnapshot();y={left:((h||0)-S.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 j=this.getBBoxSnapshot();g={top:((m||0)-j.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return ji(ji({},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=ji(ji({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return q.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:function(S){r.wrapperNode=S}},EY(o,ji(ji({},this.props),{},{payload:ez(m,h,TY)})))}}],[{key:"getWithHeight",value:function(r,a){var o=ji(ji({},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(Lo,"displayName","Legend");Hp(Lo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pb,IM;function NY(){if(IM)return Pb;IM=1;var e=Jc(),t=dw(),n=Cn(),r=e?e.isConcatSpreadable:void 0;function a(o){return n(o)||t(o)||!!(r&&o&&o[r])}return Pb=a,Pb}var Rb,UM;function rz(){if(UM)return Rb;UM=1;var e=G4(),t=NY();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,VM;function CY(){if(VM)return Db;VM=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,HM;function MY(){if(HM)return kb;HM=1;var e=CY(),t=e();return kb=t,kb}var Lb,GM;function iz(){if(GM)return Lb;GM=1;var e=MY(),t=Vp();function n(r,a){return r&&e(r,a,t)}return Lb=n,Lb}var zb,FM;function PY(){if(FM)return zb;FM=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,KM;function yw(){if(KM)return $b;KM=1;var e=iz(),t=PY(),n=t(e);return $b=n,$b}var Bb,YM;function az(){if(YM)return Bb;YM=1;var e=yw(),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,XM;function RY(){if(XM)return qb;XM=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,WM;function DY(){if(WM)return Ib;WM=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,ZM;function kY(){if(ZM)return Ub;ZM=1;var e=DY();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,QM;function LY(){if(QM)return Vb;QM=1;var e=nw(),t=rw(),n=ti(),r=az(),a=RY(),o=K4(),l=kY(),c=Al(),f=Cn();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 S=-1;y=e(y,o(n));var j=r(m,function(w,b,A){var _=e(y,function(T){return T(w)});return{criteria:_,index:++S,value:w}});return a(j,function(w,b){return l(w,b,g)})}return Vb=h,Vb}var Hb,JM;function zY(){if(JM)return Hb;JM=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 Gb,eP;function $Y(){if(eP)return Gb;eP=1;var e=zY(),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 Gb=n,Gb}var Fb,tP;function BY(){if(tP)return Fb;tP=1;function e(t){return function(){return t}}return Fb=e,Fb}var Kb,nP;function sz(){if(nP)return Kb;nP=1;var e=Cs(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Kb=t,Kb}var Yb,rP;function qY(){if(rP)return Yb;rP=1;var e=BY(),t=sz(),n=Al(),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,iP;function IY(){if(iP)return Xb;iP=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,aP;function UY(){if(aP)return Wb;aP=1;var e=qY(),t=IY(),n=t(e);return Wb=n,Wb}var Zb,sP;function VY(){if(sP)return Zb;sP=1;var e=Al(),t=$Y(),n=UY();function r(a,o){return n(t(a,o,e),a+"")}return Zb=r,Zb}var Qb,oP;function Gp(){if(oP)return Qb;oP=1;var e=Jj(),t=ef(),n=hw(),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,lP;function HY(){if(lP)return Jb;lP=1;var e=rz(),t=LY(),n=VY(),r=Gp(),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 GY=HY();const vw=it(GY);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 Z1(){return Z1=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},Z1.apply(this,arguments)}function FY(e,t){return WY(e)||XY(e,t)||YY(e,t)||KY()}function KY(){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 YY(e,t){if(e){if(typeof e=="string")return uP(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 uP(e,t)}}function uP(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 XY(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 WY(e){if(Array.isArray(e))return e}function cP(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?cP(Object(n),!0).forEach(function(r){ZY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZY(e,t,n){return t=QY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QY(e){var t=JY(e,"string");return fc(t)=="symbol"?t:t+""}function JY(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 eX(e){return Array.isArray(e)&&Kt(e[0])&&Kt(e[1])?e.join(" ~ "):e}var tX=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,S=t.wrapperClassName,j=t.labelClassName,w=t.label,b=t.labelFormatter,A=t.accessibilityLayer,_=A===void 0?!1:A,T=function(){if(m&&m.length){var B={padding:0,margin:0},F=(g?vw(m,g):m).map(function(X,G){if(X.type==="none")return null;var z=e0({display:"block",paddingTop:4,paddingBottom:4,color:X.color||"#000"},c),K=X.formatter||y||eX,Q=X.value,re=X.name,oe=Q,$=re;if(K&&oe!=null&&$!=null){var H=K(Q,re,X,G,m);if(Array.isArray(H)){var ie=FY(H,2);oe=ie[0],$=ie[1]}else oe=H}return q.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(G),style:z},Kt($)?q.createElement("span",{className:"recharts-tooltip-item-name"},$):null,Kt($)?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:B},F)}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",S),D=Pe("recharts-tooltip-label",j);E&&b&&m!==void 0&&m!==null&&(M=b(w,m));var L=_?{role:"status","aria-live":"assertive"}:{};return q.createElement("div",Z1({className:k,style:C},L),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=nX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nX(e){var t=rX(e,"string");return dc(t)=="symbol"?t:t+""}function rX(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 Eu="recharts-tooltip-wrapper",iX={visibility:"hidden"};function aX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Pe(Eu,Ld(Ld(Ld(Ld({},"".concat(Eu,"-right"),ue(n)&&t&&ue(t.x)&&n>=t.x),"".concat(Eu,"-left"),ue(n)&&t&&ue(t.x)&&n<t.x),"".concat(Eu,"-bottom"),ue(r)&&t&&ue(t.y)&&r>=t.y),"".concat(Eu,"-top"),ue(r)&&t&&ue(t.y)&&r<t.y))}function fP(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,S=f[r];return g<S?Math.max(y,f[r]):Math.max(m,f[r])}var j=y+c,w=f[r]+h;return j>w?Math.max(m,f[r]):Math.max(y,f[r])}function sX(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function oX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,h,m,y;return l.height>0&&l.width>0&&n?(m=fP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),y=fP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),h=sX({translateX:m,translateY:y,useTranslate3d:c})):h=iX,{cssProperties:h,cssClasses:aX({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 dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(n),!0).forEach(function(r){J1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uX(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,lz(r.key),r)}}function cX(e,t,n){return t&&uX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fX(e,t,n){return t=Ch(t),dX(e,oz()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function dX(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 hX(e)}function hX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oz=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function pX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q1(e,t)}function Q1(e,t){return Q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Q1(e,t)}function J1(e,t,n){return t=lz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lz(e){var t=mX(e,"string");return Go(t)=="symbol"?t:t+""}function mX(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 pP=1,yX=(function(e){function t(){var n;lX(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=fX(this,t,[].concat(a)),J1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),J1(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 pX(t,e),cX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>pP||Math.abs(r.height-this.state.lastBoundingBox.height)>pP)&&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,S=a.offset,j=a.position,w=a.reverseDirection,b=a.useTranslate3d,A=a.viewBox,_=a.wrapperStyle,T=oX({allowEscapeViewBox:l,coordinate:m,offsetTopLeft:S,position:j,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:A}),C=T.cssClasses,O=T.cssProperties,E=hP(hP({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),vX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ma={isSsr:vX()};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)}function mP(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 yP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mP(Object(n),!0).forEach(function(r){gw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xX(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 bX(e,t,n){return t&&xX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SX(e,t,n){return t=Mh(t),jX(e,uz()?Reflect.construct(t,n||[],Mh(e).constructor):t.apply(e,n))}function jX(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 wX(e)}function wX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uz=function(){return!!e})()}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(e)}function AX(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&&eS(e,t)}function eS(e,t){return eS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},eS(e,t)}function gw(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=OX(e,"string");return Fo(t)=="symbol"?t:t+""}function OX(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 _X(e){return e.dataKey}function TX(e,t){return q.isValidElement(e)?q.cloneElement(e,t):typeof e=="function"?q.createElement(e,t):q.createElement(tX,t)}var Vn=(function(e){function t(){return gX(this,t),SX(this,t,arguments)}return AX(t,e),bX(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,S=a.offset,j=a.payload,w=a.payloadUniqBy,b=a.position,A=a.reverseDirection,_=a.useTranslate3d,T=a.viewBox,C=a.wrapperStyle,O=j??[];y&&O.length&&(O=ez(j.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),w,_X));var E=O.length>0;return q.createElement(yX,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:o,coordinate:m,hasPayload:E,offset:S,position:b,reverseDirection:A,useTranslate3d:_,viewBox:T,wrapperStyle:C},TX(h,yP(yP({},this.props),{},{payload:O})))}}])})(P.PureComponent);gw(Vn,"displayName","Tooltip");gw(Vn,"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,vP;function EX(){if(vP)return t0;vP=1;var e=ei(),t=function(){return e.Date.now()};return t0=t,t0}var n0,gP;function NX(){if(gP)return n0;gP=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,xP;function CX(){if(xP)return r0;xP=1;var e=NX(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return r0=n,r0}var i0,bP;function fz(){if(bP)return i0;bP=1;var e=CX(),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 MX(){if(SP)return a0;SP=1;var e=Ca(),t=EX(),n=fz(),r="Expected a function",a=Math.max,o=Math.min;function l(c,f,h){var m,y,g,S,j,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(F){var X=m,G=y;return m=y=void 0,b=F,S=c.apply(G,X),S}function O(F){return b=F,j=setTimeout(k,f),A?C(F):S}function E(F){var X=F-w,G=F-b,z=f-X;return _?o(z,g-G):z}function M(F){var X=F-w,G=F-b;return w===void 0||X>=f||X<0||_&&G>=g}function k(){var F=t();if(M(F))return D(F);j=setTimeout(k,E(F))}function D(F){return j=void 0,T&&m?C(F):(m=y=void 0,S)}function L(){j!==void 0&&clearTimeout(j),b=0,m=w=y=j=void 0}function I(){return j===void 0?S:D(t())}function B(){var F=t(),X=M(F);if(m=arguments,y=this,w=F,X){if(j===void 0)return O(w);if(_)return clearTimeout(j),j=setTimeout(k,f),C(w)}return j===void 0&&(j=setTimeout(k,f)),S}return B.cancel=L,B.flush=I,B}return a0=l,a0}var s0,jP;function PX(){if(jP)return s0;jP=1;var e=MX(),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 RX=PX();const dz=it(RX);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 wP(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?wP(Object(n),!0).forEach(function(r){DX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DX(e,t,n){return t=kX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kX(e){var t=LX(e,"string");return hc(t)=="symbol"?t:t+""}function LX(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 zX(e,t){return IX(e)||qX(e,t)||BX(e,t)||$X()}function $X(){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 BX(e,t){if(e){if(typeof e=="string")return AP(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 AP(e,t)}}function AP(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 qX(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 IX(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,S=e.children,j=e.debounce,w=j===void 0?0:j,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=zX(M,2),D=k[0],L=k[1],I=P.useCallback(function(F,X){L(function(G){var z=Math.round(F),K=Math.round(X);return G.containerWidth===z&&G.containerHeight===K?G:{containerWidth:z,containerHeight:K}})},[]);P.useEffect(function(){var F=function(re){var oe,$=re[0].contentRect,H=$.width,ie=$.height;I(H,ie),(oe=E.current)===null||oe===void 0||oe.call(E,H,ie)};w>0&&(F=dz(F,w,{trailing:!0,leading:!1}));var X=new ResizeObserver(F),G=O.current.getBoundingClientRect(),z=G.width,K=G.height;return I(z,K),X.observe(O.current),function(){X.disconnect()}},[I,w]);var B=P.useMemo(function(){var F=D.containerWidth,X=D.containerHeight;if(F<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 G=fs(l)?F:l,z=fs(f)?X:f;n&&n>0&&(G?z=G/n:z&&(G=z*n),g&&z>g&&(z=g)),Mr(G>0||z>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.`,G,z,l,f,m,y,n);var K=!Array.isArray(S)&&Ei(S.type).endsWith("Chart");return q.Children.map(S,function(Q){return q.isValidElement(Q)?P.cloneElement(Q,zd({width:G,height:z},K?{style:zd({height:"100%",width:"100%",maxHeight:z,maxWidth:G},Q.props.style)}:{})):Q})},[n,S,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},B)}),Fp=function(t){return null};Fp.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 OP(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?OP(Object(n),!0).forEach(function(r){UX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UX(e,t,n){return t=VX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VX(e){var t=HX(e,"string");return pc(t)=="symbol"?t:t+""}function HX(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},GX=2e3,FX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_P="recharts_measurement_span";function KX(e){var t=tS({},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=KX(n),a=JSON.stringify({text:t,copyStyle:r});if(bo.widthCache[a])return bo.widthCache[a];try{var o=document.getElementById(_P);o||(o=document.createElement("span"),o.setAttribute("id",_P),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var l=tS(tS({},FX),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>GX&&(bo.cacheCount=0,bo.widthCache={}),f}catch{return{width:0,height:0}}},YX=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 QX(e)||ZX(e,t)||WX(e,t)||XX()}function XX(){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 WX(e,t){if(e){if(typeof e=="string")return TP(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 TP(e,t)}}function TP(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 ZX(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 QX(e){if(Array.isArray(e))return e}function JX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EP(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,tW(r.key),r)}}function eW(e,t,n){return t&&EP(e.prototype,t),n&&EP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tW(e){var t=nW(e,"string");return mc(t)=="symbol"?t:t+""}function nW(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 NP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,CP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,iW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,hz={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},aW=Object.keys(hz),No="NaN";function sW(e,t){return e*hz[t]}var $d=(function(){function e(t,n){JX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!rW.test(n)&&(this.num=NaN,this.unit=""),aW.includes(n)&&(this.num=sW(t,n),this.unit="px")}return eW(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=iW.exec(n))!==null&&r!==void 0?r:[],o=Rh(a,3),l=o[1],c=o[2];return new e(parseFloat(l),c??"")}}])})();function pz(e){if(e.includes(No))return No;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=NP.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 No;t=t.replace(NP,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var y,g=(y=CP.exec(t))!==null&&y!==void 0?y:[],S=Rh(g,4),j=S[1],w=S[2],b=S[3],A=$d.parse(j??""),_=$d.parse(b??""),T=w==="+"?A.add(_):A.subtract(_);if(T.isNaN())return No;t=t.replace(CP,T.toString())}return t}var MP=/\(([^()]*)\)/;function oW(e){for(var t=e;t.includes("(");){var n=MP.exec(t),r=Rh(n,2),a=r[1];t=t.replace(MP,pz(a))}return t}function lW(e){var t=e.replace(/\s+/g,"");return t=oW(t),t=pz(t),t}function uW(e){try{return lW(e)}catch{return No}}function o0(e){var t=uW(e.slice(5,-1));return t===No?"":t}var cW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],fW=["dx","dy","angle","className","breakAll"];function nS(){return nS=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},nS.apply(this,arguments)}function PP(e,t){if(e==null)return{};var n=dW(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 dW(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 RP(e,t){return yW(e)||mW(e,t)||pW(e,t)||hW()}function hW(){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 pW(e,t){if(e){if(typeof e=="string")return DP(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 DP(e,t)}}function DP(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 mW(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 yW(e){if(Array.isArray(e))return e}var mz=/[ \f\n\r\t\v\u2028\u2029]+/,yz=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(mz));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}},vW=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 G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return G.reduce(function(z,K){var Q=K.word,re=K.width,oe=z[z.length-1];if(oe&&(a==null||o||oe.width+re+r<Number(a)))oe.words.push(Q),oe.width+=re+r;else{var $={words:[Q],width:re};z.push($)}return z},[])},S=g(n),j=function(G){return G.reduce(function(z,K){return z.width>K.width?z:K})};if(!m)return S;for(var w="…",b=function(G){var z=y.slice(0,G),K=yz({breakAll:h,style:f,children:z+w}).wordsWithComputedWidth,Q=g(K),re=Q.length>l||j(Q).width>Number(a);return[re,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=RP(M,2),D=k[0],L=k[1],I=b(O),B=RP(I,1),F=B[0];if(!D&&!F&&(A=O+1),D&&F&&(_=O-1),!D&&F){C=L;break}T++}return C||S},kP=function(t){var n=Ne(t)?[]:t.toString().split(mz);return[{words:n}]},gW=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=yz({breakAll:l,children:a,style:o});if(m){var y=m.wordsWithComputedWidth,g=m.spaceWidth;f=y,h=g}else return kP(a);return vW({breakAll:l,children:a,maxLines:c,style:o},f,h,n,r)}return kP(a)},LP="#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,S=g===void 0?"start":g,j=t.verticalAnchor,w=j===void 0?"end":j,b=t.fill,A=b===void 0?LP:b,_=PP(t,cW),T=P.useMemo(function(){return gW({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=PP(_,fW);if(!Kt(r)||!Kt(o))return null;var L=r+(ue(C)?C:0),I=o+(ue(O)?O:0),B;switch(w){case"start":B=o0("calc(".concat(h,")"));break;case"middle":B=o0("calc(".concat((T.length-1)/2," * -").concat(c," + (").concat(h," / 2))"));break;default:B=o0("calc(".concat(T.length-1," * -").concat(c,")"));break}var F=[];if(y){var X=T[0].width,G=_.width;F.push("scale(".concat((ue(G)?G/X:1)/X,")"))}return E&&F.push("rotate(".concat(E,", ").concat(L,", ").concat(I,")")),F.length&&(D.transform=F.join(" ")),q.createElement("text",nS({},Se(D,!0),{x:L,y:I,className:Pe("recharts-text",M),textAnchor:S,fill:A.includes("url")?LP:A}),T.map(function(z,K){var Q=z.words.join(k?"":" ");return q.createElement("tspan",{x:L,dy:K===0?B:c,key:"".concat(Q,"-").concat(K)},Q)}))};function ja(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xw(e){let t,n,r;e.length!==2?(t=ja,n=(c,f)=>ja(e(c),f),r=(c,f)=>e(c)-f):(t=e===ja||e===xW?e:bW,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 bW(){return 0}function vz(e){return e===null?NaN:+e}function*SW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const jW=xw(ja),tf=jW.right;xw(vz).center;class zP extends Map{constructor(t,n=OW){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($P(this,t))}has(t){return super.has($P(this,t))}set(t,n){return super.set(wW(this,t),n)}delete(t){return super.delete(AW(this,t))}}function $P({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function wW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function AW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function _W(e=ja){if(e===ja)return gz;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 gz(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const TW=Math.sqrt(50),EW=Math.sqrt(10),NW=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>=TW?10:o>=EW?5:o>=NW?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 rS(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 iS(e,t,n){return t=+t,e=+e,n=+n,Dh(e,t,n)[2]}function aS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?iS(t,e,n):iS(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function BP(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}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 xz(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?gz:_W(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),S=Math.max(n,Math.floor(t-h*y/f+g)),j=Math.min(r,Math.floor(t+(f-h)*y/f+g));xz(e,t,S,j,a)}const o=e[t];let l=n,c=r;for(Nu(e,n,t),a(e[r],o)>0&&Nu(e,n,r);l<c;){for(Nu(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?Nu(e,n,c):(++c,Nu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Nu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function CW(e,t,n){if(e=Float64Array.from(SW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return qP(e);if(t>=1)return BP(e);var r,a=(r-1)*t,o=Math.floor(a),l=BP(xz(e,o).subarray(0,o+1)),c=qP(e.subarray(o+1));return l+(c-l)*(a-o)}}function MW(e,t,n=vz){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 PW(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 sS=Symbol("implicit");function bw(){var e=new zP,t=[],n=[],r=sS;function a(o){let l=e.get(o);if(l===void 0){if(r!==sS)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 zP;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 bw(t,n).unknown(r)},vr.apply(a,arguments),a}function yc(){var e=bw().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,S=a<r,j=S?a:r,w=S?r:a;o=(w-j)/Math.max(1,g-f+h*2),c&&(o=Math.floor(o)),j+=(w-j-o*(g-f))*m,l=o*(1-f),c&&(j=Math.round(j),l=Math.round(l));var b=PW(g).map(function(A){return j+o*A});return n(S?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 bz(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bz(t())},e}function Zu(){return bz(yc.apply(null,arguments).paddingInner(1))}function Sw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Sz(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,zo="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RW=/^#([0-9a-f]{3,8})$/,DW=new RegExp(`^rgb\\(${zo},${zo},${zo}\\)$`),kW=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),LW=new RegExp(`^rgba\\(${zo},${zo},${zo},${gc}\\)$`),zW=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${gc}\\)$`),$W=new RegExp(`^hsl\\(${gc},${Yr},${Yr}\\)$`),BW=new RegExp(`^hsla\\(${gc},${Yr},${Yr},${gc}\\)$`),IP={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:UP,formatHex:UP,formatHex8:qW,formatHsl:IW,formatRgb:VP,toString:VP});function UP(){return this.rgb().formatHex()}function qW(){return this.rgb().formatHex8()}function IW(){return jz(this).formatHsl()}function VP(){return this.rgb().formatRgb()}function xc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=RW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?HP(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=DW.exec(e))?new Nn(t[1],t[2],t[3],1):(t=kW.exec(e))?new Nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LW.exec(e))?Bd(t[1],t[2],t[3],t[4]):(t=zW.exec(e))?Bd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$W.exec(e))?KP(t[1],t[2]/100,t[3]/100,1):(t=BW.exec(e))?KP(t[1],t[2]/100,t[3]/100,t[4]):IP.hasOwnProperty(e)?HP(IP[e]):e==="transparent"?new Nn(NaN,NaN,NaN,0):null}function HP(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 UW(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 oS(e,t,n,r){return arguments.length===1?UW(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,oS,Sz(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:VW,formatRgb:FP,toString:FP}));function GP(){return`#${ds(this.r)}${ds(this.g)}${ds(this.b)}`}function VW(){return`#${ds(this.r)}${ds(this.g)}${ds(this.b)}${ds((isNaN(this.opacity)?1:this.opacity)*255)}`}function FP(){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 KP(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 jz(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 HW(e,t,n,r){return arguments.length===1?jz(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,HW,Sz(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(YP(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("}${YP(this.h)}, ${qd(this.s)*100}%, ${qd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function YP(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 jw=e=>()=>e;function GW(e,t){return function(n){return e+n*t}}function FW(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 KW(e){return(e=+e)==1?wz:function(t,n){return n-t?FW(t,n,e):jw(isNaN(t)?n:t)}}function wz(e,t){var n=t-e;return n?GW(e,n):jw(isNaN(e)?t:e)}const XP=(function e(t){var n=KW(t);function r(a,o){var l=n((a=oS(a)).r,(o=oS(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),h=wz(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 YW(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 XW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function WW(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]=Ol(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 ZW(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 QW(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]=Ol(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var lS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u0=new RegExp(lS.source,"g");function JW(e){return function(){return e}}function eZ(e){return function(t){return e(t)+""}}function tZ(e,t){var n=lS.lastIndex=u0.lastIndex=0,r,a,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=lS.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]?eZ(f[0].x):JW(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 Ol(e,t){var n=typeof t,r;return t==null||n==="boolean"?jw(t):(n==="number"?zh:n==="string"?(r=xc(t))?(t=r,XP):tZ:t instanceof xc?XP:t instanceof Date?ZW:XW(t)?YW:Array.isArray(t)?WW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?QW:zh)(e,t)}function ww(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nZ(e,t){t===void 0&&(t=e,e=Ol);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 rZ(e){return function(){return e}}function $h(e){return+e}var WP=[0,1];function Sn(e){return e}function uS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:rZ(isNaN(t)?NaN:.5)}function iZ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function aZ(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=uS(a,r),o=n(l,o)):(r=uS(r,a),o=n(o,l)),function(c){return o(r(c))}}function sZ(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]=uS(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=WP,t=WP,n=Ol,r,a,o,l=Sn,c,f,h;function m(){var g=Math.min(e.length,t.length);return l!==Sn&&(l=iZ(e[0],e[g-1])),c=g>2?sZ:aZ,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=ww,m()},y.clamp=function(g){return arguments.length?(l=g?!0:Sn,m()):l!==Sn},y.interpolate=function(g){return arguments.length?(n=g,m()):n},y.unknown=function(g){return arguments.length?(o=g,y):o},function(g,S){return r=g,a=S,m()}}function Aw(){return Kp()(Sn,Sn)}function oZ(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 Ko(e){return e=Bh(Math.abs(e)),e?e[1]:NaN}function lZ(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 uZ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var cZ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bc(e){if(!(t=cZ.exec(e)))throw new Error("invalid format: "+e);var t;return new Ow({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=Ow.prototype;function Ow(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+""}Ow.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 fZ(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 dZ(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 ZP(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 QP={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:oZ,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)=>ZP(e*100,t),r:ZP,s:dZ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function JP(e){return e}var eR=Array.prototype.map,tR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hZ(e){var t=e.grouping===void 0||e.thousands===void 0?JP:lZ(eR.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?JP:uZ(eR.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 S=y.fill,j=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"):QP[E]||(C===void 0&&(C=12),O=!0,E="g"),(A||S==="0"&&j==="=")&&(A=!0,S="0",j="=");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=QP[E],L=/[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(B){var F=M,X=k,G,z,K;if(E==="c")X=D(B)+X,B="";else{B=+B;var Q=B<0||1/B<0;if(B=isNaN(B)?f:D(Math.abs(B),C),O&&(B=fZ(B)),Q&&+B==0&&w!=="+"&&(Q=!1),F=(Q?w==="("?w:c:w==="-"||w==="("?"":w)+F,X=(E==="s"&&!isNaN(B)&&qh!==void 0?tR[8+qh/3]:"")+X+(Q&&w==="("?")":""),L){for(G=-1,z=B.length;++G<z;)if(K=B.charCodeAt(G),48>K||K>57){X=(K===46?a+B.slice(G+1):B.slice(G))+X,B=B.slice(0,G);break}}}T&&!A&&(B=t(B,1/0));var re=F.length+B.length+X.length,oe=re<_?new Array(_-re+1).join(S):"";switch(T&&A&&(B=t(oe+B,oe.length?_-X.length:1/0),oe=""),j){case"<":B=F+B+X+oe;break;case"=":B=F+oe+B+X;break;case"^":B=oe.slice(0,re=oe.length>>1)+F+B+X+oe.slice(re);break;default:B=oe+F+B+X;break}return o(B)}return I.toString=function(){return y+""},I}function m(y,g){var S=Math.max(-8,Math.min(8,Math.floor(Ko(g)/3)))*3,j=Math.pow(10,-S),w=h((y=bc(y),y.type="f",y),{suffix:tR[8+S/3]});return function(b){return w(j*b)}}return{format:h,formatPrefix:m}}var Id,_w,Az;pZ({thousands:",",grouping:[3],currency:["$",""]});function pZ(e){return Id=hZ(e),_w=Id.format,Az=Id.formatPrefix,Id}function mZ(e){return Math.max(0,-Ko(Math.abs(e)))}function yZ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ko(t)/3)))*3-Ko(Math.abs(e)))}function vZ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ko(t)-Ko(e))+1}function Oz(e,t,n,r){var a=aS(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=yZ(a,l))&&(r.precision=o),Az(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=vZ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=mZ(a))&&(r.precision=o-(r.type==="%")*2);break}}return _w(r)}function Pa(e){var t=e.domain;return e.ticks=function(n){var r=t();return rS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Oz(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=iS(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=Aw();return e.copy=function(){return rf(e,Ih())},vr.apply(e,arguments),Pa(e)}function _z(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 _z(e).unknown(t)},e=arguments.length?Array.from(e,$h):[0,1],Pa(n)}function Tz(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 nR(e){return Math.log(e)}function rR(e){return Math.exp(e)}function gZ(e){return-Math.log(-e)}function xZ(e){return-Math.exp(-e)}function bZ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function SZ(e){return e===10?bZ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function jZ(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 iR(e){return(t,n)=>-e(-t,n)}function Tw(e){const t=e(nR,rR),n=t.domain;let r=10,a,o;function l(){return a=jZ(r),o=SZ(r),n()[0]<0?(a=iR(a),o=iR(o),e(gZ,xZ)):e(nR,rR),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),S=a(m),j,w;const b=c==null?10:+c;let A=[];if(!(r%1)&&S-g<b){if(g=Math.floor(g),S=Math.ceil(S),h>0){for(;g<=S;++g)for(j=1;j<r;++j)if(w=g<0?j/o(-g):j*o(g),!(w<h)){if(w>m)break;A.push(w)}}else for(;g<=S;++g)for(j=r-1;j>=1;--j)if(w=g>0?j/o(-g):j*o(g),!(w<h)){if(w>m)break;A.push(w)}A.length*2<b&&(A=rS(h,m,b))}else A=rS(g,S,Math.min(S-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=_w(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(Tz(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function Ez(){const e=Tw(Kp()).domain([1,10]);return e.copy=()=>rf(e,Ez()).base(e.base()),vr.apply(e,arguments),e}function aR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ew(e){var t=1,n=e(aR(t),sR(t));return n.constant=function(r){return arguments.length?e(aR(t=+r),sR(t)):t},Pa(n)}function Nz(){var e=Ew(Kp());return e.copy=function(){return rf(e,Nz()).constant(e.constant())},vr.apply(e,arguments)}function oR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wZ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function AZ(e){return e<0?-e*e:e*e}function Nw(e){var t=e(Sn,Sn),n=1;function r(){return n===1?e(Sn,Sn):n===.5?e(wZ,AZ):e(oR(n),oR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Pa(t)}function Cw(){var e=Nw(Kp());return e.copy=function(){return rf(e,Cw()).exponent(e.exponent())},vr.apply(e,arguments),e}function OZ(){return Cw.apply(null,arguments).exponent(.5)}function lR(e){return Math.sign(e)*e*e}function _Z(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Cz(){var e=Aw(),t=[0,1],n=!1,r;function a(o){var l=_Z(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(lR(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(lR)),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 Cz(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},vr.apply(a,arguments),Pa(a)}function Mz(){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]=MW(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(ja),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 Mz().domain(e).range(t).unknown(r)},vr.apply(o,arguments)}function Pz(){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 Pz().domain([e,t]).range(a).unknown(o)},vr.apply(Pa(l),arguments)}function Rz(){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 Rz().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,Mw=Pi*7,uR=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 Pw=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());Pw.range;const Rw=Xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*hr)},(e,t)=>(t-e)/hr,e=>e.getUTCMinutes());Rw.range;const Dw=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());Dw.range;const kw=Xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_i)},(e,t)=>(t-e)/_i,e=>e.getUTCHours());kw.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 Dz=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));Dz.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)/Mw)}const Xp=Ps(0),Vh=Ps(1),TZ=Ps(2),EZ=Ps(3),Yo=Ps(4),NZ=Ps(5),CZ=Ps(6);Xp.range;Vh.range;TZ.range;EZ.range;Yo.range;NZ.range;CZ.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)/Mw)}const Wp=Rs(0),Hh=Rs(1),MZ=Rs(2),PZ=Rs(3),Xo=Rs(4),RZ=Rs(5),DZ=Rs(6);Wp.range;Hh.range;MZ.range;PZ.range;Xo.range;RZ.range;DZ.range;const Lw=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());Lw.range;const zw=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());zw.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 kz(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,Mw],[t,1,uR],[t,3,3*uR],[e,1,d0]];function c(h,m,y){const g=m<h;g&&([h,m]=[m,h]);const S=y&&typeof y.range=="function"?y:f(h,m,y),j=S?S.range(h,+m+1):[];return g?j.reverse():j}function f(h,m,y){const g=Math.abs(m-h)/y,S=xw(([,,b])=>b).right(l,g);if(S===l.length)return e.every(aS(h/d0,m/d0,y));if(S===0)return Uh.every(Math.max(aS(h,m,y),1));const[j,w]=l[g/l[S-1][2]<l[S][2]/g?S-1:S];return j.every(w)}return[c,f]}const[kZ,LZ]=kz(Di,zw,Wp,Dz,kw,Rw),[zZ,$Z]=kz(Ri,Lw,Xp,af,Dw,Pw);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 Cu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function BZ(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=Mu(a),m=Pu(a),y=Mu(o),g=Pu(o),S=Mu(l),j=Pu(l),w=Mu(c),b=Pu(c),A=Mu(f),_=Pu(f),T={a:K,A:Q,b:re,B:oe,c:null,d:mR,e:mR,f:lQ,g:gQ,G:bQ,H:aQ,I:sQ,j:oQ,L:Lz,m:uQ,M:cQ,p:$,q:H,Q:gR,s:xR,S:fQ,u:dQ,U:hQ,V:pQ,w:mQ,W:yQ,x:null,X:null,y:vQ,Y:xQ,Z:SQ,"%":vR},C={a:ie,A:fe,b:ge,B:we,c:null,d:yR,e:yR,f:OQ,g:kQ,G:zQ,H:jQ,I:wQ,j:AQ,L:$z,m:_Q,M:TQ,p:ze,q:Ze,Q:gR,s:xR,S:EQ,u:NQ,U:CQ,V:MQ,w:PQ,W:RQ,x:null,X:null,y:DQ,Y:LQ,Z:$Q,"%":vR},O={a:L,A:I,b:B,B:F,c:X,d:hR,e:hR,f:tQ,g:dR,G:fR,H:pR,I:pR,j:ZZ,L:eQ,m:WZ,M:QZ,p:D,q:XZ,Q:rQ,s:iQ,S:JZ,u:HZ,U:GZ,V:FZ,w:VZ,W:KZ,x:G,X:z,y:dR,Y:fR,Z:YZ,"%":nQ};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,At=ce.length,Ot,cn,gr;for(Ce instanceof Date||(Ce=new Date(+Ce));++yt<At;)ce.charCodeAt(yt)===37&&(le.push(ce.slice(De,yt)),(cn=cR[Ot=ce.charAt(++yt)])!=null?Ot=ce.charAt(++yt):cn=Ot==="e"?" ":"0",(gr=Ee[Ot])&&(Ot=gr(Ce,cn)),le.push(Ot),De=yt+1);return le.push(ce.slice(De,yt)),le.join("")}}function M(ce,Ee){return function(Ce){var le=Cu(1900,void 0,1),yt=k(le,ce,Ce+="",0),De,At;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(Cu(le.y,0,1)),At=De.getUTCDay(),De=At>4||At===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(Cu(le.y,0,1)),At=De.getDay(),De=At>4||At===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),At="Z"in le?p0(Cu(le.y,0,1)).getUTCDay():h0(Cu(le.y,0,1)).getDay(),le.m=0,le.d="W"in le?(le.w+6)%7+le.W*7-(At+5)%7:le.w+le.U*7-(At+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,At=Ce.length,Ot,cn;yt<De;){if(le>=At)return-1;if(Ot=Ee.charCodeAt(yt++),Ot===37){if(Ot=Ee.charAt(yt++),cn=O[Ot in cR?Ee.charAt(yt++):Ot],!cn||(le=cn(ce,Ce,le))<0)return-1}else if(Ot!=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 L(ce,Ee,Ce){var le=S.exec(Ee.slice(Ce));return le?(ce.w=j.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 B(ce,Ee,Ce){var le=A.exec(Ee.slice(Ce));return le?(ce.m=_.get(le[0].toLowerCase()),Ce+le[0].length):-1}function F(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 G(ce,Ee,Ce){return k(ce,n,Ee,Ce)}function z(ce,Ee,Ce){return k(ce,r,Ee,Ce)}function K(ce){return l[ce.getDay()]}function Q(ce){return o[ce.getDay()]}function re(ce){return f[ce.getMonth()]}function oe(ce){return c[ce.getMonth()]}function $(ce){return a[+(ce.getHours()>=12)]}function H(ce){return 1+~~(ce.getMonth()/3)}function ie(ce){return l[ce.getUTCDay()]}function fe(ce){return o[ce.getUTCDay()]}function ge(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 cR={"-":"",_:" ",0:"0"},en=/^\s*\d+/,qZ=/^%/,IZ=/[\\^$*+?|[\]().{}]/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 UZ(e){return e.replace(IZ,"\\$&")}function Mu(e){return new RegExp("^(?:"+e.map(UZ).join("|")+")","i")}function Pu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function VZ(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function HZ(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function GZ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function FZ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function KZ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fR(e,t,n){var r=en.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function dR(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 YZ(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 XZ(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 WZ(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 hR(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ZZ(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 pR(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.H=+r[0],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],n+r[0].length):-1}function JZ(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function eQ(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tQ(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 nQ(e,t,n){var r=qZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rQ(e,t,n){var r=en.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function iQ(e,t,n){var r=en.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mR(e,t){return Ye(e.getDate(),t,2)}function aQ(e,t){return Ye(e.getHours(),t,2)}function sQ(e,t){return Ye(e.getHours()%12||12,t,2)}function oQ(e,t){return Ye(1+af.count(Ri(e),e),t,3)}function Lz(e,t){return Ye(e.getMilliseconds(),t,3)}function lQ(e,t){return Lz(e,t)+"000"}function uQ(e,t){return Ye(e.getMonth()+1,t,2)}function cQ(e,t){return Ye(e.getMinutes(),t,2)}function fQ(e,t){return Ye(e.getSeconds(),t,2)}function dQ(e){var t=e.getDay();return t===0?7:t}function hQ(e,t){return Ye(Xp.count(Ri(e)-1,e),t,2)}function zz(e){var t=e.getDay();return t>=4||t===0?Yo(e):Yo.ceil(e)}function pQ(e,t){return e=zz(e),Ye(Yo.count(Ri(e),e)+(Ri(e).getDay()===4),t,2)}function mQ(e){return e.getDay()}function yQ(e,t){return Ye(Vh.count(Ri(e)-1,e),t,2)}function vQ(e,t){return Ye(e.getFullYear()%100,t,2)}function gQ(e,t){return e=zz(e),Ye(e.getFullYear()%100,t,2)}function xQ(e,t){return Ye(e.getFullYear()%1e4,t,4)}function bQ(e,t){var n=e.getDay();return e=n>=4||n===0?Yo(e):Yo.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function SQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function yR(e,t){return Ye(e.getUTCDate(),t,2)}function jQ(e,t){return Ye(e.getUTCHours(),t,2)}function wQ(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function AQ(e,t){return Ye(1+Yp.count(Di(e),e),t,3)}function $z(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function OQ(e,t){return $z(e,t)+"000"}function _Q(e,t){return Ye(e.getUTCMonth()+1,t,2)}function TQ(e,t){return Ye(e.getUTCMinutes(),t,2)}function EQ(e,t){return Ye(e.getUTCSeconds(),t,2)}function NQ(e){var t=e.getUTCDay();return t===0?7:t}function CQ(e,t){return Ye(Wp.count(Di(e)-1,e),t,2)}function Bz(e){var t=e.getUTCDay();return t>=4||t===0?Xo(e):Xo.ceil(e)}function MQ(e,t){return e=Bz(e),Ye(Xo.count(Di(e),e)+(Di(e).getUTCDay()===4),t,2)}function PQ(e){return e.getUTCDay()}function RQ(e,t){return Ye(Hh.count(Di(e)-1,e),t,2)}function DQ(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function kQ(e,t){return e=Bz(e),Ye(e.getUTCFullYear()%100,t,2)}function LQ(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function zQ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xo(e):Xo.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function $Q(){return"+0000"}function vR(){return"%"}function gR(e){return+e}function xR(e){return Math.floor(+e/1e3)}var So,qz,Iz;BQ({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 BQ(e){return So=BZ(e),qz=So.format,So.parse,Iz=So.utcFormat,So.utcParse,So}function qQ(e){return new Date(e)}function IQ(e){return e instanceof Date?+e:+new Date(+e)}function $w(e,t,n,r,a,o,l,c,f,h){var m=Aw(),y=m.invert,g=m.domain,S=h(".%L"),j=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?S:c(E)<E?j: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,IQ)):g().map(qQ)},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(Tz(M,E)):m},m.copy=function(){return rf(m,$w(e,t,n,r,a,o,l,c,f,h))},m}function UQ(){return vr.apply($w(zZ,$Z,Ri,Lw,Xp,af,Dw,Pw,hs,qz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function VQ(){return vr.apply($w(kZ,LZ,Di,zw,Wp,Yp,kw,Rw,hs,Iz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zp(){var e=0,t=1,n,r,a,o,l=Sn,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 S,j;return arguments.length?([S,j]=g,l=y(S,j),h):[l(0),l(1)]}}return h.range=m(Ol),h.rangeRound=m(ww),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 Uz(){var e=Pa(Zp()(Sn));return e.copy=function(){return Ra(e,Uz())},$i.apply(e,arguments)}function Vz(){var e=Tw(Zp()).domain([1,10]);return e.copy=function(){return Ra(e,Vz()).base(e.base())},$i.apply(e,arguments)}function Hz(){var e=Ew(Zp());return e.copy=function(){return Ra(e,Hz()).constant(e.constant())},$i.apply(e,arguments)}function Bw(){var e=Nw(Zp());return e.copy=function(){return Ra(e,Bw()).exponent(e.exponent())},$i.apply(e,arguments)}function HQ(){return Bw.apply(null,arguments).exponent(.5)}function Gz(){var e=[],t=Sn;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(ja),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,o)=>CW(e,o/r))},n.copy=function(){return Gz(t).domain(e)},$i.apply(n,arguments)}function Qp(){var e=0,t=.5,n=1,r=1,a,o,l,c,f,h=Sn,m,y=!1,g;function S(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))}S.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,S):[e,t,n]},S.clamp=function(w){return arguments.length?(y=!!w,S):y},S.interpolator=function(w){return arguments.length?(h=w,S):h};function j(w){return function(b){var A,_,T;return arguments.length?([A,_,T]=b,h=nZ(w,[A,_,T]),S):[h(0),h(.5),h(1)]}}return S.range=j(Ol),S.rangeRound=j(ww),S.unknown=function(w){return arguments.length?(g=w,S):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,S}}function Fz(){var e=Pa(Qp()(Sn));return e.copy=function(){return Ra(e,Fz())},$i.apply(e,arguments)}function Kz(){var e=Tw(Qp()).domain([.1,1,10]);return e.copy=function(){return Ra(e,Kz()).base(e.base())},$i.apply(e,arguments)}function Yz(){var e=Ew(Qp());return e.copy=function(){return Ra(e,Yz()).constant(e.constant())},$i.apply(e,arguments)}function qw(){var e=Nw(Qp());return e.copy=function(){return Ra(e,qw()).exponent(e.exponent())},$i.apply(e,arguments)}function GQ(){return qw.apply(null,arguments).exponent(.5)}const bR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:yc,scaleDiverging:Fz,scaleDivergingLog:Kz,scaleDivergingPow:qw,scaleDivergingSqrt:GQ,scaleDivergingSymlog:Yz,scaleIdentity:_z,scaleImplicit:sS,scaleLinear:Ih,scaleLog:Ez,scaleOrdinal:bw,scalePoint:Zu,scalePow:Cw,scaleQuantile:Mz,scaleQuantize:Pz,scaleRadial:Cz,scaleSequential:Uz,scaleSequentialLog:Vz,scaleSequentialPow:Bw,scaleSequentialQuantile:Gz,scaleSequentialSqrt:HQ,scaleSequentialSymlog:Hz,scaleSqrt:OZ,scaleSymlog:Nz,scaleThreshold:Rz,scaleTime:UQ,scaleUtc:VQ,tickFormat:Oz},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,jR;function Xz(){if(jR)return y0;jR=1;function e(t,n){return t>n}return y0=e,y0}var v0,wR;function FQ(){if(wR)return v0;wR=1;var e=Jp(),t=Xz(),n=Al();function r(a){return a&&a.length?e(a,n,t):void 0}return v0=r,v0}var KQ=FQ();const xa=it(KQ);var g0,AR;function Wz(){if(AR)return g0;AR=1;function e(t,n){return t<n}return g0=e,g0}var x0,OR;function YQ(){if(OR)return x0;OR=1;var e=Jp(),t=Wz(),n=Al();function r(a){return a&&a.length?e(a,n,t):void 0}return x0=r,x0}var XQ=YQ();const em=it(XQ);var b0,_R;function WQ(){if(_R)return b0;_R=1;var e=nw(),t=ti(),n=az(),r=Cn();function a(o,l){var c=r(o)?e:n;return c(o,t(l,3))}return b0=a,b0}var S0,TR;function ZQ(){if(TR)return S0;TR=1;var e=rz(),t=WQ();function n(r,a){return e(t(r,a),1)}return S0=n,S0}var QQ=ZQ();const JQ=it(QQ);var j0,ER;function eJ(){if(ER)return j0;ER=1;var e=mw();function t(n,r){return e(n,r)}return j0=t,j0}var tJ=eJ();const Os=it(tJ);var _l=1e9,nJ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Uw,jt=!0,yr="[DecimalError] ",xs=yr+"Invalid argument: ",Iw=yr+"Exponent out of range: ",Tl=Math.floor,ss=Math.pow,rJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hn,Qt=1e7,bt=7,Zz=9007199254740991,Gh=Tl(Zz/bt),pe={};pe.absoluteValue=pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};pe.comparedTo=pe.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};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*bt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};pe.dividedBy=pe.div=function(e){return Ni(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,n=t.constructor;return dt(Ni(t,new n(e),0,1),n.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return It(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.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(Hn))throw Error(yr+"NaN");if(n.s<1)throw Error(yr+(n.s?"NaN":"-Infinity"));return n.eq(Hn)?new r(0):(jt=!1,t=Ni(Sc(n,o),Sc(e,o),o),jt=!0,dt(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?e$(t,e):Qz(t,(e.s=-e.s,e))};pe.modulo=pe.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?(jt=!1,t=Ni(n,e,0,1).times(e),jt=!0,n.minus(t)):dt(new r(n),a)};pe.naturalExponential=pe.exp=function(){return Jz(this)};pe.naturalLogarithm=pe.ln=function(){return Sc(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qz(t,e):e$(t,(e.s=-e.s,e))};pe.precision=pe.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*bt+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};pe.squareRoot=pe.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),jt=!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=Tl((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 jt=!0,dt(r,n)};pe.times=pe.mul=function(e){var t,n,r,a,o,l,c,f,h,m=this,y=m.constructor,g=m.d,S=(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=S.length,f<h&&(o=g,g=S,S=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]+S[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,jt?dt(e,y.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Jr(e,0,_l),t===void 0?t=r.rounding:Jr(t,0,8),dt(n,e+It(n)+1,t))};pe.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=_s(r,!0):(Jr(e,0,_l),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};pe.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?_s(a):(Jr(e,0,_l),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)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return dt(new t(e),It(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.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(Hn);if(c=new f(c),!c.s){if(e.s<1)throw Error(yr+"Infinity");return c}if(c.eq(Hn))return c;if(r=f.precision,e.eq(Hn))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)<=Zz){for(a=new f(Hn),t=Math.ceil(r/bt+4),jt=!1;n%2&&(a=a.times(c),CR(a.d,t)),n=Tl(n/2),n!==0;)c=c.times(c),CR(c.d,t);return jt=!0,e.s<0?new f(Hn).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,jt=!1,a=e.times(Sc(c,r+h)),jt=!0,a=Jz(a),a.s=o,a};pe.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,_l),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};pe.toSignificantDigits=pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Jr(e,1,_l),t===void 0?t=r.rounding:Jr(t,0,8)),dt(new r(n),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[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 Qz(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)),jt?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/bt),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,jt?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=bt-r.length,n&&(o+=ya(n)),o+=r;l=e[t],r=l+"",n=bt-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,S,j,w,b,A,_,T,C,O,E,M,k,D=r.constructor,L=r.s==a.s?1:-1,I=r.d,B=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=B.length,O=I.length,S=new D(L),j=S.d=[],h=0;B[h]==(I[h]||0);)++h;if(B[h]>(I[h]||0)&&--f,o==null?_=o=D.precision:l?_=o+(It(r)-It(a))+1:_=o,_<0)return new D(0);if(_=_/bt+2|0,h=0,M==1)for(m=0,B=B[0],_++;(h<O||m)&&_--;h++)T=m*Qt+(I[h]||0),j[h]=T/B|0,m=T%B|0;else{for(m=Qt/(B[0]+1)|0,m>1&&(B=e(B,m),I=e(I,m),M=B.length,O=I.length),C=M,w=I.slice(0,M),b=w.length;b<M;)w[b++]=0;k=B.slice(),k.unshift(0),E=B[0],B[1]>=Qt/2&&++E;do m=0,c=t(B,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(B,m),g=y.length,b=w.length,c=t(y,w,g,b),c==1&&(m--,n(y,M<g?k:B,g))):(m==0&&(c=m=1),y=B.slice()),g=y.length,g<b&&y.unshift(0),n(w,y,b),c==-1&&(b=w.length,c=t(B,w,M,b),c<1&&(m++,n(w,M<b?k:B,b))),b=w.length):c===0&&(m++,w=[0]),j[h++]=m,c&&w[0]?w[b++]=I[C]||0:(w=[I[C]],b=1);while((C++<O||w[0]!==void 0)&&_--)}return j[0]||j.shift(),S.e=f,dt(S,l?o+It(S)+1:o)}})();function Jz(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(Iw+It(e));if(!e.s)return new m(Hn);for(jt=!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(Hn),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?(jt=!0,dt(o,y)):o}o=l}}function It(e){for(var t=e.e*bt,n=e.d[0];n>=10;n/=10)t++;return t}function w0(e,t,n){if(t>e.LN10.sd())throw jt=!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 Sc(e,t){var n,r,a,o,l,c,f,h,m,y=1,g=10,S=e,j=S.d,w=S.constructor,b=w.precision;if(S.s<1)throw Error(yr+(S.s?"NaN":"-Infinity"));if(S.eq(Hn))return new w(0);if(t==null?(jt=!1,h=b):h=t,S.eq(10))return t==null&&(jt=!0),w0(w,h);if(h+=g,w.precision=h,n=Hr(j),r=n.charAt(0),o=It(S),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)S=S.times(e),n=Hr(S.d),r=n.charAt(0),y++;o=It(S),r>1?(S=new w("0."+n),o++):S=new w(r+"."+n.slice(1))}else return f=w0(w,h+2,b).times(o+""),S=Sc(new w(r+"."+n.slice(1)),h-g).plus(f),w.precision=b,t==null?(jt=!0,dt(S,b)):S;for(c=l=S=Ni(S.minus(Hn),S.plus(Hn),h),m=dt(S.times(S),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?(jt=!0,dt(c,b)):c;c=f,a+=2}}function NR(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=Tl(n/bt),e.d=[],r=(n+1)%bt,n<0&&(r+=bt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=bt;r<a;)e.d.push(+t.slice(r,r+=bt));t=t.slice(r),r=bt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),jt&&(e.e>Gh||e.e<-Gh))throw Error(Iw+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+=bt,a=t,h=y[m=0];else{if(m=Math.ceil((r+1)/bt),o=y.length,m>=o)return e;for(h=o=y[m],l=1;o>=10;o/=10)l++;r%=bt,a=r-bt+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,(bt-t%bt)%bt),e.e=Tl(-t/bt)||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,bt-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(jt&&(e.e>Gh||e.e<-Gh))throw Error(Iw+It(e));return e}function e$(e,t){var n,r,a,o,l,c,f,h,m,y,g=e.constructor,S=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),jt?dt(t,S):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(S/bt),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,jt?dt(t,S):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 CR(e,t){if(e.length>t)return e.length=t,!0}function t$(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 NR(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,rJ.test(o))NR(l,o);else throw Error(xs+o)}if(a.prototype=pe,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=t$,a.config=a.set=iJ,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 iJ(e){if(!e||typeof e!="object")throw Error(yr+"Object expected");var t,n,r,a=["precision",1,_l,"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(Tl(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 Uw=t$(nJ);Hn=new Uw(1);const lt=Uw;function aJ(e){return uJ(e)||lJ(e)||oJ(e)||sJ()}function sJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oJ(e,t){if(e){if(typeof e=="string")return cS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cS(e,t)}}function lJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function uJ(e){if(Array.isArray(e))return cS(e)}function cS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cJ=function(t){return t},n$={},r$=function(t){return t===n$},MR=function(t){return function n(){return arguments.length===0||arguments.length===1&&r$(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},fJ=function e(t,n){return t===1?n:MR(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!==n$}).length;return l>=t?n.apply(void 0,a):e(t-l,MR(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 r$(y)?f.shift():y});return n.apply(void 0,aJ(m).concat(f))}))})},tm=function(t){return fJ(t.length,t)},fS=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},dJ=tm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),hJ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return cJ;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))}},dS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},i$=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 pJ(e){var t;return e===0?t=1:t=Math.floor(new lt(e).abs().log(10).toNumber())+1,t}function mJ(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 yJ=tm(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),vJ=tm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),gJ=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:mJ,getDigitCount:pJ,interpolateNumber:yJ,uninterpolateNumber:vJ,uninterpolateTruncation:gJ};function hS(e){return SJ(e)||bJ(e)||a$(e)||xJ()}function xJ(){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 bJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function SJ(e){if(Array.isArray(e))return pS(e)}function jc(e,t){return AJ(e)||wJ(e,t)||a$(e,t)||jJ()}function jJ(){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 a$(e,t){if(e){if(typeof e=="string")return pS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pS(e,t)}}function pS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wJ(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 AJ(e){if(Array.isArray(e))return e}function s$(e){var t=jc(e,2),n=t[0],r=t[1],a=n,o=r;return n>r&&(a=r,o=n),[a,o]}function o$(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 OJ(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=hJ(dJ(function(f){return a.add(new lt(f-l).mul(r)).toNumber()}),fS);return c(0,t)}function l$(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=o$(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?l$(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 _J(e){var t=jc(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=s$([n,r]),f=jc(c,2),h=f[0],m=f[1];if(h===-1/0||m===1/0){var y=m===1/0?[h].concat(hS(fS(0,a-1).map(function(){return 1/0}))):[].concat(hS(fS(0,a-1).map(function(){return-1/0})),[m]);return n>r?dS(y):y}if(h===m)return OJ(h,a,o);var g=l$(h,m,l,o),S=g.step,j=g.tickMin,w=g.tickMax,b=nm.rangeStep(j,w.add(new lt(.1).mul(S)),S);return n>r?dS(b):b}function TJ(e,t){var n=jc(e,2),r=n[0],a=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=s$([r,a]),c=jc(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=o$(new lt(h).sub(f).div(m-1),o,0),g=[].concat(hS(nm.rangeStep(new lt(f),new lt(h).sub(new lt(.99).mul(y)),y)),[h]);return r>a?dS(g):g}var EJ=i$(_J),NJ=i$(TJ),CJ="Invariant failed";function Ts(e,t){throw new Error(CJ)}var MJ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wo(e){"@babel/helpers - typeof";return Wo=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},Wo(e)}function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fh.apply(this,arguments)}function PJ(e,t){return LJ(e)||kJ(e,t)||DJ(e,t)||RJ()}function RJ(){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 DJ(e,t){if(e){if(typeof e=="string")return PR(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 PR(e,t)}}function PR(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 kJ(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 LJ(e){if(Array.isArray(e))return e}function zJ(e,t){if(e==null)return{};var n=$J(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 $J(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 BJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qJ(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,f$(r.key),r)}}function IJ(e,t,n){return t&&qJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UJ(e,t,n){return t=Kh(t),VJ(e,u$()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function VJ(e,t){if(t&&(Wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HJ(e)}function HJ(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 Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function GJ(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&&mS(e,t)}function mS(e,t){return mS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},mS(e,t)}function c$(e,t,n){return t=f$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f$(e){var t=FJ(e,"string");return Wo(t)=="symbol"?t:t+""}function FJ(e,t){if(Wo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sf=(function(e){function t(){return BJ(this,t),UJ(this,t,arguments)}return GJ(t,e),IJ(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=zJ(r,MJ),S=Se(g,!1);this.props.direction==="x"&&m.type!=="number"&&Ts();var j=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=PJ(C,2);E=k[0],M=k[1]}else E=M=C;if(o==="vertical"){var D=m.scale,L=_+a,I=L+l,B=L-l,F=D(T-E),X=D(T+M);O.push({x1:X,y1:I,x2:X,y2:B}),O.push({x1:F,y1:L,x2:X,y2:L}),O.push({x1:F,y1:I,x2:F,y2:B})}else if(o==="horizontal"){var G=y.scale,z=A+a,K=z-l,Q=z+l,re=G(T-E),oe=G(T+M);O.push({x1:K,y1:oe,x2:Q,y2:oe}),O.push({x1:z,y1:re,x2:z,y2:oe}),O.push({x1:K,y1:re,x2:Q,y2:re})}return q.createElement(qe,Fh({className:"recharts-errorBar",key:"bar-".concat(O.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},S),O.map(function($){return q.createElement("line",Fh({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return q.createElement(qe,{className:"recharts-errorBars"},j)}}])})(q.Component);c$(sf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});c$(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 RR(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?RR(Object(n),!0).forEach(function(r){KJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KJ(e,t,n){return t=YJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YJ(e){var t=XJ(e,"string");return wc(t)=="symbol"?t:t+""}function XJ(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 d$=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,o=t.legendContent,l=Un(n,Lo);if(!l)return null;var c=Lo.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,S=y.props,j=S.sectors||S.data||[];return m.concat(j.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,S=g!==void 0?es(es({},g),y.props):{},j=S.dataKey,w=S.name,b=S.legendType,A=S.hide;return{inactive:A,dataKey:j,type:f.iconType||b||"square",color:Vw(y),value:w||j,payload:S}}),es(es(es({},f),Lo.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 DR(e){return JJ(e)||QJ(e)||ZJ(e)||WJ()}function WJ(){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 ZJ(e,t){if(e){if(typeof e=="string")return yS(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 yS(e,t)}}function QJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JJ(e){if(Array.isArray(e))return yS(e)}function yS(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 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 Nt(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){$o(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 $o(e,t,n){return t=eee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eee(e){var t=tee(e,"string");return Ac(t)=="symbol"?t:t+""}function tee(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 Pt(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=JQ(e,function(c){return Pt(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 nee=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,S=void 0;if(xn(y-m)!==xn(g-y)){var j=[];if(xn(g-y)===xn(f[1]-f[0])){S=g;var w=y+f[1]-f[0];j[0]=Math.min(w,(w+m)/2),j[1]=Math.max(w,(w+m)/2)}else{S=m;var b=g+f[1]-f[0];j[0]=Math.min(y,(b+y)/2),j[1]=Math.max(y,(b+y)/2)}var A=[Math.min(y,(S+y)/2),Math.max(y,(S+y)/2)];if(t>A[0]&&t<=A[1]||t>=j[0]&&t<=j[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},Vw=function(t){var n,r=t,a=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Nt(Nt({},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},ree=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,S=y.length;g<S;g++){var j=m[y[g]],w=j.items,b=j.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?Nt(Nt({},_),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},iee=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,S=a/f,j=l.reduce(function(C,O){return C+O.barSize||0},0);j+=(f-1)*h,j>=a&&(j-=(f-1)*h,h=0),j>=a&&S>0&&(g=!0,S*=.9,j=f*S);var w=(a-j)/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?S:O.barSize}},M=[].concat(DR(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(DR(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},aee=function(t,n,r,a){var o=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),h=d$({children:o,legendWidth:f});if(h){var m=a||{},y=m.width,g=m.height,S=h.align,j=h.verticalAlign,w=h.layout;if((w==="vertical"||w==="horizontal"&&j==="middle")&&S!=="center"&&ue(t[S]))return Nt(Nt({},t),{},$o({},S,t[S]+(y||0)));if((w==="horizontal"||w==="vertical"&&S==="center")&&j!=="middle"&&ue(t[j]))return Nt(Nt({},t),{},$o({},j,t[j]+(g||0)))}return t},see=function(t,n,r){return Ne(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},h$=function(t,n,r,a,o){var l=n.props.children,c=Xn(l,sf).filter(function(h){return see(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=Pt(m,r);if(Ne(y))return h;var g=Array.isArray(y)?[em(y),xa(y)]:[y,y],S=f.reduce(function(j,w){var b=Pt(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,j[0]),Math.max(_,j[1])]},[1/0,-1/0]);return[Math.min(S[0],h[0]),Math.max(S[1],h[1])]},[1/0,-1/0])}return null},oee=function(t,n,r,a,o){var l=n.map(function(c){return h$(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},p$=function(t,n,r,a,o){var l=n.map(function(f){var h=f.props.dataKey;return r==="number"&&h&&h$(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},[])},m$=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},y$=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!wl(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},v$=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(js(a)){var f="scale".concat(Bp(a));return{scale:(bR[f]||Zu)(),realScaleType:bR[f]?f:"point"}}return Te(a)?{scale:a}:{scale:Zu(),realScaleType:"point"}},LR=1e-4,g$=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])-LR,l=Math.max(a[0],a[1])+LR,c=t(n[0]),f=t(n[r-1]);(c<o||c>l||f<o||f>l)&&t.domain([n[0],n[r-1]])}},lee=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},uee=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},cee=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=wl(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])}},fee=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=wl(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)}},dee={sign:cee,expand:JF,none:Uo,silhouette:eK,wiggle:tK,positive:fee},hee=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),o=dee[r],l=QF().keys(a).value(function(c,f){return+Pt(c,f,0)}).order(F1).offset(o);return l(t)},pee=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 S,j=(S=g.type)!==null&&S!==void 0&&S.defaultProps?Nt(Nt({},g.type.defaultProps),g.props):g.props,w=j.stackId,b=j.hide;if(b)return y;var A=j[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 Nt(Nt({},y),{},$o({},A,_))},f),m={};return Object.keys(h).reduce(function(y,g){var S=h[g];if(S.hasStack){var j={};S.stackGroups=Object.keys(S.stackGroups).reduce(function(w,b){var A=S.stackGroups[b];return Nt(Nt({},w),{},$o({},b,{numericAxisId:r,cateAxisId:a,items:A.items,stackedData:hee(t,A.items,o)}))},j)}return Nt(Nt({},y),{},$o({},g,S))},m)},x$=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=EJ(h,o,c);return t.domain([em(m),xa(m)]),{niceTicks:m}}if(o&&a==="number"){var y=t.domain(),g=NJ(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=Sh(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var f=Pt(a,Ne(l)?t.dataKey:l);return Ne(f)?null:t.scale(f)}var zR=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=Pt(l,n.dataKey,n.domain[c]);return Ne(f)?null:n.scale(f)-o/2+a},mee=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]},yee=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Nt(Nt({},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},vee=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])},b$=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=vee(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})},$R=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vS=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($R.test(t[0])){var o=+$R.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(BR.test(t[1])){var l=+BR.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=vw(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},qR=function(t,n,r){return!t||!t.length||Os(t,Yn(r,"type.defaultProps.domain"))?n:t},S$=function(t,n){var r=t.type.defaultProps?Nt(Nt({},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 Nt(Nt({},Se(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:o||a,color:Vw(t),value:Pt(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 IR(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?IR(Object(n),!0).forEach(function(r){j$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j$(e,t,n){return t=gee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gee(e){var t=xee(e,"string");return Oc(t)=="symbol"?t:t+""}function xee(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 bee(e,t){return Aee(e)||wee(e,t)||jee(e,t)||See()}function See(){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 jee(e,t){if(e){if(typeof e=="string")return UR(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 UR(e,t)}}function UR(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 wee(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 Aee(e){if(Array.isArray(e))return e}var Wh=Math.PI/180,Oee=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}},w$=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},_ee=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=w$(l,c,r),S=bn(t.innerRadius,g,0),j=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=[S,j]),C&&(O=[O[1],O[0]]);else{O=_.range;var E=O,M=bee(E,2);f=M[0],h=M[1]}var k=v$(_,o),D=k.realScaleType,L=k.scale;L.domain(T).range(O),g$(L);var I=x$(L,Ai(Ai({},_),{},{realScaleType:D})),B=Ai(Ai(Ai({},_),I),{},{range:O,radius:j,realScaleType:D,scale:L,cx:m,cy:y,innerRadius:S,outerRadius:j,startAngle:f,endAngle:h});return Ai(Ai({},b),{},j$({},A,B))},{})},Tee=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))},Eee=function(t,n){var r=t.x,a=t.y,o=n.cx,l=n.cy,c=Tee({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:Oee(h),angleInRadian:h}},Nee=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}},Cee=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},VR=function(t,n){var r=t.x,a=t.y,o=Eee({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=Nee(n),y=m.startAngle,g=m.endAngle,S=c,j;if(y<=g){for(;S>g;)S-=360;for(;S<y;)S+=360;j=S>=y&&S<=g}else{for(;S>y;)S-=360;for(;S<g;)S+=360;j=S>=g&&S<=y}return j?Ai(Ai({},n),{},{radius:l,angle:Cee(S,n)}):null},A$=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 Mee=["offset"];function Pee(e){return Lee(e)||kee(e)||Dee(e)||Ree()}function Ree(){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 Dee(e,t){if(e){if(typeof e=="string")return gS(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 gS(e,t)}}function kee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lee(e){if(Array.isArray(e))return gS(e)}function gS(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 zee(e,t){if(e==null)return{};var n=$ee(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 $ee(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 HR(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?HR(Object(n),!0).forEach(function(r){Bee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bee(e,t,n){return t=qee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qee(e){var t=Iee(e,"string");return _c(t)=="symbol"?t:t+""}function Iee(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 Uee=function(t){var n=t.value,r=t.formatter,a=Ne(t.children)?n:t.children;return Te(r)?r(a):a},Vee=function(t,n){var r=xn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Hee=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,S=f.startAngle,j=f.endAngle,w=f.clockWise,b=(y+g)/2,A=Vee(S,j),_=A>=0?1:-1,T,C;a==="insideStart"?(T=S+_*l,C=w):a==="insideEnd"?(T=j-_*l,C=!w):a==="end"&&(T=j+_*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))},Gee=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 S=mt(l,c,h+r,g),j=S.x,w=S.y;return{x:j,y:w,textAnchor:j>=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"}},Fee=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,S=y>0?"end":"start",j=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:S};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:j};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:j},M):o==="insideBottom"?Ht({x:c+h/2,y:f+m-g,textAnchor:"middle",verticalAnchor:S},M):o==="insideTopLeft"?Ht({x:c+b,y:f+g,textAnchor:_,verticalAnchor:j},M):o==="insideTopRight"?Ht({x:c+h-b,y:f+g,textAnchor:A,verticalAnchor:j},M):o==="insideBottomLeft"?Ht({x:c+b,y:f+m-g,textAnchor:_,verticalAnchor:S},M):o==="insideBottomRight"?Ht({x:c+h-b,y:f+m-g,textAnchor:A,verticalAnchor:S},M):jl(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)},Kee=function(t){return"cx"in t&&ue(t.cx)};function Jt(e){var t=e.offset,n=t===void 0?5:t,r=zee(e,Mee),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 S;if(Te(h)){if(S=P.createElement(h,a),P.isValidElement(S))return S}else S=Uee(a);var j=Kee(o),w=Se(a,!0);if(j&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Hee(a,S,w);var b=j?Gee(a):Fee(a);return q.createElement(As,Tc({className:Pe("recharts-label",y)},w,b,{breakAll:g}),S)}Jt.displayName="Label";var O$=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,S=t.top,j=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(S)&&ue(j))return{x:S,y:j,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:{}},Yee=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}):jl(t)?q.createElement(Jt,Tc({viewBox:n},t,{key:"label-implicit"})):null:null},Xee=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=O$(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=Yee(t.label,n||o);return[c].concat(Pee(l))};Jt.parseViewBox=O$;Jt.renderCallByParent=Xee;var O0,GR;function Wee(){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 Zee=Wee();const Qee=it(Zee);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 Jee=["valueAccessor"],ete=["data","dataKey","clockWise","id","textBreakAll"];function tte(e){return ate(e)||ite(e)||rte(e)||nte()}function nte(){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 rte(e,t){if(e){if(typeof e=="string")return xS(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 xS(e,t)}}function ite(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ate(e){if(Array.isArray(e))return xS(e)}function xS(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 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 KR(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){ste(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 ste(e,t,n){return t=ote(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ote(e){var t=lte(e,"string");return Ec(t)=="symbol"?t:t+""}function lte(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 YR(e,t){if(e==null)return{};var n=ute(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 ute(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 cte=function(t){return Array.isArray(t.value)?Qee(t.value):t.value};function Xr(e){var t=e.valueAccessor,n=t===void 0?cte:t,r=YR(e,Jee),a=r.data,o=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,h=YR(r,ete);return!a||!a.length?null:q.createElement(qe,{className:"recharts-label-list"},a.map(function(m,y){var g=Ne(o)?n(m,y):Pt(m&&m.payload,o),S=Ne(c)?{}:{id:"".concat(c,"-").concat(y)};return q.createElement(Jt,Zh({},Se(m,!0),h,S,{parentViewBox:m.parentViewBox,value:g,textBreakAll:f,viewBox:Jt.parseViewBox(Ne(l)?m:KR(KR({},m),{},{clockWise:l})),key:"label-".concat(y),index:y}))}))}Xr.displayName="LabelList";function fte(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}):jl(e)?q.createElement(Xr,Zh({data:t},e,{key:"labelList-implicit"})):null:null}function dte(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=fte(e.label,t);return[o].concat(tte(a))}Xr.renderCallByParent=dte;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 bS(){return bS=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},bS.apply(this,arguments)}function XR(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 WR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XR(Object(n),!0).forEach(function(r){hte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hte(e,t,n){return t=pte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pte(e){var t=mte(e,"string");return Nc(t)=="symbol"?t:t+""}function mte(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 yte=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,S=mt(n,r,m,g),j=mt(n,r,a,g),w=h?o-l*y:o,b=mt(n,r,m*Math.cos(y*Wh),w);return{center:S,circleTangency:j,lineTangency:b,theta:y}},_$=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.startAngle,c=t.endAngle,f=yte(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 S=mt(n,r,a,l),j=mt(n,r,a,h);g+="L ".concat(j.x,",").concat(j.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(l<=h),`,
|
||
`).concat(S.x,",").concat(S.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},vte=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}),S=g.circleTangency,j=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(j.x,",").concat(j.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
|
||
`):_$({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m});var O="M ".concat(j.x,",").concat(j.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(S.x,",").concat(S.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,L=Vd({cx:n,cy:r,radius:a,angle:m,sign:-y,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),I=L.circleTangency,B=L.lineTangency,F=L.theta,X=f?Math.abs(h-m):Math.abs(h-m)-D-F;if(X<0&&l===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(B.x,",").concat(B.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},gte={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},T$=function(t){var n=WR(WR({},gte),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 S=Pe("recharts-sector",g),j=l-o,w=bn(c,j,0,!0),b;return w>0&&Math.abs(m-y)<360?b=vte({cx:r,cy:a,innerRadius:o,outerRadius:l,cornerRadius:Math.min(w,j/2),forceCornerRadius:f,cornerIsExternal:h,startAngle:m,endAngle:y}):b=_$({cx:r,cy:a,innerRadius:o,outerRadius:l,startAngle:m,endAngle:y}),q.createElement("path",bS({},Se(n,!0),{className:S,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 SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SS.apply(this,arguments)}function ZR(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 QR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(n),!0).forEach(function(r){xte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xte(e,t,n){return t=bte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bte(e){var t=Ste(e,"string");return Cc(t)=="symbol"?t:t+""}function Ste(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 JR={curveBasisClosed:IF,curveBasisOpen:UF,curveBasis:qF,curveBumpX:_F,curveBumpY:TF,curveLinearClosed:VF,curveLinear:Ip,curveMonotoneX:HF,curveMonotoneY:GF,curveNatural:FF,curveStep:KF,curveStepAfter:XF,curveStepBefore:YF},Hd=function(t){return t.x===+t.x&&t.y===+t.y},Ru=function(t){return t.x},Du=function(t){return t.y},jte=function(t,n){if(Te(t))return t;var r="curve".concat(Bp(t));return(r==="curveMonotone"||r==="curveBump")&&n?JR["".concat(r).concat(n==="vertical"?"Y":"X")]:JR[r]||Ip},wte=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=jte(r,c),y=h?o.filter(function(w){return Hd(w)}):o,g;if(Array.isArray(l)){var S=h?l.filter(function(w){return Hd(w)}):l,j=y.map(function(w,b){return QR(QR({},w),{},{base:S[b]})});return c==="vertical"?g=kd().y(Du).x1(Ru).x0(function(w){return w.base.x}):g=kd().x(Ru).y1(Du).y0(function(w){return w.base.y}),g.defined(Hd).curve(m),g(j)}return c==="vertical"&&ue(l)?g=kd().y(Du).x1(Ru).x0(l):ue(l)?g=kd().x(Ru).y1(Du).y0(l):g=_4().x(Ru).y(Du),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?wte(t):a;return P.createElement("path",SS({},Se(t,!1),jh(t),{className:Pe("recharts-curve",n),d:l,ref:o}))},_0={exports:{}},T0,eD;function Ate(){if(eD)return T0;eD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return T0=e,T0}var E0,tD;function Ote(){if(tD)return E0;tD=1;var e=Ate();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 nD;function _te(){return nD||(nD=1,_0.exports=Ote()()),_0.exports}var Tte=_te();const Je=it(Tte),{getOwnPropertyNames:Ete,getOwnPropertySymbols:Nte}=Object,{hasOwnProperty:Cte}=Object.prototype;function N0(e,t){return function(r,a,o){return e(r,a,o)&&t(r,a,o)}}function Gd(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 Mte(e){return e!=null?e[Symbol.toStringTag]:void 0}function rD(e){return Ete(e).concat(Nte(e))}const Pte=Object.hasOwn||((e,t)=>Cte.call(e,t));function Ds(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Rte="__v",Dte="__o",kte="_owner",{getOwnPropertyDescriptor:iD,keys:aD}=Object;function Lte(e,t){return e.byteLength===t.byteLength&&Qh(new Uint8Array(e),new Uint8Array(t))}function zte(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 $te(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 Bte(e,t){return Ds(e.getTime(),t.getTime())}function qte(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Ite(e,t){return e===t}function sD(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,S=c.value;if(n.equals(g[0],S[0],f,y,e,t,n)&&n.equals(g[1],S[1],g[0],S[0],e,t,n)){m=a[y]=!0;break}y++}if(!m)return!1;f++}return!0}const Ute=Ds;function Vte(e,t,n){const r=aD(e);let a=r.length;if(aD(t).length!==a)return!1;for(;a-- >0;)if(!E$(e,t,n,r[a]))return!1;return!0}function ku(e,t,n){const r=rD(e);let a=r.length;if(rD(t).length!==a)return!1;let o,l,c;for(;a-- >0;)if(o=r[a],!E$(e,t,n,o)||(l=iD(e,o),c=iD(t,o),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function Hte(e,t){return Ds(e.valueOf(),t.valueOf())}function Gte(e,t){return e.source===t.source&&e.flags===t.flags}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.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 Fte(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 E$(e,t,n,r){return(r===kte||r===Dte||r===Rte)&&(e.$$typeof||t.$$typeof)?!0:Pte(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Kte="[object ArrayBuffer]",Yte="[object Arguments]",Xte="[object Boolean]",Wte="[object DataView]",Zte="[object Date]",Qte="[object Error]",Jte="[object Map]",ene="[object Number]",tne="[object Object]",nne="[object RegExp]",rne="[object Set]",ine="[object String]",ane={"[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},sne="[object URL]",one=Object.prototype.toString;function lne({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:S,unknownTagComparators:j}){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=one.call(b);if(O===Zte)return r(b,A,_);if(O===nne)return m(b,A,_);if(O===Jte)return l(b,A,_);if(O===rne)return y(b,A,_);if(O===tne)return typeof b.then!="function"&&typeof A.then!="function"&&f(b,A,_);if(O===sne)return S(b,A,_);if(O===Qte)return a(b,A,_);if(O===Yte)return f(b,A,_);if(ane[O])return g(b,A,_);if(O===Kte)return e(b,A,_);if(O===Wte)return n(b,A,_);if(O===Xte||O===ene||O===ine)return h(b,A,_);if(j){let E=j[O];if(!E){const M=Mte(b);M&&(E=j[M])}if(E)return E(b,A,_)}return!1}}function une({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Lte,areArraysEqual:n?ku:zte,areDataViewsEqual:$te,areDatesEqual:Bte,areErrorsEqual:qte,areFunctionsEqual:Ite,areMapsEqual:n?N0(sD,ku):sD,areNumbersEqual:Ute,areObjectsEqual:n?ku:Vte,arePrimitiveWrappersEqual:Hte,areRegExpsEqual:Gte,areSetsEqual:n?N0(oD,ku):oD,areTypedArraysEqual:n?N0(Qh,ku):Qh,areUrlsEqual:Fte,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Gd(r.areArraysEqual),o=Gd(r.areMapsEqual),l=Gd(r.areObjectsEqual),c=Gd(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return r}function cne(e){return function(t,n,r,a,o,l,c){return e(t,n,c)}}function fne({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 dne=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=une(e),l=lne(o),c=n?n(l):cne(l);return fne({circular:t,comparator:l,createState:r,equals:c,strict:a})}function hne(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function lD(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):hne(a)};requestAnimationFrame(r)}function jS(e){"@babel/helpers - typeof";return jS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jS(e)}function pne(e){return gne(e)||vne(e)||yne(e)||mne()}function mne(){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 yne(e,t){if(e){if(typeof e=="string")return uD(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 uD(e,t)}}function uD(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 vne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gne(e){if(Array.isArray(e))return e}function xne(){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=pne(l),f=c[0],h=c.slice(1);if(typeof f=="number"){lD(a.bind(null,h),f);return}a(f),lD(a.bind(null,h));return}jS(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 cD(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 fD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cD(Object(n),!0).forEach(function(r){N$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N$(e,t,n){return t=bne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bne(e){var t=Sne(e,"string");return Mc(t)==="symbol"?t:String(t)}function Sne(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 jne=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(o){return a.includes(o)})})},wne=function(t){return t},Ane=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 fD(fD({},r),{},N$({},a,t(a,n[a])))},{})},dD=function(t,n,r){return t.map(function(a){return"".concat(Ane(a)," ").concat(n,"ms ").concat(r)}).join(",")};function One(e,t){return Ene(e)||Tne(e,t)||C$(e,t)||_ne()}function _ne(){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 Tne(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 Ene(e){if(Array.isArray(e))return e}function Nne(e){return Pne(e)||Mne(e)||C$(e)||Cne()}function Cne(){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 C$(e,t){if(e){if(typeof e=="string")return wS(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 wS(e,t)}}function Mne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pne(e){if(Array.isArray(e))return wS(e)}function wS(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,M$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},P$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},hD=function(t,n){return function(r){var a=M$(t,n);return P$(a,r)}},Rne=function(t,n){return function(r){var a=M$(t,n),o=[].concat(Nne(a.map(function(l,c){return l*c}).slice(1)),[0]);return P$(o,r)}},pD=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=One(h,4);a=m[0],o=m[1],l=m[2],c=m[3]}}}var y=hD(a,l),g=hD(o,c),S=Rne(a,l),j=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=S(T);if(Math.abs(O-_)<Jh||E<Jh)return g(T);T=j(T-O/E)}return g(T)};return w.isStepper=!1,w},Dne=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 S=-(m-y)*r,j=g*o,w=g+(S-j)*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},kne=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 pD(a);case"spring":return Dne();default:if(a.split("(")[0]==="cubic-bezier")return pD(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 mD(e){return $ne(e)||zne(e)||R$(e)||Lne()}function Lne(){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 zne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ne(e){if(Array.isArray(e))return OS(e)}function yD(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?yD(Object(n),!0).forEach(function(r){AS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AS(e,t,n){return t=Bne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bne(e){var t=qne(e,"string");return Pc(t)==="symbol"?t:String(t)}function qne(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 Ine(e,t){return Hne(e)||Vne(e,t)||R$(e,t)||Une()}function Une(){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 R$(e,t){if(e){if(typeof e=="string")return OS(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 OS(e,t)}}function OS(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 Vne(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 Hne(e){if(Array.isArray(e))return e}var ep=function(t,n,r){return t+(n-t)*r},_S=function(t){var n=t.from,r=t.to;return n!==r},Gne=function e(t,n,r){var a=Ju(function(o,l){if(_S(l)){var c=t(l.from,l.to,l.velocity),f=Ine(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 _S(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 Fne=(function(e,t,n,r,a){var o=jne(e,t),l=o.reduce(function(b,A){return on(on({},b),{},AS({},A,[e[A],t[A]]))},{}),c=o.reduce(function(b,A){return on(on({},b),{},AS({},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)},S=function(){return!Object.values(c).filter(_S).length},j=function(A){h||(h=A);var _=A-h,T=_/n.dt;c=Gne(n,c,T),a(on(on(on({},e),t),g())),h=A,S()||(f=requestAnimationFrame(y))},w=function(A){m||(m=A);var _=(A-m)/r,T=Ju(function(O,E){return ep.apply(void 0,mD(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,mD(E).concat([n(1)]))},l);a(on(on(on({},e),t),C))}};return y=n.isStepper?j:w,function(){return requestAnimationFrame(y),function(){cancelAnimationFrame(f)}}});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)}var Kne=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Yne(e,t){if(e==null)return{};var n=Xne(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 Xne(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 Jne(e)||Qne(e)||Zne(e)||Wne()}function Wne(){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 Zne(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 Qne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jne(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}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 Ar(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){Vu(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 Vu(e,t,n){return t=D$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ere(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tre(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,D$(r.key),r)}}function nre(e,t,n){return t&&tre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function D$(e){var t=rre(e,"string");return Zo(t)==="symbol"?t:String(t)}function rre(e,t){if(Zo(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function ire(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&&ES(e,t)}function ES(e,t){return ES=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ES(e,t)}function are(e){var t=sre();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 NS(this,a)}}function NS(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 CS(e)}function CS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sre(){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){ire(n,e);var t=are(n);function n(r,a){var o;ere(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,S=l.duration;if(o.handleStyleChange=o.handleStyleChange.bind(CS(o)),o.changeStyle=o.changeStyle.bind(CS(o)),!c||S<=0)return o.state={style:{}},typeof g=="function"&&(o.state={style:m}),NS(o);if(y&&y.length)o.state={style:y[0].style};else if(h){if(typeof g=="function")return o.state={style:h},NS(o);o.state={style:f?Vu({},f,h):h}}else o.state={style:{}};return o}return nre(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 S={style:f?Vu({},f,m):m};this.state&&g&&(f&&g[f]!==m||!f&&g!==m)&&this.setState(S);return}if(!(dne(a.to,m)&&a.canBegin&&a.isActive)){var j=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=j||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,S=Fne(l,c,kne(h),f,this.changeStyle),j=function(){o.stopJSAnimation=S()};this.manager.start([g,m,j,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,S=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 L=dD(D,_,C),I=Ar(Ar(Ar({},k.style),O),{},{transition:L});return[].concat(C0(w),[I,_,M]).filter(wne)};return this.manager.start([f].concat(C0(l.reduce(S,[m,Math.max(g,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=xne());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,S=a.children,j=this.manager;if(this.unSubscribe=j.subscribe(this.handleStyleChange),typeof h=="function"||typeof S=="function"||h==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var w=c?Vu({},c,f):f,b=dD(Object.keys(w),l,h);j.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=Yne(a,Kne),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(S){var j=S.props,w=j.style,b=w===void 0?{}:w,A=j.className,_=P.cloneElement(S,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 ore(e,t){return fre(e)||cre(e,t)||ure(e,t)||lre()}function lre(){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 ure(e,t){if(e){if(typeof e=="string")return gD(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 gD(e,t)}}function gD(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 cre(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 fre(e){if(Array.isArray(e))return 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 bD(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){dre(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 dre(e,t,n){return t=hre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hre(e){var t=pre(e,"string");return Rc(t)=="symbol"?t:t+""}function pre(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,S=4;g<S;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 j=Math.min(l,o);m="M ".concat(t,",").concat(n+c*j,`
|
||
A `).concat(j,",").concat(j,",0,0,").concat(h,",").concat(t+f*j,",").concat(n,`
|
||
L `).concat(t+r-f*j,",").concat(n,`
|
||
A `).concat(j,",").concat(j,",0,0,").concat(h,",").concat(t+r,",").concat(n+c*j,`
|
||
L `).concat(t+r,",").concat(n+a-c*j,`
|
||
A `).concat(j,",").concat(j,",0,0,").concat(h,",").concat(t+r-f*j,",").concat(n+a,`
|
||
L `).concat(t+f*j,",").concat(n+a,`
|
||
A `).concat(j,",").concat(j,",0,0,").concat(h,",").concat(t,",").concat(n+a-c*j," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return m},mre=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},yre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Hw=function(t){var n=bD(bD({},yre),t),r=P.useRef(),a=P.useState(-1),o=ore(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,S=n.className,j=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",S);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:j,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:j},q.createElement("path",np({},Se(n,!0),{className:T,d:SD(M,k,O,E,g),ref:r})))}):q.createElement("path",np({},Se(n,!0),{className:T,d:SD(f,h,m,y,g)}))},vre=["points","className","baseLinePoints","connectNulls"];function Co(){return Co=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},Co.apply(this,arguments)}function gre(e,t){if(e==null)return{};var n=xre(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 xre(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 jD(e){return wre(e)||jre(e)||Sre(e)||bre()}function bre(){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 Sre(e,t){if(e){if(typeof e=="string")return MS(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 MS(e,t)}}function jre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wre(e){if(Array.isArray(e))return MS(e)}function MS(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 wD=function(t){return t&&t.x===+t.x&&t.y===+t.y},Are=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){wD(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),wD(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=Are(t);n&&(r=[r.reduce(function(o,l){return[].concat(jD(o),jD(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},Ore=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))},_re=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,o=t.connectNulls,l=gre(t,vre);if(!n||!n.length)return null;var c=Pe("recharts-polygon",r);if(a&&a.length){var f=l.stroke&&l.stroke!=="none",h=Ore(n,a,o);return q.createElement("g",{className:c},q.createElement("path",Co({},Se(l,!0),{fill:h.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:h})),f?q.createElement("path",Co({},Se(l,!0),{fill:"none",d:ec(n,o)})):null,f?q.createElement("path",Co({},Se(l,!0),{fill:"none",d:ec(a,o)})):null)}var m=ec(n,o);return q.createElement("path",Co({},Se(l,!0),{fill:m.slice(-1)==="Z"?l.fill:"none",className:c,d:m}))};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)}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",PS({},Se(t,!1),jh(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 Tre=["x","y","top","left","width","height","className"];function RS(){return RS=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},RS.apply(this,arguments)}function AD(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 Ere(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AD(Object(n),!0).forEach(function(r){Nre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nre(e,t,n){return t=Cre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cre(e){var t=Mre(e,"string");return Dc(t)=="symbol"?t:t+""}function Mre(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 Pre(e,t){if(e==null)return{};var n=Rre(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 Rre(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 Dre=function(t,n,r,a,o,l){return"M".concat(t,",").concat(o,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},kre=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,S=g===void 0?0:g,j=t.className,w=Pre(t,Tre),b=Ere({x:r,y:o,top:c,left:h,width:y,height:S},w);return!ue(r)||!ue(o)||!ue(y)||!ue(S)||!ue(c)||!ue(h)?null:q.createElement("path",RS({},Se(b,!0),{className:Pe("recharts-cross",j),d:Dre(r,o,y,S,c,h)}))},M0,OD;function Lre(){if(OD)return M0;OD=1;var e=Jp(),t=Xz(),n=ti();function r(a,o){return a&&a.length?e(a,n(o,2),t):void 0}return M0=r,M0}var zre=Lre();const $re=it(zre);var P0,_D;function Bre(){if(_D)return P0;_D=1;var e=Jp(),t=ti(),n=Wz();function r(a,o){return a&&a.length?e(a,t(o,2),n):void 0}return P0=r,P0}var qre=Bre();const Ire=it(qre);var Ure=["cx","cy","angle","ticks","axisLine"],Vre=["ticks","tick","angle","tickFormatter","stroke"];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)}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 TD(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?TD(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ED(e,t){if(e==null)return{};var n=Hre(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 Hre(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 Gre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ND(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 Fre(e,t,n){return t&&ND(e.prototype,t),n&&ND(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kre(e,t,n){return t=rp(t),Yre(e,k$()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function Yre(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 Xre(e)}function Xre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k$=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function Wre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DS(e,t)}function DS(e,t){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},DS(e,t)}function rm(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 L$(e){var t=Zre(e,"string");return Qo(t)=="symbol"?t:t+""}function Zre(e,t){if(Qo(e)!="object"||!e)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)}var im=(function(e){function t(){return Gre(this,t),Kre(this,t,arguments)}return Wre(t,e),Fre(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=$re(c,function(m){return m.coordinate||0}),h=Ire(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=ED(r,Ure),m=c.reduce(function(j,w){return[Math.min(j[0],w.coordinate),Math.max(j[1],w.coordinate)]},[1/0,-1/0]),y=mt(a,o,m[0],l),g=mt(a,o,m[1],l),S=ts(ts(ts({},Se(h,!1)),{},{fill:"none"},Se(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"},S))}},{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=ED(a,Vre),y=this.getTickTextAnchor(),g=Se(m,!1),S=Se(l,!1),j=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},S),{},{index:b},A),{},{payload:w});return q.createElement(qe,tc({className:Pe("recharts-polar-radius-axis-tick",A$(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"},j)}},{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 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 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 CD(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?CD(Object(n),!0).forEach(function(r){am(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MD(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 Jre(e,t,n){return t&&MD(e.prototype,t),n&&MD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eie(e,t,n){return t=ip(t),tie(e,z$()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function tie(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 nie(e)}function nie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z$=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function rie(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&&kS(e,t)}function kS(e,t){return kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kS(e,t)}function am(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=iie(e,"string");return Jo(t)=="symbol"?t:t+""}function iie(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 aie=Math.PI/180,PD=1e-5,sm=(function(e){function t(){return Qre(this,t),eie(this,t,arguments)}return rie(t,e),Jre(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*aie),l;return o>PD?l=a==="outer"?"start":"end":o<-PD?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({},Se(this.props,!1)),{},{fill:"none"},Se(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(_re,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=Se(this.props,!1),y=Se(l,!1),g=ns(ns({},m),{},{fill:"none"},Se(c,!1)),S=o.map(function(j,w){var b=r.getTickLineCoord(j),A=r.getTickTextAnchor(j),_=ns(ns(ns({textAnchor:A},m),{},{stroke:"none",fill:h},y),{},{index:w,payload:j,x:b.x2,y:b.y2});return q.createElement(qe,os({className:Pe("recharts-polar-angle-axis-tick",A$(l)),key:"tick-".concat(j.coordinate)},ws(r.props,j,w)),c&&q.createElement("line",os({className:"recharts-polar-angle-axis-tick-line"},g,b)),l&&t.renderTickItem(l,_,f?f(j.value,w):j.value))});return q.createElement(qe,{className:"recharts-polar-angle-axis-ticks"},S)}},{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,RD;function sie(){if(RD)return R0;RD=1;var e=X4(),t=e(Object.getPrototypeOf,Object);return R0=t,R0}var D0,DD;function oie(){if(DD)return D0;DD=1;var e=Li(),t=sie(),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 lie=oie();const uie=it(lie);var k0,kD;function cie(){if(kD)return k0;kD=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 fie=cie();const die=it(fie);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 hie(e,t){return vie(e)||yie(e,t)||mie(e,t)||pie()}function pie(){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 mie(e,t){if(e){if(typeof e=="string")return LD(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 LD(e,t)}}function LD(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 yie(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 vie(e){if(Array.isArray(e))return e}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 $D(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){gie(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 gie(e,t,n){return t=xie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xie(e){var t=bie(e,"string");return kc(t)=="symbol"?t:t+""}function bie(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 BD=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},Sie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jie=function(t){var n=$D($D({},Sie),t),r=P.useRef(),a=P.useState(-1),o=hie(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,S=n.className,j=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",S);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:j,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:j},q.createElement("path",ap({},Se(n,!0),{className:_,d:BD(M,k,C,O,E),ref:r})))}):q.createElement("g",null,q.createElement("path",ap({},Se(n,!0),{className:_,d:BD(f,h,m,y,g)})))},wie=["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 Aie(e,t){if(e==null)return{};var n=Oie(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 Oie(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 qD(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?qD(Object(n),!0).forEach(function(r){_ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ie(e,t,n){return t=Tie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tie(e){var t=Eie(e,"string");return Lc(t)=="symbol"?t:t+""}function Eie(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 Nie(e,t){return sp(sp({},t),e)}function Cie(e,t){return e==="symbols"}function ID(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return q.createElement(Hw,n);case"trapezoid":return q.createElement(jie,n);case"sector":return q.createElement(T$,n);case"symbols":if(Cie(t))return q.createElement(uw,n);break;default:return null}}function Mie(e){return P.isValidElement(e)?e.props:e}function B$(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Nie:r,o=e.activeClassName,l=o===void 0?"recharts-active-shape":o,c=e.isActive,f=Aie(e,wie),h;if(P.isValidElement(t))h=P.cloneElement(t,sp(sp({},f),Mie(t)));else if(Te(t))h=t(f);else if(uie(t)&&!die(t)){var m=a(t,f);h=q.createElement(ID,{shapeType:n,elementProps:m})}else{var y=f;h=q.createElement(ID,{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 Pie(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 Rie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Die(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function kie(e,t){var n;return om(e,t)?n=Pie:lm(e,t)?n=Rie:zc(e,t)&&(n=Die),n}function Lie(e,t){var n;return om(e,t)?n="trapezoids":lm(e,t)?n="sectors":zc(e,t)&&(n="points"),n}function zie(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 $ie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Lie(n,t),o=zie(n,t),l=r.filter(function(f,h){var m=Os(o,f),y=n.props[a].filter(function(j){var w=kie(n,t);return w(j,t)}),g=n.props[a].indexOf(y[y.length-1]),S=h===g;return m&&S}),c=r.indexOf(l[l.length-1]);return c}var lh;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 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 UD(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?UD(Object(n),!0).forEach(function(r){fr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VD(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,I$(r.key),r)}}function qie(e,t,n){return t&&VD(e.prototype,t),n&&VD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iie(e,t,n){return t=op(t),Uie(e,q$()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function Uie(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 Vie(e)}function Vie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q$=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Hie(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&&LS(e,t)}function LS(e,t){return LS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},LS(e,t)}function fr(e,t,n){return t=I$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I$(e){var t=Gie(e,"string");return el(t)=="symbol"?t:t+""}function Gie(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bi=(function(e){function t(n){var r;return Bie(this,t),r=Iie(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 Hie(t,e),qie(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=Se(this.props,!1),y=Se(l,!1),g=Se(c,!1),S=l&&l.offsetRadius||20,j=r.map(function(w,b){var A=(w.startAngle+w.endAngle)/2,_=mt(w.cx,w.cy,w.outerRadius+S,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,Pt(w,O)))});return q.createElement(qe,{className:"recharts-pie-labels"},j)}},{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,S=y?l:g,j=ht(ht({},h),{},{stroke:c?h.fill:h.stroke,tabIndex:-1});return q.createElement(qe,Mo({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(B$,Mo({option:S,isActive:y,shapeType:"sector"},j)))})}},{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,S=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(S),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(j){var w=j.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=Ft(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,L=T.startAngle,I=Ft(0,D-L),B=I(w),F=ht(ht({},T),{},{startAngle:_+E,endAngle:_+B+E});b.push(F),_=F.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,S=a.isAnimationActive,j=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),(!S||j)&&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,Mo({},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,Mo({},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=Se(e,!1),a=Xn(n,Fp);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=w$(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,S=Math.abs(r.minAngle),j=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 Pt(k,A,0)!==0}).length,T=(b>=360?_:_-1)*f,C=b-_*S-T,O=a.reduce(function(k,D){var L=Pt(D,A,0);return k+(ue(L)?L:0)},0),E;if(O>0){var M;E=a.map(function(k,D){var L=Pt(k,A,0),I=Pt(k,m,D),B=(ue(L)?L:0)/O,F;D?F=M.endAngle+xn(w)*f*(L!==0?1:0):F=l;var X=F+xn(w)*((L!==0?S:0)+B*C),G=(F+X)/2,z=(j.innerRadius+j.outerRadius)/2,K=[{name:I,value:L,payload:k,dataKey:A,type:g}],Q=mt(j.cx,j.cy,z,G);return M=ht(ht(ht({percent:B,cornerRadius:o,name:I,tooltipPayload:K,midAngle:G,middleRadius:z,tooltipPosition:Q},k),j),{},{value:Pt(k,A),startAngle:F,endAngle:X,payload:k,paddingAngle:xn(w)*f}),M})}return ht(ht({},j),{},{sectors:E,data:a})});var L0,HD;function Fie(){if(HD)return L0;HD=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 U$(){if(GD)return z0;GD=1;var e=fz(),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,FD;function Kie(){if(FD)return $0;FD=1;var e=Fie(),t=Gp(),n=U$();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,KD;function Yie(){if(KD)return B0;KD=1;var e=Kie(),t=e();return B0=t,B0}var Xie=Yie();const lp=it(Xie);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 YD(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 XD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YD(Object(n),!0).forEach(function(r){V$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V$(e,t,n){return t=Wie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wie(e){var t=Zie(e,"string");return $c(t)=="symbol"?t:t+""}function Zie(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 Qie=["Webkit","Moz","O","ms"],Jie=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),a=Qie.reduce(function(o,l){return XD(XD({},o),{},V$({},l+r,n))},{});return a[t]=n,a};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 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 WD(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?WD(Object(n),!0).forEach(function(r){In(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZD(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,G$(r.key),r)}}function tae(e,t,n){return t&&ZD(e.prototype,t),n&&ZD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nae(e,t,n){return t=cp(t),rae(e,H$()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function rae(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 iae(e)}function iae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H$=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function aae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zS(e,t)}function zS(e,t){return zS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},zS(e,t)}function In(e,t,n){return t=G$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){var t=sae(e,"string");return tl(t)=="symbol"?t:t+""}function sae(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 oae=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}},QD=function(t){return t.changedTouches&&!!t.changedTouches.length},nl=(function(e){function t(n){var r;return eae(this,t),r=nae(this,t,[n]),In(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),In(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),In(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()}),In(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),In(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),In(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),In(r,"handleSlideDragStart",function(a){var o=QD(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 aae(t,e),tae(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),S=t.getIndexInRange(l,y),j=t.getIndexInRange(l,g);return{startIndex:S-S%f,endIndex:j===m?m:j-j%f}}},{key:"getTextOfTick",value:function(r){var a=this.props,o=a.data,l=a.tickFormatter,c=a.dataKey,f=Pt(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,S=f.endIndex,j=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!==S)&&j&&j(b),this.setState({startX:l+w,endX:c+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var o=QD(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,S=m.travellerWidth,j=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-S-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(In(In({},l,h+_),"brushMoveStartX",r.pageX),function(){j&&E()&&j(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 S=c[g];a==="startX"&&S>=h||a==="endX"&&S<=f||this.setState(In({},a,S),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,S=f.ariaLabel,j=f.data,w=f.startIndex,b=f.endIndex,A=Math.max(r,this.props.x),_=q0(q0({},Se(this.props,!1)),{},{x:A,y:h,width:m,height:y}),T=S||"Min value: ".concat((o=j[w])===null||o===void 0?void 0:o.name,", Max value: ").concat((l=j[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,S=5,j={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)-S,y:l+c/2},j),this.getTextOfTick(a)),q.createElement(As,up({textAnchor:"start",verticalAnchor:"middle",x:Math.max(y,g)+f+S,y:l+c/2},j),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,S=g.startX,j=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=Jie("userSelect","none");return q.createElement(qe,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(S,j),this.renderTravellerLayer(S,"startX"),this.renderTravellerLayer(j,"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?oae({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(S){return a.scale(S)});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);In(nl,"displayName","Brush");In(nl,"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,JD;function lae(){if(JD)return I0;JD=1;var e=yw();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,ek;function uae(){if(ek)return U0;ek=1;var e=U4(),t=ti(),n=lae(),r=Cn(),a=Gp();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 cae=uae();const fae=it(cae);var Wr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},V0,tk;function dae(){if(tk)return V0;tk=1;var e=sz();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,nk;function hae(){if(nk)return H0;nk=1;var e=dae(),t=iz(),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 pae=hae();const mae=it(pae);var G0,rk;function yae(){if(rk)return G0;rk=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 G0=e,G0}var F0,ik;function vae(){if(ik)return F0;ik=1;var e=yw();function t(n,r){var a=!0;return e(n,function(o,l,c){return a=!!r(o,l,c),a}),a}return F0=t,F0}var K0,ak;function gae(){if(ak)return K0;ak=1;var e=yae(),t=vae(),n=ti(),r=Cn(),a=Gp();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 xae=gae();const F$=it(xae);var bae=["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 $S(){return $S=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},$S.apply(this,arguments)}function sk(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 Lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sk(Object(n),!0).forEach(function(r){Sae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sae(e,t,n){return t=jae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jae(e){var t=wae(e,"string");return Bc(t)=="symbol"?t:t+""}function wae(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 Aae(e,t){if(e==null)return{};var n=Oae(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 Oae(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 _ae(e,t){var n=e.x,r=e.y,a=Aae(e,bae),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 Lu(Lu(Lu(Lu(Lu({},t),a),l?{x:l}:{}),f?{y:f}:{}),{},{height:m,width:g,name:t.name,radius:t.radius})}function ok(e){return q.createElement(B$,$S({shapeType:"rectangle",propTransformer:_ae,activeClassName:"recharts-active-bar"},e))}var Tae=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)||YG(r);return o?t(r,a):(o||Ts(),n)}},Eae=["value","background"],K$;function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function Nae(e,t){if(e==null)return{};var n=Cae(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 Cae(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 lk(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 zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lk(Object(n),!0).forEach(function(r){ba(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uk(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,X$(r.key),r)}}function Pae(e,t,n){return t&&uk(e.prototype,t),n&&uk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rae(e,t,n){return t=dp(t),Dae(e,Y$()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function Dae(e,t){if(t&&(rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kae(e)}function kae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y$=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function Lae(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&&BS(e,t)}function BS(e,t){return BS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},BS(e,t)}function ba(e,t,n){return t=X$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X$(e){var t=zae(e,"string");return rl(t)=="symbol"?t:t+""}function zae(e,t){if(rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _a=(function(e){function t(){var n;Mae(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Rae(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 Lae(t,e),Pae(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=Se(this.props,!1);return r&&r.map(function(y,g){var S=g===f,j=S?h:l,w=zt(zt(zt({},m),y),{},{isActive:S,option:j,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(ok,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(S){var j=S.t,w=o.map(function(b,A){var _=g&&g[A];if(_){var T=Ft(_.x,b.x),C=Ft(_.y,b.y),O=Ft(_.width,b.width),E=Ft(_.height,b.height);return zt(zt({},b),{},{x:T(j),y:C(j),width:O(j),height:E(j)})}if(l==="horizontal"){var M=Ft(0,b.height),k=M(j);return zt(zt({},b),{},{y:b.y+b.height-k,height:k})}var D=Ft(0,b.width),L=D(j);return zt(zt({},b),{},{width:L})});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=Se(this.props.background,!1);return o.map(function(h,m){h.value;var y=h.background,g=Nae(h,Eae);if(!y)return null;var S=zt(zt(zt(zt(zt({},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(ok,fp({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},S))})}},{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,S=function(b,A){var _=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:_,errorVal:Pt(b,A)}},j={clipPath:r?"url(#clipPath-".concat(a,")"):null};return q.createElement(qe,j,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:S})}))}},{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,S=r.isAnimationActive,j=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},j?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,O),(!S||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);K$=_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,S=lee(r,n);if(!S)return null;var j=t.layout,w=n.type.defaultProps,b=w!==void 0?zt(zt({},w),n.props):n.props,A=b.dataKey,_=b.children,T=b.minPointSize,C=j==="horizontal"?l:o,O=h?C.scale.domain():null,E=mee({numericAxis:C}),M=Xn(_,Fp),k=y.map(function(D,L){var I,B,F,X,G,z;h?I=uee(h[m+L],O):(I=Pt(D,A),Array.isArray(I)||(I=[E,I]));var K=Tae(T,K$.defaultProps.minPointSize)(I[1],L);if(j==="horizontal"){var Q,re=[l.scale(I[0]),l.scale(I[1])],oe=re[0],$=re[1];B=zR({axis:o,ticks:c,bandSize:a,offset:S.offset,entry:D,index:L}),F=(Q=$??oe)!==null&&Q!==void 0?Q:void 0,X=S.size;var H=oe-$;if(G=Number.isNaN(H)?0:H,z={x:B,y:l.y,width:X,height:l.height},Math.abs(K)>0&&Math.abs(G)<Math.abs(K)){var ie=xn(G||K)*(Math.abs(K)-Math.abs(G));F-=ie,G+=ie}}else{var fe=[o.scale(I[0]),o.scale(I[1])],ge=fe[0],we=fe[1];if(B=ge,F=zR({axis:l,ticks:f,bandSize:a,offset:S.offset,entry:D,index:L}),X=we-ge,G=S.size,z={x:o.x,y:F,width:o.width,height:G},Math.abs(K)>0&&Math.abs(X)<Math.abs(K)){var ze=xn(X||K)*(Math.abs(K)-Math.abs(X));X+=ze}}return zt(zt(zt({},D),{},{x:B,y:F,width:X,height:G,value:h?I:I[1],payload:D,background:z},M&&M[L]&&M[L].props),{},{tooltipPayload:[S$(n,D)],tooltipPosition:{x:B+X/2,y:F+G/2}})});return zt({data:k,layout:j},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 $ae(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,W$(r.key),r)}}function Bae(e,t,n){return t&&ck(e.prototype,t),n&&ck(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fk(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?fk(Object(n),!0).forEach(function(r){um(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function um(e,t,n){return t=W$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W$(e){var t=qae(e,"string");return qc(t)=="symbol"?t:t+""}function qae(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=!!Un(h,_a);return m.reduce(function(S,j){var w=n[j],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,L,I;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var B=A[1]-A[0],F=1/0,X=w.categoricalDomain.sort(ZG);if(X.forEach(function(fe,ge){ge>0&&(F=Math.min((fe||0)-(X[ge-1]||0),F))}),Number.isFinite(F)){var G=F/B,z=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(M=G*z/2),w.padding==="no-gap"){var K=bn(t.barCategoryGap,G*z),Q=G*z/2;M=Q-K-(Q-K)/z*K}}}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 re=v$(w,o,g),oe=re.scale,$=re.realScaleType;oe.domain(A).range(k),g$(oe);var H=x$(oe,_r(_r({},w),{},{realScaleType:$}));a==="xAxis"?(I=b==="top"&&!C||b==="bottom"&&C,D=r.left,L=y[E]-I*w.height):a==="yAxis"&&(I=b==="left"&&!C||b==="right"&&C,D=y[E]-I*w.width,L=r.top);var ie=_r(_r(_r({},w),H),{},{realScaleType:$,x:D,y:L,scale:oe,width:a==="xAxis"?r.width:w.width,height:a==="yAxis"?r.height:w.height});return ie.bandSize=Xh(ie,H),!w.hide&&a==="xAxis"?y[E]+=(I?-1:1)*ie.height:w.hide||(y[E]+=(I?-1:1)*ie.width),_r(_r({},S),{},um({},j,ie))},{})},Z$=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)}},Iae=function(t){var n=t.x1,r=t.y1,a=t.x2,o=t.y2;return Z$({x:n,y:r},{x:a,y:o})},Q$=(function(){function e(t){$ae(this,e),this.scale=t}return Bae(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(Q$,"EPS",1e-4);var Fw=function(t){var n=Object.keys(t).reduce(function(r,a){return _r(_r({},r),{},um({},a,Q$.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 mae(a,function(f,h){return n[h].apply(f,{bandAware:l,position:c})})},isInRange:function(a){return F$(a,function(o,l){return n[l].isInRange(o)})}})};function Uae(e){return(e%180+180)%180}var Vae=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Uae(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,dk;function Hae(){if(dk)return Y0;dk=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,hk;function Gae(){if(hk)return X0;hk=1;var e=U$();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return X0=t,X0}var W0,pk;function Fae(){if(pk)return W0;pk=1;var e=J4(),t=ti(),n=Gae(),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,mk;function Kae(){if(mk)return Z0;mk=1;var e=Hae(),t=Fae(),n=e(t);return Z0=n,Z0}var Yae=Kae();const Xae=it(Yae);var Wae=p4();const Zae=it(Wae);var Qae=Zae(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("")}),Kw=P.createContext(void 0),Yw=P.createContext(void 0),J$=P.createContext(void 0),eB=P.createContext({}),tB=P.createContext(void 0),nB=P.createContext(0),rB=P.createContext(0),yk=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=Qae(o);return q.createElement(Kw.Provider,{value:r},q.createElement(Yw.Provider,{value:a},q.createElement(eB.Provider,{value:o},q.createElement(J$.Provider,{value:m},q.createElement(tB.Provider,{value:l},q.createElement(nB.Provider,{value:h},q.createElement(rB.Provider,{value:f},c)))))))},Jae=function(){return P.useContext(tB)},iB=function(t){var n=P.useContext(Kw);n==null&&Ts();var r=n[t];return r==null&&Ts(),r},ese=function(){var t=P.useContext(Kw);return va(t)},tse=function(){var t=P.useContext(Yw),n=Xae(t,function(r){return F$(r.domain,Number.isFinite)});return n||va(t)},aB=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(J$);return t},rse=function(){return P.useContext(eB)},Xw=function(){return P.useContext(rB)},Ww=function(){return P.useContext(nB)};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 ise(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ase(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,oB(r.key),r)}}function sse(e,t,n){return t&&ase(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ose(e,t,n){return t=hp(t),lse(e,sB()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function lse(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 use(e)}function use(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 hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function cse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qS(e,t)}function qS(e,t){return qS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},qS(e,t)}function vk(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 gk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vk(Object(n),!0).forEach(function(r){Zw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zw(e,t,n){return t=oB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oB(e){var t=fse(e,"string");return il(t)=="symbol"?t:t+""}function fse(e,t){if(il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dse(e,t){return yse(e)||mse(e,t)||pse(e,t)||hse()}function hse(){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 pse(e,t){if(e){if(typeof e=="string")return xk(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 xk(e,t)}}function xk(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 mse(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 yse(e){if(Array.isArray(e))return e}function IS(){return IS=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},IS.apply(this,arguments)}var vse=function(t,n){var r;return q.isValidElement(t)?r=q.cloneElement(t,n):Te(t)?r=t(n):r=q.createElement("line",IS({},n,{className:"recharts-reference-line-line"})),r},gse=function(t,n,r,a,o,l,c,f,h){var m=o.x,y=o.y,g=o.width,S=o.height;if(r){var j=h.y,w=t.y.apply(j,{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+S},{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")&&fae(O,function(E){return!t.isInRange(E)})?null:O}return null};function xse(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=Jae(),m=iB(a),y=aB(o),g=nse();if(!h||!g)return null;Mr(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var S=Fw({x:m.scale,y:y.scale}),j=Kt(t),w=Kt(n),b=r&&r.length===2,A=gse(S,j,w,b,g,e.position,m.orientation,y.orientation,e);if(!A)return null;var _=dse(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,L=gk(gk({clipPath:D},Se(e,!0)),{},{x1:C,y1:O,x2:M,y2:k});return q.createElement(qe,{className:Pe("recharts-reference-line",c)},vse(l,L),Jt.renderCallByParent(e,Iae({x1:C,y1:O,x2:M,y2:k})))}var Qw=(function(e){function t(){return ise(this,t),ose(this,t,arguments)}return cse(t,e),sse(t,[{key:"render",value:function(){return q.createElement(xse,this.props)}}])})(q.Component);Zw(Qw,"displayName","ReferenceLine");Zw(Qw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function US(){return US=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},US.apply(this,arguments)}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 bk(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?bk(Object(n),!0).forEach(function(r){cm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sse(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 jse(e,t,n){return t&&Sse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wse(e,t,n){return t=pp(t),Ase(e,lB()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function Ase(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 Ose(e)}function Ose(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 pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pp(e)}function _se(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&&VS(e,t)}function VS(e,t){return VS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},VS(e,t)}function cm(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=Tse(e,"string");return al(t)=="symbol"?t:t+""}function Tse(e,t){if(al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ese=function(t){var n=t.x,r=t.y,a=t.xAxis,o=t.yAxis,l=Fw({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 bse(this,t),wse(this,t,arguments)}return _se(t,e),jse(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=Ese(this.props);if(!y)return null;var g=y.x,S=y.y,j=this.props,w=j.shape,b=j.className,A=Wr(this.props,"hidden")?"url(#".concat(f,")"):void 0,_=Sk(Sk({clipPath:A},Se(this.props,!0)),{},{cx:g,cy:S});return q.createElement(qe,{className:Pe("recharts-reference-dot",b)},t.renderDot(w,_),Jt.renderCallByParent(this.props,{x:g-l,y:S-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,US({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function HS(){return HS=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},HS.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 wk(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){dm(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 Nse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fB(r.key),r)}}function Mse(e,t,n){return t&&Cse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pse(e,t,n){return t=mp(t),Rse(e,cB()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}function Rse(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 Dse(e)}function Dse(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 mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mp(e)}function kse(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&&GS(e,t)}function GS(e,t){return GS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},GS(e,t)}function dm(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=Lse(e,"string");return sl(t)=="symbol"?t:t+""}function Lse(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 zse=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=Fw({x:m.scale,y:y.scale}),S={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},j={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(S)||!g.isInRange(j))?null:Z$(S,j)},hm=(function(e){function t(){return Nse(this,t),Pse(this,t,arguments)}return kse(t,e),Mse(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),S=Kt(l),j=Kt(c),w=this.props.shape;if(!y&&!g&&!S&&!j&&!w)return null;var b=zse(y,g,S,j,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,wk(wk({clipPath:A},Se(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(Hw,HS({},t,{className:"recharts-reference-area-rect"})),n});function dB(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 $se(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Vae(r,n)}function Bse(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 qse(e,t){return dB(e,t+1)}function Ise(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 j=r==null?void 0:r[f];if(j===void 0)return{v:dB(r,h)};var w=f,b,A=function(){return b===void 0&&(b=n(j,w)),b},_=j.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 Ak(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?Ak(Object(n),!0).forEach(function(r){Use(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ak(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Use(e,t,n){return t=Vse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vse(e){var t=Hse(e,"string");return Ic(t)=="symbol"?t:t+""}function Hse(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 Gse(e,t,n,r,a){for(var o=(r||[]).slice(),l=o.length,c=t.start,f=t.end,h=function(g){var S=o[g],j,w=function(){return j===void 0&&(j=n(S,g)),j};if(g===l-1){var b=e*(S.coordinate+e*w()/2-f);o[g]=S=pn(pn({},S),{},{tickCoord:b>0?S.coordinate-b*e:S.coordinate})}else o[g]=S=pn(pn({},S),{},{tickCoord:S.coordinate});var A=yp(e,S.tickCoord,w,c,f);A&&(f=S.tickCoord-e*(w()/2+a),o[g]=pn(pn({},S),{},{isShow:!0}))},m=l-1;m>=0;m--)h(m);return o}function Fse(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 S=yp(e,m.tickCoord,function(){return y},f,h);S&&(h=m.tickCoord-e*(y/2+a),l[c-1]=pn(pn({},m),{},{isShow:!0}))}for(var j=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<j;b++)w(b);return l}function Jw(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 qse(a,typeof f=="number"&&ue(f)?f:0);var g=[],S=c==="top"||c==="bottom"?"width":"height",j=m&&S==="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 S==="width"?$se(Wu(O,{fontSize:t,letterSpacing:n}),j,y):Wu(O,{fontSize:t,letterSpacing:n})[S]},b=a.length>=2?xn(a[1].coordinate-a[0].coordinate):1,A=Bse(o,b,S);return f==="equidistantPreserveStart"?Ise(b,A,w,a,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Fse(b,A,w,a,l,f==="preserveStartEnd"):g=Gse(b,A,w,a,l),g.filter(function(_){return _.isShow}))}var Kse=["viewBox"],Yse=["viewBox"],Xse=["ticks"];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 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 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 Vt(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){eA(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 Q0(e,t){if(e==null)return{};var n=Wse(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 Wse(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 Zse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _k(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,pB(r.key),r)}}function Qse(e,t,n){return t&&_k(e.prototype,t),n&&_k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jse(e,t,n){return t=vp(t),eoe(e,hB()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}function eoe(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 toe(e)}function toe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hB=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vp(e)}function noe(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&&FS(e,t)}function FS(e,t){return FS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},FS(e,t)}function eA(e,t,n){return t=pB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pB(e){var t=roe(e,"string");return ol(t)=="symbol"?t:t+""}function roe(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 El=(function(e){function t(n){var r;return Zse(this,t),r=Jse(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return noe(t,e),Qse(t,[{key:"shouldComponentUpdate",value:function(r,a){var o=r.viewBox,l=Q0(r,Kse),c=this.props,f=c.viewBox,h=Q0(c,Yse);return!ko(o,f)||!ko(l,h)||!ko(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,S,j,w,b,A,_,T=y?-1:1,C=r.tickSize||m,O=ue(r.tickCoord)?r.tickCoord:r.coordinate;switch(h){case"top":S=j=r.coordinate,b=l+ +!y*f,w=b-T*C,_=w-T*g,A=O;break;case"left":w=b=r.coordinate,j=o+ +!y*c,S=j-T*C,A=S-T*g,_=O;break;case"right":w=b=r.coordinate,j=o+ +y*c,S=j+T*C,A=S+T*g,_=O;break;default:S=j=r.coordinate,b=l+ +y*f,w=b+T*C,_=w+T*g,A=O;break}return{line:{x1:S,y1:w,x2:j,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({},Se(this.props,!1)),Se(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 S=+(f==="left"&&!h||f==="right"&&h);y=Vt(Vt({},y),{},{x1:a+S*l,y1:o,x2:a+S*l,y2:o+c})}return q.createElement("line",Po({},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,S=Jw(Vt(Vt({},this.props),{},{ticks:r}),a,o),j=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),b=Se(this.props,!1),A=Se(m,!1),_=Vt(Vt({},b),{},{fill:"none"},Se(f,!1)),T=S.map(function(C,O){var E=l.getTickLineCoord(C),M=E.line,k=E.tick,D=Vt(Vt(Vt(Vt({textAnchor:j,verticalAnchor:w},b),{},{stroke:"none",fill:h},A),k),{},{index:O,payload:C,visibleTicksCount:S.length,tickFormatter:y});return q.createElement(qe,Po({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",Po({},_,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,S=Q0(y,Xse),j=g;return Te(f)&&(j=g&&g.length>0?f(this.props):f(S)),l<=0||c<=0||!j||!j.length?null:q.createElement(qe,{className:Pe("recharts-cartesian-axis",h),ref:function(b){r.layerReference=b}},o&&this.renderAxisLine(),this.renderTicks(j,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,Po({},a,{className:"recharts-cartesian-axis-tick-value"}),o),l}}])})(P.Component);eA(El,"displayName","CartesianAxis");eA(El,"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 ioe=["x1","y1","x2","y2","key"],aoe=["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 Tk(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?Tk(Object(n),!0).forEach(function(r){soe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function soe(e,t,n){return t=ooe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ooe(e){var t=loe(e,"string");return Es(t)=="symbol"?t:t+""}function loe(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 Ek(e,t){if(e==null)return{};var n=uoe(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 uoe(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 coe=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 mB(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=Ek(t,ioe),h=Se(f,!1);h.offset;var m=Ek(h,aoe);n=q.createElement("line",ps({},m,{x1:r,y1:a,x2:o,y2:l,fill:"none",key:c}))}return n}function foe(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 mB(a,h)});return q.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function doe(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 mB(a,h)});return q.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function hoe(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,S){return g-S});a!==m[0]&&m.unshift(0);var y=m.map(function(g,S){var j=!m[S+1],w=j?a+l-g:m[S+1]-g;if(w<=0)return null;var b=S%t.length;return q.createElement("rect",{key:"react-".concat(S),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 poe(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,S){return g-S});o!==m[0]&&m.unshift(0);var y=m.map(function(g,S){var j=!m[S+1],w=j?o+c-g:m[S+1]-g;if(w<=0)return null;var b=S%r.length;return q.createElement("rect",{key:"react-".concat(S),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 moe=function(t,n){var r=t.xAxis,a=t.width,o=t.height,l=t.offset;return y$(Jw(mn(mn(mn({},El.defaultProps),r),{},{ticks:Ti(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.left,l.left+l.width,n)},yoe=function(t,n){var r=t.yAxis,a=t.width,o=t.height,l=t.offset;return y$(Jw(mn(mn(mn({},El.defaultProps),r),{},{ticks:Ti(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.top,l.top+l.height,n)},jo={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function gp(e){var t,n,r,a,o,l,c=Xw(),f=Ww(),h=rse(),m=mn(mn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:jo.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:jo.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:jo.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:jo.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:jo.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:jo.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,S=m.width,j=m.height,w=m.syncWithTicks,b=m.horizontalValues,A=m.verticalValues,_=ese(),T=tse();if(!ue(S)||S<=0||!ue(j)||j<=0||!ue(y)||y!==+y||!ue(g)||g!==+g)return null;var C=m.verticalCoordinatesGenerator||moe,O=m.horizontalCoordinatesGenerator||yoe,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 L=A&&A.length,I=C({xAxis:_?mn(mn({},_),{},{ticks:L?A:_.ticks}):void 0,width:c,height:f,offset:h},L?!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(coe,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),q.createElement(foe,ps({},m,{offset:h,horizontalPoints:E,xAxis:_,yAxis:T})),q.createElement(doe,ps({},m,{offset:h,verticalPoints:M,xAxis:_,yAxis:T})),q.createElement(hoe,ps({},m,{horizontalPoints:E})),q.createElement(poe,ps({},m,{verticalPoints:M})))}gp.displayName="CartesianGrid";var voe=["type","layout","connectNulls","ref"],goe=["key"];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 Nk(e,t){if(e==null)return{};var n=xoe(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 xoe(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 Ck(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ck(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ck(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wo(e){return woe(e)||joe(e)||Soe(e)||boe()}function boe(){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 Soe(e,t){if(e){if(typeof e=="string")return KS(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 KS(e,t)}}function joe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function woe(e){if(Array.isArray(e))return KS(e)}function KS(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 Aoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mk(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,vB(r.key),r)}}function Ooe(e,t,n){return t&&Mk(e.prototype,t),n&&Mk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _oe(e,t,n){return t=xp(t),Toe(e,yB()?Reflect.construct(t,n||[],xp(e).constructor):t.apply(e,n))}function Toe(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 Eoe(e)}function Eoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yB=function(){return!!e})()}function xp(e){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xp(e)}function Noe(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&&YS(e,t)}function YS(e,t){return YS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},YS(e,t)}function Tr(e,t,n){return t=vB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vB(e){var t=Coe(e,"string");return ll(t)=="symbol"?t:t+""}function Coe(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 lf=(function(e){function t(){var n;Aoe(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)),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,S=[],j=0,w=0;j<f.length;w+=f[j],++j)if(w+f[j]>y){S=[].concat(wo(f.slice(0,j)),[y-w]);break}var b=S.length%2===0?[0,g]:[g];return[].concat(wo(t.repeat(f,m)),wo(S),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 Noe(t,e),Ooe(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:Pt(w.payload,b)}},S={clipPath:r?"url(#clipPath-".concat(a,")"):null};return q.createElement(qe,S,y.map(function(j){return q.cloneElement(j,{key:"bar-".concat(j.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=Se(this.props,!1),g=Se(f,!0),S=h.map(function(w,b){var A=qn(qn(qn({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)}),j={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return q.createElement(qe,nc({className:"recharts-line-dots",key:"dots"},j),S)}},{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=Nk(c,voe),g=qn(qn(qn({},Se(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,S=l.animationId,j=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(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var O=C.t;if(_){var E=_.length/c.length,M=c.map(function(B,F){var X=Math.floor(F*E);if(_[X]){var G=_[X],z=Ft(G.x,B.x),K=Ft(G.y,B.y);return qn(qn({},B),{},{x:z(O),y:K(O)})}if(j){var Q=Ft(w*2,B.x),re=Ft(b/2,B.y);return qn(qn({},B),{},{x:Q(O),y:re(O)})}return qn(qn({},B),{},{x:B.x,y:B.y})});return o.renderCurveStatically(M,r,a)}var k=Ft(0,T),D=k(O),L;if(f){var I="".concat(f).split(/[,\s]+/gim).map(function(B){return parseFloat(B)});L=o.getStrokeDasharray(D,T,I)}else L=o.generateSimpleStrokeDasharray(T,D);return o.renderCurveStatically(c,r,a,{strokeDasharray:L})})}},{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,S=a.width,j=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=Se(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=k.r,L=D===void 0?3:D,I=k.strokeWidth,B=I===void 0?2:I,F=x4(l)?l:{},X=F.clipDot,G=X===void 0?!0:X,z=L*2+B;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-S/2,y:O?y:y-j/2,width:C?S:S*2,height:O?j:j*2})),!G&&q.createElement("clipPath",{id:"clipPath-dots-".concat(M)},q.createElement("rect",{x:g-z/2,y:y-z/2,width:S+z,height:j+z}))):null,!_&&this.renderCurve(E,M),this.renderErrorBar(E,M),(_||l)&&this.renderDots(E,G,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=Nk(a,goe),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,S){var j=Pt(g,l);return m==="horizontal"?{x:Yh({axis:n,ticks:a,bandSize:c,entry:g,index:S}),y:Ne(j)?null:r.scale(j),value:j,payload:g}:{x:Ne(j)?null:n.scale(j),y:Yh({axis:r,ticks:o,bandSize:c,entry:g,index:S}),value:j,payload:g}});return qn({points:y,layout:m},h)});var Moe=["layout","type","stroke","connectNulls","isRange","ref"],Poe=["key"],gB;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 xB(e,t){if(e==null)return{};var n=Roe(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 Roe(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 Pk(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?Pk(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Doe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rk(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,SB(r.key),r)}}function koe(e,t,n){return t&&Rk(e.prototype,t),n&&Rk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Loe(e,t,n){return t=bp(t),zoe(e,bB()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function zoe(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 $oe(e)}function $oe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bB=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function Boe(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&&XS(e,t)}function XS(e,t){return XS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},XS(e,t)}function Gr(e,t,n){return t=SB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SB(e){var t=qoe(e,"string");return ul(t)=="symbol"?t:t+""}function qoe(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 ki=(function(e){function t(){var n;Doe(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Loe(this,t,[].concat(a)),Gr(n,"state",{isAnimationFinished:!0}),Gr(n,"id",Ms("recharts-area-")),Gr(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Te(l)&&l()}),Gr(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Te(l)&&l()}),n}return Boe(t,e),koe(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=Se(this.props,!1),S=Se(h,!0),j=m.map(function(b,A){var _=ma(ma(ma({key:"dot-".concat(A),r:3},g),S),{},{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),j)}},{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 S=xB(c,Moe);return q.createElement(qe,{clipPath:o?"url(#clipPath-".concat(l,")"):null},q.createElement(bs,ms({},Se(S,!0),{points:r,connectNulls:y,type:h,baseLine:a,layout:f,stroke:"none",className:"recharts-area-area"})),m!=="none"&&q.createElement(bs,ms({},Se(this.props,!1),{className:"recharts-area-curve",layout:f,type:h,connectNulls:y,fill:"none",points:r})),m!=="none"&&g&&q.createElement(bs,ms({},Se(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,S=l.animationId,j=this.state,w=j.prevPoints,b=j.prevBaseLine;return q.createElement(Rr,{begin:m,duration:y,isActive:h,easing:g,from:{t:0},to:{t:1},key:"area-".concat(S),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 L=Math.floor(D*T);if(w[L]){var I=w[L],B=Ft(I.x,k.x),F=Ft(I.y,k.y);return ma(ma({},k),{},{x:B(_),y:F(_)})}return k}),O;if(ue(f)&&typeof f=="number"){var E=Ft(b,f);O=E(_)}else if(Ne(f)||wl(f)){var M=Ft(b,0);O=M(_)}else O=f.map(function(k,D){var L=Math.floor(D*T);if(b[L]){var I=b[L],B=Ft(I.x,k.x),F=Ft(I.y,k.y);return ma(ma({},k),{},{x:B(_),y:F(_)})}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,S=a.width,j=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=Se(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=k.r,L=D===void 0?3:D,I=k.strokeWidth,B=I===void 0?2:I,F=x4(l)?l:{},X=F.clipDot,G=X===void 0?!0:X,z=L*2+B;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-S/2,y:O?h:h-j/2,width:C?S:S*2,height:O?j:j*2})),!G&&q.createElement("clipPath",{id:"clipPath-dots-".concat(M)},q.createElement("rect",{x:m-z/2,y:h-z/2,width:S+z,height:j+z}))):null,_?null:this.renderArea(E,M),(l||_)&&this.renderDots(E,G,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);gB=ki;Gr(ki,"displayName","Area");Gr(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"});Gr(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]});Gr(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,S=t.layout,j=h&&h.length,w=gB.getBaseValue(t,n,r,a),b=S==="horizontal",A=!1,_=y.map(function(C,O){var E;j?E=h[m+O]:(E=Pt(C,f),Array.isArray(E)?A=!0:E=[w,E]);var M=E[1]==null||j&&Pt(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 j||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:S,isRange:A},g)});Gr(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=xB(t,Poe);n=q.createElement(of,ms({},o,{key:a,className:r}))}return n});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 Ioe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uoe(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,AB(r.key),r)}}function Voe(e,t,n){return t&&Uoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hoe(e,t,n){return t=Sp(t),Goe(e,jB()?Reflect.construct(t,n||[],Sp(e).constructor):t.apply(e,n))}function Goe(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 Foe(e)}function Foe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jB=function(){return!!e})()}function Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sp(e)}function Koe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WS(e,t)}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},WS(e,t)}function wB(e,t,n){return t=AB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AB(e){var t=Yoe(e,"string");return cl(t)=="symbol"?t:t+""}function Yoe(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)}function ZS(){return ZS=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},ZS.apply(this,arguments)}function Xoe(e){var t=e.xAxisId,n=Xw(),r=Ww(),a=iB(t);return a==null?null:P.createElement(El,ZS({},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 Ioe(this,t),Hoe(this,t,arguments)}return Koe(t,e),Voe(t,[{key:"render",value:function(){return P.createElement(Xoe,this.props)}}])})(P.Component);wB(Ta,"displayName","XAxis");wB(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 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 Woe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zoe(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,TB(r.key),r)}}function Qoe(e,t,n){return t&&Zoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Joe(e,t,n){return t=jp(t),ele(e,OB()?Reflect.construct(t,n||[],jp(e).constructor):t.apply(e,n))}function ele(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 tle(e)}function tle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OB=function(){return!!e})()}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jp(e)}function nle(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&&QS(e,t)}function QS(e,t){return QS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},QS(e,t)}function _B(e,t,n){return t=TB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TB(e){var t=rle(e,"string");return fl(t)=="symbol"?t:t+""}function rle(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 JS(){return JS=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},JS.apply(this,arguments)}var ile=function(t){var n=t.yAxisId,r=Xw(),a=Ww(),o=aB(n);return o==null?null:P.createElement(El,JS({},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 Woe(this,t),Joe(this,t,arguments)}return nle(t,e),Qoe(t,[{key:"render",value:function(){return P.createElement(ile,this.props)}}])})(P.Component);_B(Ea,"displayName","YAxis");_B(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 Dk(e){return lle(e)||ole(e)||sle(e)||ale()}function ale(){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 sle(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 ole(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lle(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}var tj=function(t,n,r,a,o){var l=Xn(t,Qw),c=Xn(t,fm),f=[].concat(Dk(l),Dk(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 S="".concat(y,"1"),j="".concat(y,"2");g=h.reduce(function(w,b){if(b.props[m]===r&&Wr(b.props,"extendDomain")&&ue(b.props[S])&&ue(b.props[j])){var A=b.props[S],_=b.props[j];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:{}},kk;function ule(){return kk||(kk=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 S=new a(m,y||f,g),j=n?n+h:h;return f._events[j]?f._events[j].fn?f._events[j]=[f._events[j],S]:f._events[j].push(S):(f._events[j]=S,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,S=y.length,j=new Array(S);g<S;g++)j[g]=y[g].fn;return j},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,S,j){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,S),!0;case 6:return b.fn.call(b.context,m,y,g,S,j),!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 S=n?n+h:h;if(!this._events[S])return this;if(!m)return l(this,S),this;var j=this._events[S];if(j.fn)j.fn===m&&(!g||j.once)&&(!y||j.context===y)&&l(this,S);else{for(var w=0,b=[],A=j.length;w<A;w++)(j[w].fn!==m||g&&!j[w].once||y&&j[w].context!==y)&&b.push(j[w]);b.length?this._events[S]=b.length===1?b[0]:b:l(this,S)}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 cle=ule();const fle=it(cle);var e1=new fle,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 dle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EB(r.key),r)}}function ple(e,t,n){return t&&hle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n1(e,t,n){return t=EB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EB(e){var t=mle(e,"string");return Uc(t)=="symbol"?t:t+""}function mle(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 yle=(function(){function e(){dle(this,e),n1(this,"activeIndex",0),n1(this,"coordinateList",[]),n1(this,"layout","horizontal")}return ple(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,S=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=S??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 vle(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 gle(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 NB(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 xle(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),S=mt(c,f,m,y);r=g.x,a=g.y,o=S.x,l=S.y}else return NB(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 Lk(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 Fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lk(Object(n),!0).forEach(function(r){ble(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ble(e,t,n){return t=Sle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sle(e){var t=jle(e,"string");return Vc(t)=="symbol"?t:t+""}function jle(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 wle(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,S=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!S||!o||!l||g!=="ScatterChart"&&a!=="axis")return null;var j,w=bs;if(g==="ScatterChart")j=l,w=kre;else if(g==="BarChart")j=gle(y,l,f,m),w=Hw;else if(y==="radial"){var b=NB(l),A=b.cx,_=b.cy,T=b.radius,C=b.startAngle,O=b.endAngle;j={cx:A,cy:_,startAngle:C,endAngle:O,innerRadius:T,outerRadius:T},w=T$}else j={points:xle(y,l,f)},w=bs;var E=Fd(Fd(Fd(Fd({stroke:"#ccc",pointerEvents:"none"},f),j),Se(S,!1)),{},{payload:c,payloadIndex:h,className:Pe("recharts-tooltip-cursor",S.className)});return P.isValidElement(S)?P.cloneElement(S,E):P.createElement(w,E)}var Ale=["item"],Ole=["children","className","width","height","style","compact","title","desc"];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 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 zk(e,t){return Ele(e)||Tle(e,t)||MB(e,t)||_le()}function _le(){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 Tle(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 Ele(e){if(Array.isArray(e))return e}function $k(e,t){if(e==null)return{};var n=Nle(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 Nle(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 Cle(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,PB(r.key),r)}}function Ple(e,t,n){return t&&Mle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rle(e,t,n){return t=wp(t),Dle(e,CB()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}function Dle(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 kle(e)}function kle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CB=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wp(e)}function Lle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 hl(e){return Ble(e)||$le(e)||MB(e)||zle()}function zle(){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 MB(e,t){if(e){if(typeof e=="string")return rj(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 rj(e,t)}}function $le(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ble(e){if(Array.isArray(e))return rj(e)}function rj(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 Bk(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?Bk(Object(n),!0).forEach(function(r){Oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oe(e,t,n){return t=PB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PB(e){var t=qle(e,"string");return dl(t)=="symbol"?t:t+""}function qle(e,t){if(dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ile={xAxis:["bottom","top"],yAxis:["left","right"]},Ule={width:"100%",height:"100%"},RB={x:0,y:0};function Kd(e){return e}var Vle=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Hle=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 RB},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(hl(c),hl(h)):c},[]);return l.length>0?l:t&&t.length&&ue(a)&&ue(o)?t.slice(a,o+1):[]};function DB(e){return e==="number"?[0,"auto"]:void 0}var ij=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 S=y===void 0?c:y;g=Sh(S,l.dataKey,a)}else g=y&&y[r]||c[r];return g?[].concat(hl(f),[S$(h,g)]):f},[])},qk=function(t,n,r,a){var o=a||{x:t.chartX,y:t.chartY},l=Vle(o,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,h=t.tooltipTicks,m=nee(l,c,h,f);if(m>=0&&h){var y=h[m]&&h[m].value,g=ij(t,n,m,y),S=Hle(r,c,m,o);return{activeTooltipIndex:m,activeLabel:y,activePayload:g,activeCoordinate:S}}return null},Gle=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,S=m$(m,o);return r.reduce(function(j,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(j[D])return j;var L=pm(t.data,{graphicalItems:a.filter(function(H){var ie,fe=l in H.props?H.props[l]:(ie=H.type.defaultProps)===null||ie===void 0?void 0:ie[l];return fe===D}),dataStartIndex:f,dataEndIndex:h}),I=L.length,B,F,X;vle(A.domain,C,_)&&(B=vS(A.domain,null,C),S&&(_==="number"||E!=="auto")&&(X=Qu(L,T,"category")));var G=DB(_);if(!B||B.length===0){var z,K=(z=A.domain)!==null&&z!==void 0?z:G;if(T){if(B=Qu(L,T,_),_==="category"&&S){var Q=WG(B);O&&Q?(F=B,B=lp(0,I)):O||(B=qR(K,B,w).reduce(function(H,ie){return H.indexOf(ie)>=0?H:[].concat(hl(H),[ie])},[]))}else if(_==="category")O?B=B.filter(function(H){return H!==""&&!Ne(H)}):B=qR(K,B,w).reduce(function(H,ie){return H.indexOf(ie)>=0||ie===""||Ne(ie)?H:[].concat(hl(H),[ie])},[]);else if(_==="number"){var re=oee(L,a.filter(function(H){var ie,fe,ge=l in H.props?H.props[l]:(ie=H.type.defaultProps)===null||ie===void 0?void 0:ie[l],we="hide"in H.props?H.props.hide:(fe=H.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return ge===D&&(k||!we)}),T,o,m);re&&(B=re)}S&&(_==="number"||E!=="auto")&&(X=Qu(L,T,"category"))}else S?B=lp(0,I):c&&c[D]&&c[D].hasStack&&_==="number"?B=g==="expand"?[0,1]:b$(c[D].stackGroups,f,h):B=p$(L,a.filter(function(H){var ie=l in H.props?H.props[l]:H.type.defaultProps[l],fe="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return ie===D&&(k||!fe)}),_,m,!0);if(_==="number")B=tj(y,B,D,o,M),K&&(B=vS(K,B,C));else if(_==="category"&&K){var oe=K,$=B.every(function(H){return oe.indexOf(H)>=0});$&&(B=oe)}}return ne(ne({},j),{},Oe({},D,ne(ne({},A),{},{axisType:o,domain:B,categoricalDomain:X,duplicateDomain:F,originalDomain:(b=A.domain)!==null&&b!==void 0?b:G,isCategorical:S,layout:m})))},{})},Fle=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}),S=g.length,j=m$(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=DB("number");if(!b[T]){w++;var O;return j?O=lp(0,S):c&&c[T]&&c[T].hasStack?(O=b$(c[T].stackGroups,f,h),O=tj(y,O,T,o)):(O=vS(C,p$(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],L="hide"in E.props?E.props.hide:(k=E.type.defaultProps)===null||k===void 0?void 0:k.hide;return D===T&&!L}),"number",m),a.defaultProps.allowDataOverflow),O=tj(y,O,T,o)),ne(ne({},b),{},Oe({},T,ne(ne({axisType:o},a.defaultProps),{},{hide:!0,orientation:Yn(Ile,"".concat(o,".").concat(w%2),null),domain:O,originalDomain:C,isCategorical:j,layout:m})))}return b},{})},Kle=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),S={};return g&&g.length?S=Gle(t,{axes:g,graphicalItems:l,axisType:a,axisIdKey:y,stackGroups:c,dataStartIndex:f,dataEndIndex:h}):l&&l.length&&(S=Fle(t,{Axis:o,graphicalItems:l,axisType:a,axisIdKey:y,stackGroups:c,dataStartIndex:f,dataEndIndex:h})),S},Yle=function(t){var n=va(t),r=Ti(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:vw(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Xh(n,r)}},Ik=function(t){var n=t.children,r=t.defaultShowTooltip,a=Un(n,nl),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}},Xle=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ei(n&&n.type);return r&&r.indexOf("Bar")>=0})},Uk=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"}},Wle=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||{},S=Un(y,nl),j=Un(y,Lo),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;S&&(A.bottom+=S.props.height||nl.defaultProps.height),j&&n&&(A=aee(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)})},Zle=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,L=A.layout,I=A.barGap,B=A.barCategoryGap,F=A.maxBarSize,X=Uk(L),G=X.numericAxisName,z=X.cateAxisName,K=Xle(T),Q=[];return T.forEach(function(re,oe){var $=pm(A.data,{graphicalItems:[re],dataStartIndex:M,dataEndIndex:k}),H=re.type.defaultProps!==void 0?ne(ne({},re.type.defaultProps),re.props):re.props,ie=H.dataKey,fe=H.maxBarSize,ge=H["".concat(G,"Id")],we=H["".concat(z,"Id")],ze={},Ze=f.reduce(function(xr,ni){var Nl=_["".concat(ni.axisType,"Map")],fn=H["".concat(ni.axisType,"Id")];Nl&&Nl[fn]||ni.axisType==="zAxis"||Ts();var uf=Nl[fn];return ne(ne({},xr),{},Oe(Oe({},ni.axisType,uf),"".concat(ni.axisType,"Ticks"),Ti(uf)))},ze),ce=Ze[z],Ee=Ze["".concat(z,"Ticks")],Ce=C&&C[ge]&&C[ge].hasStack&&yee(re,C[ge].stackGroups),le=Ei(re.type).indexOf("Bar")>=0,yt=Xh(ce,Ee),De=[],At=K&&ree({barSize:D,stackGroups:C,totalSize:Zle(Ze,z)});if(le){var Ot,cn,gr=Ne(fe)?F:fe,zr=(Ot=(cn=Xh(ce,Ee,!0))!==null&&cn!==void 0?cn:gr)!==null&&Ot!==void 0?Ot:0;De=iee({barGap:I,barCategoryGap:B,bandSize:zr!==yt?zr:yt,sizeList:At[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=re&&re.type&&re.type.getComposedData;qi&&Q.push({props:ne(ne({},qi(ne(ne({},Ze),{},{displayedData:$,props:A,dataKey:ie,item:re,bandSize:yt,barPosition:De,offset:O,stackedData:Ce,layout:L,dataStartIndex:M,dataEndIndex:k}))),{},Oe(Oe(Oe({key:re.key||"item-".concat(oe)},G,Ze[G]),z,Ze[z]),"animationId",E)),childIndex:lF(re,A.children),item:re})}),Q},S=function(A,_){var T=A.props,C=A.dataStartIndex,O=A.dataEndIndex,E=A.updateId;if(!tC({props:T}))return null;var M=T.children,k=T.layout,D=T.stackOffset,L=T.data,I=T.reverseStackOrder,B=Uk(k),F=B.numericAxisName,X=B.cateAxisName,G=Xn(M,r),z=pee(L,G,"".concat(F,"Id"),"".concat(X,"Id"),D,I),K=f.reduce(function(H,ie){var fe="".concat(ie.axisType,"Map");return ne(ne({},H),{},Oe({},fe,Kle(T,ne(ne({},ie),{},{graphicalItems:G,stackGroups:ie.axisType===F&&z,dataStartIndex:C,dataEndIndex:O}))))},{}),Q=Wle(ne(ne({},K),{},{props:T,graphicalItems:G}),_==null?void 0:_.legendBBox);Object.keys(K).forEach(function(H){K[H]=m(T,K[H],Q,H.replace("Map",""),n)});var re=K["".concat(X,"Map")],oe=Yle(re),$=g(T,ne(ne({},K),{},{dataStartIndex:C,dataEndIndex:O,updateId:E,graphicalItems:G,stackGroups:z,offset:Q}));return ne(ne({formattedGraphicalItems:$,graphicalItems:G,offset:Q,stackGroups:z},oe),K)},j=(function(b){function A(_){var T,C,O;return Cle(this,A),O=Rle(this,A,[_]),Oe(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Oe(O,"accessibilityManager",new yle),Oe(O,"handleLegendBBoxUpdate",function(E){if(E){var M=O.state,k=M.dataStartIndex,D=M.dataEndIndex,L=M.updateId;O.setState(ne({legendBBox:E},S({props:O.props,dataStartIndex:k,dataEndIndex:D,updateId:L},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},S({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=oF(E),k=Yn(O.props,"".concat(M));if(M&&Te(k)){var D,L;/.*touch.*/i.test(M)?L=O.getMouseInfo(E.changedTouches[0]):L=O.getMouseInfo(E),k((D=L)!==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,L=O.state.updateId,I=E.dataStartIndex,B=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)O.setState(ne({dataStartIndex:I,dataEndIndex:B},S({props:O.props,dataStartIndex:I,dataEndIndex:B,updateId:L},O.state)));else if(E.activeTooltipIndex!==void 0){var F=E.chartX,X=E.chartY,G=E.activeTooltipIndex,z=O.state,K=z.offset,Q=z.tooltipTicks;if(!K)return;if(typeof D=="function")G=D(Q,E);else if(D==="value"){G=-1;for(var re=0;re<Q.length;re++)if(Q[re].value===E.activeLabel){G=re;break}}var oe=ne(ne({},K),{},{x:K.left,y:K.top}),$=Math.min(F,oe.x+oe.width),H=Math.min(X,oe.y+oe.height),ie=Q[G]&&Q[G].value,fe=ij(O.state,O.props.data,G),ge=Q[G]?{x:k==="horizontal"?Q[G].coordinate:$,y:k==="horizontal"?H:Q[G].coordinate}:RB;O.setState(ne(ne({},E),{},{activeLabel:ie,activeCoordinate:ge,activePayload:fe,activeTooltipIndex:G}))}else O.setState(E)}),Oe(O,"renderCursor",function(E){var M,k=O.state,D=k.isTooltipActive,L=k.activeCoordinate,I=k.activePayload,B=k.offset,F=k.activeTooltipIndex,X=k.tooltipAxisBandSize,G=O.getTooltipEventType(),z=(M=E.props.active)!==null&&M!==void 0?M:D,K=O.props.layout,Q=E.key||"_recharts-cursor";return q.createElement(wle,{key:Q,activeCoordinate:L,activePayload:I,activeTooltipIndex:F,chartName:n,element:E,isActive:z,layout:K,offset:B,tooltipAxisBandSize:X,tooltipEventType:G})}),Oe(O,"renderPolarAxis",function(E,M,k){var D=Yn(E,"type.axisType"),L=Yn(O.state,"".concat(D,"Map")),I=E.type.defaultProps,B=I!==void 0?ne(ne({},I),E.props):E.props,F=L&&L[B["".concat(D,"Id")]];return P.cloneElement(E,ne(ne({},F),{},{className:Pe(D,F.className),key:E.key||"".concat(M,"-").concat(k),ticks:Ti(F,!0)}))}),Oe(O,"renderPolarGrid",function(E){var M=E.props,k=M.radialLines,D=M.polarAngles,L=M.polarRadius,I=O.state,B=I.radiusAxisMap,F=I.angleAxisMap,X=va(B),G=va(F),z=G.cx,K=G.cy,Q=G.innerRadius,re=G.outerRadius;return P.cloneElement(E,{polarAngles:Array.isArray(D)?D:Ti(G,!0).map(function(oe){return oe.coordinate}),polarRadius:Array.isArray(L)?L:Ti(X,!0).map(function(oe){return oe.coordinate}),cx:z,cy:K,innerRadius:Q,outerRadius:re,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,L=M.height,I=O.props.margin||{},B=D-(I.left||0)-(I.right||0),F=d$({children:k,formattedGraphicalItems:E,legendWidth:B,legendContent:h});if(!F)return null;var X=F.item,G=$k(F,Ale);return P.cloneElement(X,ne(ne({},G),{},{chartWidth:D,chartHeight:L,margin:I,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Oe(O,"renderTooltip",function(){var E,M=O.props,k=M.children,D=M.accessibilityLayer,L=Un(k,Vn);if(!L)return null;var I=O.state,B=I.isTooltipActive,F=I.activeCoordinate,X=I.activePayload,G=I.activeLabel,z=I.offset,K=(E=L.props.active)!==null&&E!==void 0?E:B;return P.cloneElement(L,{viewBox:ne(ne({},z),{},{x:z.left,y:z.top}),active:K,label:G,payload:K?X:[],coordinate:F,accessibilityLayer:D})}),Oe(O,"renderBrush",function(E){var M=O.props,k=M.margin,D=M.data,L=O.state,I=L.offset,B=L.dataStartIndex,F=L.dataEndIndex,X=L.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:B,endIndex:F,updateId:"brush-".concat(X)})}),Oe(O,"renderReferenceElement",function(E,M,k){if(!E)return null;var D=O,L=D.clipPathId,I=O.state,B=I.xAxisMap,F=I.yAxisMap,X=I.offset,G=E.type.defaultProps||{},z=E.props,K=z.xAxisId,Q=K===void 0?G.xAxisId:K,re=z.yAxisId,oe=re===void 0?G.yAxisId:re;return P.cloneElement(E,{key:E.key||"".concat(M,"-").concat(k),xAxis:B[Q],yAxis:F[oe],viewBox:{x:X.left,y:X.top,width:X.width,height:X.height},clipPathId:L})}),Oe(O,"renderActivePoints",function(E){var M=E.item,k=E.activePoint,D=E.basePoint,L=E.childIndex,I=E.isRange,B=[],F=M.props.key,X=M.item.type.defaultProps!==void 0?ne(ne({},M.item.type.defaultProps),M.item.props):M.item.props,G=X.activeDot,z=X.dataKey,K=ne(ne({index:L,dataKey:z,cx:k.x,cy:k.y,r:4,fill:Vw(M.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},Se(G,!1)),jh(G));return B.push(A.renderActiveDot(G,K,"".concat(F,"-activePoint-").concat(L))),D?B.push(A.renderActiveDot(G,ne(ne({},K),{},{cx:D.x,cy:D.y}),"".concat(F,"-basePoint-").concat(L))):I&&B.push(null),B}),Oe(O,"renderGraphicChild",function(E,M,k){var D=O.filterFormatItem(E,M,k);if(!D)return null;var L=O.getTooltipEventType(),I=O.state,B=I.isTooltipActive,F=I.tooltipAxis,X=I.activeTooltipIndex,G=I.activeLabel,z=O.props.children,K=Un(z,Vn),Q=D.props,re=Q.points,oe=Q.isRange,$=Q.baseLine,H=D.item.type.defaultProps!==void 0?ne(ne({},D.item.type.defaultProps),D.item.props):D.item.props,ie=H.activeDot,fe=H.hide,ge=H.activeBar,we=H.activeShape,ze=!!(!fe&&B&&K&&(ie||ge||we)),Ze={};L!=="axis"&&K&&K.props.trigger==="click"?Ze={onClick:Ud(O.handleItemMouseEnter,E.props.onClick)}:L!=="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 F.dataKey=="function"?F.dataKey(ni.payload):null}if(ze)if(X>=0){var Ce,le;if(F.dataKey&&!F.allowDuplicatedCategory){var yt=typeof F.dataKey=="function"?Ee:"payload.".concat(F.dataKey.toString());Ce=Sh(re,yt,G),le=oe&&$&&Sh($,yt,G)}else Ce=re==null?void 0:re[X],le=oe&&$&&$[X];if(we||ge){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(hl(O.renderActivePoints({item:D,activePoint:Ce,basePoint:le,childIndex:X,isRange:oe})))}else{var At,Ot=(At=O.getItemByXY(O.state.activeCoordinate))!==null&&At!==void 0?At:{graphicalItem:ce},cn=Ot.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=dz(O.triggeredAfterMouseMove,(C=_.throttleDelay)!==null&&C!==void 0?C:1e3/60),O.state={},O}return Lle(A,b),Ple(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=Un(C,Vn);if(k){var D=k.props.defaultIndex;if(!(typeof D!="number"||D<0||D>this.state.tooltipTicks.length-1)){var L=this.state.tooltipTicks[D]&&this.state.tooltipTicks[D].value,I=ij(this.state,O,D,L),B=this.state.tooltipTicks[D].coordinate,F=(this.state.offset.top+E)/2,X=M==="horizontal",G=X?{x:B,y:F}:{y:B,x:F},z=this.state.formattedGraphicalItems.find(function(Q){var re=Q.item;return re.type.name==="Scatter"});z&&(G=ne(ne({},G),z.props.points[D].tooltipPosition),I=z.props.points[D].tooltipPayload);var K={activeTooltipIndex:D,isTooltipActive:!0,activeLabel:L,activePayload:I,activeCoordinate:G};this.setState(K),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){B1([Un(T.children,Vn)],[Un(this.props.children,Vn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=Un(this.props.children,Vn);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=YX(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 L=this.state,I=L.xAxisMap,B=L.yAxisMap,F=this.getTooltipEventType(),X=qk(this.state,this.props.data,this.props.layout,D);if(F!=="axis"&&I&&B){var G=va(I).scale,z=va(B).scale,K=G&&G.invert?G.invert(M.chartX):null,Q=z&&z.invert?z.invert(M.chartY):null;return ne(ne({},M),{},{xValue:K,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,L=M>=D.left&&M<=D.left+D.width&&k>=D.top&&k<=D.top+D.height;return L?{x:M,y:k}:null}var I=this.state,B=I.angleAxisMap,F=I.radiusAxisMap;if(B&&F){var X=va(B);return VR({x:M,y:k},X)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,C=this.getTooltipEventType(),O=Un(T,Vn),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=jh(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=zk(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=zk(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],L=D.props,I=D.item,B=I.type.defaultProps!==void 0?ne(ne({},I.type.defaultProps),I.props):I.props,F=Ei(I.type);if(F==="Bar"){var X=(L.data||[]).find(function(Q){return mre(T,Q)});if(X)return{graphicalItem:D,payload:X}}else if(F==="RadialBar"){var G=(L.data||[]).find(function(Q){return VR(T,Q)});if(G)return{graphicalItem:D,payload:G}}else if(om(D,E)||lm(D,E)||zc(D,E)){var z=$ie({graphicalItem:D,activeTooltipItem:E,itemData:B.data}),K=B.activeIndex===void 0?z:B.activeIndex;return{graphicalItem:ne(ne({},D),{},{childIndex:K}),payload:zc(D,E)?B.data[z]:D.props.data[z]}}}return null}},{key:"render",value:function(){var T=this;if(!tC(this))return null;var C=this.props,O=C.children,E=C.className,M=C.width,k=C.height,D=C.style,L=C.compact,I=C.title,B=C.desc,F=$k(C,Ole),X=Se(F,!1);if(L)return q.createElement(yk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q.createElement(I1,Ro({},X,{width:M,height:k,title:I,desc:B}),this.renderClipPath(),rC(O,this.renderMap)));if(this.props.accessibilityLayer){var G,z;X.tabIndex=(G=this.props.tabIndex)!==null&&G!==void 0?G:0,X.role=(z=this.props.role)!==null&&z!==void 0?z:"application",X.onKeyDown=function(Q){T.accessibilityManager.keyboardEvent(Q)},X.onFocus=function(){T.accessibilityManager.focus()}}var K=this.parseEventsOfWrapper();return q.createElement(yk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q.createElement("div",Ro({className:Pe("recharts-wrapper",E),style:ne({position:"relative",cursor:"default",width:M,height:k},D)},K,{ref:function(re){T.container=re}}),q.createElement(I1,Ro({},X,{width:M,height:k,title:I,desc:B,style:Ule}),this.renderClipPath(),rC(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);Oe(j,"displayName",n),Oe(j,"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(j,"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,L=A.dataStartIndex,I=A.dataEndIndex;if(A.updateId===void 0){var B=Ik(b);return ne(ne(ne({},B),{},{updateId:0},S(ne(ne({props:b},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||!ko(D,A.prevMargin)){var F=Ik(b),X={chartX:A.chartX,chartY:A.chartY,isTooltipActive:A.isTooltipActive},G=ne(ne({},qk(A,T,M)),{},{updateId:A.updateId+1}),z=ne(ne(ne({},F),X),G);return ne(ne(ne({},z),S(ne({props:b},z),A)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:E,prevLayout:M,prevStackOffset:k,prevMargin:D,prevChildren:C})}if(!B1(C,A.prevChildren)){var K,Q,re,oe,$=Un(C,nl),H=$&&(K=(Q=$.props)===null||Q===void 0?void 0:Q.startIndex)!==null&&K!==void 0?K:L,ie=$&&(re=(oe=$.props)===null||oe===void 0?void 0:oe.endIndex)!==null&&re!==void 0?re:I,fe=H!==L||ie!==I,ge=!Ne(T),we=ge&&!fe?A.updateId:A.updateId+1;return ne(ne({updateId:we},S(ne(ne({props:b},A),{},{updateId:we,dataStartIndex:H,dataEndIndex:ie}),A)),{},{prevChildren:C,dataStartIndex:H,dataEndIndex:ie})}return null}),Oe(j,"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(j,Ro({},A,{ref:_}))});return w.displayName=j.displayName,w},Qle=mm({chartName:"LineChart",GraphicalChild:lf,axisComponents:[{axisType:"xAxis",AxisComp:Ta},{axisType:"yAxis",AxisComp:Ea}],formatAxisMap:Gw}),Jle=mm({chartName:"BarChart",GraphicalChild:_a,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ta},{axisType:"yAxis",AxisComp:Ea}],formatAxisMap:Gw}),eue=mm({chartName:"PieChart",GraphicalChild:Bi,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:sm},{axisType:"radiusAxis",AxisComp:im}],formatAxisMap:_ee,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),tue=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 nue=[{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}],rue=[{key:"revenue",label:"Revenue"},{key:"mrr",label:"MRR"},{key:"arr",label:"ARR"}];function iue(e){return`€${(e/1e3).toFixed(0)}k`}function aue(){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:rue.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(tue,{data:nue,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:iue,dx:-5}),d.jsx(Vn,{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 sue=[{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"}],oue={deal:{icon:Kr,color:"primary",label:"Deal"},customer:{icon:Oa,color:"success",label:"Customer"},invoice:{icon:cs,color:"warning",label:"Invoice"},contract:{icon:sH,color:"primary",label:"Contract"},employee:{icon:R1,color:"success",label:"HR"}};function lue(){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:sue.map((e,t)=>{const n=oue[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:Wj(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 et({className:e}){return d.jsx("div",{className:qt("animate-pulse rounded-[14px] bg-text-secondary/8",e)})}function Gn({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 $t({children:e,className:t}){return d.jsx("thead",{className:qt("border-b border-border",t),children:e})}function Fn({children:e,className:t}){return d.jsx("tbody",{className:t,children:e})}function He({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 ye({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 zu({src:e,title:t}){return d.jsxs(he,{className:"overflow-hidden",children:[d.jsx(We,{title:t}),d.jsx("iframe",{src:e,width:"100%",height:"300",frameBorder:"0",title:t,className:"bg-surface"})]})}function uue(){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,S]=P.useState(0),[j,w]=P.useState(0),[b,A]=P.useState(0),[_,T]=P.useState(0),[C,O]=P.useState(0),[E,M]=P.useState([]);P.useEffect(()=>{async function L(){t(!0),r("");try{const[I,B,F,X,G,z]=await Promise.all([is.balance(),Eo.mrr(),oh.customers(),Eo.deals(),eg.balanceSheet("2026-01").catch(()=>null),eg.incomeStatement("2026-01").catch(()=>null)]);o(I.total_assets||0),c(B.mrr||0),h(F.total||0);const re=X;y(re.deals||[]),S(re.total||0),G&&(w(G.total_assets||0),A(G.total_liabilities||0),T(G.total_equity||0)),z&&O(z.net_income||0);const oe=await eg.accounts().catch(()=>null);oe&&M(oe.accounts||[])}catch(I){r(I instanceof Error?I.message:"Failed to load dashboard data")}finally{t(!1)}}L()},[]);const k=[{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(bH,{size:18})}],D=[{label:"Ledger Assets",value:_e(j),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,I)=>d.jsx(et,{className:"h-[140px]"},I))}),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:k.map((L,I)=>d.jsx(FE,{...L,index:I},L.label))}),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:D.map((L,I)=>d.jsx(FE,{...L,index:I},L.label))})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Infrastructure Health",subtitle:"Real-time system metrics from Grafana"}),d.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6 p-6",children:[d.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=1&refresh=5s",title:"CPU Usage"}),d.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=2&refresh=5s",title:"Memory Usage"}),d.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=3&refresh=5s",title:"Disk Usage"})]})]}),d.jsxs(he,{children:[d.jsx(We,{title:"Service Status",subtitle:"All AAMOS services health check"}),d.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6 p-6",children:[d.jsx(zu,{src:"http://localhost:3050/d-solo/aamos/service-status?orgId=1&panelId=4",title:"PM2 Processes"}),d.jsx(zu,{src:"http://localhost:3050/d-solo/aamos/service-status?orgId=1&panelId=5",title:"Docker Containers"})]})]}),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(aue,{})}),d.jsx("div",{children:d.jsx(lue,{})})]}),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(Gn,{children:[d.jsx(ye,{children:d.jsxs(He,{children:[d.jsx($t,{children:"Code"}),d.jsx($t,{children:"Name"}),d.jsx($t,{children:"Type"}),d.jsx($t,{className:"text-right",children:"Balance"})]})}),d.jsx(Fn,{children:E.length===0?d.jsx(He,{children:d.jsx(de,{colSpan:4,className:"text-center text-muted",children:"No accounts found"})}):E.map(L=>d.jsxs(He,{children:[d.jsx(de,{className:"font-medium",children:L.code}),d.jsx(de,{children:L.name}),d.jsx(de,{children:d.jsx(Ke,{children:L.account_type})}),d.jsx(de,{className:"text-right",children:d.jsx("span",{className: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(Gn,{children:[d.jsx(ye,{children:d.jsxs(He,{children:[d.jsx($t,{children:"Code"}),d.jsx($t,{children:"Name"}),d.jsx($t,{className:"text-right",children:"Amount"})]})}),d.jsx(Fn,{children:E.filter(L=>L.account_type==="revenue").map(L=>d.jsxs(He,{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(Gn,{children:[d.jsx(ye,{children:d.jsxs(He,{children:[d.jsx($t,{children:"Code"}),d.jsx($t,{children:"Name"}),d.jsx($t,{className:"text-right",children:"Amount"})]})}),d.jsx(Fn,{children:E.filter(L=>L.account_type==="expense").map(L=>d.jsxs(He,{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.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(M1,{size:14})]})}),d.jsxs(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Deal"}),d.jsx(ye,{children:"Company"}),d.jsx(ye,{align:"right",children:"Value"}),d.jsx(ye,{children:"Stage"}),d.jsx(ye,{align:"right",children:"Probability"}),d.jsx(ye,{children:"Close Date"})]})}),d.jsxs(Fn,{children:[m.length===0&&d.jsx(He,{children:d.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No deals found"})}),m.map(L=>d.jsxs(He,{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 cue={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(Yj,{size:14,className:"text-danger"}),a==="neutral"&&d.jsx(Kj,{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 fue({alert:e}){const t={info:{icon:d.jsx(Kj,{size:16}),color:"text-primary bg-primary/5 border-primary/20"},warning:{icon:d.jsx(Sa,{size:16}),color:"text-warning bg-warning/5 border-warning/20"},critical:{icon:d.jsx(Sa,{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 due({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(Io,{size:12}),e.time_estimate]}),d.jsx("span",{className:"text-xs text-text-tertiary",children:e.impact})]})]}),d.jsx(Z9,{size:16,className:"text-text-tertiary group-hover:text-primary transition-colors shrink-0"})]})})}function hue({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 pue({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 mue(){var S;const[e,t]=P.useState(null),[n,r]=P.useState(!0),[a,o]=P.useState("");if(P.useEffect(()=>{async function j(){try{r(!0);const b=await cue.getRealBriefing();t(b)}catch(b){o(b instanceof Error?b.message:"Failed to load briefing")}finally{r(!1)}}j();const w=setInterval(j,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((j,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(Sa,{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:`${UE(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(j=>j.priority==="critical").length} kritiska`,icon:d.jsx(r4,{size:20}),variant:c.filter(j=>j.priority==="critical").length>0?"danger":c.filter(j=>j.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(Sa,{size:20,className:"text-warning"}),"Varningar"]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:y.map((j,w)=>d.jsx(fue,{alert:j},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((j,w)=>d.jsx(due,{action:j},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(j=>d.jsx(hue,{task:j},j.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(j=>d.jsx(pue,{deal:j},j.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((j,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:j.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:j.name}),d.jsx("p",{className:"text-xs text-text-secondary",children:j.role})]}),j.open_tasks>0&&d.jsx(Ke,{variant:"warning",className:"text-xs",children:j.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:[UE(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"}),(S=m.top_accounts)==null?void 0:S.slice(0,3).map((j,w)=>d.jsxs("div",{className:"flex justify-between items-center py-1",children:[d.jsx("span",{className:"text-xs text-text-secondary",children:j.name}),d.jsx("span",{className:"text-xs font-medium",children:_e(j.amount)})]},w))]})]})]})]})]})]})}function yue(){return d.jsx(mue,{})}function vue(){const{user:e}=Fc(),[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:D1},{id:"security",label:"Säkerhet",icon:sh},{id:"notifications",label:"Notifikationer",icon:P1},{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(gH,{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(J9,{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(D1,{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(Ss,{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($E,{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(Fj,{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(LE,{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(LE,{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:Ss},{key:"push",label:"Push-notifikationer",description:"Få notifikationer i webbläsaren",icon:P1},{key:"sms",label:"SMS-notifikationer",description:"Få viktiga uppdateringar via SMS",icon:$E}].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:SH},{id:"dark",label:"Mörkt",icon:mH},{id:"system",label:"System",icon:pH}].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 Vk({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 gue=["Customers","Leads","Pipeline"];function xue(){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,S]=P.useState([]),[j,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),S(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())),_=j.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(Ss,{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(Fj,{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:gue.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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Customer"}),d.jsx(ye,{children:"Company"}),d.jsx(ye,{children:"Status"}),d.jsx(ye,{children:"Phone"}),d.jsx(ye,{children:"Created"}),d.jsx(ye,{align:"right"})]})}),d.jsx(Fn,{children:b.map(T=>d.jsxs(He,{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(Vk,{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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Lead"}),d.jsx(ye,{children:"Company"}),d.jsx(ye,{children:"Source"}),d.jsx(ye,{children:"Status"}),d.jsx(ye,{children:"Created"}),d.jsx(ye,{align:"right"})]})}),d.jsx(Fn,{children:A.map(T=>d.jsxs(He,{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(Vk,{icon:d.jsx(Ss,{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:[j.length===0&&d.jsx("div",{className:"col-span-full text-center text-text-secondary py-12",children:"No pipeline stages found"}),j.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 bue=["Deals","Products","MRR","ARR"];function Sue(){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,S]=P.useState([]),[j,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([Eo.deals(),Eo.products(),Eo.mrr(),Eo.arr()]);h(E.deals||[]),y(M.products||[]),A(k.mrr||0),S([]);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(vH,{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:bue.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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Deal"}),d.jsx(ye,{children:"Company"}),d.jsx(ye,{align:"right",children:"Value"}),d.jsx(ye,{children:"Stage"}),d.jsx(ye,{align:"right",children:"Probability"}),d.jsx(ye,{children:"Owner"}),d.jsx(ye,{align:"right"})]})}),d.jsxs(Fn,{children:[f.length===0&&d.jsx(He,{children:d.jsx(de,{colSpan:7,className:"text-center text-text-secondary py-8",children:"No deals found"})}),f.map(O=>d.jsxs(He,{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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Product"}),d.jsx(ye,{children:"SKU"}),d.jsx(ye,{align:"right",children:"Price"}),d.jsx(ye,{children:"Type"}),d.jsx(ye,{children:"Status"}),d.jsx(ye,{align:"right"})]})}),d.jsxs(Fn,{children:[m.length===0&&d.jsx(He,{children:d.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No products found"})}),m.map(O=>d.jsxs(He,{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(Jle,{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(Vn,{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"}),j.length>0?d.jsx("div",{className:"h-[320px]",children:d.jsx(Ph,{width:"100%",height:"100%",children:d.jsxs(Qle,{data:j,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(Vn,{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 jue=["Balance","Income","MOMS","Accounts","Invoices","Cashflow"],Hk=["#2563EB","#16A34A","#D97706","#DC2626","#9CA3AF"];function wue(){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,S]=P.useState(null),[j,w]=P.useState([]),[b,A]=P.useState([]),[_,T]=P.useState(null);P.useEffect(()=>{async function D(){o(!0),c("");try{const[L,I,B,F,X,G]=await Promise.all([is.balance(),is.income(),is.moms(),is.accounts(),is.invoices(),is.cashflow()]);h(L),y(I),S(B),w(F.accounts||[]),A(X.invoices||[]),T(G)}catch(L){c(L instanceof Error?L.message:"Failed to load finance data")}finally{o(!1)}}D()},[]);const C=j.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,L)=>({name:D.account,value:D.amount,color:Hk[L%Hk.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(i4,{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(Yj,{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:jue.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(M1,{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(W9,{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(M1,{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,L)=>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)})]},L)),(!(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,L)=>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)})]},L)),(!(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,L)=>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)})]},L)),(!(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,L)=>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)})]},L))]}),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,L)=>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)})]},L))]})]})]}),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(eue,{children:[d.jsx(Bi,{data:E,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:4,dataKey:"value",children:E.map((D,L)=>d.jsx(Fp,{fill:D.color},`cell-${L}`))}),d.jsx(Vn,{content:({active:D,payload:L})=>{if(!D||!(L!=null&&L.length))return null;const I=L[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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Account"}),d.jsx(ye,{children:"Number"}),d.jsx(ye,{children:"Type"}),d.jsx(ye,{align:"right",children:"Balance"}),d.jsx(ye,{align:"right"})]})}),d.jsxs(Fn,{children:[C.map(D=>d.jsxs(He,{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(He,{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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Number"}),d.jsx(ye,{children:"Customer"}),d.jsx(ye,{align:"right",children:"Amount"}),d.jsx(ye,{children:"Status"}),d.jsx(ye,{children:"Due Date"}),d.jsx(ye,{align:"right"})]})}),d.jsxs(Fn,{children:[O.map(D=>d.jsxs(He,{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(He,{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 Aue=["Employees","Leaves"],Oue={Sales:"primary",Engineering:"success",Finance:"warning",HR:"primary",Legal:"default"};function _ue(){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,S=f.filter(A=>A.status==="on_leave").length,j=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(Io,{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:"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(Q9,{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:"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:Aue.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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Employee"}),d.jsx(ye,{children:"Department"}),d.jsx(ye,{children:"Role"}),d.jsx(ye,{children:"Status"}),d.jsx(ye,{children:"Start Date"}),d.jsx(ye,{align:"right"})]})}),d.jsxs(Fn,{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(He,{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:Oue[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(He,{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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Employee"}),d.jsx(ye,{children:"Type"}),d.jsx(ye,{children:"Period"}),d.jsx(ye,{align:"right",children:"Days"}),d.jsx(ye,{children:"Status"}),d.jsx(ye,{align:"right"})]})}),d.jsxs(Fn,{children:[b.map(A=>d.jsxs(He,{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(He,{children:d.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No leave requests found"})})]})]})})]})}const Gk={draft:{variant:"default",icon:Io},pending_signature:{variant:"warning",icon:Io},active:{variant:"success",icon:Zc},expired:{variant:"danger",icon:Sa},terminated:{variant:"default",icon:Sa},disputed:{variant:"danger",icon:Sa}},Tue={aamos:"primary",quixzoom:"success",legal:"warning",hr:"default"};function Fk(){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,S]=P.useState([]),[j,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||[]),S(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:iH},{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(Io,{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(Sa,{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=Gk[O.status]||Gk.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(e4,{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(kE,{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:Tue[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&&j&&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:j.name}),d.jsx("p",{className:"text-text-secondary",children:j.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:j.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:j.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:j.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:j.version})]})]}),d.jsx("h3",{className:"font-semibold mb-3",children:"Avtalssektioner"}),d.jsx("div",{className:"space-y-2 mb-6",children:j.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:j.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:j.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:j.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:j.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:j.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:j.default_terms.sla_enabled?`${j.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(kE,{size:16,className:"mr-2"}),"Förhandsgranska"]})]})]})})})})]})}const Eue=[{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 Nue(){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(n4,{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(r4,{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:Eue.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(Ss,{size:18}):d.jsx(eH,{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()}],Cue=["All","Open","In Progress","Resolved"];function Mue(){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(t4,{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(Kj,{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(Io,{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:Cue.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(Gn,{children:[d.jsx($t,{children:d.jsxs(He,{children:[d.jsx(ye,{children:"Ticket"}),d.jsx(ye,{children:"Subject"}),d.jsx(ye,{children:"Customer"}),d.jsx(ye,{children:"Priority"}),d.jsx(ye,{children:"Status"}),d.jsx(ye,{children:"Assigned"}),d.jsx(ye,{children:"Created"}),d.jsx(ye,{align:"right"})]})}),d.jsx(Fn,{children:c.map(f=>d.jsxs(He,{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:Wj(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}],Pue={"Send Email":d.jsx(Ss,{size:12}),"Slack Message":d.jsx(dH,{size:12}),"Create Task":d.jsx(cs,{size:12}),"Add to CRM":d.jsx(R1,{size:12}),"Update HR":d.jsx(R1,{size:12})};function Rue(){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(a4,{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(BE,{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(zE,{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(BE,{size:18}):d.jsx(zE,{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(oH,{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:[Pue[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 Due({children:e}){const{isAuthenticated:t}=Fc();return t?d.jsx(d.Fragment,{children:e}):d.jsx(fj,{to:"/login",replace:!0})}function kue({children:e}){const{isAuthenticated:t}=Fc();return t?d.jsx(fj,{to:"/",replace:!0}):d.jsx(d.Fragment,{children:e})}function Lue(){return d.jsxs(fq,{children:[d.jsx(hn,{path:"/login",element:d.jsx(kue,{children:d.jsx(oG,{})})}),d.jsxs(hn,{element:d.jsx(Due,{children:d.jsx(iG,{})}),children:[d.jsx(hn,{path:"/",element:d.jsx(yue,{})}),d.jsx(hn,{path:"/dashboard",element:d.jsx(uue,{})}),d.jsx(hn,{path:"/crm",element:d.jsx(xue,{})}),d.jsx(hn,{path:"/sales",element:d.jsx(Sue,{})}),d.jsx(hn,{path:"/finance",element:d.jsx(wue,{})}),d.jsx(hn,{path:"/hr",element:d.jsx(_ue,{})}),d.jsx(hn,{path:"/legal",element:d.jsx(Fk,{})}),d.jsx(hn,{path:"/marketing",element:d.jsx(Nue,{})}),d.jsx(hn,{path:"/support",element:d.jsx(Mue,{})}),d.jsx(hn,{path:"/automation",element:d.jsx(Rue,{})}),d.jsx(hn,{path:"/legal",element:d.jsx(Fk,{})}),d.jsx(hn,{path:"/profile",element:d.jsx(vue,{})})]}),d.jsx(hn,{path:"*",element:d.jsx(fj,{to:"/",replace:!0})})]})}u8.createRoot(document.getElementById("root")).render(d.jsx(P.StrictMode,{children:d.jsx(kq,{children:d.jsx(Lue,{})})}));
|