Files
boc/web-v2/dist/assets/index-ClCGdXUz.js
T

386 lines
903 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var xd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gv={exports:{}},xu={};/**
* @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 qT;function k6(){if(qT)return xu;qT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return xu.Fragment=t,xu.jsx=n,xu.jsxs=n,xu}var IT;function L6(){return IT||(IT=1,gv.exports=k6()),gv.exports}var y=L6(),bv={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 UT;function $6(){if(UT)return Me;UT=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"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function S(L){return L===null||typeof L!="object"?null:(L=g&&L[g]||L["@@iterator"],typeof L=="function"?L:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function j(L,H,re){this.props=L,this.context=H,this.refs=x,this.updater=re||A}j.prototype.isReactComponent={},j.prototype.setState=function(L,H){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,H,"setState")},j.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function _(){}_.prototype=j.prototype;function T(L,H,re){this.props=L,this.context=H,this.refs=x,this.updater=re||A}var M=T.prototype=new _;M.constructor=T,w(M,j.prototype),M.isPureReactComponent=!0;var O=Array.isArray;function C(){}var P={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function k(L,H,re){var fe=re.ref;return{$$typeof:e,type:L,key:H,ref:fe!==void 0?fe:null,props:re}}function U(L,H){return k(L.type,H,L.props)}function q(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function $(L){var H={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(re){return H[re]})}var F=/\/+/g;function X(L,H){return typeof L=="object"&&L!==null&&L.key!=null?$(""+L.key):H.toString(36)}function Y(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(C,C):(L.status="pending",L.then(function(H){L.status==="pending"&&(L.status="fulfilled",L.value=H)},function(H){L.status==="pending"&&(L.status="rejected",L.reason=H)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function z(L,H,re,fe,ve){var we=typeof L;(we==="undefined"||we==="boolean")&&(L=null);var Le=!1;if(L===null)Le=!0;else switch(we){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(L.$$typeof){case e:case t:Le=!0;break;case p:return Le=L._init,z(Le(L._payload),H,re,fe,ve)}}if(Le)return ve=ve(L),Le=fe===""?"."+X(L,0):fe,O(ve)?(re="",Le!=null&&(re=Le.replace(F,"$&/")+"/"),z(ve,H,re,"",function(_e){return _e})):ve!=null&&(q(ve)&&(ve=U(ve,re+(ve.key==null||L&&L.key===ve.key?"":(""+ve.key).replace(F,"$&/")+"/")+Le)),H.push(ve)),1;Le=0;var Ye=fe===""?".":fe+":";if(O(L))for(var ce=0;ce<L.length;ce++)fe=L[ce],we=Ye+X(fe,ce),Le+=z(fe,H,re,we,ve);else if(ce=S(L),typeof ce=="function")for(L=ce.call(L),ce=0;!(fe=L.next()).done;)fe=fe.value,we=Ye+X(fe,ce++),Le+=z(fe,H,re,we,ve);else if(we==="object"){if(typeof L.then=="function")return z(Y(L),H,re,fe,ve);throw H=String(L),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Le}function K(L,H,re){if(L==null)return L;var fe=[],ve=0;return z(L,fe,"","",function(we){return H.call(re,we,ve++)}),fe}function Q(L){if(L._status===-1){var H=L._result;H=H(),H.then(function(re){(L._status===0||L._status===-1)&&(L._status=1,L._result=re)},function(re){(L._status===0||L._status===-1)&&(L._status=2,L._result=re)}),L._status===-1&&(L._status=0,L._result=H)}if(L._status===1)return L._result.default;throw L._result}var ie=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},se={map:K,forEach:function(L,H,re){K(L,function(){H.apply(this,arguments)},re)},count:function(L){var H=0;return K(L,function(){H++}),H},toArray:function(L){return K(L,function(H){return H})||[]},only:function(L){if(!q(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Me.Activity=m,Me.Children=se,Me.Component=j,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=P,Me.__COMPILER_RUNTIME={__proto__:null,c:function(L){return P.H.useMemoCache(L)}},Me.cache=function(L){return function(){return L.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(L,H,re){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var fe=w({},L.props),ve=L.key;if(H!=null)for(we in H.key!==void 0&&(ve=""+H.key),H)!R.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=re;else if(1<we){for(var Le=Array(we),Ye=0;Ye<we;Ye++)Le[Ye]=arguments[Ye+2];fe.children=Le}return k(L.type,ve,fe)},Me.createContext=function(L){return L={$$typeof:l,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:s,_context:L},L},Me.createElement=function(L,H,re){var fe,ve={},we=null;if(H!=null)for(fe in H.key!==void 0&&(we=""+H.key),H)R.call(H,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(ve[fe]=H[fe]);var Le=arguments.length-2;if(Le===1)ve.children=re;else if(1<Le){for(var Ye=Array(Le),ce=0;ce<Le;ce++)Ye[ce]=arguments[ce+2];ve.children=Ye}if(L&&L.defaultProps)for(fe in Le=L.defaultProps,Le)ve[fe]===void 0&&(ve[fe]=Le[fe]);return k(L,we,ve)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(L){return{$$typeof:c,render:L}},Me.isValidElement=q,Me.lazy=function(L){return{$$typeof:p,_payload:{_status:-1,_result:L},_init:Q}},Me.memo=function(L,H){return{$$typeof:d,type:L,compare:H===void 0?null:H}},Me.startTransition=function(L){var H=P.T,re={};P.T=re;try{var fe=L(),ve=P.S;ve!==null&&ve(re,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(C,ie)}catch(we){ie(we)}finally{H!==null&&re.types!==null&&(H.types=re.types),P.T=H}},Me.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Me.use=function(L){return P.H.use(L)},Me.useActionState=function(L,H,re){return P.H.useActionState(L,H,re)},Me.useCallback=function(L,H){return P.H.useCallback(L,H)},Me.useContext=function(L){return P.H.useContext(L)},Me.useDebugValue=function(){},Me.useDeferredValue=function(L,H){return P.H.useDeferredValue(L,H)},Me.useEffect=function(L,H){return P.H.useEffect(L,H)},Me.useEffectEvent=function(L){return P.H.useEffectEvent(L)},Me.useId=function(){return P.H.useId()},Me.useImperativeHandle=function(L,H,re){return P.H.useImperativeHandle(L,H,re)},Me.useInsertionEffect=function(L,H){return P.H.useInsertionEffect(L,H)},Me.useLayoutEffect=function(L,H){return P.H.useLayoutEffect(L,H)},Me.useMemo=function(L,H){return P.H.useMemo(L,H)},Me.useOptimistic=function(L,H){return P.H.useOptimistic(L,H)},Me.useReducer=function(L,H,re){return P.H.useReducer(L,H,re)},Me.useRef=function(L){return P.H.useRef(L)},Me.useState=function(L){return P.H.useState(L)},Me.useSyncExternalStore=function(L,H,re){return P.H.useSyncExternalStore(L,H,re)},Me.useTransition=function(){return P.H.useTransition()},Me.version="19.2.7",Me}var VT;function FS(){return VT||(VT=1,bv.exports=$6()),bv.exports}var N=FS();const B=et(N);var xv={exports:{}},Su={},Sv={exports:{}},wv={};/**
* @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 HT;function z6(){return HT||(HT=1,(function(e){function t(z,K){var Q=z.length;z.push(K);e:for(;0<Q;){var ie=Q-1>>>1,se=z[ie];if(0<a(se,K))z[ie]=K,z[Q]=se,Q=ie;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 ie=0,se=z.length,L=se>>>1;ie<L;){var H=2*(ie+1)-1,re=z[H],fe=H+1,ve=z[fe];if(0>a(re,Q))fe<se&&0>a(ve,re)?(z[ie]=ve,z[fe]=Q,ie=fe):(z[ie]=re,z[H]=Q,ie=H);else if(fe<se&&0>a(ve,Q))z[ie]=ve,z[fe]=Q,ie=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 s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],p=1,m=null,g=3,S=!1,A=!1,w=!1,x=!1,j=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function M(z){for(var K=n(d);K!==null;){if(K.callback===null)r(d);else if(K.startTime<=z)r(d),K.sortIndex=K.expirationTime,t(f,K);else break;K=n(d)}}function O(z){if(w=!1,M(z),!A)if(n(f)!==null)A=!0,C||(C=!0,$());else{var K=n(d);K!==null&&Y(O,K.startTime-z)}}var C=!1,P=-1,R=5,k=-1;function U(){return x?!0:!(e.unstable_now()-k<R)}function q(){if(x=!1,C){var z=e.unstable_now();k=z;var K=!0;try{e:{A=!1,w&&(w=!1,_(P),P=-1),S=!0;var Q=g;try{t:{for(M(z),m=n(f);m!==null&&!(m.expirationTime>z&&U());){var ie=m.callback;if(typeof ie=="function"){m.callback=null,g=m.priorityLevel;var se=ie(m.expirationTime<=z);if(z=e.unstable_now(),typeof se=="function"){m.callback=se,M(z),K=!0;break t}m===n(f)&&r(f),M(z)}else r(f);m=n(f)}if(m!==null)K=!0;else{var L=n(d);L!==null&&Y(O,L.startTime-z),K=!1}}break e}finally{m=null,g=Q,S=!1}K=void 0}}finally{K?$():C=!1}}}var $;if(typeof T=="function")$=function(){T(q)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,X=F.port2;F.port1.onmessage=q,$=function(){X.postMessage(null)}}else $=function(){j(q,0)};function Y(z,K){P=j(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"):R=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(){x=!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 ie=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ie+Q:ie):Q=ie,z){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=Q+se,z={id:p++,callback:K,priorityLevel:z,startTime:Q,expirationTime:se,sortIndex:-1},Q>ie?(z.sortIndex=Q,t(d,z),n(f)===null&&z===n(d)&&(w?(_(P),P=-1):w=!0,Y(O,Q-ie))):(z.sortIndex=se,t(f,z),A||S||(A=!0,C||(C=!0,$()))),z},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(z){var K=g;return function(){var Q=g;g=K;try{return z.apply(this,arguments)}finally{g=Q}}}})(wv)),wv}var GT;function B6(){return GT||(GT=1,Sv.exports=z6()),Sv.exports}var Av={exports:{}},un={};/**
* @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 FT;function q6(){if(FT)return un;FT=1;var e=FS();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+d+" 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 s(f,d,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:f,containerInfo:d,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,un.createPortal=function(f,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,p)},un.flushSync=function(f){var d=l.T,p=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=p,r.d.f()}},un.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},un.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},un.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var p=d.as,m=c(p,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,S=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:S}):p==="script"&&r.d.X(f,{crossOrigin:m,integrity:g,fetchPriority:S,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},un.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},un.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,m=c(p,d.crossOrigin);r.d.L(f,p,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},un.preloadModule=function(f,d){if(typeof f=="string")if(d){var p=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},un.requestFormReset=function(f){r.d.r(f)},un.unstable_batchedUpdates=function(f,d){return f(d)},un.useFormState=function(f,d,p){return l.H.useFormState(f,d,p)},un.useFormStatus=function(){return l.H.useHostTransitionStatus()},un.version="19.2.7",un}var KT;function I6(){if(KT)return Av.exports;KT=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(),Av.exports=q6(),Av.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 YT;function U6(){if(YT)return Su;YT=1;var e=B6(),t=FS(),n=I6();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+o+" 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 s(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function c(i){if(i.tag===31){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function f(i){if(s(i)!==i)throw Error(r(188))}function d(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var u=i,h=o;;){var v=u.return;if(v===null)break;var b=v.alternate;if(b===null){if(h=v.return,h!==null){u=h;continue}break}if(v.child===b.child){for(b=v.child;b;){if(b===u)return f(v),i;if(b===h)return f(v),o;b=b.sibling}throw Error(r(188))}if(u.return!==h.return)u=v,h=b;else{for(var E=!1,D=v.child;D;){if(D===u){E=!0,u=v,h=b;break}if(D===h){E=!0,h=v,u=b;break}D=D.sibling}if(!E){for(D=b.child;D;){if(D===u){E=!0,u=b,h=v;break}if(D===h){E=!0,h=b,u=v;break}D=D.sibling}if(!E)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:o}function p(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=p(i),o!==null)return o;i=i.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function $(i){return i===null||typeof i!="object"?null:(i=q&&i[q]||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 j:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case C:return"SuspenseList";case k:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case A:return"Portal";case T:return i.displayName||"Context";case _:return(i._context.displayName||"Context")+".Consumer";case M:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case P:return o=i.displayName||null,o!==null?o:X(i.type)||"Memo";case R:o=i._payload,i=i._init;try{return X(i(o))}catch{}}return null}var Y=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},ie=[],se=-1;function L(i){return{current:i}}function H(i){0>se||(i.current=ie[se],ie[se]=null,se--)}function re(i,o){se++,ie[se]=i.current,i.current=o}var fe=L(null),ve=L(null),we=L(null),Le=L(null);function Ye(i,o){switch(re(we,o),re(ve,i),re(fe,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?uT(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=uT(o),i=cT(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}H(fe),re(fe,i)}function ce(){H(fe),H(ve),H(we)}function _e(i){i.memoizedState!==null&&re(Le,i);var o=fe.current,u=cT(o,i.type);o!==u&&(re(ve,i),re(fe,u))}function Ce(i){ve.current===i&&(H(fe),H(ve)),Le.current===i&&(H(Le),yu._currentValue=Q)}var le,dt;function Re(i){if(le===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);le=o&&o[1]||"",dt=-1<u.stack.indexOf(`
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
`+le+i+dt}var St=!1;function wt(i,o){if(!i||St)return"";St=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(ee){var J=ee}Reflect.construct(i,[],oe)}else{try{oe.call()}catch(ee){J=ee}i.call(oe.prototype)}}else{try{throw Error()}catch(ee){J=ee}(oe=i())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),E=b[0],D=b[1];if(E&&D){var I=E.split(`
`),Z=D.split(`
`);for(v=h=0;h<I.length&&!I[h].includes("DetermineComponentFrameRoot");)h++;for(;v<Z.length&&!Z[v].includes("DetermineComponentFrameRoot");)v++;if(h===I.length||v===Z.length)for(h=I.length-1,v=Z.length-1;1<=h&&0<=v&&I[h]!==Z[v];)v--;for(;1<=h&&0<=v;h--,v--)if(I[h]!==Z[v]){if(h!==1||v!==1)do if(h--,v--,0>v||I[h]!==Z[v]){var te=`
`+I[h].replace(" at new "," at ");return i.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",i.displayName)),te}while(1<=h&&0<=v);break}}}finally{St=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Re(u):""}function sn(i,o){switch(i.tag){case 26:case 27:case 5:return Re(i.type);case 16:return Re("Lazy");case 13:return i.child!==o&&o!==null?Re("Suspense Fallback"):Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return wt(i.type,!1);case 11:return wt(i.type.render,!1);case 1:return wt(i.type,!0);case 31:return Re("Activity");default:return""}}function pr(i){try{var o="",u=null;do o+=sn(i,u),u=i,i=i.return;while(i);return o}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}var Lr=Object.prototype.hasOwnProperty,zi=e.unstable_scheduleCallback,mr=e.unstable_cancelCallback,ti=e.unstable_shouldYield,Tl=e.unstable_requestPaint,ln=e.unstable_now,tf=e.unstable_getCurrentPriorityLevel,IA=e.unstable_ImmediatePriority,UA=e.unstable_UserBlockingPriority,nf=e.unstable_NormalPriority,y4=e.unstable_LowPriority,VA=e.unstable_IdlePriority,v4=e.log,g4=e.unstable_setDisableYieldValue,El=null,Cn=null;function Bi(i){if(typeof v4=="function"&&g4(i),Cn&&typeof Cn.setStrictMode=="function")try{Cn.setStrictMode(El,i)}catch{}}var Mn=Math.clz32?Math.clz32:S4,b4=Math.log,x4=Math.LN2;function S4(i){return i>>>=0,i===0?32:31-(b4(i)/x4|0)|0}var rf=256,af=262144,of=4194304;function Na(i){var o=i&42;if(o!==0)return o;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 sf(i,o,u){var h=i.pendingLanes;if(h===0)return 0;var v=0,b=i.suspendedLanes,E=i.pingedLanes;i=i.warmLanes;var D=h&134217727;return D!==0?(h=D&~b,h!==0?v=Na(h):(E&=D,E!==0?v=Na(E):u||(u=D&~i,u!==0&&(v=Na(u))))):(D=h&~b,D!==0?v=Na(D):E!==0?v=Na(E):u||(u=h&~i,u!==0&&(v=Na(u)))),v===0?0:o!==0&&o!==v&&(o&b)===0&&(b=v&-v,u=o&-o,b>=u||b===32&&(u&4194048)!==0)?o:v}function Cl(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function w4(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 HA(){var i=of;return of<<=1,(of&62914560)===0&&(of=4194304),i}function om(i){for(var o=[],u=0;31>u;u++)o.push(i);return o}function Ml(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function A4(i,o,u,h,v,b){var E=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 D=i.entanglements,I=i.expirationTimes,Z=i.hiddenUpdates;for(u=E&~u;0<u;){var te=31-Mn(u),oe=1<<te;D[te]=0,I[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&=~oe}h!==0&&GA(i,h,0),b!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=b&~(E&~o))}function GA(i,o,u){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-Mn(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|u&261930}function FA(i,o){var u=i.entangledLanes|=o;for(i=i.entanglements;u;){var h=31-Mn(u),v=1<<h;v&o|i[h]&o&&(i[h]|=o),u&=~v}}function KA(i,o){var u=o&-o;return u=(u&42)!==0?1:sm(u),(u&(i.suspendedLanes|o))!==0?0:u}function sm(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 lm(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function YA(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:RT(i.type))}function XA(i,o){var u=K.p;try{return K.p=i,o()}finally{K.p=u}}var qi=Math.random().toString(36).slice(2),Qt="__reactFiber$"+qi,bn="__reactProps$"+qi,Ro="__reactContainer$"+qi,um="__reactEvents$"+qi,j4="__reactListeners$"+qi,O4="__reactHandles$"+qi,WA="__reactResources$"+qi,Pl="__reactMarker$"+qi;function cm(i){delete i[Qt],delete i[bn],delete i[um],delete i[j4],delete i[O4]}function Do(i){var o=i[Qt];if(o)return o;for(var u=i.parentNode;u;){if(o=u[Ro]||u[Qt]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(i=vT(i);i!==null;){if(u=i[Qt])return u;i=vT(i)}return o}i=u,u=i.parentNode}return null}function ko(i){if(i=i[Qt]||i[Ro]){var o=i.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return i}return null}function Nl(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Lo(i){var o=i[WA];return o||(o=i[WA]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Ft(i){i[Pl]=!0}var ZA=new Set,QA={};function Ra(i,o){$o(i,o),$o(i+"Capture",o)}function $o(i,o){for(QA[i]=o,i=0;i<o.length;i++)ZA.add(o[i])}var _4=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]*$"),JA={},ej={};function T4(i){return Lr.call(ej,i)?!0:Lr.call(JA,i)?!1:_4.test(i)?ej[i]=!0:(JA[i]=!0,!1)}function lf(i,o,u){if(T4(o))if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+u)}}function uf(i,o,u){if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+u)}}function ni(i,o,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(o,u,""+h)}}function Yn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function tj(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function E4(i,o,u){var h=Object.getOwnPropertyDescriptor(i.constructor.prototype,o);if(!i.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,b=h.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return v.call(this)},set:function(E){u=""+E,b.call(this,E)}}),Object.defineProperty(i,o,{enumerable:h.enumerable}),{getValue:function(){return u},setValue:function(E){u=""+E},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function fm(i){if(!i._valueTracker){var o=tj(i)?"checked":"value";i._valueTracker=E4(i,o,""+i[o])}}function nj(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return i&&(h=tj(i)?i.checked?"true":"false":i.value),i=h,i!==u?(o.setValue(i),!0):!1}function cf(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 C4=/[\n"\\]/g;function Xn(i){return i.replace(C4,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function dm(i,o,u,h,v,b,E,D){i.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?i.type=E:i.removeAttribute("type"),o!=null?E==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Yn(o)):i.value!==""+Yn(o)&&(i.value=""+Yn(o)):E!=="submit"&&E!=="reset"||i.removeAttribute("value"),o!=null?hm(i,E,Yn(o)):u!=null?hm(i,E,Yn(u)):h!=null&&i.removeAttribute("value"),v==null&&b!=null&&(i.defaultChecked=!!b),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?i.name=""+Yn(D):i.removeAttribute("name")}function rj(i,o,u,h,v,b,E,D){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(i.type=b),o!=null||u!=null){if(!(b!=="submit"&&b!=="reset"||o!=null)){fm(i);return}u=u!=null?""+Yn(u):"",o=o!=null?""+Yn(o):u,D||o===i.value||(i.value=o),i.defaultValue=o}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=D?i.checked:!!h,i.defaultChecked=!!h,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(i.name=E),fm(i)}function hm(i,o,u){o==="number"&&cf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function zo(i,o,u,h){if(i=i.options,o){o={};for(var v=0;v<u.length;v++)o["$"+u[v]]=!0;for(u=0;u<i.length;u++)v=o.hasOwnProperty("$"+i[u].value),i[u].selected!==v&&(i[u].selected=v),v&&h&&(i[u].defaultSelected=!0)}else{for(u=""+Yn(u),o=null,v=0;v<i.length;v++){if(i[v].value===u){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}o!==null||i[v].disabled||(o=i[v])}o!==null&&(o.selected=!0)}}function ij(i,o,u){if(o!=null&&(o=""+Yn(o),o!==i.value&&(i.value=o),u==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=u!=null?""+Yn(u):""}function aj(i,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(Y(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=Yn(o),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h),fm(i)}function Bo(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var M4=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 oj(i,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,u):typeof u!="number"||u===0||M4.has(o)?o==="float"?i.cssFloat=u:i[o]=(""+u).trim():i[o]=u+"px"}function sj(i,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var v in o)h=o[v],o.hasOwnProperty(v)&&u[v]!==h&&oj(i,v,h)}else for(var b in o)o.hasOwnProperty(b)&&oj(i,b,o[b])}function pm(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 P4=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"]]),N4=/^[\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 ff(i){return N4.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function ri(){}var mm=null;function ym(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var qo=null,Io=null;function lj(i){var o=ko(i);if(o&&(i=o.stateNode)){var u=i[bn]||null;e:switch(i=o.stateNode,o.type){case"input":if(dm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Xn(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==i&&h.form===i.form){var v=h[bn]||null;if(!v)throw Error(r(90));dm(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===i.form&&nj(h)}break e;case"textarea":ij(i,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&zo(i,!!u.multiple,o,!1)}}}var vm=!1;function uj(i,o,u){if(vm)return i(o,u);vm=!0;try{var h=i(o);return h}finally{if(vm=!1,(qo!==null||Io!==null)&&(Qf(),qo&&(o=qo,i=Io,Io=qo=null,lj(o),i)))for(o=0;o<i.length;o++)lj(i[o])}}function Rl(i,o){var u=i.stateNode;if(u===null)return null;var h=u[bn]||null;if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gm=!1;if(ii)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){gm=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{gm=!1}var Ii=null,bm=null,df=null;function cj(){if(df)return df;var i,o=bm,u=o.length,h,v="value"in Ii?Ii.value:Ii.textContent,b=v.length;for(i=0;i<u&&o[i]===v[i];i++);var E=u-i;for(h=1;h<=E&&o[u-h]===v[b-h];h++);return df=v.slice(i,1<h?1-h:void 0)}function hf(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function pf(){return!0}function fj(){return!1}function xn(i){function o(u,h,v,b,E){this._reactName=u,this._targetInst=v,this.type=h,this.nativeEvent=b,this.target=E,this.currentTarget=null;for(var D in i)i.hasOwnProperty(D)&&(u=i[D],this[D]=u?u(b):b[D]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?pf:fj,this.isPropagationStopped=fj,this}return m(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=pf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=pf)},persist:function(){},isPersistent:pf}),o}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mf=xn(Da),kl=m({},Da,{view:0,detail:0}),R4=xn(kl),xm,Sm,Ll,yf=m({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Am,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!==Ll&&(Ll&&i.type==="mousemove"?(xm=i.screenX-Ll.screenX,Sm=i.screenY-Ll.screenY):Sm=xm=0,Ll=i),xm)},movementY:function(i){return"movementY"in i?i.movementY:Sm}}),dj=xn(yf),D4=m({},yf,{dataTransfer:0}),k4=xn(D4),L4=m({},kl,{relatedTarget:0}),wm=xn(L4),$4=m({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),z4=xn($4),B4=m({},Da,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),q4=xn(B4),I4=m({},Da,{data:0}),hj=xn(I4),U4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V4={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"},H4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G4(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=H4[i])?!!o[i]:!1}function Am(){return G4}var F4=m({},kl,{key:function(i){if(i.key){var o=U4[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=hf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?V4[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Am,charCode:function(i){return i.type==="keypress"?hf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?hf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),K4=xn(F4),Y4=m({},yf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pj=xn(Y4),X4=m({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Am}),W4=xn(X4),Z4=m({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q4=xn(Z4),J4=m({},yf,{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}),e5=xn(J4),t5=m({},Da,{newState:0,oldState:0}),n5=xn(t5),r5=[9,13,27,32],jm=ii&&"CompositionEvent"in window,$l=null;ii&&"documentMode"in document&&($l=document.documentMode);var i5=ii&&"TextEvent"in window&&!$l,mj=ii&&(!jm||$l&&8<$l&&11>=$l),yj=" ",vj=!1;function gj(i,o){switch(i){case"keyup":return r5.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bj(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Uo=!1;function a5(i,o){switch(i){case"compositionend":return bj(o);case"keypress":return o.which!==32?null:(vj=!0,yj);case"textInput":return i=o.data,i===yj&&vj?null:i;default:return null}}function o5(i,o){if(Uo)return i==="compositionend"||!jm&&gj(i,o)?(i=cj(),df=bm=Ii=null,Uo=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return mj&&o.locale!=="ko"?null:o.data;default:return null}}var s5={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 xj(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!s5[i.type]:o==="textarea"}function Sj(i,o,u,h){qo?Io?Io.push(h):Io=[h]:qo=h,o=ad(o,"onChange"),0<o.length&&(u=new mf("onChange","change",null,u,h),i.push({event:u,listeners:o}))}var zl=null,Bl=null;function l5(i){rT(i,0)}function vf(i){var o=Nl(i);if(nj(o))return i}function wj(i,o){if(i==="change")return o}var Aj=!1;if(ii){var Om;if(ii){var _m="oninput"in document;if(!_m){var jj=document.createElement("div");jj.setAttribute("oninput","return;"),_m=typeof jj.oninput=="function"}Om=_m}else Om=!1;Aj=Om&&(!document.documentMode||9<document.documentMode)}function Oj(){zl&&(zl.detachEvent("onpropertychange",_j),Bl=zl=null)}function _j(i){if(i.propertyName==="value"&&vf(Bl)){var o=[];Sj(o,Bl,i,ym(i)),uj(l5,o)}}function u5(i,o,u){i==="focusin"?(Oj(),zl=o,Bl=u,zl.attachEvent("onpropertychange",_j)):i==="focusout"&&Oj()}function c5(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return vf(Bl)}function f5(i,o){if(i==="click")return vf(o)}function d5(i,o){if(i==="input"||i==="change")return vf(o)}function h5(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Pn=typeof Object.is=="function"?Object.is:h5;function ql(i,o){if(Pn(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var u=Object.keys(i),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var v=u[h];if(!Lr.call(o,v)||!Pn(i[v],o[v]))return!1}return!0}function Tj(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Ej(i,o){var u=Tj(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=o&&h>=o)return{node:u,offset:o-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Tj(u)}}function Cj(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Cj(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function Mj(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=cf(i.document);o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=cf(i.document)}return o}function Tm(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var p5=ii&&"documentMode"in document&&11>=document.documentMode,Vo=null,Em=null,Il=null,Cm=!1;function Pj(i,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Cm||Vo==null||Vo!==cf(h)||(h=Vo,"selectionStart"in h&&Tm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Il&&ql(Il,h)||(Il=h,h=ad(Em,"onSelect"),0<h.length&&(o=new mf("onSelect","select",null,o,u),i.push({event:o,listeners:h}),o.target=Vo)))}function ka(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}var Ho={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionrun:ka("Transition","TransitionRun"),transitionstart:ka("Transition","TransitionStart"),transitioncancel:ka("Transition","TransitionCancel"),transitionend:ka("Transition","TransitionEnd")},Mm={},Nj={};ii&&(Nj=document.createElement("div").style,"AnimationEvent"in window||(delete Ho.animationend.animation,delete Ho.animationiteration.animation,delete Ho.animationstart.animation),"TransitionEvent"in window||delete Ho.transitionend.transition);function La(i){if(Mm[i])return Mm[i];if(!Ho[i])return i;var o=Ho[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in Nj)return Mm[i]=o[u];return i}var Rj=La("animationend"),Dj=La("animationiteration"),kj=La("animationstart"),m5=La("transitionrun"),y5=La("transitionstart"),v5=La("transitioncancel"),Lj=La("transitionend"),$j=new Map,Pm="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(" ");Pm.push("scrollEnd");function yr(i,o){$j.set(i,o),Ra(o,[i])}var gf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=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(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Wn=[],Go=0,Nm=0;function bf(){for(var i=Go,o=Nm=Go=0;o<i;){var u=Wn[o];Wn[o++]=null;var h=Wn[o];Wn[o++]=null;var v=Wn[o];Wn[o++]=null;var b=Wn[o];if(Wn[o++]=null,h!==null&&v!==null){var E=h.pending;E===null?v.next=v:(v.next=E.next,E.next=v),h.pending=v}b!==0&&zj(u,v,b)}}function xf(i,o,u,h){Wn[Go++]=i,Wn[Go++]=o,Wn[Go++]=u,Wn[Go++]=h,Nm|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Rm(i,o,u,h){return xf(i,o,u,h),Sf(i)}function $a(i,o){return xf(i,null,null,o),Sf(i)}function zj(i,o,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var v=!1,b=i.return;b!==null;)b.childLanes|=u,h=b.alternate,h!==null&&(h.childLanes|=u),b.tag===22&&(i=b.stateNode,i===null||i._visibility&1||(v=!0)),i=b,b=b.return;return i.tag===3?(b=i.stateNode,v&&o!==null&&(v=31-Mn(u),i=b.hiddenUpdates,h=i[v],h===null?i[v]=[o]:h.push(o),o.lane=u|536870912),b):null}function Sf(i){if(50<uu)throw uu=0,Uy=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Fo={};function g5(i,o,u,h){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=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(i,o,u,h){return new g5(i,o,u,h)}function Dm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ai(i,o){var u=i.alternate;return u===null?(u=Nn(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,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,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function Bj(i,o){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=o,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,o=u.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function wf(i,o,u,h,v,b){var E=0;if(h=i,typeof i=="function")Dm(i)&&(E=1);else if(typeof i=="string")E=A6(i,u,fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case k:return i=Nn(31,u,o,v),i.elementType=k,i.lanes=b,i;case w:return za(u.children,v,b,o);case x:E=8,v|=24;break;case j:return i=Nn(12,u,o,v|2),i.elementType=j,i.lanes=b,i;case O:return i=Nn(13,u,o,v),i.elementType=O,i.lanes=b,i;case C:return i=Nn(19,u,o,v),i.elementType=C,i.lanes=b,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:E=10;break e;case _:E=9;break e;case M:E=11;break e;case P:E=14;break e;case R:E=16,h=null;break e}E=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=Nn(E,u,o,v),o.elementType=i,o.type=h,o.lanes=b,o}function za(i,o,u,h){return i=Nn(7,i,h,o),i.lanes=u,i}function km(i,o,u){return i=Nn(6,i,null,o),i.lanes=u,i}function qj(i){var o=Nn(18,null,null,0);return o.stateNode=i,o}function Lm(i,o,u){return o=Nn(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var Ij=new WeakMap;function Zn(i,o){if(typeof i=="object"&&i!==null){var u=Ij.get(i);return u!==void 0?u:(o={value:i,source:o,stack:pr(o)},Ij.set(i,o),o)}return{value:i,source:o,stack:pr(o)}}var Ko=[],Yo=0,Af=null,Ul=0,Qn=[],Jn=0,Ui=null,$r=1,zr="";function oi(i,o){Ko[Yo++]=Ul,Ko[Yo++]=Af,Af=i,Ul=o}function Uj(i,o,u){Qn[Jn++]=$r,Qn[Jn++]=zr,Qn[Jn++]=Ui,Ui=i;var h=$r;i=zr;var v=32-Mn(h)-1;h&=~(1<<v),u+=1;var b=32-Mn(o)+v;if(30<b){var E=v-v%5;b=(h&(1<<E)-1).toString(32),h>>=E,v-=E,$r=1<<32-Mn(o)+v|u<<v|h,zr=b+i}else $r=1<<b|u<<v|h,zr=i}function $m(i){i.return!==null&&(oi(i,1),Uj(i,1,0))}function zm(i){for(;i===Af;)Af=Ko[--Yo],Ko[Yo]=null,Ul=Ko[--Yo],Ko[Yo]=null;for(;i===Ui;)Ui=Qn[--Jn],Qn[Jn]=null,zr=Qn[--Jn],Qn[Jn]=null,$r=Qn[--Jn],Qn[Jn]=null}function Vj(i,o){Qn[Jn++]=$r,Qn[Jn++]=zr,Qn[Jn++]=Ui,$r=o.id,zr=o.overflow,Ui=i}var Jt=null,ht=null,Ve=!1,Vi=null,er=!1,Bm=Error(r(519));function Hi(i){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vl(Zn(o,i)),Bm}function Hj(i){var o=i.stateNode,u=i.type,h=i.memoizedProps;switch(o[Qt]=i,o[bn]=h,u){case"dialog":ze("cancel",o),ze("close",o);break;case"iframe":case"object":case"embed":ze("load",o);break;case"video":case"audio":for(u=0;u<fu.length;u++)ze(fu[u],o);break;case"source":ze("error",o);break;case"img":case"image":case"link":ze("error",o),ze("load",o);break;case"details":ze("toggle",o);break;case"input":ze("invalid",o),rj(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":ze("invalid",o);break;case"textarea":ze("invalid",o),aj(o,h.value,h.defaultValue,h.children)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||h.suppressHydrationWarning===!0||sT(o.textContent,u)?(h.popover!=null&&(ze("beforetoggle",o),ze("toggle",o)),h.onScroll!=null&&ze("scroll",o),h.onScrollEnd!=null&&ze("scrollend",o),h.onClick!=null&&(o.onclick=ri),o=!0):o=!1,o||Hi(i,!0)}function Gj(i){for(Jt=i.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:er=!1;return;case 27:case 3:er=!0;return;default:Jt=Jt.return}}function Xo(i){if(i!==Jt)return!1;if(!Ve)return Gj(i),Ve=!0,!1;var o=i.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||rv(i.type,i.memoizedProps)),u=!u),u&&ht&&Hi(i),Gj(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ht=yT(i)}else if(o===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ht=yT(i)}else o===27?(o=ht,ia(i.type)?(i=lv,lv=null,ht=i):ht=o):ht=Jt?nr(i.stateNode.nextSibling):null;return!0}function Ba(){ht=Jt=null,Ve=!1}function qm(){var i=Vi;return i!==null&&(jn===null?jn=i:jn.push.apply(jn,i),Vi=null),i}function Vl(i){Vi===null?Vi=[i]:Vi.push(i)}var Im=L(null),qa=null,si=null;function Gi(i,o,u){re(Im,o._currentValue),o._currentValue=u}function li(i){i._currentValue=Im.current,H(Im)}function Um(i,o,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===u)break;i=i.return}}function Vm(i,o,u,h){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var b=v.dependencies;if(b!==null){var E=v.child;b=b.firstContext;e:for(;b!==null;){var D=b;b=v;for(var I=0;I<o.length;I++)if(D.context===o[I]){b.lanes|=u,D=b.alternate,D!==null&&(D.lanes|=u),Um(b.return,u,i),h||(E=null);break e}b=D.next}}else if(v.tag===18){if(E=v.return,E===null)throw Error(r(341));E.lanes|=u,b=E.alternate,b!==null&&(b.lanes|=u),Um(E,u,i),E=null}else E=v.child;if(E!==null)E.return=v;else for(E=v;E!==null;){if(E===i){E=null;break}if(v=E.sibling,v!==null){v.return=E.return,E=v;break}E=E.return}v=E}}function Wo(i,o,u,h){i=null;for(var v=o,b=!1;v!==null;){if(!b){if((v.flags&524288)!==0)b=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var E=v.alternate;if(E===null)throw Error(r(387));if(E=E.memoizedProps,E!==null){var D=v.type;Pn(v.pendingProps.value,E.value)||(i!==null?i.push(D):i=[D])}}else if(v===Le.current){if(E=v.alternate,E===null)throw Error(r(387));E.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(yu):i=[yu])}v=v.return}i!==null&&Vm(o,i,u,h),o.flags|=262144}function jf(i){for(i=i.firstContext;i!==null;){if(!Pn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ia(i){qa=i,si=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function en(i){return Fj(qa,i)}function Of(i,o){return qa===null&&Ia(i),Fj(i,o)}function Fj(i,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},si===null){if(i===null)throw Error(r(308));si=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else si=si.next=o;return u}var b5=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(u){return u()})}},x5=e.unstable_scheduleCallback,S5=e.unstable_NormalPriority,Mt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hm(){return{controller:new b5,data:new Map,refCount:0}}function Hl(i){i.refCount--,i.refCount===0&&x5(S5,function(){i.controller.abort()})}var Gl=null,Gm=0,Zo=0,Qo=null;function w5(i,o){if(Gl===null){var u=Gl=[];Gm=0,Zo=Yy(),Qo={status:"pending",value:void 0,then:function(h){u.push(h)}}}return Gm++,o.then(Kj,Kj),o}function Kj(){if(--Gm===0&&Gl!==null){Qo!==null&&(Qo.status="fulfilled");var i=Gl;Gl=null,Zo=0,Qo=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function A5(i,o){var u=[],h={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var v=0;v<u.length;v++)(0,u[v])(o)},function(v){for(h.status="rejected",h.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),h}var Yj=z.S;z.S=function(i,o){P_=ln(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&w5(i,o),Yj!==null&&Yj(i,o)};var Ua=L(null);function Fm(){var i=Ua.current;return i!==null?i:at.pooledCache}function _f(i,o){o===null?re(Ua,Ua.current):re(Ua,o.pool)}function Xj(){var i=Fm();return i===null?null:{parent:Mt._currentValue,pool:i}}var Jo=Error(r(460)),Km=Error(r(474)),Tf=Error(r(542)),Ef={then:function(){}};function Wj(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Zj(i,o,u){switch(u=i[u],u===void 0?i.push(o):u!==o&&(o.then(ri,ri),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,Jj(i),i;default:if(typeof o.status=="string")o.then(ri,ri);else{if(i=at,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=h}},function(h){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,Jj(i),i}throw Ha=o,Jo}}function Va(i){try{var o=i._init;return o(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ha=u,Jo):u}}var Ha=null;function Qj(){if(Ha===null)throw Error(r(459));var i=Ha;return Ha=null,i}function Jj(i){if(i===Jo||i===Tf)throw Error(r(483))}var es=null,Fl=0;function Cf(i){var o=Fl;return Fl+=1,es===null&&(es=[]),Zj(es,i,o)}function Kl(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Mf(i,o){throw o.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function eO(i){function o(G,V){if(i){var W=G.deletions;W===null?(G.deletions=[V],G.flags|=16):W.push(V)}}function u(G,V){if(!i)return null;for(;V!==null;)o(G,V),V=V.sibling;return null}function h(G){for(var V=new Map;G!==null;)G.key!==null?V.set(G.key,G):V.set(G.index,G),G=G.sibling;return V}function v(G,V){return G=ai(G,V),G.index=0,G.sibling=null,G}function b(G,V,W){return G.index=W,i?(W=G.alternate,W!==null?(W=W.index,W<V?(G.flags|=67108866,V):W):(G.flags|=67108866,V)):(G.flags|=1048576,V)}function E(G){return i&&G.alternate===null&&(G.flags|=67108866),G}function D(G,V,W,ae){return V===null||V.tag!==6?(V=km(W,G.mode,ae),V.return=G,V):(V=v(V,W),V.return=G,V)}function I(G,V,W,ae){var xe=W.type;return xe===w?te(G,V,W.props.children,ae,W.key):V!==null&&(V.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===R&&Va(xe)===V.type)?(V=v(V,W.props),Kl(V,W),V.return=G,V):(V=wf(W.type,W.key,W.props,null,G.mode,ae),Kl(V,W),V.return=G,V)}function Z(G,V,W,ae){return V===null||V.tag!==4||V.stateNode.containerInfo!==W.containerInfo||V.stateNode.implementation!==W.implementation?(V=Lm(W,G.mode,ae),V.return=G,V):(V=v(V,W.children||[]),V.return=G,V)}function te(G,V,W,ae,xe){return V===null||V.tag!==7?(V=za(W,G.mode,ae,xe),V.return=G,V):(V=v(V,W),V.return=G,V)}function oe(G,V,W){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=km(""+V,G.mode,W),V.return=G,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return W=wf(V.type,V.key,V.props,null,G.mode,W),Kl(W,V),W.return=G,W;case A:return V=Lm(V,G.mode,W),V.return=G,V;case R:return V=Va(V),oe(G,V,W)}if(Y(V)||$(V))return V=za(V,G.mode,W,null),V.return=G,V;if(typeof V.then=="function")return oe(G,Cf(V),W);if(V.$$typeof===T)return oe(G,Of(G,V),W);Mf(G,V)}return null}function J(G,V,W,ae){var xe=V!==null?V.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return xe!==null?null:D(G,V,""+W,ae);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case S:return W.key===xe?I(G,V,W,ae):null;case A:return W.key===xe?Z(G,V,W,ae):null;case R:return W=Va(W),J(G,V,W,ae)}if(Y(W)||$(W))return xe!==null?null:te(G,V,W,ae,null);if(typeof W.then=="function")return J(G,V,Cf(W),ae);if(W.$$typeof===T)return J(G,V,Of(G,W),ae);Mf(G,W)}return null}function ee(G,V,W,ae,xe){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return G=G.get(W)||null,D(V,G,""+ae,xe);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case S:return G=G.get(ae.key===null?W:ae.key)||null,I(V,G,ae,xe);case A:return G=G.get(ae.key===null?W:ae.key)||null,Z(V,G,ae,xe);case R:return ae=Va(ae),ee(G,V,W,ae,xe)}if(Y(ae)||$(ae))return G=G.get(W)||null,te(V,G,ae,xe,null);if(typeof ae.then=="function")return ee(G,V,W,Cf(ae),xe);if(ae.$$typeof===T)return ee(G,V,W,Of(V,ae),xe);Mf(V,ae)}return null}function me(G,V,W,ae){for(var xe=null,He=null,ge=V,De=V=0,Ie=null;ge!==null&&De<W.length;De++){ge.index>De?(Ie=ge,ge=null):Ie=ge.sibling;var Ge=J(G,ge,W[De],ae);if(Ge===null){ge===null&&(ge=Ie);break}i&&ge&&Ge.alternate===null&&o(G,ge),V=b(Ge,V,De),He===null?xe=Ge:He.sibling=Ge,He=Ge,ge=Ie}if(De===W.length)return u(G,ge),Ve&&oi(G,De),xe;if(ge===null){for(;De<W.length;De++)ge=oe(G,W[De],ae),ge!==null&&(V=b(ge,V,De),He===null?xe=ge:He.sibling=ge,He=ge);return Ve&&oi(G,De),xe}for(ge=h(ge);De<W.length;De++)Ie=ee(ge,G,De,W[De],ae),Ie!==null&&(i&&Ie.alternate!==null&&ge.delete(Ie.key===null?De:Ie.key),V=b(Ie,V,De),He===null?xe=Ie:He.sibling=Ie,He=Ie);return i&&ge.forEach(function(ua){return o(G,ua)}),Ve&&oi(G,De),xe}function Ae(G,V,W,ae){if(W==null)throw Error(r(151));for(var xe=null,He=null,ge=V,De=V=0,Ie=null,Ge=W.next();ge!==null&&!Ge.done;De++,Ge=W.next()){ge.index>De?(Ie=ge,ge=null):Ie=ge.sibling;var ua=J(G,ge,Ge.value,ae);if(ua===null){ge===null&&(ge=Ie);break}i&&ge&&ua.alternate===null&&o(G,ge),V=b(ua,V,De),He===null?xe=ua:He.sibling=ua,He=ua,ge=Ie}if(Ge.done)return u(G,ge),Ve&&oi(G,De),xe;if(ge===null){for(;!Ge.done;De++,Ge=W.next())Ge=oe(G,Ge.value,ae),Ge!==null&&(V=b(Ge,V,De),He===null?xe=Ge:He.sibling=Ge,He=Ge);return Ve&&oi(G,De),xe}for(ge=h(ge);!Ge.done;De++,Ge=W.next())Ge=ee(ge,G,De,Ge.value,ae),Ge!==null&&(i&&Ge.alternate!==null&&ge.delete(Ge.key===null?De:Ge.key),V=b(Ge,V,De),He===null?xe=Ge:He.sibling=Ge,He=Ge);return i&&ge.forEach(function(D6){return o(G,D6)}),Ve&&oi(G,De),xe}function rt(G,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 xe=W.key;V!==null;){if(V.key===xe){if(xe=W.type,xe===w){if(V.tag===7){u(G,V.sibling),ae=v(V,W.props.children),ae.return=G,G=ae;break e}}else if(V.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===R&&Va(xe)===V.type){u(G,V.sibling),ae=v(V,W.props),Kl(ae,W),ae.return=G,G=ae;break e}u(G,V);break}else o(G,V);V=V.sibling}W.type===w?(ae=za(W.props.children,G.mode,ae,W.key),ae.return=G,G=ae):(ae=wf(W.type,W.key,W.props,null,G.mode,ae),Kl(ae,W),ae.return=G,G=ae)}return E(G);case A:e:{for(xe=W.key;V!==null;){if(V.key===xe)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){u(G,V.sibling),ae=v(V,W.children||[]),ae.return=G,G=ae;break e}else{u(G,V);break}else o(G,V);V=V.sibling}ae=Lm(W,G.mode,ae),ae.return=G,G=ae}return E(G);case R:return W=Va(W),rt(G,V,W,ae)}if(Y(W))return me(G,V,W,ae);if($(W)){if(xe=$(W),typeof xe!="function")throw Error(r(150));return W=xe.call(W),Ae(G,V,W,ae)}if(typeof W.then=="function")return rt(G,V,Cf(W),ae);if(W.$$typeof===T)return rt(G,V,Of(G,W),ae);Mf(G,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(u(G,V.sibling),ae=v(V,W),ae.return=G,G=ae):(u(G,V),ae=km(W,G.mode,ae),ae.return=G,G=ae),E(G)):u(G,V)}return function(G,V,W,ae){try{Fl=0;var xe=rt(G,V,W,ae);return es=null,xe}catch(ge){if(ge===Jo||ge===Tf)throw ge;var He=Nn(29,ge,null,G.mode);return He.lanes=ae,He.return=G,He}finally{}}}var Ga=eO(!0),tO=eO(!1),Fi=!1;function Ym(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xm(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Ki(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Yi(i,o,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Ke&2)!==0){var v=h.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),h.pending=o,o=Sf(i),zj(i,null,u),o}return xf(i,h,o,u),Sf(i)}function Yl(i,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,FA(i,u)}}function Wm(i,o){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var v=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var E={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};b===null?v=b=E:b=b.next=E,u=u.next}while(u!==null);b===null?v=b=o:b=b.next=o}else v=b=o;u={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}var Zm=!1;function Xl(){if(Zm){var i=Qo;if(i!==null)throw i}}function Wl(i,o,u,h){Zm=!1;var v=i.updateQueue;Fi=!1;var b=v.firstBaseUpdate,E=v.lastBaseUpdate,D=v.shared.pending;if(D!==null){v.shared.pending=null;var I=D,Z=I.next;I.next=null,E===null?b=Z:E.next=Z,E=I;var te=i.alternate;te!==null&&(te=te.updateQueue,D=te.lastBaseUpdate,D!==E&&(D===null?te.firstBaseUpdate=Z:D.next=Z,te.lastBaseUpdate=I))}if(b!==null){var oe=v.baseState;E=0,te=Z=I=null,D=b;do{var J=D.lane&-536870913,ee=J!==D.lane;if(ee?(qe&J)===J:(h&J)===J){J!==0&&J===Zo&&(Zm=!0),te!==null&&(te=te.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var me=i,Ae=D;J=o;var rt=u;switch(Ae.tag){case 1:if(me=Ae.payload,typeof me=="function"){oe=me.call(rt,oe,J);break e}oe=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=Ae.payload,J=typeof me=="function"?me.call(rt,oe,J):me,J==null)break e;oe=m({},oe,J);break e;case 2:Fi=!0}}J=D.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:D.tag,payload:D.payload,callback:D.callback,next:null},te===null?(Z=te=ee,I=oe):te=te.next=ee,E|=J;if(D=D.next,D===null){if(D=v.shared.pending,D===null)break;ee=D,D=ee.next,ee.next=null,v.lastBaseUpdate=ee,v.shared.pending=null}}while(!0);te===null&&(I=oe),v.baseState=I,v.firstBaseUpdate=Z,v.lastBaseUpdate=te,b===null&&(v.shared.lanes=0),Ji|=E,i.lanes=E,i.memoizedState=oe}}function nO(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function rO(i,o){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)nO(u[i],o)}var ts=L(null),Pf=L(0);function iO(i,o){i=vi,re(Pf,i),re(ts,o),vi=i|o.baseLanes}function Qm(){re(Pf,vi),re(ts,ts.current)}function Jm(){vi=Pf.current,H(ts),H(Pf)}var Rn=L(null),tr=null;function Xi(i){var o=i.alternate;re(Tt,Tt.current&1),re(Rn,i),tr===null&&(o===null||ts.current!==null||o.memoizedState!==null)&&(tr=i)}function ey(i){re(Tt,Tt.current),re(Rn,i),tr===null&&(tr=i)}function aO(i){i.tag===22?(re(Tt,Tt.current),re(Rn,i),tr===null&&(tr=i)):Wi()}function Wi(){re(Tt,Tt.current),re(Rn,Rn.current)}function Dn(i){H(Rn),tr===i&&(tr=null),H(Tt)}var Tt=L(0);function Nf(i){for(var o=i;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||ov(u)||sv(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ui=0,Ne=null,tt=null,Pt=null,Rf=!1,ns=!1,Fa=!1,Df=0,Zl=0,rs=null,j5=0;function At(){throw Error(r(321))}function ty(i,o){if(o===null)return!1;for(var u=0;u<o.length&&u<i.length;u++)if(!Pn(i[u],o[u]))return!1;return!0}function ny(i,o,u,h,v,b){return ui=b,Ne=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,z.H=i===null||i.memoizedState===null?UO:vy,Fa=!1,b=u(h,v),Fa=!1,ns&&(b=sO(o,u,h,v)),oO(i),b}function oO(i){z.H=eu;var o=tt!==null&&tt.next!==null;if(ui=0,Pt=tt=Ne=null,Rf=!1,Zl=0,rs=null,o)throw Error(r(300));i===null||Nt||(i=i.dependencies,i!==null&&jf(i)&&(Nt=!0))}function sO(i,o,u,h){Ne=i;var v=0;do{if(ns&&(rs=null),Zl=0,ns=!1,25<=v)throw Error(r(301));if(v+=1,Pt=tt=null,i.updateQueue!=null){var b=i.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}z.H=VO,b=o(u,h)}while(ns);return b}function O5(){var i=z.H,o=i.useState()[0];return o=typeof o.then=="function"?Ql(o):o,i=i.useState()[0],(tt!==null?tt.memoizedState:null)!==i&&(Ne.flags|=1024),o}function ry(){var i=Df!==0;return Df=0,i}function iy(i,o,u){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~u}function ay(i){if(Rf){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Rf=!1}ui=0,Pt=tt=Ne=null,ns=!1,Zl=Df=0,rs=null}function dn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Ne.memoizedState=Pt=i:Pt=Pt.next=i,Pt}function Et(){if(tt===null){var i=Ne.alternate;i=i!==null?i.memoizedState:null}else i=tt.next;var o=Pt===null?Ne.memoizedState:Pt.next;if(o!==null)Pt=o,tt=i;else{if(i===null)throw Ne.alternate===null?Error(r(467)):Error(r(310));tt=i,i={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},Pt===null?Ne.memoizedState=Pt=i:Pt=Pt.next=i}return Pt}function kf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ql(i){var o=Zl;return Zl+=1,rs===null&&(rs=[]),i=Zj(rs,i,o),o=Ne,(Pt===null?o.memoizedState:Pt.next)===null&&(o=o.alternate,z.H=o===null||o.memoizedState===null?UO:vy),i}function Lf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Ql(i);if(i.$$typeof===T)return en(i)}throw Error(r(438,String(i)))}function oy(i){var o=null,u=Ne.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Ne.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=kf(),Ne.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(i),h=0;h<i;h++)u[h]=U;return o.index++,u}function ci(i,o){return typeof o=="function"?o(i):o}function $f(i){var o=Et();return sy(o,tt,i)}function sy(i,o,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var v=i.baseQueue,b=h.pending;if(b!==null){if(v!==null){var E=v.next;v.next=b.next,b.next=E}o.baseQueue=v=b,h.pending=null}if(b=i.baseState,v===null)i.memoizedState=b;else{o=v.next;var D=E=null,I=null,Z=o,te=!1;do{var oe=Z.lane&-536870913;if(oe!==Z.lane?(qe&oe)===oe:(ui&oe)===oe){var J=Z.revertLane;if(J===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),oe===Zo&&(te=!0);else if((ui&J)===J){Z=Z.next,J===Zo&&(te=!0);continue}else oe={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},I===null?(D=I=oe,E=b):I=I.next=oe,Ne.lanes|=J,Ji|=J;oe=Z.action,Fa&&u(b,oe),b=Z.hasEagerState?Z.eagerState:u(b,oe)}else J={lane:oe,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},I===null?(D=I=J,E=b):I=I.next=J,Ne.lanes|=oe,Ji|=oe;Z=Z.next}while(Z!==null&&Z!==o);if(I===null?E=b:I.next=D,!Pn(b,i.memoizedState)&&(Nt=!0,te&&(u=Qo,u!==null)))throw u;i.memoizedState=b,i.baseState=E,i.baseQueue=I,h.lastRenderedState=b}return v===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function ly(i){var o=Et(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,v=u.pending,b=o.memoizedState;if(v!==null){u.pending=null;var E=v=v.next;do b=i(b,E.action),E=E.next;while(E!==v);Pn(b,o.memoizedState)||(Nt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),u.lastRenderedState=b}return[b,h]}function lO(i,o,u){var h=Ne,v=Et(),b=Ve;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=o();var E=!Pn((tt||v).memoizedState,u);if(E&&(v.memoizedState=u,Nt=!0),v=v.queue,fy(fO.bind(null,h,v,i),[i]),v.getSnapshot!==o||E||Pt!==null&&Pt.memoizedState.tag&1){if(h.flags|=2048,is(9,{destroy:void 0},cO.bind(null,h,v,u,o),null),at===null)throw Error(r(349));b||(ui&127)!==0||uO(h,o,u)}return u}function uO(i,o,u){i.flags|=16384,i={getSnapshot:o,value:u},o=Ne.updateQueue,o===null?(o=kf(),Ne.updateQueue=o,o.stores=[i]):(u=o.stores,u===null?o.stores=[i]:u.push(i))}function cO(i,o,u,h){o.value=u,o.getSnapshot=h,dO(o)&&hO(i)}function fO(i,o,u){return u(function(){dO(o)&&hO(i)})}function dO(i){var o=i.getSnapshot;i=i.value;try{var u=o();return!Pn(i,u)}catch{return!0}}function hO(i){var o=$a(i,2);o!==null&&On(o,i,2)}function uy(i){var o=dn();if(typeof i=="function"){var u=i;if(i=u(),Fa){Bi(!0);try{u()}finally{Bi(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:i},o}function pO(i,o,u,h){return i.baseState=u,sy(i,tt,typeof h=="function"?h:ci)}function _5(i,o,u,h,v){if(qf(i))throw Error(r(485));if(i=o.action,i!==null){var b={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){b.listeners.push(E)}};z.T!==null?u(!0):b.isTransition=!1,h(b),u=o.pending,u===null?(b.next=o.pending=b,mO(o,b)):(b.next=u.next,o.pending=u.next=b)}}function mO(i,o){var u=o.action,h=o.payload,v=i.state;if(o.isTransition){var b=z.T,E={};z.T=E;try{var D=u(v,h),I=z.S;I!==null&&I(E,D),yO(i,o,D)}catch(Z){cy(i,o,Z)}finally{b!==null&&E.types!==null&&(b.types=E.types),z.T=b}}else try{b=u(v,h),yO(i,o,b)}catch(Z){cy(i,o,Z)}}function yO(i,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){vO(i,o,h)},function(h){return cy(i,o,h)}):vO(i,o,u)}function vO(i,o,u){o.status="fulfilled",o.value=u,gO(o),i.state=u,o=i.pending,o!==null&&(u=o.next,u===o?i.pending=null:(u=u.next,o.next=u,mO(i,u)))}function cy(i,o,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,gO(o),o=o.next;while(o!==h)}i.action=null}function gO(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function bO(i,o){return o}function xO(i,o){if(Ve){var u=at.formState;if(u!==null){e:{var h=Ne;if(Ve){if(ht){t:{for(var v=ht,b=er;v.nodeType!==8;){if(!b){v=null;break t}if(v=nr(v.nextSibling),v===null){v=null;break t}}b=v.data,v=b==="F!"||b==="F"?v:null}if(v){ht=nr(v.nextSibling),h=v.data==="F!";break e}}Hi(h)}h=!1}h&&(o=u[0])}}return u=dn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bO,lastRenderedState:o},u.queue=h,u=BO.bind(null,Ne,h),h.dispatch=u,h=uy(!1),b=yy.bind(null,Ne,!1,h.queue),h=dn(),v={state:o,dispatch:null,action:i,pending:null},h.queue=v,u=_5.bind(null,Ne,v,b,u),v.dispatch=u,h.memoizedState=i,[o,u,!1]}function SO(i){var o=Et();return wO(o,tt,i)}function wO(i,o,u){if(o=sy(i,o,bO)[0],i=$f(ci)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=Ql(o)}catch(E){throw E===Jo?Tf:E}else h=o;o=Et();var v=o.queue,b=v.dispatch;return u!==o.memoizedState&&(Ne.flags|=2048,is(9,{destroy:void 0},T5.bind(null,v,u),null)),[h,b,i]}function T5(i,o){i.action=o}function AO(i){var o=Et(),u=tt;if(u!==null)return wO(o,u,i);Et(),o=o.memoizedState,u=Et();var h=u.queue.dispatch;return u.memoizedState=i,[o,h,!1]}function is(i,o,u,h){return i={tag:i,create:u,deps:h,inst:o,next:null},o=Ne.updateQueue,o===null&&(o=kf(),Ne.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,o.lastEffect=i),i}function jO(){return Et().memoizedState}function zf(i,o,u,h){var v=dn();Ne.flags|=i,v.memoizedState=is(1|o,{destroy:void 0},u,h===void 0?null:h)}function Bf(i,o,u,h){var v=Et();h=h===void 0?null:h;var b=v.memoizedState.inst;tt!==null&&h!==null&&ty(h,tt.memoizedState.deps)?v.memoizedState=is(o,b,u,h):(Ne.flags|=i,v.memoizedState=is(1|o,b,u,h))}function OO(i,o){zf(8390656,8,i,o)}function fy(i,o){Bf(2048,8,i,o)}function E5(i){Ne.flags|=4;var o=Ne.updateQueue;if(o===null)o=kf(),Ne.updateQueue=o,o.events=[i];else{var u=o.events;u===null?o.events=[i]:u.push(i)}}function _O(i){var o=Et().memoizedState;return E5({ref:o,nextImpl:i}),function(){if((Ke&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function TO(i,o){return Bf(4,2,i,o)}function EO(i,o){return Bf(4,4,i,o)}function CO(i,o){if(typeof o=="function"){i=i();var u=o(i);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function MO(i,o,u){u=u!=null?u.concat([i]):null,Bf(4,4,CO.bind(null,o,i),u)}function dy(){}function PO(i,o){var u=Et();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&ty(o,h[1])?h[0]:(u.memoizedState=[i,o],i)}function NO(i,o){var u=Et();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&ty(o,h[1]))return h[0];if(h=i(),Fa){Bi(!0);try{i()}finally{Bi(!1)}}return u.memoizedState=[h,o],h}function hy(i,o,u){return u===void 0||(ui&1073741824)!==0&&(qe&261930)===0?i.memoizedState=o:(i.memoizedState=u,i=R_(),Ne.lanes|=i,Ji|=i,u)}function RO(i,o,u,h){return Pn(u,o)?u:ts.current!==null?(i=hy(i,u,h),Pn(i,o)||(Nt=!0),i):(ui&42)===0||(ui&1073741824)!==0&&(qe&261930)===0?(Nt=!0,i.memoizedState=u):(i=R_(),Ne.lanes|=i,Ji|=i,o)}function DO(i,o,u,h,v){var b=K.p;K.p=b!==0&&8>b?b:8;var E=z.T,D={};z.T=D,yy(i,!1,o,u);try{var I=v(),Z=z.S;if(Z!==null&&Z(D,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var te=A5(I,h);Jl(i,o,te,$n(i))}else Jl(i,o,h,$n(i))}catch(oe){Jl(i,o,{then:function(){},status:"rejected",reason:oe},$n())}finally{K.p=b,E!==null&&D.types!==null&&(E.types=D.types),z.T=E}}function C5(){}function py(i,o,u,h){if(i.tag!==5)throw Error(r(476));var v=kO(i).queue;DO(i,v,o,Q,u===null?C5:function(){return LO(i),u(h)})}function kO(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:Q},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:u},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function LO(i){var o=kO(i);o.next===null&&(o=i.alternate.memoizedState),Jl(i,o.next.queue,{},$n())}function my(){return en(yu)}function $O(){return Et().memoizedState}function zO(){return Et().memoizedState}function M5(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var u=$n();i=Ki(u);var h=Yi(o,i,u);h!==null&&(On(h,o,u),Yl(h,o,u)),o={cache:Hm()},i.payload=o;return}o=o.return}}function P5(i,o,u){var h=$n();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},qf(i)?qO(o,u):(u=Rm(i,o,u,h),u!==null&&(On(u,i,h),IO(u,o,h)))}function BO(i,o,u){var h=$n();Jl(i,o,u,h)}function Jl(i,o,u,h){var v={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(qf(i))qO(o,v);else{var b=i.alternate;if(i.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var E=o.lastRenderedState,D=b(E,u);if(v.hasEagerState=!0,v.eagerState=D,Pn(D,E))return xf(i,o,v,0),at===null&&bf(),!1}catch{}finally{}if(u=Rm(i,o,v,h),u!==null)return On(u,i,h),IO(u,o,h),!0}return!1}function yy(i,o,u,h){if(h={lane:2,revertLane:Yy(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},qf(i)){if(o)throw Error(r(479))}else o=Rm(i,u,h,2),o!==null&&On(o,i,2)}function qf(i){var o=i.alternate;return i===Ne||o!==null&&o===Ne}function qO(i,o){ns=Rf=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function IO(i,o,u){if((u&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,FA(i,u)}}var eu={readContext:en,use:Lf,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At,useHostTransitionStatus:At,useFormState:At,useActionState:At,useOptimistic:At,useMemoCache:At,useCacheRefresh:At};eu.useEffectEvent=At;var UO={readContext:en,use:Lf,useCallback:function(i,o){return dn().memoizedState=[i,o===void 0?null:o],i},useContext:en,useEffect:OO,useImperativeHandle:function(i,o,u){u=u!=null?u.concat([i]):null,zf(4194308,4,CO.bind(null,o,i),u)},useLayoutEffect:function(i,o){return zf(4194308,4,i,o)},useInsertionEffect:function(i,o){zf(4,2,i,o)},useMemo:function(i,o){var u=dn();o=o===void 0?null:o;var h=i();if(Fa){Bi(!0);try{i()}finally{Bi(!1)}}return u.memoizedState=[h,o],h},useReducer:function(i,o,u){var h=dn();if(u!==void 0){var v=u(o);if(Fa){Bi(!0);try{u(o)}finally{Bi(!1)}}}else v=o;return h.memoizedState=h.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},h.queue=i,i=i.dispatch=P5.bind(null,Ne,i),[h.memoizedState,i]},useRef:function(i){var o=dn();return i={current:i},o.memoizedState=i},useState:function(i){i=uy(i);var o=i.queue,u=BO.bind(null,Ne,o);return o.dispatch=u,[i.memoizedState,u]},useDebugValue:dy,useDeferredValue:function(i,o){var u=dn();return hy(u,i,o)},useTransition:function(){var i=uy(!1);return i=DO.bind(null,Ne,i.queue,!0,!1),dn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,u){var h=Ne,v=dn();if(Ve){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),at===null)throw Error(r(349));(qe&127)!==0||uO(h,o,u)}v.memoizedState=u;var b={value:u,getSnapshot:o};return v.queue=b,OO(fO.bind(null,h,b,i),[i]),h.flags|=2048,is(9,{destroy:void 0},cO.bind(null,h,b,u,o),null),u},useId:function(){var i=dn(),o=at.identifierPrefix;if(Ve){var u=zr,h=$r;u=(h&~(1<<32-Mn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=Df++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=j5++,o="_"+o+"r_"+u.toString(32)+"_";return i.memoizedState=o},useHostTransitionStatus:my,useFormState:xO,useActionState:xO,useOptimistic:function(i){var o=dn();o.memoizedState=o.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=yy.bind(null,Ne,!0,u),u.dispatch=o,[i,o]},useMemoCache:oy,useCacheRefresh:function(){return dn().memoizedState=M5.bind(null,Ne)},useEffectEvent:function(i){var o=dn(),u={impl:i};return o.memoizedState=u,function(){if((Ke&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},vy={readContext:en,use:Lf,useCallback:PO,useContext:en,useEffect:fy,useImperativeHandle:MO,useInsertionEffect:TO,useLayoutEffect:EO,useMemo:NO,useReducer:$f,useRef:jO,useState:function(){return $f(ci)},useDebugValue:dy,useDeferredValue:function(i,o){var u=Et();return RO(u,tt.memoizedState,i,o)},useTransition:function(){var i=$f(ci)[0],o=Et().memoizedState;return[typeof i=="boolean"?i:Ql(i),o]},useSyncExternalStore:lO,useId:$O,useHostTransitionStatus:my,useFormState:SO,useActionState:SO,useOptimistic:function(i,o){var u=Et();return pO(u,tt,i,o)},useMemoCache:oy,useCacheRefresh:zO};vy.useEffectEvent=_O;var VO={readContext:en,use:Lf,useCallback:PO,useContext:en,useEffect:fy,useImperativeHandle:MO,useInsertionEffect:TO,useLayoutEffect:EO,useMemo:NO,useReducer:ly,useRef:jO,useState:function(){return ly(ci)},useDebugValue:dy,useDeferredValue:function(i,o){var u=Et();return tt===null?hy(u,i,o):RO(u,tt.memoizedState,i,o)},useTransition:function(){var i=ly(ci)[0],o=Et().memoizedState;return[typeof i=="boolean"?i:Ql(i),o]},useSyncExternalStore:lO,useId:$O,useHostTransitionStatus:my,useFormState:AO,useActionState:AO,useOptimistic:function(i,o){var u=Et();return tt!==null?pO(u,tt,i,o):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:oy,useCacheRefresh:zO};VO.useEffectEvent=_O;function gy(i,o,u,h){o=i.memoizedState,u=u(h,o),u=u==null?o:m({},o,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var by={enqueueSetState:function(i,o,u){i=i._reactInternals;var h=$n(),v=Ki(h);v.payload=o,u!=null&&(v.callback=u),o=Yi(i,v,h),o!==null&&(On(o,i,h),Yl(o,i,h))},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var h=$n(),v=Ki(h);v.tag=1,v.payload=o,u!=null&&(v.callback=u),o=Yi(i,v,h),o!==null&&(On(o,i,h),Yl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=$n(),h=Ki(u);h.tag=2,o!=null&&(h.callback=o),o=Yi(i,h,u),o!==null&&(On(o,i,u),Yl(o,i,u))}};function HO(i,o,u,h,v,b,E){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,b,E):o.prototype&&o.prototype.isPureReactComponent?!ql(u,h)||!ql(v,b):!0}function GO(i,o,u,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==i&&by.enqueueReplaceState(o,o.state,null)}function Ka(i,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(i=i.defaultProps){u===o&&(u=m({},u));for(var v in i)u[v]===void 0&&(u[v]=i[v])}return u}function FO(i){gf(i)}function KO(i){console.error(i)}function YO(i){gf(i)}function If(i,o){try{var u=i.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function XO(i,o,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function xy(i,o,u){return u=Ki(u),u.tag=3,u.payload={element:null},u.callback=function(){If(i,o)},u}function WO(i){return i=Ki(i),i.tag=3,i}function ZO(i,o,u,h){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var b=h.value;i.payload=function(){return v(b)},i.callback=function(){XO(o,u,h)}}var E=u.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(i.callback=function(){XO(o,u,h),typeof v!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var D=h.stack;this.componentDidCatch(h.value,{componentStack:D!==null?D:""})})}function N5(i,o,u,h,v){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&Wo(o,u,v,!0),u=Rn.current,u!==null){switch(u.tag){case 31:case 13:return tr===null?Jf():u.alternate===null&&jt===0&&(jt=3),u.flags&=-257,u.flags|=65536,u.lanes=v,h===Ef?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),Gy(i,h,v)),!1;case 22:return u.flags|=65536,h===Ef?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([h]):u.add(h)),Gy(i,h,v)),!1}throw Error(r(435,u.tag))}return Gy(i,h,v),Jf(),!1}if(Ve)return o=Rn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,h!==Bm&&(i=Error(r(422),{cause:h}),Vl(Zn(i,u)))):(h!==Bm&&(o=Error(r(423),{cause:h}),Vl(Zn(o,u))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,h=Zn(h,u),v=xy(i.stateNode,h,v),Wm(i,v),jt!==4&&(jt=2)),!1;var b=Error(r(520),{cause:h});if(b=Zn(b,u),lu===null?lu=[b]:lu.push(b),jt!==4&&(jt=2),o===null)return!0;h=Zn(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,i=v&-v,u.lanes|=i,i=xy(u.stateNode,h,i),Wm(u,i),!1;case 1:if(o=u.type,b=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ea===null||!ea.has(b))))return u.flags|=65536,v&=-v,u.lanes|=v,v=WO(v),ZO(v,i,u,h),Wm(u,v),!1}u=u.return}while(u!==null);return!1}var Sy=Error(r(461)),Nt=!1;function tn(i,o,u,h){o.child=i===null?tO(o,null,u,h):Ga(o,i.child,u,h)}function QO(i,o,u,h,v){u=u.render;var b=o.ref;if("ref"in h){var E={};for(var D in h)D!=="ref"&&(E[D]=h[D])}else E=h;return Ia(o),h=ny(i,o,u,E,b,v),D=ry(),i!==null&&!Nt?(iy(i,o,v),fi(i,o,v)):(Ve&&D&&$m(o),o.flags|=1,tn(i,o,h,v),o.child)}function JO(i,o,u,h,v){if(i===null){var b=u.type;return typeof b=="function"&&!Dm(b)&&b.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=b,e_(i,o,b,h,v)):(i=wf(u.type,null,h,o,o.mode,v),i.ref=o.ref,i.return=o,o.child=i)}if(b=i.child,!Cy(i,v)){var E=b.memoizedProps;if(u=u.compare,u=u!==null?u:ql,u(E,h)&&i.ref===o.ref)return fi(i,o,v)}return o.flags|=1,i=ai(b,h),i.ref=o.ref,i.return=o,o.child=i}function e_(i,o,u,h,v){if(i!==null){var b=i.memoizedProps;if(ql(b,h)&&i.ref===o.ref)if(Nt=!1,o.pendingProps=h=b,Cy(i,v))(i.flags&131072)!==0&&(Nt=!0);else return o.lanes=i.lanes,fi(i,o,v)}return wy(i,o,u,h,v)}function t_(i,o,u,h){var v=h.children,b=i!==null?i.memoizedState:null;if(i===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((o.flags&128)!==0){if(b=b!==null?b.baseLanes|u:u,i!==null){for(h=o.child=i.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~b}else h=0,o.child=null;return n_(i,o,b,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&_f(o,b!==null?b.cachePool:null),b!==null?iO(o,b):Qm(),aO(o);else return h=o.lanes=536870912,n_(i,o,b!==null?b.baseLanes|u:u,u,h)}else b!==null?(_f(o,b.cachePool),iO(o,b),Wi(),o.memoizedState=null):(i!==null&&_f(o,null),Qm(),Wi());return tn(i,o,v,u),o.child}function tu(i,o){return i!==null&&i.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function n_(i,o,u,h,v){var b=Fm();return b=b===null?null:{parent:Mt._currentValue,pool:b},o.memoizedState={baseLanes:u,cachePool:b},i!==null&&_f(o,null),Qm(),aO(o),i!==null&&Wo(i,o,h,!0),o.childLanes=v,null}function Uf(i,o){return o=Hf({mode:o.mode,children:o.children},i.mode),o.ref=i.ref,i.child=o,o.return=i,o}function r_(i,o,u){return Ga(o,i.child,null,u),i=Uf(o,o.pendingProps),i.flags|=2,Dn(o),o.memoizedState=null,i}function R5(i,o,u){var h=o.pendingProps,v=(o.flags&128)!==0;if(o.flags&=-129,i===null){if(Ve){if(h.mode==="hidden")return i=Uf(o,h),o.lanes=536870912,tu(null,i);if(ey(o),(i=ht)?(i=mT(i,er),i=i!==null&&i.data==="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:Ui!==null?{id:$r,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},u=qj(i),u.return=o,o.child=u,Jt=o,ht=null)):i=null,i===null)throw Hi(o);return o.lanes=536870912,null}return Uf(o,h)}var b=i.memoizedState;if(b!==null){var E=b.dehydrated;if(ey(o),v)if(o.flags&256)o.flags&=-257,o=r_(i,o,u);else if(o.memoizedState!==null)o.child=i.child,o.flags|=128,o=null;else throw Error(r(558));else if(Nt||Wo(i,o,u,!1),v=(u&i.childLanes)!==0,Nt||v){if(h=at,h!==null&&(E=KA(h,u),E!==0&&E!==b.retryLane))throw b.retryLane=E,$a(i,E),On(h,i,E),Sy;Jf(),o=r_(i,o,u)}else i=b.treeContext,ht=nr(E.nextSibling),Jt=o,Ve=!0,Vi=null,er=!1,i!==null&&Vj(o,i),o=Uf(o,h),o.flags|=4096;return o}return i=ai(i.child,{mode:h.mode,children:h.children}),i.ref=o.ref,o.child=i,i.return=o,i}function Vf(i,o){var u=o.ref;if(u===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(o.flags|=4194816)}}function wy(i,o,u,h,v){return Ia(o),u=ny(i,o,u,h,void 0,v),h=ry(),i!==null&&!Nt?(iy(i,o,v),fi(i,o,v)):(Ve&&h&&$m(o),o.flags|=1,tn(i,o,u,v),o.child)}function i_(i,o,u,h,v,b){return Ia(o),o.updateQueue=null,u=sO(o,h,u,v),oO(i),h=ry(),i!==null&&!Nt?(iy(i,o,b),fi(i,o,b)):(Ve&&h&&$m(o),o.flags|=1,tn(i,o,u,b),o.child)}function a_(i,o,u,h,v){if(Ia(o),o.stateNode===null){var b=Fo,E=u.contextType;typeof E=="object"&&E!==null&&(b=en(E)),b=new u(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=by,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},Ym(o),E=u.contextType,b.context=typeof E=="object"&&E!==null?en(E):Fo,b.state=o.memoizedState,E=u.getDerivedStateFromProps,typeof E=="function"&&(gy(o,u,E,h),b.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(E=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),E!==b.state&&by.enqueueReplaceState(b,b.state,null),Wl(o,h,b,v),Xl(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){b=o.stateNode;var D=o.memoizedProps,I=Ka(u,D);b.props=I;var Z=b.context,te=u.contextType;E=Fo,typeof te=="object"&&te!==null&&(E=en(te));var oe=u.getDerivedStateFromProps;te=typeof oe=="function"||typeof b.getSnapshotBeforeUpdate=="function",D=o.pendingProps!==D,te||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(D||Z!==E)&&GO(o,b,h,E),Fi=!1;var J=o.memoizedState;b.state=J,Wl(o,h,b,v),Xl(),Z=o.memoizedState,D||J!==Z||Fi?(typeof oe=="function"&&(gy(o,u,oe,h),Z=o.memoizedState),(I=Fi||HO(o,u,I,h,J,Z,E))?(te||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=Z),b.props=h,b.state=Z,b.context=E,h=I):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,Xm(i,o),E=o.memoizedProps,te=Ka(u,E),b.props=te,oe=o.pendingProps,J=b.context,Z=u.contextType,I=Fo,typeof Z=="object"&&Z!==null&&(I=en(Z)),D=u.getDerivedStateFromProps,(Z=typeof D=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(E!==oe||J!==I)&&GO(o,b,h,I),Fi=!1,J=o.memoizedState,b.state=J,Wl(o,h,b,v),Xl();var ee=o.memoizedState;E!==oe||J!==ee||Fi||i!==null&&i.dependencies!==null&&jf(i.dependencies)?(typeof D=="function"&&(gy(o,u,D,h),ee=o.memoizedState),(te=Fi||HO(o,u,te,h,J,ee,I)||i!==null&&i.dependencies!==null&&jf(i.dependencies))?(Z||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,ee,I),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,ee,I)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||E===i.memoizedProps&&J===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||E===i.memoizedProps&&J===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ee),b.props=h,b.state=ee,b.context=I,h=te):(typeof b.componentDidUpdate!="function"||E===i.memoizedProps&&J===i.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||E===i.memoizedProps&&J===i.memoizedState||(o.flags|=1024),h=!1)}return b=h,Vf(i,o),h=(o.flags&128)!==0,b||h?(b=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:b.render(),o.flags|=1,i!==null&&h?(o.child=Ga(o,i.child,null,v),o.child=Ga(o,null,u,v)):tn(i,o,u,v),o.memoizedState=b.state,i=o.child):i=fi(i,o,v),i}function o_(i,o,u,h){return Ba(),o.flags|=256,tn(i,o,u,h),o.child}var Ay={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jy(i){return{baseLanes:i,cachePool:Xj()}}function Oy(i,o,u){return i=i!==null?i.childLanes&~u:0,o&&(i|=Ln),i}function s_(i,o,u){var h=o.pendingProps,v=!1,b=(o.flags&128)!==0,E;if((E=b)||(E=i!==null&&i.memoizedState===null?!1:(Tt.current&2)!==0),E&&(v=!0,o.flags&=-129),E=(o.flags&32)!==0,o.flags&=-33,i===null){if(Ve){if(v?Xi(o):Wi(),(i=ht)?(i=mT(i,er),i=i!==null&&i.data!=="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:Ui!==null?{id:$r,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},u=qj(i),u.return=o,o.child=u,Jt=o,ht=null)):i=null,i===null)throw Hi(o);return sv(i)?o.lanes=32:o.lanes=536870912,null}var D=h.children;return h=h.fallback,v?(Wi(),v=o.mode,D=Hf({mode:"hidden",children:D},v),h=za(h,v,u,null),D.return=o,h.return=o,D.sibling=h,o.child=D,h=o.child,h.memoizedState=jy(u),h.childLanes=Oy(i,E,u),o.memoizedState=Ay,tu(null,h)):(Xi(o),_y(o,D))}var I=i.memoizedState;if(I!==null&&(D=I.dehydrated,D!==null)){if(b)o.flags&256?(Xi(o),o.flags&=-257,o=Ty(i,o,u)):o.memoizedState!==null?(Wi(),o.child=i.child,o.flags|=128,o=null):(Wi(),D=h.fallback,v=o.mode,h=Hf({mode:"visible",children:h.children},v),D=za(D,v,u,null),D.flags|=2,h.return=o,D.return=o,h.sibling=D,o.child=h,Ga(o,i.child,null,u),h=o.child,h.memoizedState=jy(u),h.childLanes=Oy(i,E,u),o.memoizedState=Ay,o=tu(null,h));else if(Xi(o),sv(D)){if(E=D.nextSibling&&D.nextSibling.dataset,E)var Z=E.dgst;E=Z,h=Error(r(419)),h.stack="",h.digest=E,Vl({value:h,source:null,stack:null}),o=Ty(i,o,u)}else if(Nt||Wo(i,o,u,!1),E=(u&i.childLanes)!==0,Nt||E){if(E=at,E!==null&&(h=KA(E,u),h!==0&&h!==I.retryLane))throw I.retryLane=h,$a(i,h),On(E,i,h),Sy;ov(D)||Jf(),o=Ty(i,o,u)}else ov(D)?(o.flags|=192,o.child=i.child,o=null):(i=I.treeContext,ht=nr(D.nextSibling),Jt=o,Ve=!0,Vi=null,er=!1,i!==null&&Vj(o,i),o=_y(o,h.children),o.flags|=4096);return o}return v?(Wi(),D=h.fallback,v=o.mode,I=i.child,Z=I.sibling,h=ai(I,{mode:"hidden",children:h.children}),h.subtreeFlags=I.subtreeFlags&65011712,Z!==null?D=ai(Z,D):(D=za(D,v,u,null),D.flags|=2),D.return=o,h.return=o,h.sibling=D,o.child=h,tu(null,h),h=o.child,D=i.child.memoizedState,D===null?D=jy(u):(v=D.cachePool,v!==null?(I=Mt._currentValue,v=v.parent!==I?{parent:I,pool:I}:v):v=Xj(),D={baseLanes:D.baseLanes|u,cachePool:v}),h.memoizedState=D,h.childLanes=Oy(i,E,u),o.memoizedState=Ay,tu(i.child,h)):(Xi(o),u=i.child,i=u.sibling,u=ai(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,i!==null&&(E=o.deletions,E===null?(o.deletions=[i],o.flags|=16):E.push(i)),o.child=u,o.memoizedState=null,u)}function _y(i,o){return o=Hf({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function Hf(i,o){return i=Nn(22,i,null,o),i.lanes=0,i}function Ty(i,o,u){return Ga(o,i.child,null,u),i=_y(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function l_(i,o,u){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Um(i.return,o,u)}function Ey(i,o,u,h,v,b){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:v,treeForkCount:b}:(E.isBackwards=o,E.rendering=null,E.renderingStartTime=0,E.last=h,E.tail=u,E.tailMode=v,E.treeForkCount=b)}function u_(i,o,u){var h=o.pendingProps,v=h.revealOrder,b=h.tail;h=h.children;var E=Tt.current,D=(E&2)!==0;if(D?(E=E&1|2,o.flags|=128):E&=1,re(Tt,E),tn(i,o,h,u),h=Ve?Ul:0,!D&&i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&l_(i,u,o);else if(i.tag===19)l_(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(v){case"forwards":for(u=o.child,v=null;u!==null;)i=u.alternate,i!==null&&Nf(i)===null&&(v=u),u=u.sibling;u=v,u===null?(v=o.child,o.child=null):(v=u.sibling,u.sibling=null),Ey(o,!1,v,u,b,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=o.child,o.child=null;v!==null;){if(i=v.alternate,i!==null&&Nf(i)===null){o.child=v;break}i=v.sibling,v.sibling=u,u=v,v=i}Ey(o,!0,u,null,b,h);break;case"together":Ey(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function fi(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),Ji|=o.lanes,(u&o.childLanes)===0)if(i!==null){if(Wo(i,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,u=ai(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=ai(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function Cy(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&jf(i)))}function D5(i,o,u){switch(o.tag){case 3:Ye(o,o.stateNode.containerInfo),Gi(o,Mt,i.memoizedState.cache),Ba();break;case 27:case 5:_e(o);break;case 4:Ye(o,o.stateNode.containerInfo);break;case 10:Gi(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,ey(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Xi(o),o.flags|=128,null):(u&o.child.childLanes)!==0?s_(i,o,u):(Xi(o),i=fi(i,o,u),i!==null?i.sibling:null);Xi(o);break;case 19:var v=(i.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(Wo(i,o,u,!1),h=(u&o.childLanes)!==0),v){if(h)return u_(i,o,u);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),re(Tt,Tt.current),h)break;return null;case 22:return o.lanes=0,t_(i,o,u,o.pendingProps);case 24:Gi(o,Mt,i.memoizedState.cache)}return fi(i,o,u)}function c_(i,o,u){if(i!==null)if(i.memoizedProps!==o.pendingProps)Nt=!0;else{if(!Cy(i,u)&&(o.flags&128)===0)return Nt=!1,D5(i,o,u);Nt=(i.flags&131072)!==0}else Nt=!1,Ve&&(o.flags&1048576)!==0&&Uj(o,Ul,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(i=Va(o.elementType),o.type=i,typeof i=="function")Dm(i)?(h=Ka(i,h),o.tag=1,o=a_(null,o,i,h,u)):(o.tag=0,o=wy(null,o,i,h,u));else{if(i!=null){var v=i.$$typeof;if(v===M){o.tag=11,o=QO(null,o,i,h,u);break e}else if(v===P){o.tag=14,o=JO(null,o,i,h,u);break e}}throw o=X(i)||i,Error(r(306,o,""))}}return o;case 0:return wy(i,o,o.type,o.pendingProps,u);case 1:return h=o.type,v=Ka(h,o.pendingProps),a_(i,o,h,v,u);case 3:e:{if(Ye(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;v=b.element,Xm(i,o),Wl(o,h,null,u);var E=o.memoizedState;if(h=E.cache,Gi(o,Mt,h),h!==b.cache&&Vm(o,[Mt],u,!0),Xl(),h=E.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:E.cache},o.updateQueue.baseState=b,o.memoizedState=b,o.flags&256){o=o_(i,o,h,u);break e}else if(h!==v){v=Zn(Error(r(424)),o),Vl(v),o=o_(i,o,h,u);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(ht=nr(i.firstChild),Jt=o,Ve=!0,Vi=null,er=!0,u=tO(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ba(),h===v){o=fi(i,o,u);break e}tn(i,o,h,u)}o=o.child}return o;case 26:return Vf(i,o),i===null?(u=ST(o.type,null,o.pendingProps,null))?o.memoizedState=u:Ve||(u=o.type,i=o.pendingProps,h=od(we.current).createElement(u),h[Qt]=o,h[bn]=i,nn(h,u,i),Ft(h),o.stateNode=h):o.memoizedState=ST(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return _e(o),i===null&&Ve&&(h=o.stateNode=gT(o.type,o.pendingProps,we.current),Jt=o,er=!0,v=ht,ia(o.type)?(lv=v,ht=nr(h.firstChild)):ht=v),tn(i,o,o.pendingProps.children,u),Vf(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&Ve&&((v=h=ht)&&(h=c6(h,o.type,o.pendingProps,er),h!==null?(o.stateNode=h,Jt=o,ht=nr(h.firstChild),er=!1,v=!0):v=!1),v||Hi(o)),_e(o),v=o.type,b=o.pendingProps,E=i!==null?i.memoizedProps:null,h=b.children,rv(v,b)?h=null:E!==null&&rv(v,E)&&(o.flags|=32),o.memoizedState!==null&&(v=ny(i,o,O5,null,null,u),yu._currentValue=v),Vf(i,o),tn(i,o,h,u),o.child;case 6:return i===null&&Ve&&((i=u=ht)&&(u=f6(u,o.pendingProps,er),u!==null?(o.stateNode=u,Jt=o,ht=null,i=!0):i=!1),i||Hi(o)),null;case 13:return s_(i,o,u);case 4:return Ye(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=Ga(o,null,h,u):tn(i,o,h,u),o.child;case 11:return QO(i,o,o.type,o.pendingProps,u);case 7:return tn(i,o,o.pendingProps,u),o.child;case 8:return tn(i,o,o.pendingProps.children,u),o.child;case 12:return tn(i,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Gi(o,o.type,h.value),tn(i,o,h.children,u),o.child;case 9:return v=o.type._context,h=o.pendingProps.children,Ia(o),v=en(v),h=h(v),o.flags|=1,tn(i,o,h,u),o.child;case 14:return JO(i,o,o.type,o.pendingProps,u);case 15:return e_(i,o,o.type,o.pendingProps,u);case 19:return u_(i,o,u);case 31:return R5(i,o,u);case 22:return t_(i,o,u,o.pendingProps);case 24:return Ia(o),h=en(Mt),i===null?(v=Fm(),v===null&&(v=at,b=Hm(),v.pooledCache=b,b.refCount++,b!==null&&(v.pooledCacheLanes|=u),v=b),o.memoizedState={parent:h,cache:v},Ym(o),Gi(o,Mt,v)):((i.lanes&u)!==0&&(Xm(i,o),Wl(o,null,null,u),Xl()),v=i.memoizedState,b=o.memoizedState,v.parent!==h?(v={parent:h,cache:h},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),Gi(o,Mt,h)):(h=b.cache,Gi(o,Mt,h),h!==v.cache&&Vm(o,[Mt],u,!0))),tn(i,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function di(i){i.flags|=4}function My(i,o,u,h,v){if((o=(i.mode&32)!==0)&&(o=!1),o){if(i.flags|=16777216,(v&335544128)===v)if(i.stateNode.complete)i.flags|=8192;else if($_())i.flags|=8192;else throw Ha=Ef,Km}else i.flags&=-16777217}function f_(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!_T(o))if($_())i.flags|=8192;else throw Ha=Ef,Km}function Gf(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?HA():536870912,i.lanes|=o,ls|=o)}function nu(i,o){if(!Ve)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function pt(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(o)for(var v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=u,o}function k5(i,o,u){var h=o.pendingProps;switch(zm(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(o),null;case 1:return pt(o),null;case 3:return u=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),li(Mt),ce(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Xo(o)?di(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,qm())),pt(o),null;case 26:var v=o.type,b=o.memoizedState;return i===null?(di(o),b!==null?(pt(o),f_(o,b)):(pt(o),My(o,v,null,h,u))):b?b!==i.memoizedState?(di(o),pt(o),f_(o,b)):(pt(o),o.flags&=-16777217):(i=i.memoizedProps,i!==h&&di(o),pt(o),My(o,v,i,h,u)),null;case 27:if(Ce(o),u=we.current,v=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&di(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return pt(o),null}i=fe.current,Xo(o)?Hj(o):(i=gT(v,h,u),o.stateNode=i,di(o))}return pt(o),null;case 5:if(Ce(o),v=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&di(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return pt(o),null}if(b=fe.current,Xo(o))Hj(o);else{var E=od(we.current);switch(b){case 1:b=E.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:b=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":b=E.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":b=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":b=E.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof h.is=="string"?E.createElement("select",{is:h.is}):E.createElement("select"),h.multiple?b.multiple=!0:h.size&&(b.size=h.size);break;default:b=typeof h.is=="string"?E.createElement(v,{is:h.is}):E.createElement(v)}}b[Qt]=o,b[bn]=h;e:for(E=o.child;E!==null;){if(E.tag===5||E.tag===6)b.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===o)break e;for(;E.sibling===null;){if(E.return===null||E.return===o)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}o.stateNode=b;e:switch(nn(b,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&di(o)}}return pt(o),My(o,o.type,i===null?null:i.memoizedProps,o.pendingProps,u),null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&di(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=we.current,Xo(o)){if(i=o.stateNode,u=o.memoizedProps,h=null,v=Jt,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}i[Qt]=o,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||sT(i.nodeValue,u)),i||Hi(o,!0)}else i=od(i).createTextNode(h),i[Qt]=o,o.stateNode=i}return pt(o),null;case 31:if(u=o.memoizedState,i===null||i.memoizedState!==null){if(h=Xo(o),u!==null){if(i===null){if(!h)throw Error(r(318));if(i=o.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[Qt]=o}else Ba(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;pt(o),i=!1}else u=qm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return o.flags&256?(Dn(o),o):(Dn(o),null);if((o.flags&128)!==0)throw Error(r(558))}return pt(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Xo(o),h!==null&&h.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Qt]=o}else Ba(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;pt(o),v=!1}else v=qm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?(Dn(o),o):(Dn(o),null)}return Dn(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,i=i!==null&&i.memoizedState!==null,u&&(h=o.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==v&&(h.flags|=2048)),u!==i&&u&&(o.child.flags|=8192),Gf(o,o.updateQueue),pt(o),null);case 4:return ce(),i===null&&Qy(o.stateNode.containerInfo),pt(o),null;case 10:return li(o.type),pt(o),null;case 19:if(H(Tt),h=o.memoizedState,h===null)return pt(o),null;if(v=(o.flags&128)!==0,b=h.rendering,b===null)if(v)nu(h,!1);else{if(jt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(b=Nf(i),b!==null){for(o.flags|=128,nu(h,!1),i=b.updateQueue,o.updateQueue=i,Gf(o,i),o.subtreeFlags=0,i=u,u=o.child;u!==null;)Bj(u,i),u=u.sibling;return re(Tt,Tt.current&1|2),Ve&&oi(o,h.treeForkCount),o.child}i=i.sibling}h.tail!==null&&ln()>Wf&&(o.flags|=128,v=!0,nu(h,!1),o.lanes=4194304)}else{if(!v)if(i=Nf(b),i!==null){if(o.flags|=128,v=!0,i=i.updateQueue,o.updateQueue=i,Gf(o,i),nu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Ve)return pt(o),null}else 2*ln()-h.renderingStartTime>Wf&&u!==536870912&&(o.flags|=128,v=!0,nu(h,!1),o.lanes=4194304);h.isBackwards?(b.sibling=o.child,o.child=b):(i=h.last,i!==null?i.sibling=b:o.child=b,h.last=b)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=ln(),i.sibling=null,u=Tt.current,re(Tt,v?u&1|2:u&1),Ve&&oi(o,h.treeForkCount),i):(pt(o),null);case 22:case 23:return Dn(o),Jm(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(pt(o),o.subtreeFlags&6&&(o.flags|=8192)):pt(o),u=o.updateQueue,u!==null&&Gf(o,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),i!==null&&H(Ua),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),li(Mt),pt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function L5(i,o){switch(zm(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return li(Mt),ce(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Ce(o),null;case 31:if(o.memoizedState!==null){if(Dn(o),o.alternate===null)throw Error(r(340));Ba()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 13:if(Dn(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Ba()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return H(Tt),null;case 4:return ce(),null;case 10:return li(o.type),null;case 22:case 23:return Dn(o),Jm(),i!==null&&H(Ua),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return li(Mt),null;case 25:return null;default:return null}}function d_(i,o){switch(zm(o),o.tag){case 3:li(Mt),ce();break;case 26:case 27:case 5:Ce(o);break;case 4:ce();break;case 31:o.memoizedState!==null&&Dn(o);break;case 13:Dn(o);break;case 19:H(Tt);break;case 10:li(o.type);break;case 22:case 23:Dn(o),Jm(),i!==null&&H(Ua);break;case 24:li(Mt)}}function ru(i,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var v=h.next;u=v;do{if((u.tag&i)===i){h=void 0;var b=u.create,E=u.inst;h=b(),E.destroy=h}u=u.next}while(u!==v)}}catch(D){Je(o,o.return,D)}}function Zi(i,o,u){try{var h=o.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var b=v.next;h=b;do{if((h.tag&i)===i){var E=h.inst,D=E.destroy;if(D!==void 0){E.destroy=void 0,v=o;var I=u,Z=D;try{Z()}catch(te){Je(v,I,te)}}}h=h.next}while(h!==b)}}catch(te){Je(o,o.return,te)}}function h_(i){var o=i.updateQueue;if(o!==null){var u=i.stateNode;try{rO(o,u)}catch(h){Je(i,i.return,h)}}}function p_(i,o,u){u.props=Ka(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){Je(i,o,h)}}function iu(i,o){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(v){Je(i,o,v)}}function Br(i,o){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(v){Je(i,o,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){Je(i,o,v)}else u.current=null}function m_(i){var o=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(v){Je(i,i.return,v)}}function Py(i,o,u){try{var h=i.stateNode;i6(h,i.type,u,o),h[bn]=o}catch(v){Je(i,i.return,v)}}function y_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ia(i.type)||i.tag===4}function Ny(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||y_(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&&ia(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 Ry(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(i),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=ri));else if(h!==4&&(h===27&&ia(i.type)&&(u=i.stateNode,o=null),i=i.child,i!==null))for(Ry(i,o,u),i=i.sibling;i!==null;)Ry(i,o,u),i=i.sibling}function Ff(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(h!==4&&(h===27&&ia(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Ff(i,o,u),i=i.sibling;i!==null;)Ff(i,o,u),i=i.sibling}function v_(i){var o=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);nn(o,h,u),o[Qt]=i,o[bn]=u}catch(b){Je(i,i.return,b)}}var hi=!1,Rt=!1,Dy=!1,g_=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function $5(i,o){if(i=i.containerInfo,tv=hd,i=Mj(i),Tm(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var v=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var E=0,D=-1,I=-1,Z=0,te=0,oe=i,J=null;t:for(;;){for(var ee;oe!==u||v!==0&&oe.nodeType!==3||(D=E+v),oe!==b||h!==0&&oe.nodeType!==3||(I=E+h),oe.nodeType===3&&(E+=oe.nodeValue.length),(ee=oe.firstChild)!==null;)J=oe,oe=ee;for(;;){if(oe===i)break t;if(J===u&&++Z===v&&(D=E),J===b&&++te===h&&(I=E),(ee=oe.nextSibling)!==null)break;oe=J,J=oe.parentNode}oe=ee}u=D===-1||I===-1?null:{start:D,end:I}}else u=null}u=u||{start:0,end:0}}else u=null;for(nv={focusedElem:i,selectionRange:u},hd=!1,Kt=o;Kt!==null;)if(o=Kt,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,Kt=i;else for(;Kt!==null;){switch(o=Kt,b=o.alternate,i=o.flags,o.tag){case 0:if((i&4)!==0&&(i=o.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&&b!==null){i=void 0,u=o,v=b.memoizedProps,b=b.memoizedState,h=u.stateNode;try{var me=Ka(u.type,v);i=h.getSnapshotBeforeUpdate(me,b),h.__reactInternalSnapshotBeforeUpdate=i}catch(Ae){Je(u,u.return,Ae)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,u=i.nodeType,u===9)av(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":av(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=o.sibling,i!==null){i.return=o.return,Kt=i;break}Kt=o.return}}function b_(i,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:mi(i,u),h&4&&ru(5,u);break;case 1:if(mi(i,u),h&4)if(i=u.stateNode,o===null)try{i.componentDidMount()}catch(E){Je(u,u.return,E)}else{var v=Ka(u.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(v,o,i.__reactInternalSnapshotBeforeUpdate)}catch(E){Je(u,u.return,E)}}h&64&&h_(u),h&512&&iu(u,u.return);break;case 3:if(mi(i,u),h&64&&(i=u.updateQueue,i!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{rO(i,o)}catch(E){Je(u,u.return,E)}}break;case 27:o===null&&h&4&&v_(u);case 26:case 5:mi(i,u),o===null&&h&4&&m_(u),h&512&&iu(u,u.return);break;case 12:mi(i,u);break;case 31:mi(i,u),h&4&&w_(i,u);break;case 13:mi(i,u),h&4&&A_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=F5.bind(null,u),d6(i,u))));break;case 22:if(h=u.memoizedState!==null||hi,!h){o=o!==null&&o.memoizedState!==null||Rt,v=hi;var b=Rt;hi=h,(Rt=o)&&!b?yi(i,u,(u.subtreeFlags&8772)!==0):mi(i,u),hi=v,Rt=b}break;case 30:break;default:mi(i,u)}}function x_(i){var o=i.alternate;o!==null&&(i.alternate=null,x_(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&cm(o)),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 gt=null,Sn=!1;function pi(i,o,u){for(u=u.child;u!==null;)S_(i,o,u),u=u.sibling}function S_(i,o,u){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(El,u)}catch{}switch(u.tag){case 26:Rt||Br(u,o),pi(i,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Rt||Br(u,o);var h=gt,v=Sn;ia(u.type)&&(gt=u.stateNode,Sn=!1),pi(i,o,u),hu(u.stateNode),gt=h,Sn=v;break;case 5:Rt||Br(u,o);case 6:if(h=gt,v=Sn,gt=null,pi(i,o,u),gt=h,Sn=v,gt!==null)if(Sn)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(u.stateNode)}catch(b){Je(u,o,b)}else try{gt.removeChild(u.stateNode)}catch(b){Je(u,o,b)}break;case 18:gt!==null&&(Sn?(i=gt,hT(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),ys(i)):hT(gt,u.stateNode));break;case 4:h=gt,v=Sn,gt=u.stateNode.containerInfo,Sn=!0,pi(i,o,u),gt=h,Sn=v;break;case 0:case 11:case 14:case 15:Zi(2,u,o),Rt||Zi(4,u,o),pi(i,o,u);break;case 1:Rt||(Br(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&p_(u,o,h)),pi(i,o,u);break;case 21:pi(i,o,u);break;case 22:Rt=(h=Rt)||u.memoizedState!==null,pi(i,o,u),Rt=h;break;default:pi(i,o,u)}}function w_(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{ys(i)}catch(u){Je(o,o.return,u)}}}function A_(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{ys(i)}catch(u){Je(o,o.return,u)}}function z5(i){switch(i.tag){case 31:case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new g_),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new g_),o;default:throw Error(r(435,i.tag))}}function Kf(i,o){var u=z5(i);o.forEach(function(h){if(!u.has(h)){u.add(h);var v=K5.bind(null,i,h);h.then(v,v)}})}function wn(i,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var v=u[h],b=i,E=o,D=E;e:for(;D!==null;){switch(D.tag){case 27:if(ia(D.type)){gt=D.stateNode,Sn=!1;break e}break;case 5:gt=D.stateNode,Sn=!1;break e;case 3:case 4:gt=D.stateNode.containerInfo,Sn=!0;break e}D=D.return}if(gt===null)throw Error(r(160));S_(b,E,v),gt=null,Sn=!1,b=v.alternate,b!==null&&(b.return=null),v.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)j_(o,i),o=o.sibling}var vr=null;function j_(i,o){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:wn(o,i),An(i),h&4&&(Zi(3,i,i.return),ru(3,i),Zi(5,i,i.return));break;case 1:wn(o,i),An(i),h&512&&(Rt||u===null||Br(u,u.return)),h&64&&hi&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var v=vr;if(wn(o,i),An(i),h&512&&(Rt||u===null||Br(u,u.return)),h&4){var b=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":b=v.getElementsByTagName("title")[0],(!b||b[Pl]||b[Qt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=v.createElement(h),v.head.insertBefore(b,v.querySelector("head > title"))),nn(b,h,u),b[Qt]=i,Ft(b),h=b;break e;case"link":var E=jT("link","href",v).get(h+(u.href||""));if(E){for(var D=0;D<E.length;D++)if(b=E[D],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){E.splice(D,1);break t}}b=v.createElement(h),nn(b,h,u),v.head.appendChild(b);break;case"meta":if(E=jT("meta","content",v).get(h+(u.content||""))){for(D=0;D<E.length;D++)if(b=E[D],b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){E.splice(D,1);break t}}b=v.createElement(h),nn(b,h,u),v.head.appendChild(b);break;default:throw Error(r(468,h))}b[Qt]=i,Ft(b),h=b}i.stateNode=h}else OT(v,i.type,i.stateNode);else i.stateNode=AT(v,h,i.memoizedProps);else b!==h?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,h===null?OT(v,i.type,i.stateNode):AT(v,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Py(i,i.memoizedProps,u.memoizedProps)}break;case 27:wn(o,i),An(i),h&512&&(Rt||u===null||Br(u,u.return)),u!==null&&h&4&&Py(i,i.memoizedProps,u.memoizedProps);break;case 5:if(wn(o,i),An(i),h&512&&(Rt||u===null||Br(u,u.return)),i.flags&32){v=i.stateNode;try{Bo(v,"")}catch(me){Je(i,i.return,me)}}h&4&&i.stateNode!=null&&(v=i.memoizedProps,Py(i,v,u!==null?u.memoizedProps:v)),h&1024&&(Dy=!0);break;case 6:if(wn(o,i),An(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(me){Je(i,i.return,me)}}break;case 3:if(ud=null,v=vr,vr=sd(o.containerInfo),wn(o,i),vr=v,An(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{ys(o.containerInfo)}catch(me){Je(i,i.return,me)}Dy&&(Dy=!1,O_(i));break;case 4:h=vr,vr=sd(i.stateNode.containerInfo),wn(o,i),An(i),vr=h;break;case 12:wn(o,i),An(i);break;case 31:wn(o,i),An(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Kf(i,h)));break;case 13:wn(o,i),An(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Xf=ln()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Kf(i,h)));break;case 22:v=i.memoizedState!==null;var I=u!==null&&u.memoizedState!==null,Z=hi,te=Rt;if(hi=Z||v,Rt=te||I,wn(o,i),Rt=te,hi=Z,An(i),h&8192)e:for(o=i.stateNode,o._visibility=v?o._visibility&-2:o._visibility|1,v&&(u===null||I||hi||Rt||Ya(i)),u=null,o=i;;){if(o.tag===5||o.tag===26){if(u===null){I=u=o;try{if(b=I.stateNode,v)E=b.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{D=I.stateNode;var oe=I.memoizedProps.style,J=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;D.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(me){Je(I,I.return,me)}}}else if(o.tag===6){if(u===null){I=o;try{I.stateNode.nodeValue=v?"":I.memoizedProps}catch(me){Je(I,I.return,me)}}}else if(o.tag===18){if(u===null){I=o;try{var ee=I.stateNode;v?pT(ee,!0):pT(I.stateNode,!1)}catch(me){Je(I,I.return,me)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,Kf(i,u))));break;case 19:wn(o,i),An(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Kf(i,h)));break;case 30:break;case 21:break;default:wn(o,i),An(i)}}function An(i){var o=i.flags;if(o&2){try{for(var u,h=i.return;h!==null;){if(y_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,b=Ny(i);Ff(i,b,v);break;case 5:var E=u.stateNode;u.flags&32&&(Bo(E,""),u.flags&=-33);var D=Ny(i);Ff(i,D,E);break;case 3:case 4:var I=u.stateNode.containerInfo,Z=Ny(i);Ry(i,Z,I);break;default:throw Error(r(161))}}catch(te){Je(i,i.return,te)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function O_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;O_(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function mi(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)b_(i,o.alternate,o),o=o.sibling}function Ya(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Zi(4,o,o.return),Ya(o);break;case 1:Br(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&p_(o,o.return,u),Ya(o);break;case 27:hu(o.stateNode);case 26:case 5:Br(o,o.return),Ya(o);break;case 22:o.memoizedState===null&&Ya(o);break;case 30:Ya(o);break;default:Ya(o)}i=i.sibling}}function yi(i,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,v=i,b=o,E=b.flags;switch(b.tag){case 0:case 11:case 15:yi(v,b,u),ru(4,b);break;case 1:if(yi(v,b,u),h=b,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(Z){Je(h,h.return,Z)}if(h=b,v=h.updateQueue,v!==null){var D=h.stateNode;try{var I=v.shared.hiddenCallbacks;if(I!==null)for(v.shared.hiddenCallbacks=null,v=0;v<I.length;v++)nO(I[v],D)}catch(Z){Je(h,h.return,Z)}}u&&E&64&&h_(b),iu(b,b.return);break;case 27:v_(b);case 26:case 5:yi(v,b,u),u&&h===null&&E&4&&m_(b),iu(b,b.return);break;case 12:yi(v,b,u);break;case 31:yi(v,b,u),u&&E&4&&w_(v,b);break;case 13:yi(v,b,u),u&&E&4&&A_(v,b);break;case 22:b.memoizedState===null&&yi(v,b,u),iu(b,b.return);break;case 30:break;default:yi(v,b,u)}o=o.sibling}}function ky(i,o){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Hl(u))}function Ly(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Hl(i))}function gr(i,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)__(i,o,u,h),o=o.sibling}function __(i,o,u,h){var v=o.flags;switch(o.tag){case 0:case 11:case 15:gr(i,o,u,h),v&2048&&ru(9,o);break;case 1:gr(i,o,u,h);break;case 3:gr(i,o,u,h),v&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Hl(i)));break;case 12:if(v&2048){gr(i,o,u,h),i=o.stateNode;try{var b=o.memoizedProps,E=b.id,D=b.onPostCommit;typeof D=="function"&&D(E,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(I){Je(o,o.return,I)}}else gr(i,o,u,h);break;case 31:gr(i,o,u,h);break;case 13:gr(i,o,u,h);break;case 23:break;case 22:b=o.stateNode,E=o.alternate,o.memoizedState!==null?b._visibility&2?gr(i,o,u,h):au(i,o):b._visibility&2?gr(i,o,u,h):(b._visibility|=2,as(i,o,u,h,(o.subtreeFlags&10256)!==0||!1)),v&2048&&ky(E,o);break;case 24:gr(i,o,u,h),v&2048&&Ly(o.alternate,o);break;default:gr(i,o,u,h)}}function as(i,o,u,h,v){for(v=v&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var b=i,E=o,D=u,I=h,Z=E.flags;switch(E.tag){case 0:case 11:case 15:as(b,E,D,I,v),ru(8,E);break;case 23:break;case 22:var te=E.stateNode;E.memoizedState!==null?te._visibility&2?as(b,E,D,I,v):au(b,E):(te._visibility|=2,as(b,E,D,I,v)),v&&Z&2048&&ky(E.alternate,E);break;case 24:as(b,E,D,I,v),v&&Z&2048&&Ly(E.alternate,E);break;default:as(b,E,D,I,v)}o=o.sibling}}function au(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=i,h=o,v=h.flags;switch(h.tag){case 22:au(u,h),v&2048&&ky(h.alternate,h);break;case 24:au(u,h),v&2048&&Ly(h.alternate,h);break;default:au(u,h)}o=o.sibling}}var ou=8192;function os(i,o,u){if(i.subtreeFlags&ou)for(i=i.child;i!==null;)T_(i,o,u),i=i.sibling}function T_(i,o,u){switch(i.tag){case 26:os(i,o,u),i.flags&ou&&i.memoizedState!==null&&j6(u,vr,i.memoizedState,i.memoizedProps);break;case 5:os(i,o,u);break;case 3:case 4:var h=vr;vr=sd(i.stateNode.containerInfo),os(i,o,u),vr=h;break;case 22:i.memoizedState===null&&(h=i.alternate,h!==null&&h.memoizedState!==null?(h=ou,ou=16777216,os(i,o,u),ou=h):os(i,o,u));break;default:os(i,o,u)}}function E_(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function su(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Kt=h,M_(h,i)}E_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)C_(i),i=i.sibling}function C_(i){switch(i.tag){case 0:case 11:case 15:su(i),i.flags&2048&&Zi(9,i,i.return);break;case 3:su(i);break;case 12:su(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,Yf(i)):su(i);break;default:su(i)}}function Yf(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Kt=h,M_(h,i)}E_(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Zi(8,o,o.return),Yf(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,Yf(o));break;default:Yf(o)}i=i.sibling}}function M_(i,o){for(;Kt!==null;){var u=Kt;switch(u.tag){case 0:case 11:case 15:Zi(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Hl(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Kt=h;else e:for(u=i;Kt!==null;){h=Kt;var v=h.sibling,b=h.return;if(x_(h),h===u){Kt=null;break e}if(v!==null){v.return=b,Kt=v;break e}Kt=b}}}var B5={getCacheForType:function(i){var o=en(Mt),u=o.data.get(i);return u===void 0&&(u=i(),o.data.set(i,u)),u},cacheSignal:function(){return en(Mt).controller.signal}},q5=typeof WeakMap=="function"?WeakMap:Map,Ke=0,at=null,$e=null,qe=0,Qe=0,kn=null,Qi=!1,ss=!1,$y=!1,vi=0,jt=0,Ji=0,Xa=0,zy=0,Ln=0,ls=0,lu=null,jn=null,By=!1,Xf=0,P_=0,Wf=1/0,Zf=null,ea=null,Bt=0,ta=null,us=null,gi=0,qy=0,Iy=null,N_=null,uu=0,Uy=null;function $n(){return(Ke&2)!==0&&qe!==0?qe&-qe:z.T!==null?Yy():YA()}function R_(){if(Ln===0)if((qe&536870912)===0||Ve){var i=af;af<<=1,(af&3932160)===0&&(af=262144),Ln=i}else Ln=536870912;return i=Rn.current,i!==null&&(i.flags|=32),Ln}function On(i,o,u){(i===at&&(Qe===2||Qe===9)||i.cancelPendingCommit!==null)&&(cs(i,0),na(i,qe,Ln,!1)),Ml(i,u),((Ke&2)===0||i!==at)&&(i===at&&((Ke&2)===0&&(Xa|=u),jt===4&&na(i,qe,Ln,!1)),qr(i))}function D_(i,o,u){if((Ke&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&i.expiredLanes)===0||Cl(i,o),v=h?V5(i,o):Hy(i,o,!0),b=h;do{if(v===0){ss&&!h&&na(i,o,0,!1);break}else{if(u=i.current.alternate,b&&!I5(u)){v=Hy(i,o,!1),b=!1;continue}if(v===2){if(b=o,i.errorRecoveryDisabledLanes&b)var E=0;else E=i.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){o=E;e:{var D=i;v=lu;var I=D.current.memoizedState.isDehydrated;if(I&&(cs(D,E).flags|=256),E=Hy(D,E,!1),E!==2){if($y&&!I){D.errorRecoveryDisabledLanes|=b,Xa|=b,v=4;break e}b=jn,jn=v,b!==null&&(jn===null?jn=b:jn.push.apply(jn,b))}v=E}if(b=!1,v!==2)continue}}if(v===1){cs(i,0),na(i,o,0,!0);break}e:{switch(h=i,b=v,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:na(h,o,Ln,!Qi);break e;case 2:jn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(v=Xf+300-ln(),10<v)){if(na(h,o,Ln,!Qi),sf(h,0,!0)!==0)break e;gi=o,h.timeoutHandle=fT(k_.bind(null,h,u,jn,Zf,By,o,Ln,Xa,ls,Qi,b,"Throttled",-0,0),v);break e}k_(h,u,jn,Zf,By,o,Ln,Xa,ls,Qi,b,null,-0,0)}}break}while(!0);qr(i)}function k_(i,o,u,h,v,b,E,D,I,Z,te,oe,J,ee){if(i.timeoutHandle=-1,oe=o.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ri},T_(o,b,oe);var me=(b&62914560)===b?Xf-ln():(b&4194048)===b?P_-ln():0;if(me=O6(oe,me),me!==null){gi=b,i.cancelPendingCommit=me(V_.bind(null,i,o,b,u,h,v,E,D,I,te,oe,null,J,ee)),na(i,b,E,!Z);return}}V_(i,o,b,u,h,v,E,D,I)}function I5(i){for(var o=i;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var v=u[h],b=v.getSnapshot;v=v.value;try{if(!Pn(b(),v))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function na(i,o,u,h){o&=~zy,o&=~Xa,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var v=o;0<v;){var b=31-Mn(v),E=1<<b;h[b]=-1,v&=~E}u!==0&&GA(i,u,o)}function Qf(){return(Ke&6)===0?(cu(0),!1):!0}function Vy(){if($e!==null){if(Qe===0)var i=$e.return;else i=$e,si=qa=null,ay(i),es=null,Fl=0,i=$e;for(;i!==null;)d_(i.alternate,i),i=i.return;$e=null}}function cs(i,o){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,s6(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),gi=0,Vy(),at=i,$e=u=ai(i.current,null),qe=o,Qe=0,kn=null,Qi=!1,ss=Cl(i,o),$y=!1,ls=Ln=zy=Xa=Ji=jt=0,jn=lu=null,By=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var v=31-Mn(h),b=1<<v;o|=i[v],h&=~b}return vi=o,bf(),u}function L_(i,o){Ne=null,z.H=eu,o===Jo||o===Tf?(o=Qj(),Qe=3):o===Km?(o=Qj(),Qe=4):Qe=o===Sy?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,kn=o,$e===null&&(jt=1,If(i,Zn(o,i.current)))}function $_(){var i=Rn.current;return i===null?!0:(qe&4194048)===qe?tr===null:(qe&62914560)===qe||(qe&536870912)!==0?i===tr:!1}function z_(){var i=z.H;return z.H=eu,i===null?eu:i}function B_(){var i=z.A;return z.A=B5,i}function Jf(){jt=4,Qi||(qe&4194048)!==qe&&Rn.current!==null||(ss=!0),(Ji&134217727)===0&&(Xa&134217727)===0||at===null||na(at,qe,Ln,!1)}function Hy(i,o,u){var h=Ke;Ke|=2;var v=z_(),b=B_();(at!==i||qe!==o)&&(Zf=null,cs(i,o)),o=!1;var E=jt;e:do try{if(Qe!==0&&$e!==null){var D=$e,I=kn;switch(Qe){case 8:Vy(),E=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(o=!0);var Z=Qe;if(Qe=0,kn=null,fs(i,D,I,Z),u&&ss){E=0;break e}break;default:Z=Qe,Qe=0,kn=null,fs(i,D,I,Z)}}U5(),E=jt;break}catch(te){L_(i,te)}while(!0);return o&&i.shellSuspendCounter++,si=qa=null,Ke=h,z.H=v,z.A=b,$e===null&&(at=null,qe=0,bf()),E}function U5(){for(;$e!==null;)q_($e)}function V5(i,o){var u=Ke;Ke|=2;var h=z_(),v=B_();at!==i||qe!==o?(Zf=null,Wf=ln()+500,cs(i,o)):ss=Cl(i,o);e:do try{if(Qe!==0&&$e!==null){o=$e;var b=kn;t:switch(Qe){case 1:Qe=0,kn=null,fs(i,o,b,1);break;case 2:case 9:if(Wj(b)){Qe=0,kn=null,I_(o);break}o=function(){Qe!==2&&Qe!==9||at!==i||(Qe=7),qr(i)},b.then(o,o);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:Wj(b)?(Qe=0,kn=null,I_(o)):(Qe=0,kn=null,fs(i,o,b,7));break;case 5:var E=null;switch($e.tag){case 26:E=$e.memoizedState;case 5:case 27:var D=$e;if(E?_T(E):D.stateNode.complete){Qe=0,kn=null;var I=D.sibling;if(I!==null)$e=I;else{var Z=D.return;Z!==null?($e=Z,ed(Z)):$e=null}break t}}Qe=0,kn=null,fs(i,o,b,5);break;case 6:Qe=0,kn=null,fs(i,o,b,6);break;case 8:Vy(),jt=6;break e;default:throw Error(r(462))}}H5();break}catch(te){L_(i,te)}while(!0);return si=qa=null,z.H=h,z.A=v,Ke=u,$e!==null?0:(at=null,qe=0,bf(),jt)}function H5(){for(;$e!==null&&!ti();)q_($e)}function q_(i){var o=c_(i.alternate,i,vi);i.memoizedProps=i.pendingProps,o===null?ed(i):$e=o}function I_(i){var o=i,u=o.alternate;switch(o.tag){case 15:case 0:o=i_(u,o,o.pendingProps,o.type,void 0,qe);break;case 11:o=i_(u,o,o.pendingProps,o.type.render,o.ref,qe);break;case 5:ay(o);default:d_(u,o),o=$e=Bj(o,vi),o=c_(u,o,vi)}i.memoizedProps=i.pendingProps,o===null?ed(i):$e=o}function fs(i,o,u,h){si=qa=null,ay(o),es=null,Fl=0;var v=o.return;try{if(N5(i,v,o,u,qe)){jt=1,If(i,Zn(u,i.current)),$e=null;return}}catch(b){if(v!==null)throw $e=v,b;jt=1,If(i,Zn(u,i.current)),$e=null;return}o.flags&32768?(Ve||h===1?i=!0:ss||(qe&536870912)!==0?i=!1:(Qi=i=!0,(h===2||h===9||h===3||h===6)&&(h=Rn.current,h!==null&&h.tag===13&&(h.flags|=16384))),U_(o,i)):ed(o)}function ed(i){var o=i;do{if((o.flags&32768)!==0){U_(o,Qi);return}i=o.return;var u=k5(o.alternate,o,vi);if(u!==null){$e=u;return}if(o=o.sibling,o!==null){$e=o;return}$e=o=i}while(o!==null);jt===0&&(jt=5)}function U_(i,o){do{var u=L5(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),!o&&(i=i.sibling,i!==null)){$e=i;return}$e=i=u}while(i!==null);jt=6,$e=null}function V_(i,o,u,h,v,b,E,D,I){i.cancelPendingCommit=null;do td();while(Bt!==0);if((Ke&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=Nm,A4(i,u,b,E,D,I),i===at&&($e=at=null,qe=0),us=o,ta=i,gi=u,qy=b,Iy=v,N_=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Y5(nf,function(){return Y_(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=z.T,z.T=null,v=K.p,K.p=2,E=Ke,Ke|=4;try{$5(i,o,u)}finally{Ke=E,K.p=v,z.T=h}}Bt=1,H_(),G_(),F_()}}function H_(){if(Bt===1){Bt=0;var i=ta,o=us,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=z.T,z.T=null;var h=K.p;K.p=2;var v=Ke;Ke|=4;try{j_(o,i);var b=nv,E=Mj(i.containerInfo),D=b.focusedElem,I=b.selectionRange;if(E!==D&&D&&D.ownerDocument&&Cj(D.ownerDocument.documentElement,D)){if(I!==null&&Tm(D)){var Z=I.start,te=I.end;if(te===void 0&&(te=Z),"selectionStart"in D)D.selectionStart=Z,D.selectionEnd=Math.min(te,D.value.length);else{var oe=D.ownerDocument||document,J=oe&&oe.defaultView||window;if(J.getSelection){var ee=J.getSelection(),me=D.textContent.length,Ae=Math.min(I.start,me),rt=I.end===void 0?Ae:Math.min(I.end,me);!ee.extend&&Ae>rt&&(E=rt,rt=Ae,Ae=E);var G=Ej(D,Ae),V=Ej(D,rt);if(G&&V&&(ee.rangeCount!==1||ee.anchorNode!==G.node||ee.anchorOffset!==G.offset||ee.focusNode!==V.node||ee.focusOffset!==V.offset)){var W=oe.createRange();W.setStart(G.node,G.offset),ee.removeAllRanges(),Ae>rt?(ee.addRange(W),ee.extend(V.node,V.offset)):(W.setEnd(V.node,V.offset),ee.addRange(W))}}}}for(oe=[],ee=D;ee=ee.parentNode;)ee.nodeType===1&&oe.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<oe.length;D++){var ae=oe[D];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}hd=!!tv,nv=tv=null}finally{Ke=v,K.p=h,z.T=u}}i.current=o,Bt=2}}function G_(){if(Bt===2){Bt=0;var i=ta,o=us,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=z.T,z.T=null;var h=K.p;K.p=2;var v=Ke;Ke|=4;try{b_(i,o.alternate,o)}finally{Ke=v,K.p=h,z.T=u}}Bt=3}}function F_(){if(Bt===4||Bt===3){Bt=0,Tl();var i=ta,o=us,u=gi,h=N_;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Bt=5:(Bt=0,us=ta=null,K_(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(ea=null),lm(u),o=o.stateNode,Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(El,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=z.T,v=K.p,K.p=2,z.T=null;try{for(var b=i.onRecoverableError,E=0;E<h.length;E++){var D=h[E];b(D.value,{componentStack:D.stack})}}finally{z.T=o,K.p=v}}(gi&3)!==0&&td(),qr(i),v=i.pendingLanes,(u&261930)!==0&&(v&42)!==0?i===Uy?uu++:(uu=0,Uy=i):uu=0,cu(0)}}function K_(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,Hl(o)))}function td(){return H_(),G_(),F_(),Y_()}function Y_(){if(Bt!==5)return!1;var i=ta,o=qy;qy=0;var u=lm(gi),h=z.T,v=K.p;try{K.p=32>u?32:u,z.T=null,u=Iy,Iy=null;var b=ta,E=gi;if(Bt=0,us=ta=null,gi=0,(Ke&6)!==0)throw Error(r(331));var D=Ke;if(Ke|=4,C_(b.current),__(b,b.current,E,u),Ke=D,cu(0,!1),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(El,b)}catch{}return!0}finally{K.p=v,z.T=h,K_(i,o)}}function X_(i,o,u){o=Zn(u,o),o=xy(i.stateNode,o,2),i=Yi(i,o,2),i!==null&&(Ml(i,2),qr(i))}function Je(i,o,u){if(i.tag===3)X_(i,i,u);else for(;o!==null;){if(o.tag===3){X_(o,i,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ea===null||!ea.has(h))){i=Zn(u,i),u=WO(2),h=Yi(o,u,2),h!==null&&(ZO(u,h,o,i),Ml(h,2),qr(h));break}}o=o.return}}function Gy(i,o,u){var h=i.pingCache;if(h===null){h=i.pingCache=new q5;var v=new Set;h.set(o,v)}else v=h.get(o),v===void 0&&(v=new Set,h.set(o,v));v.has(u)||($y=!0,v.add(u),i=G5.bind(null,i,o,u),o.then(i,i))}function G5(i,o,u){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,at===i&&(qe&u)===u&&(jt===4||jt===3&&(qe&62914560)===qe&&300>ln()-Xf?(Ke&2)===0&&cs(i,0):zy|=u,ls===qe&&(ls=0)),qr(i)}function W_(i,o){o===0&&(o=HA()),i=$a(i,o),i!==null&&(Ml(i,o),qr(i))}function F5(i){var o=i.memoizedState,u=0;o!==null&&(u=o.retryLane),W_(i,u)}function K5(i,o){var u=0;switch(i.tag){case 31:case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),W_(i,u)}function Y5(i,o){return zi(i,o)}var nd=null,ds=null,Fy=!1,rd=!1,Ky=!1,ra=0;function qr(i){i!==ds&&i.next===null&&(ds===null?nd=ds=i:ds=ds.next=i),rd=!0,Fy||(Fy=!0,W5())}function cu(i,o){if(!Ky&&rd){Ky=!0;do for(var u=!1,h=nd;h!==null;){if(i!==0){var v=h.pendingLanes;if(v===0)var b=0;else{var E=h.suspendedLanes,D=h.pingedLanes;b=(1<<31-Mn(42|i)+1)-1,b&=v&~(E&~D),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,eT(h,b))}else b=qe,b=sf(h,h===at?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||Cl(h,b)||(u=!0,eT(h,b));h=h.next}while(u);Ky=!1}}function X5(){Z_()}function Z_(){rd=Fy=!1;var i=0;ra!==0&&o6()&&(i=ra);for(var o=ln(),u=null,h=nd;h!==null;){var v=h.next,b=Q_(h,o);b===0?(h.next=null,u===null?nd=v:u.next=v,v===null&&(ds=u)):(u=h,(i!==0||(b&3)!==0)&&(rd=!0)),h=v}Bt!==0&&Bt!==5||cu(i),ra!==0&&(ra=0)}function Q_(i,o){for(var u=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,b=i.pendingLanes&-62914561;0<b;){var E=31-Mn(b),D=1<<E,I=v[E];I===-1?((D&u)===0||(D&h)!==0)&&(v[E]=w4(D,o)):I<=o&&(i.expiredLanes|=D),b&=~D}if(o=at,u=qe,u=sf(i,i===o?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===o&&(Qe===2||Qe===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&mr(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Cl(i,u)){if(o=u&-u,o===i.callbackPriority)return o;switch(h!==null&&mr(h),lm(u)){case 2:case 8:u=UA;break;case 32:u=nf;break;case 268435456:u=VA;break;default:u=nf}return h=J_.bind(null,i),u=zi(u,h),i.callbackPriority=o,i.callbackNode=u,o}return h!==null&&h!==null&&mr(h),i.callbackPriority=2,i.callbackNode=null,2}function J_(i,o){if(Bt!==0&&Bt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(td()&&i.callbackNode!==u)return null;var h=qe;return h=sf(i,i===at?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(D_(i,h,o),Q_(i,ln()),i.callbackNode!=null&&i.callbackNode===u?J_.bind(null,i):null)}function eT(i,o){if(td())return null;D_(i,o,!0)}function W5(){l6(function(){(Ke&6)!==0?zi(IA,X5):Z_()})}function Yy(){if(ra===0){var i=Zo;i===0&&(i=rf,rf<<=1,(rf&261888)===0&&(rf=256)),ra=i}return ra}function tT(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:ff(""+i)}function nT(i,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,i.id&&u.setAttribute("form",i.id),o.parentNode.insertBefore(u,o),i=new FormData(i),u.parentNode.removeChild(u),i}function Z5(i,o,u,h,v){if(o==="submit"&&u&&u.stateNode===v){var b=tT((v[bn]||null).action),E=h.submitter;E&&(o=(o=E[bn]||null)?tT(o.formAction):E.getAttribute("formAction"),o!==null&&(b=o,E=null));var D=new mf("action","action",null,h,v);i.push({event:D,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ra!==0){var I=E?nT(v,E):new FormData(v);py(u,{pending:!0,data:I,method:v.method,action:b},null,I)}}else typeof b=="function"&&(D.preventDefault(),I=E?nT(v,E):new FormData(v),py(u,{pending:!0,data:I,method:v.method,action:b},b,I))},currentTarget:v}]})}}for(var Xy=0;Xy<Pm.length;Xy++){var Wy=Pm[Xy],Q5=Wy.toLowerCase(),J5=Wy[0].toUpperCase()+Wy.slice(1);yr(Q5,"on"+J5)}yr(Rj,"onAnimationEnd"),yr(Dj,"onAnimationIteration"),yr(kj,"onAnimationStart"),yr("dblclick","onDoubleClick"),yr("focusin","onFocus"),yr("focusout","onBlur"),yr(m5,"onTransitionRun"),yr(y5,"onTransitionStart"),yr(v5,"onTransitionCancel"),yr(Lj,"onTransitionEnd"),$o("onMouseEnter",["mouseout","mouseover"]),$o("onMouseLeave",["mouseout","mouseover"]),$o("onPointerEnter",["pointerout","pointerover"]),$o("onPointerLeave",["pointerout","pointerover"]),Ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fu="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(" "),e6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fu));function rT(i,o){o=(o&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],v=h.event;h=h.listeners;e:{var b=void 0;if(o)for(var E=h.length-1;0<=E;E--){var D=h[E],I=D.instance,Z=D.currentTarget;if(D=D.listener,I!==b&&v.isPropagationStopped())break e;b=D,v.currentTarget=Z;try{b(v)}catch(te){gf(te)}v.currentTarget=null,b=I}else for(E=0;E<h.length;E++){if(D=h[E],I=D.instance,Z=D.currentTarget,D=D.listener,I!==b&&v.isPropagationStopped())break e;b=D,v.currentTarget=Z;try{b(v)}catch(te){gf(te)}v.currentTarget=null,b=I}}}}function ze(i,o){var u=o[um];u===void 0&&(u=o[um]=new Set);var h=i+"__bubble";u.has(h)||(iT(o,i,2,!1),u.add(h))}function Zy(i,o,u){var h=0;o&&(h|=4),iT(u,i,h,o)}var id="_reactListening"+Math.random().toString(36).slice(2);function Qy(i){if(!i[id]){i[id]=!0,ZA.forEach(function(u){u!=="selectionchange"&&(e6.has(u)||Zy(u,!1,i),Zy(u,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[id]||(o[id]=!0,Zy("selectionchange",!1,o))}}function iT(i,o,u,h){switch(RT(o)){case 2:var v=E6;break;case 8:v=C6;break;default:v=hv}u=v.bind(null,o,u,i),v=void 0,!gm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(o,u,{capture:!0,passive:v}):i.addEventListener(o,u,!0):v!==void 0?i.addEventListener(o,u,{passive:v}):i.addEventListener(o,u,!1)}function Jy(i,o,u,h,v){var b=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var E=h.tag;if(E===3||E===4){var D=h.stateNode.containerInfo;if(D===v)break;if(E===4)for(E=h.return;E!==null;){var I=E.tag;if((I===3||I===4)&&E.stateNode.containerInfo===v)return;E=E.return}for(;D!==null;){if(E=Do(D),E===null)return;if(I=E.tag,I===5||I===6||I===26||I===27){h=b=E;continue e}D=D.parentNode}}h=h.return}uj(function(){var Z=b,te=ym(u),oe=[];e:{var J=$j.get(i);if(J!==void 0){var ee=mf,me=i;switch(i){case"keypress":if(hf(u)===0)break e;case"keydown":case"keyup":ee=K4;break;case"focusin":me="focus",ee=wm;break;case"focusout":me="blur",ee=wm;break;case"beforeblur":case"afterblur":ee=wm;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=dj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=k4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=W4;break;case Rj:case Dj:case kj:ee=z4;break;case Lj:ee=Q4;break;case"scroll":case"scrollend":ee=R4;break;case"wheel":ee=e5;break;case"copy":case"cut":case"paste":ee=q4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=pj;break;case"toggle":case"beforetoggle":ee=n5}var Ae=(o&4)!==0,rt=!Ae&&(i==="scroll"||i==="scrollend"),G=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||G===null||(ae=Rl(V,G),ae!=null&&Ae.push(du(V,ae,W))),rt)break;V=V.return}0<Ae.length&&(J=new ee(J,me,null,u,te),oe.push({event:J,listeners:Ae}))}}if((o&7)===0){e:{if(J=i==="mouseover"||i==="pointerover",ee=i==="mouseout"||i==="pointerout",J&&u!==mm&&(me=u.relatedTarget||u.fromElement)&&(Do(me)||me[Ro]))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?Do(me):null,me!==null&&(rt=s(me),Ae=me.tag,me!==rt||Ae!==5&&Ae!==27&&Ae!==6)&&(me=null)):(ee=null,me=Z),ee!==me)){if(Ae=dj,ae="onMouseLeave",G="onMouseEnter",V="mouse",(i==="pointerout"||i==="pointerover")&&(Ae=pj,ae="onPointerLeave",G="onPointerEnter",V="pointer"),rt=ee==null?J:Nl(ee),W=me==null?J:Nl(me),J=new Ae(ae,V+"leave",ee,u,te),J.target=rt,J.relatedTarget=W,ae=null,Do(te)===Z&&(Ae=new Ae(G,V+"enter",me,u,te),Ae.target=W,Ae.relatedTarget=rt,ae=Ae),rt=ae,ee&&me)t:{for(Ae=t6,G=ee,V=me,W=0,ae=G;ae;ae=Ae(ae))W++;ae=0;for(var xe=V;xe;xe=Ae(xe))ae++;for(;0<W-ae;)G=Ae(G),W--;for(;0<ae-W;)V=Ae(V),ae--;for(;W--;){if(G===V||V!==null&&G===V.alternate){Ae=G;break t}G=Ae(G),V=Ae(V)}Ae=null}else Ae=null;ee!==null&&aT(oe,J,ee,Ae,!1),me!==null&&rt!==null&&aT(oe,rt,me,Ae,!0)}}e:{if(J=Z?Nl(Z):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var He=wj;else if(xj(J))if(Aj)He=d5;else{He=c5;var ge=u5}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Z&&pm(Z.elementType)&&(He=wj):He=f5;if(He&&(He=He(i,Z))){Sj(oe,He,u,te);break e}ge&&ge(i,J,Z),i==="focusout"&&Z&&J.type==="number"&&Z.memoizedProps.value!=null&&hm(J,"number",J.value)}switch(ge=Z?Nl(Z):window,i){case"focusin":(xj(ge)||ge.contentEditable==="true")&&(Vo=ge,Em=Z,Il=null);break;case"focusout":Il=Em=Vo=null;break;case"mousedown":Cm=!0;break;case"contextmenu":case"mouseup":case"dragend":Cm=!1,Pj(oe,u,te);break;case"selectionchange":if(p5)break;case"keydown":case"keyup":Pj(oe,u,te)}var De;if(jm)e:{switch(i){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else Uo?gj(i,u)&&(Ie="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Ie="onCompositionStart");Ie&&(mj&&u.locale!=="ko"&&(Uo||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&Uo&&(De=cj()):(Ii=te,bm="value"in Ii?Ii.value:Ii.textContent,Uo=!0)),ge=ad(Z,Ie),0<ge.length&&(Ie=new hj(Ie,i,null,u,te),oe.push({event:Ie,listeners:ge}),De?Ie.data=De:(De=bj(u),De!==null&&(Ie.data=De)))),(De=i5?a5(i,u):o5(i,u))&&(Ie=ad(Z,"onBeforeInput"),0<Ie.length&&(ge=new hj("onBeforeInput","beforeinput",null,u,te),oe.push({event:ge,listeners:Ie}),ge.data=De)),Z5(oe,i,Z,u,te)}rT(oe,o)})}function du(i,o,u){return{instance:i,listener:o,currentTarget:u}}function ad(i,o){for(var u=o+"Capture",h=[];i!==null;){var v=i,b=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||b===null||(v=Rl(i,u),v!=null&&h.unshift(du(i,v,b)),v=Rl(i,o),v!=null&&h.push(du(i,v,b))),i.tag===3)return h;i=i.return}return[]}function t6(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function aT(i,o,u,h,v){for(var b=o._reactName,E=[];u!==null&&u!==h;){var D=u,I=D.alternate,Z=D.stateNode;if(D=D.tag,I!==null&&I===h)break;D!==5&&D!==26&&D!==27||Z===null||(I=Z,v?(Z=Rl(u,b),Z!=null&&E.unshift(du(u,Z,I))):v||(Z=Rl(u,b),Z!=null&&E.push(du(u,Z,I)))),u=u.return}E.length!==0&&i.push({event:o,listeners:E})}var n6=/\r\n?/g,r6=/\u0000|\uFFFD/g;function oT(i){return(typeof i=="string"?i:""+i).replace(n6,`
`).replace(r6,"")}function sT(i,o){return o=oT(o),oT(i)===o}function nt(i,o,u,h,v,b){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Bo(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Bo(i,""+h);break;case"className":uf(i,"class",h);break;case"tabIndex":uf(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":uf(i,u,h);break;case"style":sj(i,h,b);break;case"data":if(o!=="object"){uf(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=ff(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="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 b=="function"&&(u==="formAction"?(o!=="input"&&nt(i,o,"name",v.name,v,null),nt(i,o,"formEncType",v.formEncType,v,null),nt(i,o,"formMethod",v.formMethod,v,null),nt(i,o,"formTarget",v.formTarget,v,null)):(nt(i,o,"encType",v.encType,v,null),nt(i,o,"method",v.method,v,null),nt(i,o,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=ff(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=ri);break;case"onScroll":h!=null&&ze("scroll",i);break;case"onScrollEnd":h!=null&&ze("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=ff(""+h),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":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":ze("beforetoggle",i),ze("toggle",i),lf(i,"popover",h);break;case"xlinkActuate":ni(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ni(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ni(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ni(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ni(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ni(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ni(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ni(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ni(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":lf(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=P4.get(u)||u,lf(i,u,h))}}function ev(i,o,u,h,v,b){switch(u){case"style":sj(i,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?Bo(i,h):(typeof h=="number"||typeof h=="bigint")&&Bo(i,""+h);break;case"onScroll":h!=null&&ze("scroll",i);break;case"onScrollEnd":h!=null&&ze("scrollend",i);break;case"onClick":h!=null&&(i.onclick=ri);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!QA.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),o=u.slice(2,v?u.length-7:void 0),b=i[bn]||null,b=b!=null?b[u]:null,typeof b=="function"&&i.removeEventListener(o,b,v),typeof h=="function")){typeof b!="function"&&b!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(o,h,v);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):lf(i,u,h)}}}function nn(i,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",i),ze("load",i);var h=!1,v=!1,b;for(b in u)if(u.hasOwnProperty(b)){var E=u[b];if(E!=null)switch(b){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:nt(i,o,b,E,u,null)}}v&&nt(i,o,"srcSet",u.srcSet,u,null),h&&nt(i,o,"src",u.src,u,null);return;case"input":ze("invalid",i);var D=b=E=v=null,I=null,Z=null;for(h in u)if(u.hasOwnProperty(h)){var te=u[h];if(te!=null)switch(h){case"name":v=te;break;case"type":E=te;break;case"checked":I=te;break;case"defaultChecked":Z=te;break;case"value":b=te;break;case"defaultValue":D=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,o));break;default:nt(i,o,h,te,u,null)}}rj(i,b,D,I,Z,E,v,!1);return;case"select":ze("invalid",i),h=E=b=null;for(v in u)if(u.hasOwnProperty(v)&&(D=u[v],D!=null))switch(v){case"value":b=D;break;case"defaultValue":E=D;break;case"multiple":h=D;default:nt(i,o,v,D,u,null)}o=b,u=E,i.multiple=!!h,o!=null?zo(i,!!h,o,!1):u!=null&&zo(i,!!h,u,!0);return;case"textarea":ze("invalid",i),b=v=h=null;for(E in u)if(u.hasOwnProperty(E)&&(D=u[E],D!=null))switch(E){case"value":h=D;break;case"defaultValue":v=D;break;case"children":b=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(91));break;default:nt(i,o,E,D,u,null)}aj(i,h,v,b);return;case"option":for(I in u)if(u.hasOwnProperty(I)&&(h=u[I],h!=null))switch(I){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:nt(i,o,I,h,u,null)}return;case"dialog":ze("beforetoggle",i),ze("toggle",i),ze("cancel",i),ze("close",i);break;case"iframe":case"object":ze("load",i);break;case"video":case"audio":for(h=0;h<fu.length;h++)ze(fu[h],i);break;case"image":ze("error",i),ze("load",i);break;case"details":ze("toggle",i);break;case"embed":case"source":case"link":ze("error",i),ze("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)&&(h=u[Z],h!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:nt(i,o,Z,h,u,null)}return;default:if(pm(o)){for(te in u)u.hasOwnProperty(te)&&(h=u[te],h!==void 0&&ev(i,o,te,h,u,void 0));return}}for(D in u)u.hasOwnProperty(D)&&(h=u[D],h!=null&&nt(i,o,D,h,u,null))}function i6(i,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,b=null,E=null,D=null,I=null,Z=null,te=null;for(ee in u){var oe=u[ee];if(u.hasOwnProperty(ee)&&oe!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":I=oe;default:h.hasOwnProperty(ee)||nt(i,o,ee,null,h,oe)}}for(var J in h){var ee=h[J];if(oe=u[J],h.hasOwnProperty(J)&&(ee!=null||oe!=null))switch(J){case"type":b=ee;break;case"name":v=ee;break;case"checked":Z=ee;break;case"defaultChecked":te=ee;break;case"value":E=ee;break;case"defaultValue":D=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,o));break;default:ee!==oe&&nt(i,o,J,ee,h,oe)}}dm(i,E,D,I,Z,te,b,v);return;case"select":ee=E=D=J=null;for(b in u)if(I=u[b],u.hasOwnProperty(b)&&I!=null)switch(b){case"value":break;case"multiple":ee=I;default:h.hasOwnProperty(b)||nt(i,o,b,null,h,I)}for(v in h)if(b=h[v],I=u[v],h.hasOwnProperty(v)&&(b!=null||I!=null))switch(v){case"value":J=b;break;case"defaultValue":D=b;break;case"multiple":E=b;default:b!==I&&nt(i,o,v,b,h,I)}o=D,u=E,h=ee,J!=null?zo(i,!!u,J,!1):!!h!=!!u&&(o!=null?zo(i,!!u,o,!0):zo(i,!!u,u?[]:"",!1));return;case"textarea":ee=J=null;for(D in u)if(v=u[D],u.hasOwnProperty(D)&&v!=null&&!h.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:nt(i,o,D,null,h,v)}for(E in h)if(v=h[E],b=u[E],h.hasOwnProperty(E)&&(v!=null||b!=null))switch(E){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!==b&&nt(i,o,E,v,h,b)}ij(i,J,ee);return;case"option":for(var me in u)if(J=u[me],u.hasOwnProperty(me)&&J!=null&&!h.hasOwnProperty(me))switch(me){case"selected":i.selected=!1;break;default:nt(i,o,me,null,h,J)}for(I in h)if(J=h[I],ee=u[I],h.hasOwnProperty(I)&&J!==ee&&(J!=null||ee!=null))switch(I){case"selected":i.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:nt(i,o,I,J,h,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&&!h.hasOwnProperty(Ae)&&nt(i,o,Ae,null,h,J);for(Z in h)if(J=h[Z],ee=u[Z],h.hasOwnProperty(Z)&&J!==ee&&(J!=null||ee!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,o));break;default:nt(i,o,Z,J,h,ee)}return;default:if(pm(o)){for(var rt in u)J=u[rt],u.hasOwnProperty(rt)&&J!==void 0&&!h.hasOwnProperty(rt)&&ev(i,o,rt,void 0,h,J);for(te in h)J=h[te],ee=u[te],!h.hasOwnProperty(te)||J===ee||J===void 0&&ee===void 0||ev(i,o,te,J,h,ee);return}}for(var G in u)J=u[G],u.hasOwnProperty(G)&&J!=null&&!h.hasOwnProperty(G)&&nt(i,o,G,null,h,J);for(oe in h)J=h[oe],ee=u[oe],!h.hasOwnProperty(oe)||J===ee||J==null&&ee==null||nt(i,o,oe,J,h,ee)}function lT(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,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var v=u[h],b=v.transferSize,E=v.initiatorType,D=v.duration;if(b&&D&&lT(E)){for(E=0,D=v.responseEnd,h+=1;h<u.length;h++){var I=u[h],Z=I.startTime;if(Z>D)break;var te=I.transferSize,oe=I.initiatorType;te&&lT(oe)&&(I=I.responseEnd,E+=te*(I<D?1:(D-Z)/(I-Z)))}if(--h,o+=8*(b+E)/(v.duration/1e3),i++,10<i)break}}if(0<i)return o/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var tv=null,nv=null;function od(i){return i.nodeType===9?i:i.ownerDocument}function uT(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 cT(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function rv(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var iv=null;function o6(){var i=window.event;return i&&i.type==="popstate"?i===iv?!1:(iv=i,!0):(iv=null,!1)}var fT=typeof setTimeout=="function"?setTimeout:void 0,s6=typeof clearTimeout=="function"?clearTimeout:void 0,dT=typeof Promise=="function"?Promise:void 0,l6=typeof queueMicrotask=="function"?queueMicrotask:typeof dT<"u"?function(i){return dT.resolve(null).then(i).catch(u6)}:fT;function u6(i){setTimeout(function(){throw i})}function ia(i){return i==="head"}function hT(i,o){var u=o,h=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(h===0){i.removeChild(v),ys(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")hu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,hu(u);for(var b=u.firstChild;b;){var E=b.nextSibling,D=b.nodeName;b[Pl]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=E}}else u==="body"&&hu(i.ownerDocument.body);u=v}while(u);ys(o)}function pT(i,o){var u=i;i=0;do{var h=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),h&&h.nodeType===8)if(u=h.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=h}while(u)}function av(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":av(u),cm(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function c6(i,o,u,h){for(;i.nodeType===1;){var v=u;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Pl])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(b=i.getAttribute("rel"),b==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(b!==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(b=i.getAttribute("src"),(b!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&b&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var b=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===b)return i}else return i;if(i=nr(i.nextSibling),i===null)break}return null}function f6(i,o,u){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=nr(i.nextSibling),i===null))return null;return i}function mT(i,o){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=nr(i.nextSibling),i===null))return null;return i}function ov(i){return i.data==="$?"||i.data==="$~"}function sv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function d6(i,o){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=o;else if(i.data!=="$?"||u.readyState!=="loading")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function nr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return i}var lv=null;function yT(i){i=i.nextSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(o===0)return nr(i.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}i=i.nextSibling}return null}function vT(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return i;o--}else u!=="/$"&&u!=="/&"||o++}i=i.previousSibling}return null}function gT(i,o,u){switch(o=od(u),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function hu(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);cm(i)}var rr=new Map,bT=new Set;function sd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var bi=K.d;K.d={f:h6,r:p6,D:m6,C:y6,L:v6,m:g6,X:x6,S:b6,M:S6};function h6(){var i=bi.f(),o=Qf();return i||o}function p6(i){var o=ko(i);o!==null&&o.tag===5&&o.type==="form"?LO(o):bi.r(i)}var hs=typeof document>"u"?null:document;function xT(i,o,u){var h=hs;if(h&&typeof o=="string"&&o){var v=Xn(o);v='link[rel="'+i+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),bT.has(v)||(bT.add(v),i={rel:i,crossOrigin:u,href:o},h.querySelector(v)===null&&(o=h.createElement("link"),nn(o,"link",i),Ft(o),h.head.appendChild(o)))}}function m6(i){bi.D(i),xT("dns-prefetch",i,null)}function y6(i,o){bi.C(i,o),xT("preconnect",i,o)}function v6(i,o,u){bi.L(i,o,u);var h=hs;if(h&&i&&o){var v='link[rel="preload"][as="'+Xn(o)+'"]';o==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+Xn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+Xn(u.imageSizes)+'"]')):v+='[href="'+Xn(i)+'"]';var b=v;switch(o){case"style":b=ps(i);break;case"script":b=ms(i)}rr.has(b)||(i=m({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),rr.set(b,i),h.querySelector(v)!==null||o==="style"&&h.querySelector(pu(b))||o==="script"&&h.querySelector(mu(b))||(o=h.createElement("link"),nn(o,"link",i),Ft(o),h.head.appendChild(o)))}}function g6(i,o){bi.m(i,o);var u=hs;if(u&&i){var h=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+Xn(h)+'"][href="'+Xn(i)+'"]',b=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=ms(i)}if(!rr.has(b)&&(i=m({rel:"modulepreload",href:i},o),rr.set(b,i),u.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(mu(b)))return}h=u.createElement("link"),nn(h,"link",i),Ft(h),u.head.appendChild(h)}}}function b6(i,o,u){bi.S(i,o,u);var h=hs;if(h&&i){var v=Lo(h).hoistableStyles,b=ps(i);o=o||"default";var E=v.get(b);if(!E){var D={loading:0,preload:null};if(E=h.querySelector(pu(b)))D.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":o},u),(u=rr.get(b))&&uv(i,u);var I=E=h.createElement("link");Ft(I),nn(I,"link",i),I._p=new Promise(function(Z,te){I.onload=Z,I.onerror=te}),I.addEventListener("load",function(){D.loading|=1}),I.addEventListener("error",function(){D.loading|=2}),D.loading|=4,ld(E,o,h)}E={type:"stylesheet",instance:E,count:1,state:D},v.set(b,E)}}}function x6(i,o){bi.X(i,o);var u=hs;if(u&&i){var h=Lo(u).hoistableScripts,v=ms(i),b=h.get(v);b||(b=u.querySelector(mu(v)),b||(i=m({src:i,async:!0},o),(o=rr.get(v))&&cv(i,o),b=u.createElement("script"),Ft(b),nn(b,"link",i),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(v,b))}}function S6(i,o){bi.M(i,o);var u=hs;if(u&&i){var h=Lo(u).hoistableScripts,v=ms(i),b=h.get(v);b||(b=u.querySelector(mu(v)),b||(i=m({src:i,async:!0,type:"module"},o),(o=rr.get(v))&&cv(i,o),b=u.createElement("script"),Ft(b),nn(b,"link",i),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(v,b))}}function ST(i,o,u,h){var v=(v=we.current)?sd(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"?(o=ps(u.href),u=Lo(v).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=ps(u.href);var b=Lo(v).hoistableStyles,E=b.get(i);if(E||(v=v.ownerDocument||v,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(i,E),(b=v.querySelector(pu(i)))&&!b._p&&(E.instance=b,E.state.loading=5),rr.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},rr.set(i,u),b||w6(v,i,u,E.state))),o&&h===null)throw Error(r(528,""));return E}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=ms(u),u=Lo(v).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function ps(i){return'href="'+Xn(i)+'"'}function pu(i){return'link[rel="stylesheet"]['+i+"]"}function wT(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function w6(i,o,u,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),nn(o,"link",u),Ft(o),i.head.appendChild(o))}function ms(i){return'[src="'+Xn(i)+'"]'}function mu(i){return"script[async]"+i}function AT(i,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Xn(u.href)+'"]');if(h)return o.instance=h,Ft(h),h;var v=m({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Ft(h),nn(h,"style",v),ld(h,u.precedence,i),o.instance=h;case"stylesheet":v=ps(u.href);var b=i.querySelector(pu(v));if(b)return o.state.loading|=4,o.instance=b,Ft(b),b;h=wT(u),(v=rr.get(v))&&uv(h,v),b=(i.ownerDocument||i).createElement("link"),Ft(b);var E=b;return E._p=new Promise(function(D,I){E.onload=D,E.onerror=I}),nn(b,"link",h),o.state.loading|=4,ld(b,u.precedence,i),o.instance=b;case"script":return b=ms(u.src),(v=i.querySelector(mu(b)))?(o.instance=v,Ft(v),v):(h=u,(v=rr.get(b))&&(h=m({},u),cv(h,v)),i=i.ownerDocument||i,v=i.createElement("script"),Ft(v),nn(v,"link",h),i.head.appendChild(v),o.instance=v);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,ld(h,u.precedence,i));return o.instance}function ld(i,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,b=v,E=0;E<h.length;E++){var D=h[E];if(D.dataset.precedence===o)b=D;else if(b!==v)break}b?b.parentNode.insertBefore(i,b.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(i,o.firstChild))}function uv(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function cv(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var ud=null;function jT(i,o,u){if(ud===null){var h=new Map,v=ud=new Map;v.set(u,h)}else v=ud,h=v.get(u),h||(h=new Map,v.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),v=0;v<u.length;v++){var b=u[v];if(!(b[Pl]||b[Qt]||i==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var E=b.getAttribute(o)||"";E=i+E;var D=h.get(E);D?D.push(b):h.set(E,[b])}}return h}function OT(i,o,u){i=i.ownerDocument||i,i.head.insertBefore(u,o==="title"?i.querySelector("head > title"):null)}function A6(i,o,u){if(u===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function _T(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function j6(i,o,u,h){if(u.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=ps(h.href),b=o.querySelector(pu(v));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(i.count++,i=cd.bind(i),o.then(i,i)),u.state.loading|=4,u.instance=b,Ft(b);return}b=o.ownerDocument||o,h=wT(h),(v=rr.get(v))&&uv(h,v),b=b.createElement("link"),Ft(b);var E=b;E._p=new Promise(function(D,I){E.onload=D,E.onerror=I}),nn(b,"link",h),u.instance=b}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=cd.bind(i),o.addEventListener("load",u),o.addEventListener("error",u))}}var fv=0;function O6(i,o){return i.stylesheets&&i.count===0&&dd(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var h=setTimeout(function(){if(i.stylesheets&&dd(i,i.stylesheets),i.unsuspend){var b=i.unsuspend;i.unsuspend=null,b()}},6e4+o);0<i.imgBytes&&fv===0&&(fv=62500*a6());var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&dd(i,i.stylesheets),i.unsuspend)){var b=i.unsuspend;i.unsuspend=null,b()}},(i.imgBytes>fv?50:800)+o);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function cd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var fd=null;function dd(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,fd=new Map,o.forEach(_6,i),fd=null,cd.call(i))}function _6(i,o){if(!(o.state.loading&4)){var u=fd.get(i);if(u)var h=u.get(null);else{u=new Map,fd.set(i,u);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<v.length;b++){var E=v[b];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(u.set(E.dataset.precedence,E),h=E)}h&&u.set(null,h)}v=o.instance,E=v.getAttribute("data-precedence"),b=u.get(E)||h,b===h&&u.set(null,v),u.set(E,v),this.count++,h=cd.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),b?b.parentNode.insertBefore(v,b.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),o.state.loading|=4}}var yu={$$typeof:T,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function T6(i,o,u,h,v,b,E,D,I){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=om(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=om(0),this.hiddenUpdates=om(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=b,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function TT(i,o,u,h,v,b,E,D,I,Z,te,oe){return i=new T6(i,o,u,E,I,Z,te,oe,D),o=1,b===!0&&(o|=24),b=Nn(3,null,null,o),i.current=b,b.stateNode=i,o=Hm(),o.refCount++,i.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:u,cache:o},Ym(b),i}function ET(i){return i?(i=Fo,i):Fo}function CT(i,o,u,h,v,b){v=ET(v),h.context===null?h.context=v:h.pendingContext=v,h=Ki(o),h.payload={element:u},b=b===void 0?null:b,b!==null&&(h.callback=b),u=Yi(i,h,o),u!==null&&(On(u,i,o),Yl(u,i,o))}function MT(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function dv(i,o){MT(i,o),(i=i.alternate)&&MT(i,o)}function PT(i){if(i.tag===13||i.tag===31){var o=$a(i,67108864);o!==null&&On(o,i,67108864),dv(i,67108864)}}function NT(i){if(i.tag===13||i.tag===31){var o=$n();o=sm(o);var u=$a(i,o);u!==null&&On(u,i,o),dv(i,o)}}var hd=!0;function E6(i,o,u,h){var v=z.T;z.T=null;var b=K.p;try{K.p=2,hv(i,o,u,h)}finally{K.p=b,z.T=v}}function C6(i,o,u,h){var v=z.T;z.T=null;var b=K.p;try{K.p=8,hv(i,o,u,h)}finally{K.p=b,z.T=v}}function hv(i,o,u,h){if(hd){var v=pv(h);if(v===null)Jy(i,o,h,pd,u),DT(i,h);else if(P6(v,i,o,u,h))h.stopPropagation();else if(DT(i,h),o&4&&-1<M6.indexOf(i)){for(;v!==null;){var b=ko(v);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var E=Na(b.pendingLanes);if(E!==0){var D=b;for(D.pendingLanes|=2,D.entangledLanes|=2;E;){var I=1<<31-Mn(E);D.entanglements[1]|=I,E&=~I}qr(b),(Ke&6)===0&&(Wf=ln()+500,cu(0))}}break;case 31:case 13:D=$a(b,2),D!==null&&On(D,b,2),Qf(),dv(b,2)}if(b=pv(h),b===null&&Jy(i,o,h,pd,u),b===v)break;v=b}v!==null&&h.stopPropagation()}else Jy(i,o,h,null,u)}}function pv(i){return i=ym(i),mv(i)}var pd=null;function mv(i){if(pd=null,i=Do(i),i!==null){var o=s(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=l(o),i!==null)return i;i=null}else if(u===31){if(i=c(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return pd=i,null}function RT(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(tf()){case IA:return 2;case UA:return 8;case nf:case y4:return 32;case VA:return 268435456;default:return 32}default:return 32}}var yv=!1,aa=null,oa=null,sa=null,vu=new Map,gu=new Map,la=[],M6="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 DT(i,o){switch(i){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":vu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":gu.delete(o.pointerId)}}function bu(i,o,u,h,v,b){return i===null||i.nativeEvent!==b?(i={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:b,targetContainers:[v]},o!==null&&(o=ko(o),o!==null&&PT(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),i)}function P6(i,o,u,h,v){switch(o){case"focusin":return aa=bu(aa,i,o,u,h,v),!0;case"dragenter":return oa=bu(oa,i,o,u,h,v),!0;case"mouseover":return sa=bu(sa,i,o,u,h,v),!0;case"pointerover":var b=v.pointerId;return vu.set(b,bu(vu.get(b)||null,i,o,u,h,v)),!0;case"gotpointercapture":return b=v.pointerId,gu.set(b,bu(gu.get(b)||null,i,o,u,h,v)),!0}return!1}function kT(i){var o=Do(i.target);if(o!==null){var u=s(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){i.blockedOn=o,XA(i.priority,function(){NT(u)});return}}else if(o===31){if(o=c(u),o!==null){i.blockedOn=o,XA(i.priority,function(){NT(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function md(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=pv(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);mm=h,u.target.dispatchEvent(h),mm=null}else return o=ko(u),o!==null&&PT(o),i.blockedOn=u,!1;o.shift()}return!0}function LT(i,o,u){md(i)&&u.delete(o)}function N6(){yv=!1,aa!==null&&md(aa)&&(aa=null),oa!==null&&md(oa)&&(oa=null),sa!==null&&md(sa)&&(sa=null),vu.forEach(LT),gu.forEach(LT)}function yd(i,o){i.blockedOn===o&&(i.blockedOn=null,yv||(yv=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,N6)))}var vd=null;function $T(i){vd!==i&&(vd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vd===i&&(vd=null);for(var o=0;o<i.length;o+=3){var u=i[o],h=i[o+1],v=i[o+2];if(typeof h!="function"){if(mv(h||u)===null)continue;break}var b=ko(u);b!==null&&(i.splice(o,3),o-=3,py(b,{pending:!0,data:v,method:u.method,action:h},h,v))}}))}function ys(i){function o(I){return yd(I,i)}aa!==null&&yd(aa,i),oa!==null&&yd(oa,i),sa!==null&&yd(sa,i),vu.forEach(o),gu.forEach(o);for(var u=0;u<la.length;u++){var h=la[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<la.length&&(u=la[0],u.blockedOn===null);)kT(u),u.blockedOn===null&&la.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var v=u[h],b=u[h+1],E=v[bn]||null;if(typeof b=="function")E||$T(u);else if(E){var D=null;if(b&&b.hasAttribute("formAction")){if(v=b,E=b[bn]||null)D=E.formAction;else if(mv(v)!==null)continue}else D=E.action;typeof D=="function"?u[h+1]=D:(u.splice(h,3),h-=3),$T(u)}}}function zT(){function i(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(E){return v=E})},focusReset:"manual",scroll:"manual"})}function o(){v!==null&&(v(),v=null),h||setTimeout(u,20)}function u(){if(!h&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){h=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),v!==null&&(v(),v=null)}}}function vv(i){this._internalRoot=i}gd.prototype.render=vv.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=$n();CT(u,h,i,o,null,null)},gd.prototype.unmount=vv.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;CT(i.current,2,null,i,null,null),Qf(),o[Ro]=null}};function gd(i){this._internalRoot=i}gd.prototype.unstable_scheduleHydration=function(i){if(i){var o=YA();i={blockedOn:null,target:i,priority:o};for(var u=0;u<la.length&&o!==0&&o<la[u].priority;u++);la.splice(u,0,i),u===0&&kT(i)}};var BT=t.version;if(BT!=="19.2.7")throw Error(r(527,BT,"19.2.7"));K.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?p(i):null,i=i===null?null:i.stateNode,i};var R6={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bd.isDisabled&&bd.supportsFiber)try{El=bd.inject(R6),Cn=bd}catch{}}return Su.createRoot=function(i,o){if(!a(i))throw Error(r(299));var u=!1,h="",v=FO,b=KO,E=YO;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(E=o.onRecoverableError)),o=TT(i,1,!1,null,null,u,h,null,v,b,E,zT),i[Ro]=o.current,Qy(i),new vv(o)},Su.hydrateRoot=function(i,o,u){if(!a(i))throw Error(r(299));var h=!1,v="",b=FO,E=KO,D=YO,I=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(E=u.onCaughtError),u.onRecoverableError!==void 0&&(D=u.onRecoverableError),u.formState!==void 0&&(I=u.formState)),o=TT(i,1,!0,o,u??null,h,v,I,b,E,D,zT),o.context=ET(null),u=o.current,h=$n(),h=sm(h),v=Ki(h),v.callback=null,Yi(u,v,h),u=h,o.current.lanes=u,Ml(o,u),qr(o),i[Ro]=o.current,Qy(i),new gd(o)},Su.version="19.2.7",Su}var XT;function V6(){if(XT)return xv.exports;XT=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(),xv.exports=U6(),xv.exports}var H6=V6();/**
* 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 KS=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,_k=/^[\\/]{2}/;function G6(e,t){return t+e.replace(/\\/g,"/")}var WT="popstate";function ZT(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function F6(e={}){function t(r,a){var d;let s=(d=a.state)==null?void 0:d.masked,{pathname:l,search:c,hash:f}=s||r.location;return F0("",{pathname:l,search:c,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:Ju(a)}return Y6(t,n,null,e)}function xt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Er(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function K6(){return Math.random().toString(36).substring(2,10)}function QT(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 F0(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?fl(t):t,state:n,key:t&&t.key||r||K6(),mask:a}}function Ju({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 fl(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 Y6(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,c="POP",f=null,d=p();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function p(){return(l.state||{idx:null}).idx}function m(){c="POP";let x=p(),j=x==null?null:x-d;d=x,f&&f({action:c,location:w.location,delta:j})}function g(x,j){c="PUSH";let _=ZT(x)?x:F0(w.location,x,j);d=p()+1;let T=QT(_,d),M=w.createHref(_.mask||_);try{l.pushState(T,"",M)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(M)}s&&f&&f({action:c,location:w.location,delta:1})}function S(x,j){c="REPLACE";let _=ZT(x)?x:F0(w.location,x,j);d=p();let T=QT(_,d),M=w.createHref(_.mask||_);l.replaceState(T,"",M),s&&f&&f({action:c,location:w.location,delta:0})}function A(x){return X6(a,x)}let w={get action(){return c},get location(){return e(a,l)},listen(x){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(WT,m),f=x,()=>{a.removeEventListener(WT,m),f=null}},createHref(x){return t(a,x)},createURL:A,encodeLocation(x){let j=A(x);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:g,replace:S,go(x){return l.go(x)}};return w}function X6(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),xt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Ju(t);return a=a.replace(/ $/,"%20"),!n&&_k.test(a)&&(a=r+a),new URL(a,r)}function Tk(e,t,n="/"){return W6(e,t,n,!1)}function W6(e,t,n,r,a){let s=typeof t=="string"?fl(t):t,l=Ci(s.pathname||"/",n);if(l==null)return null;let c=Z6(e),f=null,d=l8(l);for(let p=0;f==null&&p<c.length;++p)f=s8(c[p],d,r);return f}function Z6(e){let t=Ek(e);return Q6(t),t}function Ek(e,t=[],n=[],r="",a=!1){let s=(l,c,f=a,d)=>{let p={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&f)return;xt(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let m=Or([r,p.relativePath]),g=n.concat(p);l.children&&l.children.length>0&&(xt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Ek(l.children,t,g,m,f)),!(l.path==null&&!l.index)&&t.push({path:m,score:a8(m,l.index),routesMeta:g.map((S,A)=>{let[w,x]=Pk(S.relativePath,S.caseSensitive,A===g.length-1);return{...S,matcher:w,compiledParams:x}})})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))s(l,c);else for(let d of Ck(l.path))s(l,c,!0,d)}),t}function Ck(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=Ck(r.join("/")),c=[];return c.push(...l.map(f=>f===""?s:[s,f].join("/"))),a&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function Q6(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 J6=/^:[\w-]+$/,e8=3,t8=2,n8=1,r8=10,i8=-2,JT=e=>e==="*";function a8(e,t){let n=e.split("/"),r=n.length;return n.some(JT)&&(r+=i8),t&&(r+=t8),n.filter(a=>!JT(a)).reduce((a,s)=>a+(J6.test(s)?e8:s===""?n8:r8),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 s8(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",m={path:f.relativePath,caseSensitive:f.caseSensitive,end:d},g=f.matcher&&f.compiledParams?Mk(m,p,f.matcher,f.compiledParams):Jd(m,p),S=f.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=Jd({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(a,g.params),l.push({params:a,pathname:Or([s,g.pathname]),pathnameBase:f8(Or([s,g.pathnameBase])),route:S}),g.pathnameBase!=="/"&&(s=Or([s,g.pathnameBase]))}return l}function Jd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Pk(e.path,e.caseSensitive,e.end);return Mk(e,t,n,r)}function Mk(e,t,n,r){let a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:m},g)=>{if(p==="*"){let A=c[g]||"";l=s.slice(0,s.length-A.length).replace(/(.)\/+$/,"$1")}const S=c[g];return m&&!S?d[p]=void 0:d[p]=(S||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function Pk(e,t=!1,n=!0){Er(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,d,p)=>{if(r.push({paramName:c,isOptional:f!=null}),f){let m=p.charAt(d+l.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 l8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Er(!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 u8(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?fl(e):e,s;return n?(n=Nk(n),n.startsWith("/")?s=eE(n.substring(1),"/"):s=eE(n,t)):s=t,{pathname:s,search:d8(r),hash:h8(a)}}function eE(e,t){let n=eh(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function jv(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 c8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function YS(e){let t=c8(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function pp(e,t,n,r=!1){let a;typeof e=="string"?a=fl(e):(a={...e},xt(!a.pathname||!a.pathname.includes("?"),jv("?","pathname","search",a)),xt(!a.pathname||!a.pathname.includes("#"),jv("#","pathname","hash",a)),xt(!a.search||!a.search.includes("#"),jv("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),m-=1;a.pathname=g.join("/")}c=m>=0?t[m]:"/"}let f=u8(a,c),d=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||p)&&(f.pathname+="/"),f}var Nk=e=>e.replace(/[\\/]{2,}/g,"/"),Or=e=>Nk(e.join("/")),eh=e=>e.replace(/\/+$/,""),f8=e=>eh(e).replace(/^\/*/,"/"),d8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,h8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,p8=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 m8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function y8(e){let t=e.map(n=>n.route.path).filter(Boolean);return Or(t)||"/"}var Rk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dk(e,t){let n=e;if(typeof n!="string"||!KS.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Rk)try{let s=new URL(window.location.href),l=_k.test(n)?new URL(G6(n,s.protocol)):new URL(n),c=Ci(l.pathname,t);l.origin===s.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{Er(!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 kk=["POST","PUT","PATCH","DELETE"];new Set(kk);var v8=["GET",...kk];new Set(v8);var g8=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function b8(e){try{return g8.includes(new URL(e).protocol)}catch{return!1}}var dl=N.createContext(null);dl.displayName="DataRouter";var mp=N.createContext(null);mp.displayName="DataRouterState";var Lk=N.createContext(!1);function x8(){return N.useContext(Lk)}var $k=N.createContext({isTransitioning:!1});$k.displayName="ViewTransition";var S8=N.createContext(new Map);S8.displayName="Fetchers";var w8=N.createContext(null);w8.displayName="Await";var Kn=N.createContext(null);Kn.displayName="Navigation";var qc=N.createContext(null);qc.displayName="Location";var Rr=N.createContext({outlet:null,matches:[],isDataRoute:!1});Rr.displayName="Route";var XS=N.createContext(null);XS.displayName="RouteError";var zk="REACT_ROUTER_ERROR",A8="REDIRECT",j8="ROUTE_ERROR_RESPONSE";function O8(e){if(e.startsWith(`${zk}:${A8}:{`))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 _8(e){if(e.startsWith(`${zk}:${j8}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new p8(t.status,t.statusText,t.data)}catch{}}function T8(e,{relative:t}={}){xt(hl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=N.useContext(Kn),{hash:a,pathname:s,search:l}=Ic(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:Or([n,s])),r.createHref({pathname:c,search:l,hash:a})}function hl(){return N.useContext(qc)!=null}function Dr(){return xt(hl(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(qc).location}var Bk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function qk(e){N.useContext(Kn).static||N.useLayoutEffect(e)}function WS(){let{isDataRoute:e}=N.useContext(Rr);return e?U8():E8()}function E8(){xt(hl(),"useNavigate() may be used only in the context of a <Router> component.");let e=N.useContext(dl),{basename:t,navigator:n}=N.useContext(Kn),{matches:r}=N.useContext(Rr),{pathname:a}=Dr(),s=JSON.stringify(YS(r)),l=N.useRef(!1);return qk(()=>{l.current=!0}),N.useCallback((f,d={})=>{if(Er(l.current,Bk),!l.current)return;if(typeof f=="number"){n.go(f);return}let p=pp(f,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Or([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,s,a,e])}var C8=N.createContext(null);function M8(e){let t=N.useContext(Rr).outlet;return N.useMemo(()=>t&&N.createElement(C8.Provider,{value:e},t),[t,e])}function Ic(e,{relative:t}={}){let{matches:n}=N.useContext(Rr),{pathname:r}=Dr(),a=JSON.stringify(YS(n));return N.useMemo(()=>pp(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function P8(e,t){return Ik(e,t)}function Ik(e,t,n){var x;xt(hl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=N.useContext(Kn),{matches:a}=N.useContext(Rr),s=a[a.length-1],l=s?s.params:{},c=s?s.pathname:"/",f=s?s.pathnameBase:"/",d=s&&s.route;{let j=d&&d.path||"";Vk(c,!d||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${j}">) 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="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let p=Dr(),m;if(t){let j=typeof t=="string"?fl(t):t;xt(f==="/"||((x=j.pathname)==null?void 0:x.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 "${j.pathname}" was given in the \`location\` prop.`),m=j}else m=p;let g=m.pathname||"/",S=g;if(f!=="/"){let j=f.replace(/^\//,"").split("/");S="/"+g.replace(/^\//,"").split("/").slice(j.length).join("/")}let A=n&&n.state.matches.length?n.state.matches.map(j=>Object.assign(j,{route:n.manifest[j.route.id]||j.route})):Tk(e,{pathname:S});Er(d||A!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Er(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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=L8(A&&A.map(j=>Object.assign({},j,{params:Object.assign({},l,j.params),pathname:Or([f,r.encodeLocation?r.encodeLocation(j.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?f:Or([f,r.encodeLocation?r.encodeLocation(j.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),a,n);return t&&w?N.createElement(qc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...m},navigationType:"POP"}},w):w}function N8(){let e=I8(),t=m8(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},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:s},"ErrorBoundary")," or"," ",N.createElement("code",{style:s},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:a},n):null,l)}var R8=N.createElement(N8,null),Uk=class extends N.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=_8(e.digest);n&&(e=n)}let t=e!==void 0?N.createElement(Rr.Provider,{value:this.props.routeContext},N.createElement(XS.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?N.createElement(D8,{error:e},t):t}};Uk.contextType=Lk;var Ov=new WeakMap;function D8({children:e,error:t}){let{basename:n}=N.useContext(Kn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=O8(t.digest);if(r){let a=Ov.get(t);if(a)throw a;let s=Dk(r.location,n),l=s.absoluteURL||s.to;if(b8(l))throw new Error("Invalid redirect location");if(Rk&&!Ov.get(t))if(s.isExternal||r.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Ov.set(t,c),c}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function k8({routeContext:e,match:t,children:n}){let r=N.useContext(dl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(Rr.Provider,{value:e},n)}function L8(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,s=r==null?void 0:r.errors;if(s!=null){let p=a.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);xt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,p+1))}let l=!1,c=-1;if(n&&r){l=r.renderFallback;for(let p=0;p<a.length;p++){let m=a[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(c=p),m.route.id){let{loaderData:g,errors:S}=r,A=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!S||S[m.route.id]===void 0);if(m.route.lazy||A){n.isStatic&&(l=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let f=n==null?void 0:n.onError,d=r&&f?(p,m)=>{var g,S;f(p,{location:r.location,params:((S=(g=r.matches)==null?void 0:g[0])==null?void 0:S.params)??{},pattern:y8(r.matches),errorInfo:m})}:void 0;return a.reduceRight((p,m,g)=>{let S,A=!1,w=null,x=null;r&&(S=s&&m.route.id?s[m.route.id]:void 0,w=m.route.errorElement||R8,l&&(c<0&&g===0?(Vk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,x=null):c===g&&(A=!0,x=m.route.hydrateFallbackElement||null)));let j=t.concat(a.slice(0,g+1)),_=()=>{let T;return S?T=w:A?T=x:m.route.Component?T=N.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=p,N.createElement(k8,{match:m,routeContext:{outlet:p,matches:j,isDataRoute:r!=null},children:T})};return r&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?N.createElement(Uk,{location:r.location,revalidation:r.revalidation,component:w,error:S,children:_(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:d}):_()},null)}function ZS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $8(e){let t=N.useContext(dl);return xt(t,ZS(e)),t}function z8(e){let t=N.useContext(mp);return xt(t,ZS(e)),t}function B8(e){let t=N.useContext(Rr);return xt(t,ZS(e)),t}function QS(e){let t=B8(e),n=t.matches[t.matches.length-1];return xt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function q8(){return QS("useRouteId")}function I8(){var r;let e=N.useContext(XS),t=z8("useRouteError"),n=QS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function U8(){let{router:e}=$8("useNavigate"),t=QS("useNavigate"),n=N.useRef(!1);return qk(()=>{n.current=!0}),N.useCallback(async(a,s={})=>{Er(n.current,Bk),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var tE={};function Vk(e,t,n){!t&&!tE[e]&&(tE[e]=!0,Er(!1,n))}N.memo(V8);function V8({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:s}){return Ik(e,void 0,{manifest:t,state:r,isStatic:a,onError:s})}function JS({to:e,replace:t,state:n,relative:r}){xt(hl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=N.useContext(Kn);Er(!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:s}=N.useContext(Rr),{pathname:l}=Dr(),c=WS(),f=pp(e,YS(s),l,r==="path"),d=JSON.stringify(f);return N.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function H8(e){return M8(e.context)}function zn(e){xt(!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 G8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1,useTransitions:l}){xt(!hl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=N.useMemo(()=>({basename:c,navigator:a,static:s,useTransitions:l,future:{}}),[c,a,s,l]);typeof n=="string"&&(n=fl(n));let{pathname:d="/",search:p="",hash:m="",state:g=null,key:S="default",mask:A}=n,w=N.useMemo(()=>{let x=Ci(d,c);return x==null?null:{location:{pathname:x,search:p,hash:m,state:g,key:S,mask:A},navigationType:r}},[c,d,p,m,g,S,r,A]);return Er(w!=null,`<Router basename="${c}"> is not able to match the URL "${d}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:N.createElement(Kn.Provider,{value:f},N.createElement(qc.Provider,{children:t,value:w}))}function F8({children:e,location:t}){return P8(K0(e),t)}function K0(e,t=[]){let n=[];return N.Children.forEach(e,(r,a)=>{if(!N.isValidElement(r))return;let s=[...t,a];if(r.type===N.Fragment){n.push.apply(n,K0(r.props.children,s));return}xt(r.type===zn,`[${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>`),xt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.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=K0(r.props.children,s)),n.push(l)}),n}var Id="get",Ud="application/x-www-form-urlencoded";function yp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function K8(e){return yp(e)&&e.tagName.toLowerCase()==="button"}function Y8(e){return yp(e)&&e.tagName.toLowerCase()==="form"}function X8(e){return yp(e)&&e.tagName.toLowerCase()==="input"}function W8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Z8(e,t){return e.button===0&&(!t||t==="_self")&&!W8(e)}var Sd=null;function Q8(){if(Sd===null)try{new FormData(document.createElement("form"),0),Sd=!1}catch{Sd=!0}return Sd}var J8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _v(e){return e!=null&&!J8.has(e)?(Er(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ud}"`),null):e}function eq(e,t){let n,r,a,s,l;if(Y8(e)){let c=e.getAttribute("action");r=c?Ci(c,t):null,n=e.getAttribute("method")||Id,a=_v(e.getAttribute("enctype"))||Ud,s=new FormData(e)}else if(K8(e)||X8(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")||Id,a=_v(e.getAttribute("formenctype"))||_v(c.getAttribute("enctype"))||Ud,s=new FormData(c,e),!Q8()){let{name:d,type:p,value:m}=e;if(p==="image"){let g=d?`${d}.`:"";s.append(`${g}x`,"0"),s.append(`${g}y`,"0")}else d&&s.append(d,m)}}else{if(yp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Id,r=null,a=Ud,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ew(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Hk(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=`${eh(t)}/_root.${r}`:a.pathname=`${eh(a.pathname)}.${r}`,a}async function tq(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 nq(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 rq(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await tq(s,n);return l.links?l.links():[]}return[]}));return sq(r.flat(1).filter(nq).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function nE(e,t,n,r,a,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var p;return n[d].pathname!==f.pathname||((p=n[d].route.path)==null?void 0:p.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,d)=>l(f,d)||c(f,d)):s==="data"?t.filter((f,d)=>{var m;let p=r.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(l(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function iq(e,t,{includeHydrateFallback:n}={}){return aq(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).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 sq(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(oq(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function tw(){let e=N.useContext(dl);return ew(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function lq(){let e=N.useContext(mp);return ew(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var nw=N.createContext(void 0);nw.displayName="FrameworkContext";function vp(){let e=N.useContext(nw);return ew(e,"You must render this element inside a <HydratedRouter> element"),e}function uq(e,t){let n=N.useContext(nw),[r,a]=N.useState(!1),[s,l]=N.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:p,onTouchStart:m}=t,g=N.useRef(null);N.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let w=j=>{j.forEach(_=>{l(_.isIntersecting)})},x=new IntersectionObserver(w,{threshold:.5});return g.current&&x.observe(g.current),()=>{x.disconnect()}}},[e]),N.useEffect(()=>{if(r){let w=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(w)}}},[r]);let S=()=>{a(!0)},A=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,g,{}]:[s,g,{onFocus:wu(c,S),onBlur:wu(f,A),onMouseEnter:wu(d,S),onMouseLeave:wu(p,A),onTouchStart:wu(m,S)}]:[!1,g,{}]}function wu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function cq({page:e,...t}){let n=x8(),{nonce:r}=vp(),{router:a}=tw(),s=N.useMemo(()=>Tk(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?(t.nonce==null&&r&&(t={...t,nonce:r}),n?N.createElement(dq,{page:e,matches:s,...t}):N.createElement(hq,{page:e,matches:s,...t})):null}function fq(e){let{manifest:t,routeModules:n}=vp(),[r,a]=N.useState([]);return N.useEffect(()=>{let s=!1;return rq(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function dq({page:e,matches:t,...n}){let r=Dr(),{future:a}=vp(),{basename:s}=tw(),l=N.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let c=Hk(e,s,a.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,d=[];for(let p of t)typeof p.route.shouldRevalidate=="function"?f=!0:d.push(p.route.id);return f&&d.length>0&&c.searchParams.set("_routes",d.join(",")),[c.pathname+c.search]},[s,a.v8_trailingSlashAwareDataRequests,e,r,t]);return N.createElement(N.Fragment,null,l.map(c=>N.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function hq({page:e,matches:t,...n}){let r=Dr(),{future:a,manifest:s,routeModules:l}=vp(),{basename:c}=tw(),{loaderData:f,matches:d}=lq(),p=N.useMemo(()=>nE(e,t,d,s,r,"data"),[e,t,d,s,r]),m=N.useMemo(()=>nE(e,t,d,s,r,"assets"),[e,t,d,s,r]),g=N.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,x=!1;if(t.forEach(_=>{var M;let T=s.routes[_.route.id];!T||!T.hasLoader||(!p.some(O=>O.route.id===_.route.id)&&_.route.id in f&&((M=l[_.route.id])!=null&&M.shouldRevalidate)||T.hasClientLoader?x=!0:w.add(_.route.id))}),w.size===0)return[];let j=Hk(e,c,a.v8_trailingSlashAwareDataRequests,"data");return x&&w.size>0&&j.searchParams.set("_routes",t.filter(_=>w.has(_.route.id)).map(_=>_.route.id).join(",")),[j.pathname+j.search]},[c,a.v8_trailingSlashAwareDataRequests,f,r,s,p,t,e,l]),S=N.useMemo(()=>iq(m,s),[m,s]),A=fq(m);return N.createElement(N.Fragment,null,g.map(w=>N.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),S.map(w=>N.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),A.map(({key:w,link:x})=>N.createElement("link",{key:w,nonce:n.nonce,...x,crossOrigin:x.crossOrigin??n.crossOrigin})))}function pq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var mq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mq&&(window.__reactRouterVersion="7.18.1")}catch{}function yq({basename:e,children:t,useTransitions:n,window:r}){let a=N.useRef();a.current==null&&(a.current=F6({window:r,v5Compat:!0}));let s=a.current,[l,c]=N.useState({action:s.action,location:s.location}),f=N.useCallback(d=>{n===!1?c(d):N.startTransition(()=>c(d))},[n]);return N.useLayoutEffect(()=>s.listen(f),[s,f]),N.createElement(G8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,useTransitions:n})}var Gk=N.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,mask:c,state:f,target:d,to:p,preventScrollReset:m,viewTransition:g,defaultShouldRevalidate:S,...A},w){let{basename:x,navigator:j,useTransitions:_}=N.useContext(Kn),T=typeof p=="string"&&KS.test(p),M=Dk(p,x);p=M.to;let O=T8(p,{relative:a}),C=Dr(),P=null;if(c){let Y=pp(c,[],C.mask?C.mask.pathname:"/",!0);x!=="/"&&(Y.pathname=Y.pathname==="/"?x:Or([x,Y.pathname])),P=j.createHref(Y)}let[R,k,U]=uq(r,A),q=bq(p,{replace:l,mask:c,state:f,target:d,preventScrollReset:m,relative:a,viewTransition:g,defaultShouldRevalidate:S,useTransitions:_});function $(Y){t&&t(Y),Y.defaultPrevented||q(Y)}let F=!(M.isExternal||s),X=N.createElement("a",{...A,...U,href:(F?P:void 0)||M.absoluteURL||O,onClick:F?$:t,ref:pq(w,k),target:d,"data-discover":!T&&n==="render"?"true":void 0});return R&&!T?N.createElement(N.Fragment,null,X,N.createElement(cq,{page:O})):X});Gk.displayName="Link";var Fk=N.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:c,children:f,...d},p){let m=Ic(l,{relative:d.relative}),g=Dr(),S=N.useContext(mp),{navigator:A,basename:w}=N.useContext(Kn),x=S!=null&&jq(m)&&c===!0,j=A.encodeLocation?A.encodeLocation(m).pathname:m.pathname,_=g.pathname,T=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;n||(_=_.toLowerCase(),T=T?T.toLowerCase():null,j=j.toLowerCase()),T&&w&&(T=Ci(T,w)||T);const M=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let O=_===j||!a&&_.startsWith(j)&&_.charAt(M)==="/",C=T!=null&&(T===j||!a&&T.startsWith(j)&&T.charAt(j.length)==="/"),P={isActive:O,isPending:C,isTransitioning:x},R=O?t:void 0,k;typeof r=="function"?k=r(P):k=[r,O?"active":null,C?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let U=typeof s=="function"?s(P):s;return N.createElement(Gk,{...d,"aria-current":R,className:k,ref:p,style:U,to:l,viewTransition:c},typeof f=="function"?f(P):f)});Fk.displayName="NavLink";var vq=N.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=Id,action:c,onSubmit:f,relative:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:g,...S},A)=>{let{useTransitions:w}=N.useContext(Kn),x=wq(),j=Aq(c,{relative:d}),_=l.toLowerCase()==="get"?"get":"post",T=typeof c=="string"&&KS.test(c),M=O=>{if(f&&f(O),O.defaultPrevented)return;O.preventDefault();let C=O.nativeEvent.submitter,P=(C==null?void 0:C.getAttribute("formmethod"))||l,R=()=>x(C||O.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:a,state:s,relative:d,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:g});w&&n!==!1?N.startTransition(()=>R()):R()};return N.createElement("form",{ref:A,method:_,action:j,onSubmit:r?f:M,...S,"data-discover":!T&&e==="render"?"true":void 0})});vq.displayName="Form";function gq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kk(e){let t=N.useContext(dl);return xt(t,gq(e)),t}function bq(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:s,relative:l,viewTransition:c,defaultShouldRevalidate:f,useTransitions:d}={}){let p=WS(),m=Dr(),g=Ic(e,{relative:l});return N.useCallback(S=>{if(Z8(S,t)){S.preventDefault();let A=n!==void 0?n:Ju(m)===Ju(g),w=()=>p(e,{replace:A,mask:r,state:a,preventScrollReset:s,relative:l,viewTransition:c,defaultShouldRevalidate:f});d?N.startTransition(()=>w()):w()}},[m,p,g,n,r,a,t,e,s,l,c,f,d])}var xq=0,Sq=()=>`__${String(++xq)}__`;function wq(){let{router:e}=Kk("useSubmit"),{basename:t}=N.useContext(Kn),n=q8(),r=e.fetch,a=e.navigate;return N.useCallback(async(s,l={})=>{let{action:c,method:f,encType:d,formData:p,body:m}=eq(s,t);if(l.navigate===!1){let g=l.fetcherKey||Sq();await r(g,n,l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:m,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await a(l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:m,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function Aq(e,{relative:t}={}){let{basename:n}=N.useContext(Kn),r=N.useContext(Rr);xt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Ic(e||".",{relative:t})},l=Dr();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(p=>p==="")){c.delete("index"),f.filter(m=>m).forEach(m=>c.append("index",m));let p=c.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Or([n,s.pathname])),Ju(s)}function jq(e,{relative:t}={}){let n=N.useContext($k);xt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Kk("useViewTransitionState"),a=Ic(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ci(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ci(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jd(a.pathname,l)!=null||Jd(a.pathname,s)!=null}const rE=e=>{let t;const n=new Set,r=(d,p)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const g=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(S=>S(t,g))}},a=()=>t,c={setState:r,getState:a,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,a,c);return c},Oq=(e=>e?rE(e):rE),_q=e=>e;function Tq(e,t=_q){const n=B.useSyncExternalStore(e.subscribe,B.useCallback(()=>t(e.getState()),[e,t]),B.useCallback(()=>t(e.getInitialState()),[e,t]));return B.useDebugValue(n),n}const iE=e=>{const t=Oq(e),n=r=>Tq(t,r);return Object.assign(n,t),n},Yk=(e=>e?iE(e):iE);function Eq(e,t){let n;try{n=e()}catch{return}return{getItem:a=>{var s;const l=f=>f===null?null:JSON.parse(f,void 0),c=(s=n.getItem(a))!=null?s:null;return c instanceof Promise?c.then(l):l(c)},setItem:(a,s)=>n.setItem(a,JSON.stringify(s,void 0)),removeItem:a=>n.removeItem(a)}}const Y0=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Y0(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Y0(r)(n)}}}},Cq=(e,t)=>(n,r,a)=>{let s={storage:Eq(()=>window.localStorage),partialize:x=>x,version:0,merge:(x,j)=>({...j,...x}),...t},l=!1,c=0;const f=new Set,d=new Set;let p=s.storage;if(!p)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...x)},r,a);const m=()=>{const x=s.partialize({...r()});return p.setItem(s.name,{state:x,version:s.version})},g=a.setState;a.setState=(x,j)=>(g(x,j),m());const S=e((...x)=>(n(...x),m()),r,a);a.getInitialState=()=>S;let A;const w=()=>{var x,j;if(!p)return;const _=++c;l=!1,f.forEach(M=>{var O;return M((O=r())!=null?O:S)});const T=((j=s.onRehydrateStorage)==null?void 0:j.call(s,(x=r())!=null?x:S))||void 0;return Y0(p.getItem.bind(p))(s.name).then(M=>{if(M)if(typeof M.version=="number"&&M.version!==s.version){if(s.migrate){const O=s.migrate(M.state,M.version);return O instanceof Promise?O.then(C=>[!0,C]):[!0,O]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,M.state];return[!1,void 0]}).then(M=>{var O;if(_!==c)return;const[C,P]=M;if(A=s.merge(P,(O=r())!=null?O:S),n(A,!0),C)return m()}).then(()=>{_===c&&(T==null||T(r(),void 0),A=r(),l=!0,d.forEach(M=>M(A)))}).catch(M=>{_===c&&(T==null||T(void 0,M))})};return a.persist={setOptions:x=>{s={...s,...x},x.storage&&(p=x.storage)},clearStorage:()=>{p==null||p.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>w(),hasHydrated:()=>l,onHydrate:x=>(f.add(x),()=>{f.delete(x)}),onFinishHydration:x=>(d.add(x),()=>{d.delete(x)})},s.skipHydration||w(),A||S},Mq=Cq,gp=Yk()(Mq(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})})),rw=N.createContext({});function iw(e){const t=N.useRef(null);return t.current===null&&(t.current=e()),t.current}const Pq=typeof window<"u",aw=Pq?N.useLayoutEffect:N.useEffect,bp=N.createContext(null);function ow(e,t){e.indexOf(t)===-1&&e.push(t)}function th(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Wr=(e,t,n)=>n>t?t:n<e?e:n;let sw=()=>{};const xa={},Xk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Wk=e=>typeof e=="object"&&e!==null,Zk=e=>/^0[^.\s]+$/u.test(e);function Qk(e){let t;return()=>(t===void 0&&(t=e()),t)}const fr=e=>e,Uc=(...e)=>e.reduce((t,n)=>r=>n(t(r))),ec=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class lw{constructor(){this.subscriptions=[]}add(t){return ow(this.subscriptions,t),()=>th(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 s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hn=e=>e*1e3,ur=e=>e/1e3,Jk=(e,t)=>t?e*(1e3/t):0,e3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Nq=1e-7,Rq=12;function Dq(e,t,n,r,a){let s,l,c=0;do l=t+(n-t)/2,s=e3(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>Nq&&++c<Rq);return l}function Vc(e,t,n,r){if(e===t&&n===r)return fr;const a=s=>Dq(s,0,1,e,n);return s=>s===0||s===1?s:e3(a(s),t,r)}const t3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n3=e=>t=>1-e(1-t),r3=Vc(.33,1.53,.69,.99),uw=n3(r3),i3=t3(uw),a3=e=>e>=1?1:(e*=2)<1?.5*uw(e):.5*(2-Math.pow(2,-10*(e-1))),cw=e=>1-Math.sin(Math.acos(e)),o3=n3(cw),s3=t3(cw),kq=Vc(.42,0,1,1),Lq=Vc(0,0,.58,1),l3=Vc(.42,0,.58,1),$q=e=>Array.isArray(e)&&typeof e[0]!="number",u3=e=>Array.isArray(e)&&typeof e[0]=="number",zq={linear:fr,easeIn:kq,easeInOut:l3,easeOut:Lq,circIn:cw,circInOut:s3,circOut:o3,backIn:uw,backInOut:i3,backOut:r3,anticipate:a3},Bq=e=>typeof e=="string",aE=e=>{if(u3(e)){sw(e.length===4);const[t,n,r,a]=e;return Vc(t,n,r,a)}else if(Bq(e))return zq[e];return e},wd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function qq(e){let t=new Set,n=new Set,r=!1,a=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(f.schedule(d),e()),d(l)}const f={schedule:(d,p=!1,m=!1)=>{const S=m&&r?t:n;return p&&s.add(d),S.add(d),d},cancel:d=>{n.delete(d),s.delete(d)},process:d=>{if(l=d,r){a=!0;return}r=!0;const p=t;t=n,n=p,t.forEach(c),t.clear(),r=!1,a&&(a=!1,f.process(d))}};return f}const Iq=40;function c3(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=wd.reduce((T,M)=>(T[M]=qq(s),T),{}),{setup:c,read:f,resolveKeyframes:d,preUpdate:p,update:m,preRender:g,render:S,postRender:A}=l,w=()=>{const T=xa.useManualTiming,M=T?a.timestamp:performance.now();n=!1,T||(a.delta=r?1e3/60:Math.max(Math.min(M-a.timestamp,Iq),1)),a.timestamp=M,a.isProcessing=!0,c.process(a),f.process(a),d.process(a),p.process(a),m.process(a),g.process(a),S.process(a),A.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(w))},x=()=>{n=!0,r=!0,a.isProcessing||e(w)};return{schedule:wd.reduce((T,M)=>{const O=l[M];return T[M]=(C,P=!1,R=!1)=>(n||x(),O.schedule(C,P,R)),T},{}),cancel:T=>{for(let M=0;M<wd.length;M++)l[wd[M]].cancel(T)},state:a,steps:l}}const{schedule:st,cancel:Sa,state:an,steps:Tv}=c3(typeof requestAnimationFrame<"u"?requestAnimationFrame:fr,!0);let Vd;function Uq(){Vd=void 0}const hn={now:()=>(Vd===void 0&&hn.set(an.isProcessing||xa.useManualTiming?an.timestamp:performance.now()),Vd),set:e=>{Vd=e,queueMicrotask(Uq)}},f3=e=>t=>typeof t=="string"&&t.startsWith(e),d3=f3("--"),Vq=f3("var(--"),fw=e=>Vq(e)?Hq.test(e.split("/*")[0].trim()):!1,Hq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function oE(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const pl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},tc={...pl,transform:e=>Wr(0,1,e)},Ad={...pl,default:1},Iu=e=>Math.round(e*1e5)/1e5,dw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gq(e){return e==null}const Fq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hw=(e,t)=>n=>!!(typeof n=="string"&&Fq.test(n)&&n.startsWith(e)||t&&!Gq(n)&&Object.prototype.hasOwnProperty.call(n,t)),h3=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,c]=r.match(dw);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},Kq=e=>Wr(0,255,e),Ev={...pl,transform:e=>Math.round(Kq(e))},ao={test:hw("rgb","red"),parse:h3("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ev.transform(e)+", "+Ev.transform(t)+", "+Ev.transform(n)+", "+Iu(tc.transform(r))+")"};function Yq(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 X0={test:hw("#"),parse:Yq,transform:ao.transform},Hc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wi=Hc("deg"),Gr=Hc("%"),ye=Hc("px"),Xq=Hc("vh"),Wq=Hc("vw"),sE={...Gr,parse:e=>Gr.parse(e)/100,transform:e=>Gr.transform(e*100)},ws={test:hw("hsl","hue"),parse:h3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gr.transform(Iu(t))+", "+Gr.transform(Iu(n))+", "+Iu(tc.transform(r))+")"},kt={test:e=>ao.test(e)||X0.test(e)||ws.test(e),parse:e=>ao.test(e)?ao.parse(e):ws.test(e)?ws.parse(e):X0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ao.transform(e):ws.transform(e),getAnimatableNone:e=>{const t=kt.parse(e);return t.alpha=0,kt.transform(t)}},Zq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(dw))==null?void 0:t.length)||0)+(((n=e.match(Zq))==null?void 0:n.length)||0)>0}const p3="number",m3="color",Jq="var",eI="var(",lE="${}",tI=/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 $s(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const c=t.replace(tI,f=>(kt.test(f)?(r.color.push(s),a.push(m3),n.push(kt.parse(f))):f.startsWith(eI)?(r.var.push(s),a.push(Jq),n.push(f)):(r.number.push(s),a.push(p3),n.push(parseFloat(f))),++s,lE)).split(lE);return{values:n,split:c,indexes:r,types:a}}function nI(e){return $s(e).values}function y3({split:e,types:t}){const n=e.length;return r=>{let a="";for(let s=0;s<n;s++)if(a+=e[s],r[s]!==void 0){const l=t[s];l===p3?a+=Iu(r[s]):l===m3?a+=kt.transform(r[s]):a+=r[s]}return a}}function rI(e){return y3($s(e))}const iI=e=>typeof e=="number"?0:kt.test(e)?kt.getAnimatableNone(e):e,aI=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:iI(e);function oI(e){const t=$s(e);return y3(t)(t.values.map((r,a)=>aI(r,t.split[a])))}const _r={test:Qq,parse:nI,createTransformer:rI,getAnimatableNone:oI};function Cv(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 sI({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,l=0;if(!t)a=s=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;a=Cv(f,c,e+1/3),s=Cv(f,c,e),l=Cv(f,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function nh(e,t){return n=>n>0?t:e}const ot=(e,t,n)=>e+(t-e)*n,Mv=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},lI=[X0,ao,ws],uI=e=>lI.find(t=>t.test(e));function uE(e){const t=uI(e);if(!t)return!1;let n=t.parse(e);return t===ws&&(n=sI(n)),n}const cE=(e,t)=>{const n=uE(e),r=uE(t);if(!n||!r)return nh(e,t);const a={...n};return s=>(a.red=Mv(n.red,r.red,s),a.green=Mv(n.green,r.green,s),a.blue=Mv(n.blue,r.blue,s),a.alpha=ot(n.alpha,r.alpha,s),ao.transform(a))},W0=new Set(["none","hidden"]);function cI(e,t){return W0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fI(e,t){return n=>ot(e,t,n)}function pw(e){return typeof e=="number"?fI:typeof e=="string"?fw(e)?nh:kt.test(e)?cE:pI:Array.isArray(e)?v3:typeof e=="object"?kt.test(e)?cE:dI:nh}function v3(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>pw(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function dI(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=pw(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function hI(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],l=e.indexes[s][r[s]],c=e.values[l]??0;n[a]=c,r[s]++}return n}const pI=(e,t)=>{const n=_r.createTransformer(t),r=$s(e),a=$s(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?W0.has(e)&&!a.values.length||W0.has(t)&&!r.values.length?cI(e,t):Uc(v3(hI(r,a),a.values),n):nh(e,t)};function g3(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):pw(e)(e,t)}const mI=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>st.update(t,n),stop:()=>Sa(t),now:()=>an.isProcessing?an.timestamp:hn.now()}},b3=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},rh=2e4;function mw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rh;)t+=n,r=e.next(t);return t>=rh?1/0:t}function yI(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(mw(r),rh);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:ur(a)}}const Ot={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 Z0(e,t){return e*Math.sqrt(1-t*t)}const vI=12;function gI(e,t,n){let r=n;for(let a=1;a<vI;a++)r=r-e(r)/t(r);return r}const Pv=.001;function bI({duration:e=Ot.duration,bounce:t=Ot.bounce,velocity:n=Ot.velocity,mass:r=Ot.mass}){let a,s,l=1-t;l=Wr(Ot.minDamping,Ot.maxDamping,l),e=Wr(Ot.minDuration,Ot.maxDuration,ur(e)),l<1?(a=d=>{const p=d*l,m=p*e,g=p-n,S=Z0(d,l),A=Math.exp(-m);return Pv-g/S*A},s=d=>{const m=d*l*e,g=m*n+n,S=Math.pow(l,2)*Math.pow(d,2)*e,A=Math.exp(-m),w=Z0(Math.pow(d,2),l);return(-a(d)+Pv>0?-1:1)*((g-S)*A)/w}):(a=d=>{const p=Math.exp(-d*e),m=(d-n)*e+1;return-Pv+p*m},s=d=>{const p=Math.exp(-d*e),m=(n-d)*(e*e);return p*m});const c=5/e,f=gI(a,s,c);if(e=Hn(e),isNaN(f))return{stiffness:Ot.stiffness,damping:Ot.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const xI=["duration","bounce"],SI=["stiffness","damping","mass"];function fE(e,t){return t.some(n=>e[n]!==void 0)}function wI(e){let t={velocity:Ot.velocity,stiffness:Ot.stiffness,damping:Ot.damping,mass:Ot.mass,isResolvedFromDuration:!1,...e};if(!fE(e,SI)&&fE(e,xI))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*Wr(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ot.mass,stiffness:a,damping:s}}else{const n=bI({...e,velocity:0});t={...t,...n,mass:Ot.mass},t.isResolvedFromDuration=!0}return t}function ih(e=Ot.visualDuration,t=Ot.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:f,damping:d,mass:p,duration:m,velocity:g,isResolvedFromDuration:S}=wI({...n,velocity:-ur(n.velocity||0)}),A=g||0,w=d/(2*Math.sqrt(f*p)),x=l-s,j=ur(Math.sqrt(f/p)),_=Math.abs(x)<5;r||(r=_?Ot.restSpeed.granular:Ot.restSpeed.default),a||(a=_?Ot.restDelta.granular:Ot.restDelta.default);let T,M,O,C,P,R;if(w<1)O=Z0(j,w),C=(A+w*j*x)/O,T=U=>{const q=Math.exp(-w*j*U);return l-q*(C*Math.sin(O*U)+x*Math.cos(O*U))},P=w*j*C+x*O,R=w*j*x-C*O,M=U=>Math.exp(-w*j*U)*(P*Math.sin(O*U)+R*Math.cos(O*U));else if(w===1){T=q=>l-Math.exp(-j*q)*(x+(A+j*x)*q);const U=A+j*x;M=q=>Math.exp(-j*q)*(j*U*q-A)}else{const U=j*Math.sqrt(w*w-1);T=X=>{const Y=Math.exp(-w*j*X),z=Math.min(U*X,300);return l-Y*((A+w*j*x)*Math.sinh(z)+U*x*Math.cosh(z))/U};const q=(A+w*j*x)/U,$=w*j*q-x*U,F=w*j*x-q*U;M=X=>{const Y=Math.exp(-w*j*X),z=Math.min(U*X,300);return Y*($*Math.sinh(z)+F*Math.cosh(z))}}const k={calculatedDuration:S&&m||null,velocity:U=>Hn(M(U)),next:U=>{if(!S&&w<1){const $=Math.exp(-w*j*U),F=Math.sin(O*U),X=Math.cos(O*U),Y=l-$*(C*F+x*X),z=Hn($*(P*F+R*X));return c.done=Math.abs(z)<=r&&Math.abs(l-Y)<=a,c.value=c.done?l:Y,c}const q=T(U);if(S)c.done=U>=m;else{const $=Hn(M(U));c.done=Math.abs($)<=r&&Math.abs(l-q)<=a}return c.value=c.done?l:q,c},toString:()=>{const U=Math.min(mw(k),rh),q=b3($=>k.next(U*$).value,U,30);return U+"ms "+q},toTransition:()=>{}};return k}ih.applyToOptions=e=>{const t=yI(e,100,ih);return e.ease=t.ease,e.duration=Hn(t.duration),e.type="keyframes",e};const AI=5;function x3(e,t,n){const r=Math.max(t-AI,0);return Jk(n-e(r),t-r)}function Q0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:c,max:f,restDelta:d=.5,restSpeed:p}){const m=e[0],g={done:!1,value:m},S=R=>c!==void 0&&R<c||f!==void 0&&R>f,A=R=>c===void 0?f:f===void 0||Math.abs(c-R)<Math.abs(f-R)?c:f;let w=n*t;const x=m+w,j=l===void 0?x:l(x);j!==x&&(w=j-m);const _=R=>-w*Math.exp(-R/r),T=R=>j+_(R),M=R=>{const k=_(R),U=T(R);g.done=Math.abs(k)<=d,g.value=g.done?j:U};let O,C;const P=R=>{S(g.value)&&(O=R,C=ih({keyframes:[g.value,A(g.value)],velocity:x3(T,R,g.value),damping:a,stiffness:s,restDelta:d,restSpeed:p}))};return P(0),{calculatedDuration:null,next:R=>{let k=!1;return!C&&O===void 0&&(k=!0,M(R),P(R)),O!==void 0&&R>=O?C.next(R-O):(!k&&M(R),g)}}}function jI(e,t,n){const r=[],a=n||xa.mix||g3,s=e.length-1;for(let l=0;l<s;l++){let c=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||fr:t;c=Uc(f,c)}r.push(c)}return r}function OI(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(sw(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=jI(t,r,a),f=c.length,d=p=>{if(l&&p<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(p<e[m+1]);m++);const g=ec(e[m],e[m+1],p);return c[m](g)};return n?p=>d(Wr(e[0],e[s-1],p)):d}function _I(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=ec(0,t,r);e.push(ot(n,1,a))}}function TI(e){const t=[0];return _I(t,e.length-1),t}function EI(e,t){return e.map(n=>n*t)}function CI(e,t){return e.map(()=>t||l3).splice(0,e.length-1)}function Uu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=$q(r)?r.map(aE):aE(r),s={done:!1,value:t[0]},l=EI(n&&n.length===t.length?n:TI(t),e),c=OI(l,t,{ease:Array.isArray(a)?a:CI(t,a)});return{calculatedDuration:e,next:f=>(s.value=c(f),s.done=f>=e,s)}}const MI=e=>e!==null;function xp(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(MI),c=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!c||r===void 0?s[c]:r}const PI={decay:Q0,inertia:Q0,tween:Uu,keyframes:Uu,spring:ih};function S3(e){typeof e.type=="string"&&(e.type=PI[e.type])}class yw{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 NI=e=>e/100;class ah extends yw{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!==hn.now()&&this.tick(hn.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;S3(t);const{type:n=Uu,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:c}=t;const f=n||Uu;f!==Uu&&typeof c[0]!="number"&&(this.mixKeyframes=Uc(NI,g3(c[0],c[1])),c=[0,100]);const d=f({...t,keyframes:c});s==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-l})),d.calculatedDuration===null&&(d.calculatedDuration=mw(d));const{calculatedDuration:p}=d;this.calculatedDuration=p,this.resolvedDuration=p+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}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:s,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:p,repeat:m,repeatType:g,repeatDelay:S,type:A,onUpdate:w,finalKeyframe:x}=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 j=this.currentTime-d*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?j<0:j>a;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let T=this.currentTime,M=r;if(m){const R=Math.min(this.currentTime,a)/c;let k=Math.floor(R),U=R%1;!U&&R>=1&&(U=1),U===1&&k--,k=Math.min(k,m+1),!!(k%2)&&(g==="reverse"?(U=1-U,S&&(U-=S/c)):g==="mirror"&&(M=l)),T=Wr(0,1,U)*c}let O;_?(this.delayState.value=p[0],O=this.delayState):O=M.next(T),s&&!_&&(O.value=s(O.value));let{done:C}=O;!_&&f!==null&&(C=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return P&&A!==Q0&&(O.value=xp(p,this.options,x,this.speed)),w&&w(O.value),P&&this.finish(),O}then(t,n){return this.finished.then(t,n)}get duration(){return ur(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(this.currentTime)}set time(t){t=Hn(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 x3(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(hn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ur(this.currentTime))}play(){var a,s;if(this.isStopped)return;const{driver:t=mI,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(s=(a=this.options).onPlay)==null||s.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(hn.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 RI(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const oo=e=>e*180/Math.PI,J0=e=>{const t=oo(Math.atan2(e[1],e[0]));return e1(t)},DI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:J0,rotateZ:J0,skewX:e=>oo(Math.atan(e[1])),skewY:e=>oo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},e1=e=>(e=e%360,e<0&&(e+=360),e),dE=J0,hE=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),pE=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kI={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hE,scaleY:pE,scale:e=>(hE(e)+pE(e))/2,rotateX:e=>e1(oo(Math.atan2(e[6],e[5]))),rotateY:e=>e1(oo(Math.atan2(-e[2],e[0]))),rotateZ:dE,rotate:dE,skewX:e=>oo(Math.atan(e[4])),skewY:e=>oo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function t1(e){return e.includes("scale")?1:0}function n1(e,t){if(!e||e==="none")return t1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=kI,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=DI,a=c}if(!a)return t1(t);const s=r[t],l=a[1].split(",").map($I);return typeof s=="function"?s(l):l[s]}const LI=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return n1(n,t)};function $I(e){return parseFloat(e.trim())}const ml=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yl=new Set([...ml,"pathRotation"]),mE=e=>e===pl||e===ye,zI=new Set(["x","y","z"]),BI=ml.filter(e=>!zI.has(e));function qI(e){const t=[];return BI.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ya={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})=>n1(t,"x"),y:(e,{transform:t})=>n1(t,"y")};ya.translateX=ya.x;ya.translateY=ya.y;const ho=new Set;let r1=!1,i1=!1,a1=!1;function w3(){if(i1){const e=Array.from(ho).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=qI(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(([s,l])=>{var c;(c=r.getValue(s))==null||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}i1=!1,r1=!1,ho.forEach(e=>e.complete(a1)),ho.clear()}function A3(){ho.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(i1=!0)})}function II(){a1=!0,A3(),w3(),a1=!1}class vw{constructor(t,n,r,a,s,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=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(ho.add(this),r1||(r1=!0,st.read(A3),st.resolveKeyframes(w3))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a==null?void 0:a.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}RI(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ho.delete(this)}cancel(){this.state==="scheduled"&&(ho.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const UI=e=>e.startsWith("--");function j3(e,t,n){UI(t)?e.style.setProperty(t,n):e.style[t]=n}const VI={};function O3(e,t){const n=Qk(e);return()=>VI[t]??n()}const HI=O3(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),_3=O3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$u=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$u([0,.65,.55,1]),circOut:$u([.55,0,1,.45]),backIn:$u([.31,.01,.66,-.59]),backOut:$u([.33,1.53,.69,.99])};function T3(e,t){if(e)return typeof e=="function"?_3()?b3(e,t):"ease-out":u3(e)?$u(e):Array.isArray(e)?e.map(n=>T3(n,t)||yE.easeOut):yE[e]}function GI(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:c="easeOut",times:f}={},d=void 0){const p={[t]:n};f&&(p.offset=f);const m=T3(c,a);Array.isArray(m)&&(p.easing=m);const g={delay:r,duration:a,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(p,g)}function E3(e){return typeof e=="function"&&"applyToOptions"in e}function FI({type:e,...t}){return E3(e)&&_3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class C3 extends yw{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,sw(typeof t.type!="string");const d=FI(t);this.animation=GI(n,r,a,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=xp(a,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(p),j3(n,r,p),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 ur(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Hn(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 s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&HI()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),fr):a(this)}}const M3={anticipate:a3,backInOut:i3,circInOut:s3};function KI(e){return e in M3}function YI(e){typeof e.ease=="string"&&KI(e.ease)&&(e.ease=M3[e.ease])}const Nv=10;class XI extends C3{constructor(t){YI(t),S3(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:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new ah({...l,autoplay:!1}),f=Math.max(Nv,hn.now()-this.startTime),d=Wr(0,Nv,f-Nv),p=c.sample(f).value,{name:m}=this.options;s&&m&&j3(s,m,p),n.setWithVelocity(c.sample(Math.max(0,f-d)).value,p,d),c.stop()}}const vE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_r.test(e)||e==="0")&&!e.startsWith("url("));function WI(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 ZI(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=vE(a,t),c=vE(s,t);return!l||!c?!1:WI(e)||(n==="spring"||E3(n))&&r}function o1(e){e.duration=0,e.type="keyframes"}const P3=new Set(["opacity","clipPath","filter","transform"]),QI=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function JI(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&QI.test(e[t]))return!0;return!1}const eU=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tU=Qk(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function nU(e){var m;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:l,keyframes:c}=e;if(!(((m=t==null?void 0:t.owner)==null?void 0:m.current)instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:p}=t.owner.getProps();return tU()&&n&&(P3.has(n)||eU.has(n)&&JI(c))&&(n!=="transform"||!p)&&!d&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const rU=40;class iU extends yw{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:c,name:f,motionValue:d,element:p,...m}){var A;super(),this.stop=()=>{var w,x;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=hn.now();const g={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:f,motionValue:d,element:p,...m},S=(p==null?void 0:p.KeyframeResolver)||vw;this.keyframeResolver=new S(c,(w,x,j)=>this.onKeyframesResolved(w,x,g,!j),f,d,p),(A=this.keyframeResolver)==null||A.scheduleResolve()}onKeyframesResolved(t,n,r,a){var j,_;this.keyframeResolver=void 0;const{name:s,type:l,velocity:c,delay:f,isHandoff:d,onUpdate:p}=r;this.resolvedAt=hn.now();let m=!0;ZI(t,s,l,c)||(m=!1,(xa.instantAnimations||!f)&&(p==null||p(xp(t,r,n))),t[0]=t[t.length-1],o1(r),r.repeat=0);const S={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>rU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},A=m&&!d&&nU(S),w=(_=(j=S.motionValue)==null?void 0:j.owner)==null?void 0:_.current;let x;if(A)try{x=new XI({...S,element:w})}catch{x=new ah(S)}else x=new ah(S);x.finished.then(()=>{this.notifyFinished()}).catch(fr),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}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(),II()),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 N3(e,t,n,r=0,a=1){const s=Array.from(e).sort((d,p)=>d.sortNodePosition(p)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(s,l):a===1?s*r:c-s*r}const gE=30,aU=e=>!isNaN(parseFloat(e));class oU{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const a=hn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.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=hn.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 lw);const r=this.events[t].add(n);return t==="change"?()=>{r(),st.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=hn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>gE)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gE);return Jk(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 zs(e,t){return new oU(e,t)}function R3(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function gw(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?R3(n,e):n}const sU={type:"spring",stiffness:500,damping:25,restSpeed:10},lU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),uU={type:"keyframes",duration:.8},cU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fU=(e,{keyframes:t})=>t.length>2?uU:yl.has(e)?e.startsWith("scale")?lU(t[1]):sU:cU,dU=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function hU(e){for(const t in e)if(!dU.has(t))return!0;return!1}const bw=(e,t,n,r={},a,s)=>l=>{const c=gw(r,e)||{},f=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Hn(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:a};hU(c)||Object.assign(p,fU(e,p)),p.duration&&(p.duration=Hn(p.duration)),p.repeatDelay&&(p.repeatDelay=Hn(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(o1(p),p.delay===0&&(m=!0)),(xa.instantAnimations||xa.skipAnimations||a!=null&&a.shouldSkipAnimations||c.skipAnimations)&&(m=!0,o1(p),p.delay=0),p.allowFlatten=!c.type&&!c.ease,m&&!s&&t.get()!==void 0){const g=xp(p.keyframes,c);if(g!==void 0){st.update(()=>{p.onUpdate(g),p.onComplete()});return}}return c.isSync?new ah(p):new iU(p)},pU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mU(e){const t=pU.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function D3(e,t,n=1){const[r,a]=mU(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return Xk(l)?parseFloat(l):l}return fw(a)?D3(a,t,n+1):a}function bE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xw(e,t,n,r){if(typeof t=="function"){const[a,s]=bE(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=bE(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function po(e,t,n){const r=e.getProps();return xw(r,t,n!==void 0?n:r.custom,e)}const k3=new Set(["width","height","top","left","right","bottom",...ml]),s1=e=>Array.isArray(e);function yU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zs(n))}function vU(e){return s1(e)?e[e.length-1]||0:e}function gU(e,t){const n=po(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const c=vU(s[l]);yU(e,l,c)}}const on=e=>!!(e&&e.getVelocity);function bU(e){return!!(on(e)&&e.add)}function l1(e,t){const n=e.getValue("willChange");if(bU(n))return n.add(t);if(!n&&xa.WillChange){const r=new xa.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Sw(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const xU="framerAppearId",L3="data-"+Sw(xU);function $3(e){return e.props[L3]}function SU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function z3(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s,transitionEnd:l,...c}=t;const f=e.getDefaultTransition();s=s?R3(s,f):f;const d=s==null?void 0:s.reduceMotion,p=s==null?void 0:s.skipAnimations;r&&(s=r);const m=[],g=a&&e.animationState&&e.animationState.getState()[a],S=s==null?void 0:s.path;S&&S.animateVisualElement(e,c,s,n,m);for(const A in c){const w=e.getValue(A,e.latestValues[A]??null),x=c[A];if(x===void 0||g&&SU(g,A))continue;const j={delay:n,...gw(s||{},A)};p&&(j.skipAnimations=!0);const _=w.get();if(_!==void 0&&!w.isAnimating()&&!Array.isArray(x)&&x===_&&!j.velocity){st.update(()=>w.set(x));continue}let T=!1;if(window.MotionHandoffAnimation){const C=$3(e);if(C){const P=window.MotionHandoffAnimation(C,A,st);P!==null&&(j.startTime=P,T=!0)}}l1(e,A);const M=d??e.shouldReduceMotion;w.start(bw(A,w,x,M&&k3.has(A)?{type:!1}:j,e,T));const O=w.animation;O&&m.push(O)}if(l){const A=()=>st.update(()=>{l&&gU(e,l)});m.length?Promise.all(m).then(A):A()}return m}function u1(e,t,n={}){var f;const r=po(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 s=r?()=>Promise.all(z3(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:m,staggerDirection:g}=a;return wU(e,t,d,p,m,g,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[d,p]=c==="beforeChildren"?[s,l]:[l,s];return d().then(()=>p())}else return Promise.all([s(),l(n.delay)])}function wU(e,t,n=0,r=0,a=0,s=1,l){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(u1(f,t,{...l,delay:n+(typeof r=="function"?0:r)+N3(e.variantChildren,f,r,a,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function AU(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>u1(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=u1(e,t,n);else{const a=typeof t=="function"?po(e,t,n.custom):t;r=Promise.all(z3(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const jU={test:e=>e==="auto",parse:e=>e},B3=e=>t=>t.test(e),q3=[pl,ye,Gr,wi,Wq,Xq,jU],xE=e=>q3.find(B3(e));function OU(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Zk(e):!0}const _U=new Set(["brightness","contrast","saturate","opacity"]);function TU(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(dw)||[];if(!r)return e;const a=n.replace(r,"");let s=_U.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const EU=/\b([a-z-]*)\(.*?\)/gu,c1={..._r,getAnimatableNone:e=>{const t=e.match(EU);return t?t.map(TU).join(" "):e}},f1={..._r,getAnimatableNone:e=>{const t=_r.parse(e);return _r.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},SE={...pl,transform:Math.round},CU={rotate:wi,pathRotation:wi,rotateX:wi,rotateY:wi,rotateZ:wi,scale:Ad,scaleX:Ad,scaleY:Ad,scaleZ:Ad,skew:wi,skewX:wi,skewY:wi,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:tc,originX:sE,originY:sE,originZ:ye},oh={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,inset:ye,insetBlock:ye,insetBlockStart:ye,insetBlockEnd:ye,insetInline:ye,insetInlineStart:ye,insetInlineEnd:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockStart:ye,paddingBlockEnd:ye,paddingInline:ye,paddingInlineStart:ye,paddingInlineEnd:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockStart:ye,marginBlockEnd:ye,marginInline:ye,marginInlineStart:ye,marginInlineEnd:ye,fontSize:ye,backgroundPositionX:ye,backgroundPositionY:ye,...CU,zIndex:SE,fillOpacity:tc,strokeOpacity:tc,numOctaves:SE},MU={...oh,color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:c1,WebkitFilter:c1,mask:f1,WebkitMask:f1},I3=e=>MU[e],PU=new Set([c1,f1]);function U3(e,t){let n=I3(e);return PU.has(n)||(n=_r),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const NU=new Set(["auto","none","0"]);function RU(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!NU.has(s)&&$s(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=U3(n,a)}class DU extends vw{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let m=t[p];if(typeof m=="string"&&(m=m.trim(),fw(m))){const g=D3(m,n.current);g!==void 0&&(t[p]=g),p===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!k3.has(r)||t.length!==2)return;const[a,s]=t,l=xE(a),c=xE(s),f=oE(a),d=oE(s);if(f!==d&&ya[r]){this.needsMeasurement=!0;return}if(l!==c)if(mE(l)&&mE(c))for(let p=0;p<t.length;p++){const m=t[p];typeof m=="string"&&(t[p]=parseFloat(m))}else ya[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||OU(t[a]))&&r.push(a);r.length&&RU(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=ya[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 s=r.length-1,l=r[s];r[s]=ya[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,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}}const ww=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function V3(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 d1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Hd(e){return Wk(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Aw}=c3(queueMicrotask,!1),Sr={x:!1,y:!1};function H3(){return Sr.x||Sr.y}function kU(e){return e==="x"||e==="y"?Sr[e]?null:(Sr[e]=!0,()=>{Sr[e]=!1}):Sr.x||Sr.y?null:(Sr.x=Sr.y=!0,()=>{Sr.x=Sr.y=!1})}function G3(e,t){const n=V3(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function LU(e){return!(e.pointerType==="touch"||H3())}function $U(e,t,n={}){const[r,a,s]=G3(e,n);return r.forEach(l=>{let c=!1,f=!1,d;const p=()=>{l.removeEventListener("pointerleave",A)},m=x=>{d&&(d(x),d=void 0),p()},g=x=>{c=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),f&&(f=!1,m(x))},S=()=>{c=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},A=x=>{if(x.pointerType!=="touch"){if(c){f=!0;return}m(x)}},w=x=>{if(!LU(x))return;f=!1;const j=t(l,x);typeof j=="function"&&(d=j,l.addEventListener("pointerleave",A,a))};l.addEventListener("pointerenter",w,a),l.addEventListener("pointerdown",S,a)}),s}const F3=(e,t)=>t?e===t?!0:F3(e,t.parentElement):!1,jw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function BU(e){return zU.has(e.tagName)||e.isContentEditable===!0}const qU=new Set(["INPUT","SELECT","TEXTAREA"]);function IU(e){return qU.has(e.tagName)||e.isContentEditable===!0}const Gd=new WeakSet;function wE(e){return t=>{t.key==="Enter"&&e(t)}}function Rv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const UU=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=wE(()=>{if(Gd.has(n))return;Rv(n,"down");const a=wE(()=>{Rv(n,"up")}),s=()=>Rv(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function AE(e){return jw(e)&&!H3()}const jE=new WeakSet;function VU(e,t,n={}){const[r,a,s]=G3(e,n),l=c=>{const f=c.currentTarget;if(!AE(c)||jE.has(c))return;Gd.add(f),n.stopPropagation&&jE.add(c);const d=t(f,c),p={...a,capture:!0},m=(A,w)=>{window.removeEventListener("pointerup",g,p),window.removeEventListener("pointercancel",S,p),Gd.has(f)&&Gd.delete(f),AE(A)&&typeof d=="function"&&d(A,{success:w})},g=A=>{m(A,f===window||f===document||n.useGlobalTarget||F3(f,A.target))},S=A=>{m(A,!1)};window.addEventListener("pointerup",g,p),window.addEventListener("pointercancel",S,p)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),Hd(c)&&(c.addEventListener("focus",d=>UU(d,a)),!BU(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function Ow(e){return Wk(e)&&"ownerSVGElement"in e}const Fd=new WeakMap;let da;const K3=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:Ow(r)&&"getBBox"in r?r.getBBox()[t]:r[n],HU=K3("inline","width","offsetWidth"),GU=K3("block","height","offsetHeight");function FU({target:e,borderBoxSize:t}){var n;(n=Fd.get(e))==null||n.forEach(r=>{r(e,{get width(){return HU(e,t)},get height(){return GU(e,t)}})})}function KU(e){e.forEach(FU)}function YU(){typeof ResizeObserver>"u"||(da=new ResizeObserver(KU))}function XU(e,t){da||YU();const n=V3(e);return n.forEach(r=>{let a=Fd.get(r);a||(a=new Set,Fd.set(r,a)),a.add(t),da==null||da.observe(r)}),()=>{n.forEach(r=>{const a=Fd.get(r);a==null||a.delete(t),a!=null&&a.size||da==null||da.unobserve(r)})}}const Kd=new Set;let As;function WU(){As=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Kd.forEach(t=>t(e))},window.addEventListener("resize",As)}function ZU(e){return Kd.add(e),As||WU(),()=>{Kd.delete(e),!Kd.size&&typeof As=="function"&&(window.removeEventListener("resize",As),As=void 0)}}function OE(e,t){return typeof e=="function"?ZU(e):XU(e,t)}function QU(e){return Ow(e)&&e.tagName==="svg"}const JU=[...q3,kt,_r],eV=e=>JU.find(B3(e)),_E=()=>({translate:0,scale:1,origin:0,originPoint:0}),js=()=>({x:_E(),y:_E()}),TE=()=>({min:0,max:0}),Ut=()=>({x:TE(),y:TE()}),tV=new WeakMap;function Sp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function nc(e){return typeof e=="string"||Array.isArray(e)}const _w=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tw=["initial",..._w];function wp(e){return Sp(e.animate)||Tw.some(t=>nc(e[t]))}function Y3(e){return!!(wp(e)||e.variants)}function nV(e,t,n){for(const r in t){const a=t[r],s=n[r];if(on(a))e.addValue(r,a);else if(on(s))e.addValue(r,zs(a,{owner:e}));else if(s!==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,zs(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const h1={current:null},X3={current:!1},rV=typeof window<"u";function iV(){if(X3.current=!0,!!rV)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>h1.current=e.matches;e.addEventListener("change",t),t()}else h1.current=!1}const EE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let sh={};function W3(e){sh=e}function aV(){return sh}class oV{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:s,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=vw,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=hn.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,st.render(this.render,!1,!0))};const{latestValues:d,renderState:p}=c;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=s,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=wp(n),this.isVariantNode=Y3(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const S in g){const A=g[S];d[S]!==void 0&&on(A)&&A.set(d[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,tV.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,s)=>this.bindToMotionValue(s,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(X3.current||iV(),this.shouldReduceMotion=h1.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(),Sa(this.notifyUpdate),Sa(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&&P3.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:c,times:f,ease:d,duration:p}=n.accelerate,m=new C3({element:this.current,name:t,keyframes:c,times:f,ease:d,duration:Hn(p)}),g=l(m);this.valueSubscriptions.set(t,()=>{g(),m.cancel()});return}const r=yl.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&st.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s()})}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 sh){const n=sh[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ut()}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<EE.length;r++){const a=EE[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=nV(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=zs(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"&&(Xk(r)||Zk(r))?r=parseFloat(r):!eV(r)&&_r.test(n)&&(r=U3(t,n)),this.setBaseTarget(t,on(r)?r.get():r)),on(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=xw(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!on(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 lw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Aw.render(this.render)}}class Z3 extends oV{constructor(){super(...arguments),this.KeyframeResolver=DU}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;on(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Oa{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Q3({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lV(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 Dv(e){return e===void 0||e===1}function p1({scale:e,scaleX:t,scaleY:n}){return!Dv(e)||!Dv(t)||!Dv(n)}function eo(e){return p1(e)||J3(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function J3(e){return CE(e.x)||CE(e.y)}function CE(e){return e&&e!=="0%"}function lh(e,t,n){const r=e-n,a=t*r;return n+a}function ME(e,t,n,r,a){return a!==void 0&&(e=lh(e,a,r)),lh(e,n,r)+t}function m1(e,t=0,n=1,r,a){e.min=ME(e.min,t,n,r,a),e.max=ME(e.max,t,n,r,a)}function eL(e,{x:t,y:n}){m1(e.x,t.translate,t.scale,t.originPoint),m1(e.y,n.translate,n.scale,n.originPoint)}const PE=.999999999999,NE=1.0000000000001;function uV(e,t,n,r=!1){var c;const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let f=0;f<a;f++){s=n[f],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Ur(e.x,-s.scroll.offset.x),Ur(e.y,-s.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,eL(e,l)),r&&eo(s.latestValues)&&Yd(e,s.latestValues,(c=s.layout)==null?void 0:c.layoutBox))}t.x<NE&&t.x>PE&&(t.x=1),t.y<NE&&t.y>PE&&(t.y=1)}function Ur(e,t){e.min+=t,e.max+=t}function RE(e,t,n,r,a=.5){const s=ot(e.min,e.max,a);m1(e,t,n,s,r)}function DE(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Yd(e,t,n){const r=n??e;RE(e.x,DE(t.x,r.x),t.scaleX,t.scale,t.originX),RE(e.y,DE(t.y,r.y),t.scaleY,t.scale,t.originY)}function tL(e,t){return Q3(lV(e.getBoundingClientRect(),t))}function cV(e,t,n){const r=tL(e,n),{scroll:a}=t;return a&&(Ur(r.x,a.offset.x),Ur(r.y,a.offset.y)),r}const fV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dV=ml.length;function hV(e,t,n){let r="",a=!0;for(let l=0;l<dV;l++){const c=ml[l],f=e[c];if(f===void 0)continue;let d=!0;if(typeof f=="number")d=f===(c.startsWith("scale")?1:0);else{const p=parseFloat(f);d=c.startsWith("scale")?p===1:p===0}if(!d||n){const p=d1(f,oh[c]);if(!d){a=!1;const m=fV[c]||c;r+=`${m}(${p}) `}n&&(t[c]=p)}}const s=e.pathRotation;return s&&(a=!1,r+=`rotate(${d1(s,oh.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Ew(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let l=!1,c=!1;for(const f in t){const d=t[f];if(yl.has(f)){l=!0;continue}else if(d3(f)){a[f]=d;continue}else{const p=d1(d,oh[f]);f.startsWith("origin")?(c=!0,s[f]=p):r[f]=p}}if(t.transform||(l||n?r.transform=hV(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:d="50%",originZ:p=0}=s;r.transformOrigin=`${f} ${d} ${p}`}}function nL(e,{style:t,vars:n},r,a){const s=e.style;let l;for(l in t)s[l]=t[l];a==null||a.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function kE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Au={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=kE(e,t.target.x),r=kE(e,t.target.y);return`${n}% ${r}%`}},pV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=_r.parse(e);if(a.length>5)return r;const s=_r.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 d=ot(c,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=d),typeof a[3+l]=="number"&&(a[3+l]/=d),s(a)}},y1={borderRadius:{...Au,applyTo:[...ww]},borderTopLeftRadius:Au,borderTopRightRadius:Au,borderBottomLeftRadius:Au,borderBottomRightRadius:Au,boxShadow:pV};function rL(e,{layout:t,layoutId:n}){return yl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!y1[e]||e==="opacity")}function Cw(e,t,n){var l;const r=e.style,a=t==null?void 0:t.style,s={};if(!r)return s;for(const c in r)(on(r[c])||a&&on(a[c])||rL(c,e)||((l=n==null?void 0:n.getValue(c))==null?void 0:l.liveStyle)!==void 0)&&(s[c]=r[c]);return s}function mV(e){return window.getComputedStyle(e)}class yV extends Z3{constructor(){super(...arguments),this.type="html",this.renderInstance=nL}readValueFromInstance(t,n){var r;if(yl.has(n))return(r=this.projection)!=null&&r.isProjecting?t1(n):LI(t,n);{const a=mV(t),s=(d3(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tL(t,n)}build(t,n,r){Ew(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Cw(t,n,r)}}const vV={offset:"stroke-dashoffset",array:"stroke-dasharray"},gV={offset:"strokeDashoffset",array:"strokeDasharray"};function bV(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?vV:gV;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const xV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function iL(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},f,d,p){if(Ew(e,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete m.transformBox);for(const S of xV)m[S]!==void 0&&(g[S]=m[S],delete m[S]);t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&bV(m,a,s,l,!1)}const aL=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"]),oL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function SV(e,t,n,r){nL(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(aL.has(a)?a:Sw(a),t.attrs[a])}function sL(e,t,n){const r=Cw(e,t,n);for(const a in e)if(on(e[a])||on(t[a])){const s=ml.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}class wV extends Z3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ut}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(yl.has(n)){const r=I3(n);return r&&r.default||0}return n=aL.has(n)?n:Sw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return sL(t,n,r)}build(t,n,r){iL(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){SV(t,n,r,a)}mount(t){this.isSVGTag=oL(t.tagName),super.mount(t)}}const AV=Tw.length;function lL(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?lL(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<AV;n++){const r=Tw[n],a=e.props[r];(nc(a)||a===!1)&&(t[r]=a)}return t}function uL(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 jV=[..._w].reverse(),OV=_w.length;function _V(e){return t=>Promise.all(t.map(({animation:n,options:r})=>AU(e,n,r)))}function TV(e){let t=_V(e),n=LE(),r=!0,a=!1;const s=d=>(p,m)=>{var S;const g=po(e,m,d==="exit"?(S=e.presenceContext)==null?void 0:S.custom:void 0);if(g){const{transition:A,transitionEnd:w,...x}=g;p={...p,...x,...w}}return p};function l(d){t=d(e)}function c(d){const{props:p}=e,m=lL(e.parent)||{},g=[],S=new Set;let A={},w=1/0;for(let j=0;j<OV;j++){const _=jV[j],T=n[_],M=p[_]!==void 0?p[_]:m[_],O=nc(M),C=_===d?T.isActive:null;C===!1&&(w=j);let P=M===m[_]&&M!==p[_]&&O;if(P&&(r||a)&&e.manuallyAnimateOnMount&&(P=!1),T.protectedKeys={...A},!T.isActive&&C===null||!M&&!T.prevProp||Sp(M)||typeof M=="boolean")continue;if(_==="exit"&&T.isActive&&C!==!0){T.prevResolvedValues&&(A={...A,...T.prevResolvedValues});continue}const R=EV(T.prevProp,M);let k=R||_===d&&T.isActive&&!P&&O||j>w&&O,U=!1;const q=Array.isArray(M)?M:[M];let $=q.reduce(s(_),{});C===!1&&($={});const{prevResolvedValues:F={}}=T,X={...F,...$},Y=Q=>{k=!0,S.has(Q)&&(U=!0,S.delete(Q)),T.needsAnimating[Q]=!0;const ie=e.getValue(Q);ie&&(ie.liveStyle=!1)};for(const Q in X){const ie=$[Q],se=F[Q];if(A.hasOwnProperty(Q))continue;let L=!1;s1(ie)&&s1(se)?L=!uL(ie,se)||R:L=ie!==se,L?ie!=null?Y(Q):S.add(Q):ie!==void 0&&S.has(Q)?Y(Q):T.protectedKeys[Q]=!0}T.prevProp=M,T.prevResolvedValues=$,T.isActive&&(A={...A,...$}),(r||a)&&e.blockInitialAnimation&&(k=!1);const z=P&&R;k&&(!z||U)&&g.push(...q.map(Q=>{const ie={type:_};if(typeof Q=="string"&&(r||a)&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:se}=e,L=po(se,Q);if(se.enteringChildren&&L){const{delayChildren:H}=L.transition||{};ie.delay=N3(se.enteringChildren,e,H)}}return{animation:Q,options:ie}}))}if(S.size){const j={};if(typeof p.initial!="boolean"){const _=po(e,Array.isArray(p.initial)?p.initial[0]:p.initial);_&&_.transition&&(j.transition=_.transition)}S.forEach(_=>{const T=e.getBaseTarget(_),M=e.getValue(_);M&&(M.liveStyle=!0),j[_]=T??null}),g.push({animation:j})}let x=!!g.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,a=!1,x?t(g):Promise.resolve()}function f(d,p){var g;if(n[d].isActive===p)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(S=>{var A;return(A=S.animationState)==null?void 0:A.setActive(d,p)}),n[d].isActive=p;const m=c(d);for(const S in n)n[S].protectedKeys={};return m}return{animateChanges:c,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=LE(),a=!0}}}function EV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uL(t,e):!1}function Wa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LE(){return{animate:Wa(!0),whileInView:Wa(),whileHover:Wa(),whileTap:Wa(),whileDrag:Wa(),whileFocus:Wa(),exit:Wa()}}function v1(e,t){e.min=t.min,e.max=t.max}function br(e,t){v1(e.x,t.x),v1(e.y,t.y)}function $E(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const cL=1e-4,CV=1-cL,MV=1+cL,fL=.01,PV=0-fL,NV=0+fL;function pn(e){return e.max-e.min}function RV(e,t,n){return Math.abs(e-t)<=n}function zE(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=pn(n)/pn(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=CV&&e.scale<=MV||isNaN(e.scale))&&(e.scale=1),(e.translate>=PV&&e.translate<=NV||isNaN(e.translate))&&(e.translate=0)}function Vu(e,t,n,r){zE(e.x,t.x,n.x,r?r.originX:void 0),zE(e.y,t.y,n.y,r?r.originY:void 0)}function BE(e,t,n,r=0){const a=r?ot(n.min,n.max,r):n.min;e.min=a+t.min,e.max=e.min+pn(t)}function DV(e,t,n,r){BE(e.x,t.x,n.x,r==null?void 0:r.x),BE(e.y,t.y,n.y,r==null?void 0:r.y)}function qE(e,t,n,r=0){const a=r?ot(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+pn(t)}function uh(e,t,n,r){qE(e.x,t.x,n.x,r==null?void 0:r.x),qE(e.y,t.y,n.y,r==null?void 0:r.y)}function IE(e,t,n,r,a){return e-=t,e=lh(e,1/n,r),a!==void 0&&(e=lh(e,1/a,r)),e}function kV(e,t=0,n=1,r=.5,a,s=e,l=e){if(Gr.test(t)&&(t=parseFloat(t),t=ot(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=ot(s.min,s.max,r);e===s&&(c-=t),e.min=IE(e.min,t,n,c,a),e.max=IE(e.max,t,n,c,a)}function UE(e,t,[n,r,a],s,l){kV(e,t[n],t[r],t[a],t.scale,s,l)}const LV=["x","scaleX","originX"],$V=["y","scaleY","originY"];function VE(e,t,n,r){UE(e.x,t,LV,n?n.x:void 0,r?r.x:void 0),UE(e.y,t,$V,n?n.y:void 0,r?r.y:void 0)}function HE(e){return e.translate===0&&e.scale===1}function dL(e){return HE(e.x)&&HE(e.y)}function GE(e,t){return e.min===t.min&&e.max===t.max}function zV(e,t){return GE(e.x,t.x)&&GE(e.y,t.y)}function FE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hL(e,t){return FE(e.x,t.x)&&FE(e.y,t.y)}function KE(e){return pn(e.x)/pn(e.y)}function YE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ir(e){return[e("x"),e("y")]}function BV(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||s||l)&&(r=`translate3d(${a}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:p,pathRotation:m,rotateX:g,rotateY:S,skewX:A,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),p&&(r+=`rotate(${p}deg) `),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),S&&(r+=`rotateY(${S}deg) `),A&&(r+=`skewX(${A}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 qV=ww.length,XE=e=>typeof e=="string"?parseFloat(e):e,WE=e=>typeof e=="number"||ye.test(e);function IV(e,t,n,r,a,s){a?(e.opacity=ot(0,n.opacity??1,UV(r)),e.opacityExit=ot(t.opacity??1,0,VV(r))):s&&(e.opacity=ot(t.opacity??1,n.opacity??1,r));for(let l=0;l<qV;l++){const c=ww[l];let f=ZE(t,c),d=ZE(n,c);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||WE(f)===WE(d)?(e[c]=Math.max(ot(XE(f),XE(d),r),0),(Gr.test(d)||Gr.test(f))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=ot(t.rotate||0,n.rotate||0,r))}function ZE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const UV=pL(0,.5,o3),VV=pL(.5,.95,fr);function pL(e,t,n){return r=>r<e?0:r>t?1:n(ec(e,t,r))}function HV(e,t,n){const r=on(e)?e:zs(e);return r.start(bw("",r,t,n)),r.animation}function rc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const GV=(e,t)=>e.depth-t.depth;class FV{constructor(){this.children=[],this.isDirty=!1}add(t){ow(this.children,t),this.isDirty=!0}remove(t){th(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(GV),this.isDirty=!1,this.children.forEach(t)}}function KV(e,t){const n=hn.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(Sa(r),e(s-t))};return st.setup(r,!0),()=>Sa(r)}function Xd(e){return on(e)?e.get():e}class YV{constructor(){this.members=[]}add(t){ow(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&&(th(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(th(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:s}=r.options,{layoutDependency:l}=t.options;(s===void 0||s!==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,s,l;(r=(n=t.options).onExitComplete)==null||r.call(n),(l=(a=t.resumingFrom)==null?void 0:(s=a.options).onExitComplete)==null||l.call(s)})}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 Wd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},kv=["","X","Y","Z"],XV=1e3;let WV=0;function Lv(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=$3(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",st,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mL(r)}function yL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t==null?void 0:t()){this.id=WV++,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(JV),this.nodes.forEach(aH),this.nodes.forEach(oH),this.nodes.forEach(eH)},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 FV)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new lw),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=Ow(l)&&!QU(l),this.instance=l;const{layoutId:c,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let p,m=0;const g=()=>this.root.updateBlockedByResize=!1;st.read(()=>{m=window.innerWidth}),e(l,()=>{const S=window.innerWidth;S!==m&&(m=S,this.root.updateBlockedByResize=!0,p&&p(),p=KV(g,250),Wd.hasAnimatedSinceResize&&(Wd.hasAnimatedSinceResize=!1,this.nodes.forEach(e2)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||d.getDefaultTransition()||fH,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=d.getProps(),j=!this.targetLayout||!hL(this.targetLayout,S),_=!m&&g;if(this.options.layoutRoot||this.resumeFrom||_||m&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...gw(A,"layout"),onPlay:w,onComplete:x};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,_,T.path)}else m||e2(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(),Sa(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(sH),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&&mL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(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(nH),this.nodes.forEach(QE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(JE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rH),this.nodes.forEach(iH),this.nodes.forEach(ZV),this.nodes.forEach(QV)):this.nodes.forEach(JE),this.clearAllSnapshots();const c=hn.now();an.delta=Wr(0,1e3/60,c-an.timestamp),an.timestamp=c,an.isProcessing=!0,Tv.update.process(an),Tv.preRender.process(an),Tv.render.process(an),an.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Aw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tH),this.sharedNodes.forEach(lH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,st.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){st.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pn(this.snapshot.measuredBox.x)&&!pn(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=Ut()),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&&!dL(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;l&&this.instance&&(c||eo(this.latestValues)||p)&&(a(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),dH(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:l}=this.options;if(!l)return Ut();const c=l.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(hH))){const{scroll:p}=this.root;p&&(Ur(c.x,p.offset.x),Ur(c.y,p.offset.y))}return c}removeElementScroll(l){var f;const c=Ut();if(br(c,l),(f=this.scroll)!=null&&f.wasRoot)return c;for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:m,options:g}=p;p!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&br(c,l),Ur(c.x,m.offset.x),Ur(c.y,m.offset.y))}return c}applyTransform(l,c=!1,f){var p,m;const d=f||Ut();br(d,l);for(let g=0;g<this.path.length;g++){const S=this.path[g];!c&&S.options.layoutScroll&&S.scroll&&S!==S.root&&(Ur(d.x,-S.scroll.offset.x),Ur(d.y,-S.scroll.offset.y)),eo(S.latestValues)&&Yd(d,S.latestValues,(p=S.layout)==null?void 0:p.layoutBox)}return eo(this.latestValues)&&Yd(d,this.latestValues,(m=this.layout)==null?void 0:m.layoutBox),d}removeTransform(l){var f;const c=Ut();br(c,l);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!eo(p.latestValues))continue;let m;p.instance&&(p1(p.latestValues)&&p.updateSnapshot(),m=Ut(),br(m,p.measurePageBox())),VE(c,p.latestValues,(f=p.snapshot)==null?void 0:f.layoutBox,m)}return eo(this.latestValues)&&VE(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!==an.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:p,layoutId:m}=this.options;if(!this.layout||!(p||m))return;this.resolvedRelativeTargetAt=an.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=Ut(),this.targetWithTransforms=Ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),DV(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):br(this.target,this.layout.layoutBox),eL(this.target,this.targetDelta)):br(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||p1(this.parent.latestValues)||J3(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=Ut(),this.relativeTargetOrigin=Ut(),uh(this.relativeTargetOrigin,c,f,this.options.layoutAnchor||void 0),br(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var A;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(A=this.parent)!=null&&A.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===an.timestamp&&(f=!1),f)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;br(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;uV(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=Ut());const{target:S}=l;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($E(this.prevProjectionDelta.x,this.projectionDelta.x),$E(this.prevProjectionDelta.y,this.projectionDelta.y)),Vu(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!YE(this.projectionDelta.x,this.prevProjectionDelta.x)||!YE(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=js(),this.projectionDelta=js(),this.projectionDeltaWithTransform=js()}setAnimationOrigin(l,c=!1,f){const d=this.snapshot,p=d?d.latestValues:{},m={...this.latestValues},g=js();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const S=Ut(),A=d?d.source:void 0,w=this.layout?this.layout.source:void 0,x=A!==w,j=this.getStack(),_=!j||j.members.length<=1,T=!!(x&&!_&&this.options.crossfade===!0&&!this.path.some(cH));this.animationProgress=0;let M;const O=f==null?void 0:f.interpolateProjection(l);this.mixTargetDelta=C=>{const P=C/1e3,R=O==null?void 0:O(P);R?(g.x.translate=R.x,g.x.scale=ot(l.x.scale,1,P),g.x.origin=l.x.origin,g.x.originPoint=l.x.originPoint,g.y.translate=R.y,g.y.scale=ot(l.y.scale,1,P),g.y.origin=l.y.origin,g.y.originPoint=l.y.originPoint):(t2(g.x,l.x,P),t2(g.y,l.y,P)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uh(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),uH(this.relativeTarget,this.relativeTargetOrigin,S,P),M&&zV(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=Ut()),br(M,this.relativeTarget)),x&&(this.animationValues=m,IV(m,p,this.latestValues,P,T,_)),R&&R.rotate!==void 0&&(this.animationValues||(this.animationValues=m),this.animationValues.pathRotation=R.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,f,d;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(d=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||d.stop(),this.pendingAnimation&&(Sa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=st.update(()=>{Wd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zs(0)),this.motionValue.jump(0,!1),this.currentAnimation=HV(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),l.onUpdate&&l.onUpdate(p)},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(XV),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:d,latestValues:p}=l;if(!(!c||!f||!d)){if(this!==l&&this.layout&&d&&vL(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||Ut();const m=pn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+m;const g=pn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}br(c,f),Yd(c,p),Vu(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new YV),this.sharedNodes.get(l).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.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 d=this.getStack();d&&d.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 d={};f.z&&Lv("z",l,d,this.animationValues);for(let p=0;p<kv.length;p++)Lv(`rotate${kv[p]}`,l,d,this.animationValues),Lv(`skew${kv[p]}`,l,d,this.animationValues);l.render();for(const p in d)l.setStaticValue(p,d[p]),this.animationValues&&(this.animationValues[p]=d[p]);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=Xd(c==null?void 0:c.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=Xd(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!eo(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=BV(this.projectionDeltaWithTransform,this.treeScale,p);f&&(m=f(p,m)),l.transform=m;const{x:g,y:S}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${S.origin*100}% 0`,d.animationValues?l.opacity=d===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const A in y1){if(p[A]===void 0)continue;const{correct:w,applyTo:x,isCSSVariable:j}=y1[A],_=m==="none"?p[A]:w(p[A],d);if(x){const T=x.length;for(let M=0;M<T;M++)l[x[M]]=_}else j?this.options.visualElement.renderState.vars[A]=_:l[A]=_}this.options.layoutId&&(l.pointerEvents=d===this?Xd(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(QE),this.root.sharedNodes.clear()}}}function ZV(e){e.updateLayout()}function QV(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:s}=e.options,l=t.source!==e.layout.source;if(s==="size")Ir(m=>{const g=l?t.measuredBox[m]:t.layoutBox[m],S=pn(g);g.min=r[m].min,g.max=g.min+S});else if(s==="x"||s==="y"){const m=s==="x"?"y":"x";v1(l?t.measuredBox[m]:t.layoutBox[m],r[m])}else vL(s,t.layoutBox,r)&&Ir(m=>{const g=l?t.measuredBox[m]:t.layoutBox[m],S=pn(r[m]);g.max=g.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+S)});const c=js();Vu(c,r,t.layoutBox);const f=js();l?Vu(f,e.applyTransform(a,!0),t.measuredBox):Vu(f,r,t.layoutBox);const d=!dL(c);let p=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:S}=m;if(g&&S){const A=e.options.layoutAnchor||void 0,w=Ut();uh(w,t.layoutBox,g.layoutBox,A);const x=Ut();uh(x,r,S.layoutBox,A),hL(w,x)||(p=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function JV(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 eH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tH(e){e.clearSnapshot()}function QE(e){e.clearMeasurements()}function nH(e){e.isLayoutDirty=!0,e.updateLayout()}function JE(e){e.isLayoutDirty=!1}function rH(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function iH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function e2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aH(e){e.resolveTargetDelta()}function oH(e){e.calcProjection()}function sH(e){e.resetSkewAndRotation()}function lH(e){e.removeLeadSnapshot()}function t2(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function n2(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function uH(e,t,n,r){n2(e.x,t.x,n.x,r),n2(e.y,t.y,n.y,r)}function cH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fH={duration:.45,ease:[.4,0,.1,1]},r2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),i2=r2("applewebkit/")&&!r2("chrome/")?Math.round:fr;function a2(e){e.min=i2(e.min),e.max=i2(e.max)}function dH(e){a2(e.x),a2(e.y)}function vL(e,t,n){return e==="position"||e==="preserve-aspect"&&!RV(KE(t),KE(n),.2)}function hH(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const pH=yL({attachResizeListener:(e,t)=>rc(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}),$v={current:void 0},gL=yL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$v.current){const e=new pH({});e.mount(window),e.setOptions({layoutScroll:!0}),$v.current=e}return $v.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Mw=N.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function o2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mH(...e){return t=>{let n=!1;const r=e.map(a=>{const s=o2(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():o2(e[a],null)}}}}function yH(...e){return N.useCallback(mH(...e),e)}class vH extends N.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Hd(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,a=Hd(r)&&r.offsetWidth||0,s=Hd(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=s-c.height-c.top,c.direction=l.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function gH({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:s}){var g;const l=N.useId(),c=N.useRef(null),f=N.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=N.useContext(Mw),p=((g=e.props)==null?void 0:g.ref)??(e==null?void 0:e.ref),m=yH(c,p);return N.useInsertionEffect(()=>{const{width:S,height:A,top:w,left:x,right:j,bottom:_,direction:T}=f.current;if(t||s===!1||!c.current||!S||!A)return;const M=T==="rtl",O=n==="left"?M?`right: ${j}`:`left: ${x}`:M?`left: ${x}`:`right: ${j}`,C=r==="bottom"?`bottom: ${_}`:`top: ${w}`;c.current.dataset.motionPopId=l;const P=document.createElement("style");d&&(P.nonce=d);const R=a??document.head;return R.appendChild(P),P.sheet&&P.sheet.insertRule(`
[data-motion-pop-id="${l}"] {
position: absolute !important;
width: ${S}px !important;
height: ${A}px !important;
${O}px !important;
${C}px !important;
}
`),()=>{var k;(k=c.current)==null||k.removeAttribute("data-motion-pop-id"),R.contains(P)&&R.removeChild(P)}},[t]),y.jsx(vH,{isPresent:t,childRef:c,sizeRef:f,pop:s,children:s===!1?e:N.cloneElement(e,{ref:m})})}const bH=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:s,mode:l,anchorX:c,anchorY:f,root:d})=>{const p=iw(xH),m=N.useId(),g=N.useRef(n),S=N.useRef(r);aw(()=>{g.current=n,S.current=r});let A=!0,w=N.useMemo(()=>(A=!1,{id:m,initial:t,isPresent:n,custom:a,onExitComplete:x=>{p.set(x,!0);for(const j of p.values())if(!j)return;r&&r()},register:x=>(p.set(x,!1),()=>{var j;p.delete(x),!g.current&&!p.size&&((j=S.current)==null||j.call(S))})}),[n,p,r]);return s&&A&&(w={...w}),N.useMemo(()=>{p.forEach((x,j)=>p.set(j,!1))},[n]),N.useEffect(()=>{!n&&!p.size&&r&&r()},[n]),e=y.jsx(gH,{pop:l==="popLayout",isPresent:n,anchorX:c,anchorY:f,root:d,children:e}),y.jsx(bp.Provider,{value:w,children:e})};function xH(){return new Map}function bL(e=!0){const t=N.useContext(bp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=N.useId();N.useEffect(()=>{if(e)return a(s)},[e]);const l=N.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const jd=e=>e.key||"";function s2(e){const t=[];return N.Children.forEach(e,n=>{N.isValidElement(n)&&t.push(n)}),t}const Hu=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s="sync",propagate:l=!1,anchorX:c="left",anchorY:f="top",root:d})=>{const[p,m]=bL(l),g=N.useMemo(()=>s2(e),[e]),S=l&&!p?[]:g.map(jd),A=N.useRef(!0),w=N.useRef(g),x=iw(()=>new Map),j=N.useRef(new Set),[_,T]=N.useState(g),[M,O]=N.useState(g);aw(()=>{A.current=!1,w.current=g;for(let R=0;R<M.length;R++){const k=jd(M[R]);S.includes(k)?(x.delete(k),j.current.delete(k)):x.get(k)!==!0&&x.set(k,!1)}},[M,S.length,S.join("-")]);const C=[];if(g!==_){let R=[...g];for(let k=0;k<M.length;k++){const U=M[k],q=jd(U);S.includes(q)||(R.splice(k,0,U),C.push(U))}return s==="wait"&&C.length&&(R=C),O(s2(R)),T(g),null}const{forceRender:P}=N.useContext(rw);return y.jsx(y.Fragment,{children:M.map(R=>{const k=jd(R),U=l&&!p?!1:g===M||S.includes(k),q=()=>{if(j.current.has(k))return;if(x.has(k))j.current.add(k),x.set(k,!0);else return;let $=!0;x.forEach(F=>{F||($=!1)}),$&&(P==null||P(),O(w.current),l&&(m==null||m()),r&&r())};return y.jsx(bH,{isPresent:U,initial:!A.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:d,onExitComplete:U?void 0:q,anchorX:c,anchorY:f,children:R},k)})})},xL=N.createContext({strict:!1}),l2={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 u2=!1;function SH(){if(u2)return;const e={};for(const t in l2)e[t]={isEnabled:n=>l2[t].some(r=>!!n[r])};W3(e),u2=!0}function SL(){return SH(),aV()}function wH(e){const t=SL();for(const n in e)t[n]={...t[n],...e[n]};W3(t)}const AH=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 ch(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AH.has(e)}let wL=e=>!ch(e);function jH(e){typeof e=="function"&&(wL=t=>t.startsWith("on")?!ch(t):e(t))}try{jH(require("@emotion/is-prop-valid").default)}catch{}function OH(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||on(e[a])||(wL(a)||n===!0&&ch(a)||!t&&!ch(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Ap=N.createContext({});function _H(e,t){if(wp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||nc(n)?n:void 0,animate:nc(r)?r:void 0}}return e.inherit!==!1?t:{}}function TH(e){const{initial:t,animate:n}=_H(e,N.useContext(Ap));return N.useMemo(()=>({initial:t,animate:n}),[c2(t),c2(n)])}function c2(e){return Array.isArray(e)?e.join(" "):e}const Pw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function AL(e,t,n){for(const r in t)!on(t[r])&&!rL(r,n)&&(e[r]=t[r])}function EH({transformTemplate:e},t){return N.useMemo(()=>{const n=Pw();return Ew(n,t,e),Object.assign({},n.vars,n.style)},[t])}function CH(e,t){const n=e.style||{},r={};return AL(r,n,e),Object.assign(r,EH(e,t)),r}function MH(e,t){const n={},r=CH(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 jL=()=>({...Pw(),attrs:{}});function PH(e,t,n,r){const a=N.useMemo(()=>{const s=jL();return iL(s,t,oL(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};AL(s,e.style,e),a.style={...s,...a.style}}return a}const NH=["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 Nw(e){return typeof e!="string"||e.includes("-")?!1:!!(NH.indexOf(e)>-1||/[A-Z]/u.test(e))}function RH(e,t,n,{latestValues:r},a,s=!1,l){const f=(l??Nw(e)?PH:MH)(t,r,a,e),d=OH(t,typeof e=="string",s),p=e!==N.Fragment?{...d,...f,ref:n}:{},{children:m}=t,g=N.useMemo(()=>on(m)?m.get():m,[m]);return N.createElement(e,{...p,children:g})}function DH({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:kH(n,r,a,e),renderState:t()}}function kH(e,t,n,r){const a={},s=r(e,{});for(const g in s)a[g]=Xd(s[g]);let{initial:l,animate:c}=e;const f=wp(e),d=Y3(e);t&&d&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||l===!1;const m=p?c:l;if(m&&typeof m!="boolean"&&!Sp(m)){const g=Array.isArray(m)?m:[m];for(let S=0;S<g.length;S++){const A=xw(e,g[S]);if(A){const{transitionEnd:w,transition:x,...j}=A;for(const _ in j){let T=j[_];if(Array.isArray(T)){const M=p?T.length-1:0;T=T[M]}T!==null&&(a[_]=T)}for(const _ in w)a[_]=w[_]}}}return a}const OL=e=>(t,n)=>{const r=N.useContext(Ap),a=N.useContext(bp),s=()=>DH(e,t,r,a);return n?s():iw(s)},LH=OL({scrapeMotionValuesFromProps:Cw,createRenderState:Pw}),$H=OL({scrapeMotionValuesFromProps:sL,createRenderState:jL}),zH=Symbol.for("motionComponentSymbol");function BH(e,t,n){const r=N.useRef(n);N.useInsertionEffect(()=>{r.current=n});const a=N.useRef(null);return N.useCallback(s=>{var c;s&&((c=e.onMount)==null||c.call(e,s)),t&&(s?t.mount(s):t.unmount());const l=r.current;if(typeof l=="function")if(s){const f=l(s);typeof f=="function"&&(a.current=f)}else a.current?(a.current(),a.current=null):l(s);else l&&(l.current=s)},[t])}const _L=N.createContext({});function Ss(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qH(e,t,n,r,a,s){var T,M;const{visualElement:l}=N.useContext(Ap),c=N.useContext(xL),f=N.useContext(bp),d=N.useContext(Mw),p=d.reducedMotion,m=d.skipAnimations,g=N.useRef(null),S=N.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:p,skipAnimations:m,isSVG:s}),S.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const A=g.current,w=N.useContext(_L);A&&!A.projection&&a&&(A.type==="html"||A.type==="svg")&&IH(g.current,n,a,w);const x=N.useRef(!1);N.useInsertionEffect(()=>{A&&x.current&&A.update(n,f)});const j=n[L3],_=N.useRef(!!j&&typeof window<"u"&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,j))&&((M=window.MotionHasOptimisedAnimation)==null?void 0:M.call(window,j)));return aw(()=>{S.current=!0,A&&(x.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),_.current&&A.animationState&&A.animationState.animateChanges())}),N.useEffect(()=>{A&&(!_.current&&A.animationState&&A.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,j)}),_.current=!1),A.enteringChildren=void 0)}),A}function IH(e,t,n,r){const{layoutId:a,layout:s,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:d,layoutAnchor:p,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:TL(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||c&&Ss(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:f,layoutRoot:d,layoutAnchor:p})}function TL(e){if(e)return e.options.allowProjection!==!1?e.projection:TL(e.parent)}function zv(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&wH(r);const s=n?n==="svg":Nw(e),l=s?$H:LH;function c(d,p){let m;const g={...N.useContext(Mw),...d,layoutId:UH(d)},{isStatic:S}=g,A=TH(d),w=l(d,S);if(!S&&typeof window<"u"){VH();const x=HH(g);m=x.MeasureLayout,A.visualElement=qH(e,w,g,a,x.ProjectionNode,s)}return y.jsxs(Ap.Provider,{value:A,children:[m&&A.visualElement?y.jsx(m,{visualElement:A.visualElement,...g}):null,RH(e,d,BH(w,A.visualElement,p),w,S,t,s)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=N.forwardRef(c);return f[zH]=e,f}function UH({layoutId:e}){const t=N.useContext(rw).id;return t&&e!==void 0?t+"-"+e:e}function VH(e,t){N.useContext(xL).strict}function HH(e){const t=SL(),{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 GH(e,t){if(typeof Proxy>"u")return zv;const n=new Map,r=(s,l)=>zv(s,l,e,t),a=(s,l)=>r(s,l);return new Proxy(a,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,zv(l,void 0,e,t)),n.get(l))})}const FH=(e,t)=>t.isSVG??Nw(e)?new wV(t):new yV(t,{allowProjection:e!==N.Fragment});class KH extends Oa{constructor(t){super(t),t.animationState||(t.animationState=TV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Sp(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 YH=0;class XH extends Oa{constructor(){super(...arguments),this.id=YH++,this.isExitComplete=!1}update(){var s;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=po(this.node,l,c);if(f){const{transition:d,transitionEnd:p,...m}=f;for(const g in m)(s=this.node.getValue(g))==null||s.jump(m[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 WH={animation:{Feature:KH},exit:{Feature:XH}};function Gc(e){return{point:{x:e.pageX,y:e.pageY}}}const ZH=e=>t=>jw(t)&&e(t,Gc(t));function Gu(e,t,n,r){return rc(e,t,ZH(n),r)}const EL=({current:e})=>e?e.ownerDocument.defaultView:null,f2=(e,t)=>Math.abs(e-t);function QH(e,t){const n=f2(e.x,t.x),r=f2(e.y,t.y);return Math.sqrt(n**2+r**2)}const d2=new Set(["auto","scroll"]);class CL{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!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=A=>{this.handleScroll(A.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Od(this.lastRawMoveEventInfo,this.transformPagePoint));const A=Bv(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,x=QH(A.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!x)return;const{point:j}=A,{timestamp:_}=an;this.history.push({...j,timestamp:_});const{onStart:T,onMove:M}=this.handlers;w||(T&&T(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,A)},this.handlePointerMove=(A,w)=>{this.lastMoveEvent=A,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Od(w,this.transformPagePoint),st.update(this.updatePoint,!0)},this.handlePointerUp=(A,w)=>{this.end();const{onEnd:x,onSessionEnd:j,resumeAnimation:_}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Bv(A.type==="pointercancel"?this.lastMoveEventInfo:Od(w,this.transformPagePoint),this.history);this.startEvent&&x&&x(A,T),j&&j(A,T)},!jw(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const f=Gc(t),d=Od(f,this.transformPagePoint),{point:p}=d,{timestamp:m}=an;this.history=[{...p,timestamp:m}];const{onSessionStart:g}=n;g&&g(t,Bv(d,this.history));const S={passive:!0,capture:!0};this.removeListeners=Uc(Gu(this.contextWindow,"pointermove",this.handlePointerMove,S),Gu(this.contextWindow,"pointerup",this.handlePointerUp,S),Gu(this.contextWindow,"pointercancel",this.handlePointerUp,S)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(d2.has(r.overflowX)||d2.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},s={x:a.x-n.x,y:a.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,a),st.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Sa(this.updatePoint)}}function Od(e,t){return t?{point:t(e.point)}:e}function h2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bv({point:e},t){return{point:e,delta:h2(e,ML(t)),offset:h2(e,JH(t)),velocity:e7(t,.1)}}function JH(e){return e[0]}function ML(e){return e[e.length-1]}function e7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=ML(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Hn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>Hn(t)*2&&(r=e[1]);const s=ur(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function t7(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ot(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function p2(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 n7(e,{top:t,left:n,bottom:r,right:a}){return{x:p2(e.x,n,a),y:p2(e.y,t,r)}}function m2(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 r7(e,t){return{x:m2(e.x,t.x),y:m2(e.y,t.y)}}function i7(e,t){let n=.5;const r=pn(e),a=pn(t);return a>r?n=ec(t.min,t.max-r,e.min):r>a&&(n=ec(e.min,e.max-a,t.min)),Wr(0,1,n)}function a7(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 g1=.35;function o7(e=g1){return e===!1?e=0:e===!0&&(e=g1),{x:y2(e,"left","right"),y:y2(e,"top","bottom")}}function y2(e,t,n){return{min:v2(e,t),max:v2(e,n)}}function v2(e,t){return typeof e=="number"?e:e[t]||0}const s7=new WeakMap;class l7{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=Ut(),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 s=m=>{n&&this.snapToCursor(Gc(m).point),this.stopAnimation()},l=(m,g)=>{const{drag:S,dragPropagation:A,onDragStart:w}=this.getProps();if(S&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kU(S),!this.openDragLock))return;this.latestPointerEvent=m,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),Ir(j=>{let _=this.getAxisMotionValue(j).get()||0;if(Gr.test(_)){const{projection:T}=this.visualElement;if(T&&T.layout){const M=T.layout.layoutBox[j];M&&(_=pn(M)*(parseFloat(_)/100))}}this.originPoint[j]=_}),w&&st.update(()=>w(m,g),!1,!0),l1(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},c=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:S,dragDirectionLock:A,onDirectionLock:w,onDrag:x}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:j}=g;if(A&&this.currentDirection===null){this.currentDirection=c7(j),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),x&&st.update(()=>x(m,g),!1,!0)},f=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new CL(t,{onSessionStart:s,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:EL(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&st.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||!_d(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=t7(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,a=this.constraints;t&&Ss(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=n7(r.layoutBox,t):this.constraints=!1,this.elastic=o7(n),a!==this.constraints&&!Ss(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ir(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=a7(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ss(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 s=cV(r,a.root,this.visualElement.getTransformPagePoint());let l=r7(a.layout.layoutBox,s);if(n){const c=n(sV(l));this.hasMutatedConstraints=!!c,c&&(l=Q3(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},d=Ir(p=>{if(!_d(p,n,this.currentDirection))return;let m=f&&f[p]||{};(l===!0||l===p)&&(m={min:0,max:0});const g=a?200:1e6,S=a?40:1e7,A={type:"inertia",velocity:r?t[p]:0,bounceStiffness:g,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(p,A)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return l1(this.visualElement,t),r.start(bw(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ir(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){Ir(n=>{const{drag:r}=this.getProps();if(!_d(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:c}=a.layout.layoutBox[n],f=s.get()||0;s.set(t[n]-ot(l,c,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ss(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ir(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();a[l]=i7({min:f,max:f},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ir(l=>{if(!_d(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:d}=this.constraints[l];c.set(ot(f,d,a[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;s7.set(this.visualElement,this);const t=this.visualElement.current,n=Gu(t,"pointerdown",d=>{const{drag:p,dragListener:m=!0}=this.getProps(),g=d.target,S=g!==t&&IU(g);p&&m&&!S&&this.start(d)});let r;const a=()=>{const{dragConstraints:d}=this.getProps();Ss(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=u7(t,d.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",a);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),st.read(a);const c=rc(window,"resize",()=>this.scalePositionWithinConstraints()),f=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ir(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=d[m].translate,g.set(g.get()+d[m].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:s=!1,dragElastic:l=g1,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:c}}}function g2(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function u7(e,t,n){const r=OE(e,g2(n)),a=OE(t,g2(n));return()=>{r(),a()}}function _d(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function c7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class f7 extends Oa{constructor(t){super(t),this.removeGroupControls=fr,this.removeListeners=fr,this.controls=new l7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fr}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 qv=e=>(t,n)=>{e&&st.update(()=>e(t,n),!1,!0)};class d7 extends Oa{constructor(){super(...arguments),this.removePointerDownListener=fr}onPointerDown(t){this.session=new CL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:EL(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:qv(t),onStart:qv(n),onMove:qv(r),onEnd:(s,l)=>{delete this.session,a&&st.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=Gu(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 Iv=!1;class h7 extends N.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),Iv&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),Iv=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||st.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(),Aw.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Iv=!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 PL(e){const[t,n]=bL(),r=N.useContext(rw);return y.jsx(h7,{...e,layoutGroup:r,switchLayoutGroup:N.useContext(_L),isPresent:t,safeToRemove:n})}const p7={pan:{Feature:d7},drag:{Feature:f7,ProjectionNode:gL,MeasureLayout:PL}};function b2(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&st.postRender(()=>s(t,Gc(t)))}class m7 extends Oa{mount(){const{current:t}=this.node;t&&(this.unmount=$U(t,(n,r)=>(b2(this.node,r,"Start"),a=>b2(this.node,a,"End"))))}unmount(){}}class y7 extends Oa{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=Uc(rc(this.node.current,"focus",()=>this.onFocus()),rc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function x2(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),s=r[a];s&&st.postRender(()=>s(t,Gc(t)))}class v7 extends Oa{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=VU(t,(a,s)=>(x2(this.node,s,"Start"),(l,{success:c})=>x2(this.node,l,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const b1=new WeakMap,Uv=new WeakMap,g7=e=>{const t=b1.get(e.target);t&&t(e)},b7=e=>{e.forEach(g7)};function x7({root:e,...t}){const n=e||document;Uv.has(n)||Uv.set(n,{});const r=Uv.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(b7,{root:e,...t})),r[a]}function S7(e,t,n){const r=x7(t);return b1.set(e,n),r.observe(e),()=>{b1.delete(e),r.unobserve(e)}}const w7={some:0,all:1};class A7 extends Oa{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:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:w7[a]},c=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,s&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),S=p?m:g;S&&S(d)};this.stopObserver=S7(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(j7(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function j7({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const O7={inView:{Feature:A7},tap:{Feature:v7},focus:{Feature:y7},hover:{Feature:m7}},_7={layout:{ProjectionNode:gL,MeasureLayout:PL}},T7={...WH,...O7,...p7,..._7},sr=GH(T7,FH),Rw=Yk(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 E7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),NL=(...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 C7={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 M7=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...c},f)=>N.createElement("svg",{ref:f,...C7,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:NL("lucide",a),...c},[...l.map(([d,p])=>N.createElement(d,p)),...Array.isArray(s)?s:[s]]));/**
* @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 Ee=(e,t)=>{const n=N.forwardRef(({className:r,...a},s)=>N.createElement(M7,{ref:s,iconNode:t,className:NL(`lucide-${E7(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 P7=Ee("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 x1=Ee("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 N7=Ee("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 R7=Ee("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 D7=Ee("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 k7=Ee("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 L7=Ee("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 $7=Ee("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 z7=Ee("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 B7=Ee("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 q7=Ee("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 RL=Ee("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 Dw=Ee("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 DL=Ee("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 Zr=Ee("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 I7=Ee("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 U7=Ee("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 kL=Ee("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 Ps=Ee("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 vl=Ee("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 V7=Ee("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 LL=Ee("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 H7=Ee("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 G7=Ee("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 F7=Ee("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 ic=Ee("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 $L=Ee("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 K7=Ee("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 Y7=Ee("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 X7=Ee("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 W7=Ee("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 S2=Ee("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 w2=Ee("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 _a=Ee("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 _o=Ee("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 Z7=Ee("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 Q7=Ee("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 J7=Ee("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 zL=Ee("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 To=Ee("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 S1=Ee("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 e9=Ee("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 go=Ee("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 BL=Ee("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 qL=Ee("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 IL(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=IL(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=IL(e))&&(r&&(r+=" "),r+=t);return r}const kw="-",t9=e=>{const t=r9(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(kw);return c[0]===""&&c.length!==1&&c.shift(),UL(c,t)||n9(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},UL=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?UL(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(kw);return(l=t.validators.find(({validator:c})=>c(s)))==null?void 0:l.classGroupId},A2=/^\[(.+)\]$/,n9=e=>{if(A2.test(e)){const t=A2.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},r9=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return a9(Object.entries(e.classGroups),n).forEach(([s,l])=>{w1(l,r,s,t)}),r},w1=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:j2(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(i9(a)){w1(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,l])=>{w1(l,j2(t,s),n,r)})})},j2=(e,t)=>{let n=e;return t.split(kw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},i9=e=>e.isThemeGetter,a9=(e,t)=>t?e.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,c])=>[t+l,c])):s);return[n,a]}):e,o9=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return a(s,l),l},set(s,l){n.has(s)?n.set(s,l):a(s,l)}}},VL="!",s9=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],s=t.length,l=c=>{const f=[];let d=0,p=0,m;for(let x=0;x<c.length;x++){let j=c[x];if(d===0){if(j===a&&(r||c.slice(x,x+s)===t)){f.push(c.slice(p,x)),p=x+s;continue}if(j==="/"){m=x;continue}}j==="["?d++:j==="]"&&d--}const g=f.length===0?c:c.substring(p),S=g.startsWith(VL),A=S?g.substring(1):g,w=m&&m>p?m-p:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:A,maybePostfixModifierPosition:w}};return n?c=>n({className:c,parseClassName:l}):l},l9=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},u9=e=>({cache:o9(e.cacheSize),parseClassName:s9(e),...t9(e)}),c9=/\s+/,f9=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,s=[],l=e.trim().split(c9);let c="";for(let f=l.length-1;f>=0;f-=1){const d=l[f],{modifiers:p,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:S}=n(d);let A=!!S,w=r(A?g.substring(0,S):g);if(!w){if(!A){c=d+(c.length>0?" "+c:c);continue}if(w=r(g),!w){c=d+(c.length>0?" "+c:c);continue}A=!1}const x=l9(p).join(":"),j=m?x+VL:x,_=j+w;if(s.includes(_))continue;s.push(_);const T=a(w,A);for(let M=0;M<T.length;++M){const O=T[M];s.push(j+O)}c=d+(c.length>0?" "+c:c)}return c};function d9(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=HL(t))&&(r&&(r+=" "),r+=n);return r}const HL=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=HL(e[r]))&&(n&&(n+=" "),n+=t);return n};function h9(e,...t){let n,r,a,s=l;function l(f){const d=t.reduce((p,m)=>m(p),e());return n=u9(d),r=n.cache.get,a=n.cache.set,s=c,c(f)}function c(f){const d=r(f);if(d)return d;const p=f9(f,n);return a(f,p),p}return function(){return s(d9.apply(null,arguments))}}const mt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},GL=/^\[(?:([a-z-]+):)?(.+)\]$/i,p9=/^\d+\/\d+$/,m9=new Set(["px","full","screen"]),y9=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v9=/\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$/,g9=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,b9=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,x9=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xi=e=>Ns(e)||m9.has(e)||p9.test(e),ca=e=>gl(e,"length",E9),Ns=e=>!!e&&!Number.isNaN(Number(e)),Vv=e=>gl(e,"number",Ns),ju=e=>!!e&&Number.isInteger(Number(e)),S9=e=>e.endsWith("%")&&Ns(e.slice(0,-1)),ke=e=>GL.test(e),fa=e=>y9.test(e),w9=new Set(["length","size","percentage"]),A9=e=>gl(e,w9,FL),j9=e=>gl(e,"position",FL),O9=new Set(["image","url"]),_9=e=>gl(e,O9,M9),T9=e=>gl(e,"",C9),Ou=()=>!0,gl=(e,t,n)=>{const r=GL.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},E9=e=>v9.test(e)&&!g9.test(e),FL=()=>!1,C9=e=>b9.test(e),M9=e=>x9.test(e),P9=()=>{const e=mt("colors"),t=mt("spacing"),n=mt("blur"),r=mt("brightness"),a=mt("borderColor"),s=mt("borderRadius"),l=mt("borderSpacing"),c=mt("borderWidth"),f=mt("contrast"),d=mt("grayscale"),p=mt("hueRotate"),m=mt("invert"),g=mt("gap"),S=mt("gradientColorStops"),A=mt("gradientColorStopPositions"),w=mt("inset"),x=mt("margin"),j=mt("opacity"),_=mt("padding"),T=mt("saturate"),M=mt("scale"),O=mt("sepia"),C=mt("skew"),P=mt("space"),R=mt("translate"),k=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",ke,t],$=()=>[ke,t],F=()=>["",xi,ca],X=()=>["auto",Ns,ke],Y=()=>["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"],ie=()=>["","0",ke],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Ns,ke];return{cacheSize:500,separator:":",theme:{colors:[Ou],spacing:[xi,ca],blur:["none","",fa,ke],brightness:L(),borderColor:[e],borderRadius:["none","","full",fa,ke],borderSpacing:$(),borderWidth:F(),contrast:L(),grayscale:ie(),hueRotate:L(),invert:ie(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[S9,ca],inset:q(),margin:q(),opacity:L(),padding:$(),saturate:L(),scale:L(),sepia:ie(),skew:L(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",ke]}],container:["container"],columns:[{columns:[fa]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),ke]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],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",ju,ke]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ke]}],grow:[{grow:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",ju,ke]}],"grid-cols":[{"grid-cols":[Ou]}],"col-start-end":[{col:["auto",{span:["full",ju,ke]},ke]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[Ou]}],"row-start-end":[{row:["auto",{span:[ju,ke]},ke]}],"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",ke]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ke]}],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:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ke,t]}],"min-w":[{"min-w":[ke,t,"min","max","fit"]}],"max-w":[{"max-w":[ke,t,"none","full","min","max","fit","prose",{screen:[fa]},fa]}],h:[{h:[ke,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ke,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ke,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fa,ca]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vv]}],"font-family":[{font:[Ou]}],"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",ke]}],"line-clamp":[{"line-clamp":["none",Ns,Vv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xi,ke]}],"list-image":[{"list-image":["none",ke]}],"list-style-type":[{list:["none","disc","decimal",ke]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xi,ca]}],"underline-offset":[{"underline-offset":["auto",xi,ke]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke]}],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",ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),j9]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A9]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_9]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"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":[j]}],"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":[j]}],"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":[xi,ke]}],"outline-w":[{outline:[xi,ca]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[xi,ca]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fa,T9]}],"shadow-color":[{shadow:[Ou]}],opacity:[{opacity:[j]}],"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",fa,ke]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[m]}],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":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"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",ke]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",ke]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",ke]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ju,ke]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ke]}],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",ke]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ke]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[xi,ca,Vv]}],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"]}}},N9=h9(P9);function $t(...e){return N9(Pe(e))}function Ue(e,t="SEK"){return new Intl.NumberFormat("sv-SE",{style:"currency",currency:t,maximumFractionDigits:0}).format(e)}function Fr(e){return new Intl.DateTimeFormat("sv-SE",{year:"numeric",month:"short",day:"numeric"}).format(new Date(e))}function Lw(e){const t=new Date,n=new Date(e),r=t.getTime()-n.getTime(),a=Math.floor(r/6e4),s=Math.floor(r/36e5),l=Math.floor(r/864e5);return a<1?"Just now":a<60?`${a}m ago`:s<24?`${s}h ago`:l<7?`${l}d ago`:Fr(e)}function R9(e){return e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2)}const D9=[{path:"/",label:"Dashboard",icon:H7},{path:"/crm",label:"CRM",icon:go},{path:"/sales",label:"Sales",icon:To},{path:"/finance",label:"Finance",icon:BL},{path:"/hr",label:"HR",icon:R7},{path:"/legal",label:"Legal",icon:Ps},{path:"/marketing",label:"Marketing",icon:$L},{path:"/support",label:"Support",icon:LL},{path:"/automation",label:"Automation",icon:qL}];function k9(){const{sidebarOpen:e,toggleSidebar:t}=Rw(),n=Dr();return y.jsxs(y.Fragment,{children:[y.jsx(Hu,{children:e&&y.jsx(sr.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})}),y.jsxs(sr.aside,{initial:!1,animate:{width:e?240:72},transition:{duration:.2,ease:"easeOut"},className:$t("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:[y.jsxs("div",{className:"h-16 flex items-center justify-between shrink-0",children:[y.jsxs("div",{className:"flex items-center gap-2.5 overflow-hidden",children:[y.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center shrink-0",children:y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 32 32",fill:"none",children:y.jsx("path",{d:"M10 22L16 10L22 22H10Z",stroke:"white",strokeWidth:"2.5",strokeLinejoin:"round"})})}),y.jsx(Hu,{children:e&&y.jsx(sr.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"})})]}),y.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?y.jsx(z7,{size:14}):y.jsx(B7,{size:14})})]}),y.jsx("nav",{className:"flex-1 py-4 space-y-0.5 overflow-y-auto",children:D9.map(r=>{const a=n.pathname===r.path||r.path!=="/"&&n.pathname.startsWith(r.path),s=r.icon;return y.jsxs(Fk,{to:r.path,onClick:()=>{window.innerWidth<1024&&t()},className:$t("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&&y.jsx(sr.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"}}),y.jsx(s,{size:18,strokeWidth:a?2:1.5}),y.jsx(Hu,{children:e&&y.jsx(sr.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.15},className:$t("text-sm font-medium whitespace-nowrap",a?"text-primary":"text-text-secondary"),children:r.label})})]},r.path)})})]})]})}const O2=[{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 L9(){const{user:e,logout:t}=gp(),{toggleSidebar:n}=Rw(),[r,a]=N.useState(!1),[s,l]=N.useState(!1),c=()=>{const d=new Date().getHours();return d<12?"Good morning":d<17?"Good afternoon":"Good evening"},f=O2.filter(d=>!d.read).length;return y.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:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.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:y.jsx(K7,{size:18})}),y.jsxs("div",{children:[y.jsxs("h1",{className:"text-base font-semibold text-text-primary",children:[c(),e?`, ${e.name||"Erik Svensson"}`:", Erik Svensson"]}),y.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"})})]})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.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:[y.jsx(_o,{size:15}),y.jsx("span",{className:"ml-2 text-sm",children:"Search..."}),y.jsx("kbd",{className:"ml-6 px-1.5 py-0.5 text-[10px] font-medium bg-surface rounded border border-border",children:"⌘K"})]}),y.jsxs("div",{className:"relative",children:[y.jsxs("button",{onClick:()=>{a(!r),l(!1)},className:"relative w-9 h-9 flex items-center justify-center rounded-xl hover:bg-bg text-text-secondary transition-colors",children:[y.jsx(N7,{size:17}),f>0&&y.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 bg-danger rounded-full"})]}),y.jsx(Hu,{children:r&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>a(!1)}),y.jsxs(sr.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:[y.jsxs("div",{className:"px-4 py-3 border-b border-border/60 flex items-center justify-between",children:[y.jsx("span",{className:"text-sm font-semibold text-text-primary",children:"Notifications"}),y.jsx("span",{className:"text-xs text-primary font-medium cursor-pointer",children:"Mark all read"})]}),y.jsx("div",{className:"max-h-80 overflow-y-auto",children:O2.map(d=>y.jsx("div",{className:$t("px-4 py-3 hover:bg-bg/60 transition-colors cursor-pointer",!d.read&&"bg-primary-light/30"),children:y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("div",{className:$t("w-2 h-2 rounded-full mt-1.5 shrink-0",d.read?"bg-transparent":"bg-primary")}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("p",{className:"text-sm font-medium text-text-primary",children:d.title}),y.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:d.description}),y.jsx("p",{className:"text-[11px] text-text-secondary/60 mt-1",children:Lw(d.time)})]})]})},d.id))})]})]})})]}),y.jsxs("div",{className:"relative",children:[y.jsxs("button",{onClick:()=>{l(!s),a(!1)},className:"flex items-center gap-2 pl-1 pr-2 h-9 rounded-xl hover:bg-bg transition-colors",children:[y.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?R9(e.name):"?"}),y.jsx($7,{size:14,className:"text-text-secondary"})]}),y.jsx(Hu,{children:s&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>l(!1)}),y.jsxs(sr.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:[y.jsxs("div",{className:"px-4 py-3 border-b border-border/60",children:[y.jsx("p",{className:"text-sm font-semibold text-text-primary",children:(e==null?void 0:e.name)||"User"}),y.jsx("p",{className:"text-xs text-text-secondary",children:(e==null?void 0:e.email)||"user@amos.com"})]}),y.jsxs("div",{className:"py-1",children:[y.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:[y.jsx(e9,{size:15}),"Profile"]}),y.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:[y.jsx(Z7,{size:15}),"Settings"]}),y.jsx("div",{className:"border-t border-border/60 mt-1 pt-1",children:y.jsxs("button",{onClick:()=>{t(),l(!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:[y.jsx(F7,{size:15}),"Sign out"]})})]})]})]})})]})]})]})}function $9(){const{sidebarOpen:e}=Rw();return y.jsxs("div",{className:"min-h-screen bg-bg",children:[y.jsx(k9,{}),y.jsxs("div",{className:$t("transition-all duration-200 ease-out",e?"lg:ml-[240px]":"lg:ml-[72px]"),children:[y.jsx(L9,{}),y.jsx("main",{className:"p-6 lg:p-10",children:y.jsx(H8,{})})]})]})}const A1=N.forwardRef(({label:e,error:t,icon:n,className:r,...a},s)=>y.jsxs("div",{className:"w-full",children:[e&&y.jsx("label",{className:"block text-sm font-medium text-text-primary mb-1.5",children:e}),y.jsxs("div",{className:"relative",children:[n&&y.jsx("div",{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-secondary",children:n}),y.jsx("input",{ref:s,className:$t("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&&y.jsx("p",{className:"mt-1.5 text-xs text-danger",children:t})]}));A1.displayName="Input";function gn({children:e,variant:t="primary",size:n="md",loading:r=!1,icon:a,className:s,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"},d={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-sm"};return y.jsxs("button",{className:$t("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],d[n],s),disabled:l||r,...c,children:[r?y.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[y.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),y.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):a,e]})}const z9="/api/v1";function B9(){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 Td(e,t,n){const r=`${z9}${t}`,a={"Content-Type":"application/json"},s=B9();s&&(a.Authorization=`Bearer ${s}`);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 Xt={get:e=>Td("GET",e),post:(e,t)=>Td("POST",e,t),put:(e,t)=>Td("PUT",e,t),delete:e=>Td("DELETE",e)},_2={login:(e,t)=>Xt.post("/auth/login",{email:e,password:t}),me:()=>Xt.get("/auth/me")},Zd={customers:()=>Xt.get("/crm/customers"),leads:()=>Xt.get("/crm/leads"),pipeline:()=>Xt.get("/crm/pipeline")},Os={deals:()=>Xt.get("/sales/deals"),products:()=>Xt.get("/sales/products"),mrr:()=>Xt.get("/sales/mrr"),arr:()=>Xt.get("/sales/arr")},to={balance:()=>Xt.get("/finance/balance"),income:()=>Xt.get("/finance/income"),moms:()=>Xt.get("/finance/moms"),accounts:()=>Xt.get("/finance/accounts"),invoices:()=>Xt.get("/finance/invoices"),cashflow:()=>Xt.get("/finance/cashflow")},T2={employees:()=>Xt.get("/hr/employees"),leaves:()=>Xt.get("/hr/leaves")},q9={contracts:()=>Xt.get("/legal/contracts")};function I9(){const e=WS(),{login:t}=gp(),[n,r]=N.useState(""),[a,s]=N.useState(""),[l,c]=N.useState(!1),[f,d]=N.useState(""),[p,m]=N.useState(!1),g=async S=>{var A;S.preventDefault(),d(""),m(!0);try{const w=await _2.login(n,a);if(!w.ok){d("Invalid credentials");return}localStorage.setItem("amos_token",w.token);const x=await _2.me();t(w.token,{id:x.user.sub,email:x.user.email,name:"Erik Svensson",role:((A=x.user.roles)==null?void 0:A[0])||"user"}),e("/")}catch(w){d(w instanceof Error?w.message:"Login failed")}finally{m(!1)}};return y.jsx("div",{className:"min-h-screen bg-bg flex items-center justify-center p-4",children:y.jsxs(sr.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"w-full max-w-[400px]",children:[y.jsx("div",{className:"flex items-center justify-center mb-10",children:y.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary flex items-center justify-center",children:y.jsx("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:y.jsx("path",{d:"M10 22L16 10L22 22H10Z",stroke:"white",strokeWidth:"2.5",strokeLinejoin:"round"})})})}),y.jsxs("div",{className:"text-center mb-8",children:[y.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Welcome back"}),y.jsx("p",{className:"text-sm text-text-secondary mt-1.5",children:"Sign in to your AMOS account"})]}),y.jsxs("form",{onSubmit:g,className:"space-y-4",children:[y.jsx(A1,{label:"Email",type:"email",placeholder:"you@company.com",value:n,onChange:S=>r(S.target.value),icon:y.jsx(ic,{size:16}),required:!0}),y.jsxs("div",{className:"relative",children:[y.jsx(A1,{label:"Password",type:l?"text":"password",placeholder:"Enter your password",value:a,onChange:S=>s(S.target.value),icon:y.jsx(G7,{size:16}),required:!0}),y.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?y.jsx(I7,{size:16}):y.jsx(U7,{size:16})})]}),f&&y.jsx(sr.p,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},className:"text-sm text-danger",children:f}),y.jsx(gn,{type:"submit",size:"lg",loading:p,className:"w-full",children:"Sign in"})]})]})})}function U9({label:e,value:t,change:n,changeLabel:r,icon:a,index:s=0}){const l=n>0,c=n===0;return y.jsxs(sr.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.18,delay:s*.04,ease:"easeOut"},className:"bg-surface rounded-[20px] card-shadow p-6 md:p-7",children:[y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsxs("div",{className:"space-y-4",children:[y.jsx("p",{className:"text-sm text-text-secondary",children:e}),y.jsx("p",{className:"text-2xl md:text-3xl font-semibold text-text-primary tracking-tight",children:t})]}),y.jsx("div",{className:"w-10 h-10 rounded-xl bg-bg flex items-center justify-center text-text-secondary",children:a})]}),y.jsxs("div",{className:"mt-5 flex items-center gap-2",children:[y.jsxs("span",{className:$t("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?y.jsx(To,{size:12}):c?y.jsx(X7,{size:12}):y.jsx(zL,{size:12}),Math.abs(n),"%"]}),y.jsx("span",{className:"text-xs text-text-secondary",children:r})]})]})}var Hv,E2;function En(){if(E2)return Hv;E2=1;var e=Array.isArray;return Hv=e,Hv}var Gv,C2;function KL(){if(C2)return Gv;C2=1;var e=typeof xd=="object"&&xd&&xd.Object===Object&&xd;return Gv=e,Gv}var Fv,M2;function Jr(){if(M2)return Fv;M2=1;var e=KL(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Fv=n,Fv}var Kv,P2;function Fc(){if(P2)return Kv;P2=1;var e=Jr(),t=e.Symbol;return Kv=t,Kv}var Yv,N2;function V9(){if(N2)return Yv;N2=1;var e=Fc(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function s(l){var c=n.call(l,a),f=l[a];try{l[a]=void 0;var d=!0}catch{}var p=r.call(l);return d&&(c?l[a]=f:delete l[a]),p}return Yv=s,Yv}var Xv,R2;function H9(){if(R2)return Xv;R2=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Xv=n,Xv}var Wv,D2;function Di(){if(D2)return Wv;D2=1;var e=Fc(),t=V9(),n=H9(),r="[object Null]",a="[object Undefined]",s=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?a:r:s&&s in Object(c)?t(c):n(c)}return Wv=l,Wv}var Zv,k2;function ki(){if(k2)return Zv;k2=1;function e(t){return t!=null&&typeof t=="object"}return Zv=e,Zv}var Qv,L2;function bl(){if(L2)return Qv;L2=1;var e=Di(),t=ki(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return Qv=r,Qv}var Jv,$2;function $w(){if($2)return Jv;$2=1;var e=En(),t=bl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(s,l){if(e(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return Jv=a,Jv}var eg,z2;function Ta(){if(z2)return eg;z2=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return eg=e,eg}var tg,B2;function zw(){if(B2)return tg;B2=1;var e=Di(),t=Ta(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==a||f==n||f==s}return tg=l,tg}var ng,q2;function G9(){if(q2)return ng;q2=1;var e=Jr(),t=e["__core-js_shared__"];return ng=t,ng}var rg,I2;function F9(){if(I2)return rg;I2=1;var e=G9(),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 rg=n,rg}var ig,U2;function YL(){if(U2)return ig;U2=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 ig=n,ig}var ag,V2;function K9(){if(V2)return ag;V2=1;var e=zw(),t=F9(),n=Ta(),r=YL(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,p=RegExp("^"+f.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var S=e(g)?p:s;return S.test(r(g))}return ag=m,ag}var og,H2;function Y9(){if(H2)return og;H2=1;function e(t,n){return t==null?void 0:t[n]}return og=e,og}var sg,G2;function Eo(){if(G2)return sg;G2=1;var e=K9(),t=Y9();function n(r,a){var s=t(r,a);return e(s)?s:void 0}return sg=n,sg}var lg,F2;function jp(){if(F2)return lg;F2=1;var e=Eo(),t=e(Object,"create");return lg=t,lg}var ug,K2;function X9(){if(K2)return ug;K2=1;var e=jp();function t(){this.__data__=e?e(null):{},this.size=0}return ug=t,ug}var cg,Y2;function W9(){if(Y2)return cg;Y2=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return cg=e,cg}var fg,X2;function Z9(){if(X2)return fg;X2=1;var e=jp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(s){var l=this.__data__;if(e){var c=l[s];return c===t?void 0:c}return r.call(l,s)?l[s]:void 0}return fg=a,fg}var dg,W2;function Q9(){if(W2)return dg;W2=1;var e=jp(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var s=this.__data__;return e?s[a]!==void 0:n.call(s,a)}return dg=r,dg}var hg,Z2;function J9(){if(Z2)return hg;Z2=1;var e=jp(),t="__lodash_hash_undefined__";function n(r,a){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&a===void 0?t:a,this}return hg=n,hg}var pg,Q2;function eG(){if(Q2)return pg;Q2=1;var e=X9(),t=W9(),n=Z9(),r=Q9(),a=J9();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,pg=s,pg}var mg,J2;function tG(){if(J2)return mg;J2=1;function e(){this.__data__=[],this.size=0}return mg=e,mg}var yg,eC;function Bw(){if(eC)return yg;eC=1;function e(t,n){return t===n||t!==t&&n!==n}return yg=e,yg}var vg,tC;function Op(){if(tC)return vg;tC=1;var e=Bw();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return vg=t,vg}var gg,nC;function nG(){if(nC)return gg;nC=1;var e=Op(),t=Array.prototype,n=t.splice;function r(a){var s=this.__data__,l=e(s,a);if(l<0)return!1;var c=s.length-1;return l==c?s.pop():n.call(s,l,1),--this.size,!0}return gg=r,gg}var bg,rC;function rG(){if(rC)return bg;rC=1;var e=Op();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return bg=t,bg}var xg,iC;function iG(){if(iC)return xg;iC=1;var e=Op();function t(n){return e(this.__data__,n)>-1}return xg=t,xg}var Sg,aC;function aG(){if(aC)return Sg;aC=1;var e=Op();function t(n,r){var a=this.__data__,s=e(a,n);return s<0?(++this.size,a.push([n,r])):a[s][1]=r,this}return Sg=t,Sg}var wg,oC;function _p(){if(oC)return wg;oC=1;var e=tG(),t=nG(),n=rG(),r=iG(),a=aG();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,wg=s,wg}var Ag,sC;function qw(){if(sC)return Ag;sC=1;var e=Eo(),t=Jr(),n=e(t,"Map");return Ag=n,Ag}var jg,lC;function oG(){if(lC)return jg;lC=1;var e=eG(),t=_p(),n=qw();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return jg=r,jg}var Og,uC;function sG(){if(uC)return Og;uC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Og=e,Og}var _g,cC;function Tp(){if(cC)return _g;cC=1;var e=sG();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return _g=t,_g}var Tg,fC;function lG(){if(fC)return Tg;fC=1;var e=Tp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Tg=t,Tg}var Eg,dC;function uG(){if(dC)return Eg;dC=1;var e=Tp();function t(n){return e(this,n).get(n)}return Eg=t,Eg}var Cg,hC;function cG(){if(hC)return Cg;hC=1;var e=Tp();function t(n){return e(this,n).has(n)}return Cg=t,Cg}var Mg,pC;function fG(){if(pC)return Mg;pC=1;var e=Tp();function t(n,r){var a=e(this,n),s=a.size;return a.set(n,r),this.size+=a.size==s?0:1,this}return Mg=t,Mg}var Pg,mC;function Iw(){if(mC)return Pg;mC=1;var e=oG(),t=lG(),n=uG(),r=cG(),a=fG();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Pg=s,Pg}var Ng,yC;function XL(){if(yC)return Ng;yC=1;var e=Iw(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var s=function(){var l=arguments,c=a?a.apply(this,l):l[0],f=s.cache;if(f.has(c))return f.get(c);var d=r.apply(this,l);return s.cache=f.set(c,d)||f,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,Ng=n,Ng}var Rg,vC;function dG(){if(vC)return Rg;vC=1;var e=XL(),t=500;function n(r){var a=e(r,function(l){return s.size===t&&s.clear(),l}),s=a.cache;return a}return Rg=n,Rg}var Dg,gC;function hG(){if(gC)return Dg;gC=1;var e=dG(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(t,function(l,c,f,d){s.push(f?d.replace(n,"$1"):c||l)}),s});return Dg=r,Dg}var kg,bC;function Uw(){if(bC)return kg;bC=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=Array(a);++r<a;)s[r]=n(t[r],r,t);return s}return kg=e,kg}var Lg,xC;function pG(){if(xC)return Lg;xC=1;var e=Fc(),t=Uw(),n=En(),r=bl(),a=e?e.prototype:void 0,s=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 s?s.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return Lg=l,Lg}var $g,SC;function WL(){if(SC)return $g;SC=1;var e=pG();function t(n){return n==null?"":e(n)}return $g=t,$g}var zg,wC;function ZL(){if(wC)return zg;wC=1;var e=En(),t=$w(),n=hG(),r=WL();function a(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return zg=a,zg}var Bg,AC;function Ep(){if(AC)return Bg;AC=1;var e=bl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Bg=t,Bg}var qg,jC;function Vw(){if(jC)return qg;jC=1;var e=ZL(),t=Ep();function n(r,a){a=e(a,r);for(var s=0,l=a.length;r!=null&&s<l;)r=r[t(a[s++])];return s&&s==l?r:void 0}return qg=n,qg}var Ig,OC;function QL(){if(OC)return Ig;OC=1;var e=Vw();function t(n,r,a){var s=n==null?void 0:e(n,r);return s===void 0?a:s}return Ig=t,Ig}var mG=QL();const Gn=et(mG);var Ug,_C;function yG(){if(_C)return Ug;_C=1;function e(t){return t==null}return Ug=e,Ug}var vG=yG();const Te=et(vG);var Vg,TC;function gG(){if(TC)return Vg;TC=1;var e=Di(),t=En(),n=ki(),r="[object String]";function a(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return Vg=a,Vg}var bG=gG();const bo=et(bG);var xG=zw();const Oe=et(xG);var SG=Ta();const xl=et(SG);var Hg={exports:{}},Xe={};/**
* @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 EC;function wG(){if(EC)return Xe;EC=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"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),A;A=Symbol.for("react.module.reference");function w(x){if(typeof x=="object"&&x!==null){var j=x.$$typeof;switch(j){case e:switch(x=x.type,x){case n:case a:case r:case d:case p:return x;default:switch(x=x&&x.$$typeof,x){case c:case l:case f:case g:case m:case s:return x;default:return j}}case t:return j}}}return Xe.ContextConsumer=l,Xe.ContextProvider=s,Xe.Element=e,Xe.ForwardRef=f,Xe.Fragment=n,Xe.Lazy=g,Xe.Memo=m,Xe.Portal=t,Xe.Profiler=a,Xe.StrictMode=r,Xe.Suspense=d,Xe.SuspenseList=p,Xe.isAsyncMode=function(){return!1},Xe.isConcurrentMode=function(){return!1},Xe.isContextConsumer=function(x){return w(x)===l},Xe.isContextProvider=function(x){return w(x)===s},Xe.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Xe.isForwardRef=function(x){return w(x)===f},Xe.isFragment=function(x){return w(x)===n},Xe.isLazy=function(x){return w(x)===g},Xe.isMemo=function(x){return w(x)===m},Xe.isPortal=function(x){return w(x)===t},Xe.isProfiler=function(x){return w(x)===a},Xe.isStrictMode=function(x){return w(x)===r},Xe.isSuspense=function(x){return w(x)===d},Xe.isSuspenseList=function(x){return w(x)===p},Xe.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===a||x===r||x===d||x===p||x===S||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===m||x.$$typeof===s||x.$$typeof===l||x.$$typeof===f||x.$$typeof===A||x.getModuleId!==void 0)},Xe.typeOf=w,Xe}var CC;function AG(){return CC||(CC=1,Hg.exports=wG()),Hg.exports}var jG=AG(),Gg,MC;function JL(){if(MC)return Gg;MC=1;var e=Di(),t=ki(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return Gg=r,Gg}var Fg,PC;function OG(){if(PC)return Fg;PC=1;var e=JL();function t(n){return e(n)&&n!=+n}return Fg=t,Fg}var _G=OG();const Sl=et(_G);var TG=JL();const EG=et(TG);var mn=function(t){return t===0?0:t>0?1:-1},so=function(t){return bo(t)&&t.indexOf("%")===t.length-1},ue=function(t){return EG(t)&&!Sl(t)},CG=function(t){return Te(t)},Ht=function(t){return ue(t)||bo(t)},MG=0,Co=function(t){var n=++MG;return"".concat(t||"").concat(n)},yn=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)&&!bo(t))return r;var s;if(so(t)){var l=t.indexOf("%");s=n*parseFloat(t.slice(0,l))/100}else s=+t;return Sl(s)&&(s=r),a&&s>n&&(s=n),s},ma=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},PG=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},Vt=function(t,n){return ue(t)&&ue(n)?function(r){return t+r*(n-t)}:function(){return n}};function fh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Gn(r,t))===n})}var NG=function(t,n){return ue(t)&&ue(n)?t-n:bo(t)&&bo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Rs(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 j1(e){"@babel/helpers - typeof";return j1=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},j1(e)}var RG=["viewBox","children"],DG=["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"],NC=["points","pathLength"],Kg={svg:RG,polygon:NC,polyline:NC},Hw=["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"],dh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(N.isValidElement(t)&&(r=t.props),!xl(r))return null;var a={};return Object.keys(r).forEach(function(s){Hw.includes(s)&&(a[s]=n||function(l){return r[s](r,l)})}),a},kG=function(t,n,r){return function(a){return t(n,r,a),null}},xo=function(t,n,r){if(!xl(t)||j1(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(s){var l=t[s];Hw.includes(s)&&typeof l=="function"&&(a||(a={}),a[s]=kG(l,n,r))}),a},LG=["children"],$G=["children"];function RC(e,t){if(e==null)return{};var n=zG(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zG(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 O1(e){"@babel/helpers - typeof";return O1=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},O1(e)}var DC={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"},Ti=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},kC=null,Yg=null,Gw=function e(t){if(t===kC&&Array.isArray(Yg))return Yg;var n=[];return N.Children.forEach(t,function(r){Te(r)||(jG.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Yg=n,kC=t,n};function Fn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ti(a)}):r=[Ti(t)],Gw(e).forEach(function(a){var s=Gn(a,"type.displayName")||Gn(a,"type.name");r.indexOf(s)!==-1&&n.push(a)}),n}function In(e,t){var n=Fn(e,t);return n&&n[0]}var LC=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)},BG=["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"],qG=function(t){return t&&t.type&&bo(t.type)&&BG.indexOf(t.type)>=0},e$=function(t){return t&&O1(t)==="object"&&"clipDot"in t},IG=function(t,n,r,a){var s,l=(s=Kg==null?void 0:Kg[a])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!Oe(t)&&(a&&l.includes(n)||DG.includes(n))||r&&Hw.includes(n)},be=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(N.isValidElement(t)&&(a=t.props),!xl(a))return null;var s={};return Object.keys(a).forEach(function(l){var c;IG((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(s[l]=a[l])}),s},_1=function e(t,n){if(t===n)return!0;var r=N.Children.count(t);if(r!==N.Children.count(n))return!1;if(r===0)return!0;if(r===1)return $C(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var s=t[a],l=n[a];if(Array.isArray(s)||Array.isArray(l)){if(!e(s,l))return!1}else if(!$C(s,l))return!1}return!0},$C=function(t,n){if(Te(t)&&Te(n))return!0;if(!Te(t)&&!Te(n)){var r=t.props||{},a=r.children,s=RC(r,LG),l=n.props||{},c=l.children,f=RC(l,$G);return a&&c?Rs(s,f)&&_1(a,c):!a&&!c?Rs(s,f):!1}return!1},zC=function(t,n){var r=[],a={};return Gw(t).forEach(function(s,l){if(qG(s))r.push(s);else if(s){var c=Ti(s.type),f=n[c]||{},d=f.handler,p=f.once;if(d&&(!p||!a[c])){var m=d(s,c,l);r.push(m),a[c]=!0}}}),r},UG=function(t){var n=t&&t.type;return n&&DC[n]?DC[n]:null},VG=function(t,n){return Gw(n).indexOf(t)},HG=["children","width","height","viewBox","className","style","title","desc"];function T1(){return T1=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},T1.apply(this,arguments)}function GG(e,t){if(e==null)return{};var n=FG(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FG(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 E1(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,s=e.className,l=e.style,c=e.title,f=e.desc,d=GG(e,HG),p=a||{width:n,height:r,x:0,y:0},m=Pe("recharts-surface",s);return B.createElement("svg",T1({},be(d,!0,"svg"),{className:m,width:n,height:r,style:l,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),B.createElement("title",null,c),B.createElement("desc",null,f),t)}var KG=["children","className"];function C1(){return C1=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},C1.apply(this,arguments)}function YG(e,t){if(e==null)return{};var n=XG(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XG(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 Be=B.forwardRef(function(e,t){var n=e.children,r=e.className,a=YG(e,KG),s=Pe("recharts-layer",r);return B.createElement("g",C1({className:s},be(a,!0),{ref:t}),n)}),Tr=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s]},Xg,BC;function WG(){if(BC)return Xg;BC=1;function e(t,n,r){var a=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++a<s;)l[a]=t[a+n];return l}return Xg=e,Xg}var Wg,qC;function ZG(){if(qC)return Wg;qC=1;var e=WG();function t(n,r,a){var s=n.length;return a=a===void 0?s:a,!r&&a>=s?n:e(n,r,a)}return Wg=t,Wg}var Zg,IC;function t$(){if(IC)return Zg;IC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+a+s+"]");function f(d){return c.test(d)}return Zg=f,Zg}var Qg,UC;function QG(){if(UC)return Qg;UC=1;function e(t){return t.split("")}return Qg=e,Qg}var Jg,VC;function JG(){if(VC)return Jg;VC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",c="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",p="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",A=d+"?",w="["+s+"]?",x="(?:"+S+"(?:"+[p,m,g].join("|")+")"+w+A+")*",j=w+A+x,_="(?:"+[p+c+"?",c,m,g,l].join("|")+")",T=RegExp(f+"(?="+f+")|"+_+j,"g");function M(O){return O.match(T)||[]}return Jg=M,Jg}var eb,HC;function eF(){if(HC)return eb;HC=1;var e=QG(),t=t$(),n=JG();function r(a){return t(a)?n(a):e(a)}return eb=r,eb}var tb,GC;function tF(){if(GC)return tb;GC=1;var e=ZG(),t=t$(),n=eF(),r=WL();function a(s){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),d=c?e(c,1).join(""):l.slice(1);return f[s]()+d}}return tb=a,tb}var nb,FC;function nF(){if(FC)return nb;FC=1;var e=tF(),t=e("toUpperCase");return nb=t,nb}var rF=nF();const Cp=et(rF);function ct(e){return function(){return e}}const n$=Math.cos,hh=Math.sin,kr=Math.sqrt,ph=Math.PI,Mp=2*ph,M1=Math.PI,P1=2*M1,no=1e-6,iF=P1-no;function r$(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 r$;const n=10**t;return function(r){this._+=r[0];for(let a=1,s=r.length;a<s;++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?r$: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,s,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+s},${this._y1=+l}`}arcTo(t,n,r,a,s){if(t=+t,n=+n,r=+r,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let l=this._x1,c=this._y1,f=r-t,d=a-n,p=l-t,m=c-n,g=p*p+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>no)if(!(Math.abs(m*f-d*p)>no)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let S=r-l,A=a-c,w=f*f+d*d,x=S*S+A*A,j=Math.sqrt(w),_=Math.sqrt(g),T=s*Math.tan((M1-Math.acos((w+g-x)/(2*j*_)))/2),M=T/_,O=T/j;Math.abs(M-1)>no&&this._append`L${t+M*p},${n+M*m}`,this._append`A${s},${s},0,0,${+(m*S>p*A)},${this._x1=t+O*f},${this._y1=n+O*d}`}}arc(t,n,r,a,s,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),d=t+c,p=n+f,m=1^l,g=l?a-s:s-a;this._x1===null?this._append`M${d},${p}`:(Math.abs(this._x1-d)>no||Math.abs(this._y1-p)>no)&&this._append`L${d},${p}`,r&&(g<0&&(g=g%P1+P1),g>iF?this._append`A${r},${r},0,1,${m},${t-c},${n-f}A${r},${r},0,1,${m},${this._x1=d},${this._y1=p}`:g>no&&this._append`A${r},${r},0,${+(g>=M1)},${m},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}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 Fw(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 Kw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function i$(e){this._context=e}i$.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 Pp(e){return new i$(e)}function a$(e){return e[0]}function o$(e){return e[1]}function s$(e,t){var n=ct(!0),r=null,a=Pp,s=null,l=Fw(c);e=typeof e=="function"?e:e===void 0?a$:ct(e),t=typeof t=="function"?t:t===void 0?o$:ct(t);function c(f){var d,p=(f=Kw(f)).length,m,g=!1,S;for(r==null&&(s=a(S=l())),d=0;d<=p;++d)!(d<p&&n(m=f[d],d,f))===g&&((g=!g)?s.lineStart():s.lineEnd()),g&&s.point(+e(m,d,f),+t(m,d,f));if(S)return s=null,S+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ct(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ct(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:ct(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,r!=null&&(s=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=s=null:s=a(r=f),c):r},c}function Ed(e,t,n){var r=null,a=ct(!0),s=null,l=Pp,c=null,f=Fw(d);e=typeof e=="function"?e:e===void 0?a$:ct(+e),t=typeof t=="function"?t:ct(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?o$:ct(+n);function d(m){var g,S,A,w=(m=Kw(m)).length,x,j=!1,_,T=new Array(w),M=new Array(w);for(s==null&&(c=l(_=f())),g=0;g<=w;++g){if(!(g<w&&a(x=m[g],g,m))===j)if(j=!j)S=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),A=g-1;A>=S;--A)c.point(T[A],M[A]);c.lineEnd(),c.areaEnd()}j&&(T[g]=+e(x,g,m),M[g]=+t(x,g,m),c.point(r?+r(x,g,m):T[g],n?+n(x,g,m):M[g]))}if(_)return c=null,_+""||null}function p(){return s$().defined(a).curve(l).context(s)}return d.x=function(m){return arguments.length?(e=typeof m=="function"?m:ct(+m),r=null,d):e},d.x0=function(m){return arguments.length?(e=typeof m=="function"?m:ct(+m),d):e},d.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:ct(+m),d):r},d.y=function(m){return arguments.length?(t=typeof m=="function"?m:ct(+m),n=null,d):t},d.y0=function(m){return arguments.length?(t=typeof m=="function"?m:ct(+m),d):t},d.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:ct(+m),d):n},d.lineX0=d.lineY0=function(){return p().x(e).y(t)},d.lineY1=function(){return p().x(e).y(n)},d.lineX1=function(){return p().x(r).y(t)},d.defined=function(m){return arguments.length?(a=typeof m=="function"?m:ct(!!m),d):a},d.curve=function(m){return arguments.length?(l=m,s!=null&&(c=l(s)),d):l},d.context=function(m){return arguments.length?(m==null?s=c=null:c=l(s=m),d):s},d}class l${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 sF(e){return new l$(e,!0)}function lF(e){return new l$(e,!1)}const Yw={draw(e,t){const n=kr(t/ph);e.moveTo(n,0),e.arc(0,0,n,0,Mp)}},uF={draw(e,t){const n=kr(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()}},u$=kr(1/3),cF=u$*2,fF={draw(e,t){const n=kr(t/cF),r=n*u$;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},dF={draw(e,t){const n=kr(t),r=-n/2;e.rect(r,r,n,n)}},hF=.8908130915292852,c$=hh(ph/10)/hh(7*ph/10),pF=hh(Mp/10)*c$,mF=-n$(Mp/10)*c$,yF={draw(e,t){const n=kr(t*hF),r=pF*n,a=mF*n;e.moveTo(0,-n),e.lineTo(r,a);for(let s=1;s<5;++s){const l=Mp*s/5,c=n$(l),f=hh(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},rb=kr(3),vF={draw(e,t){const n=-kr(t/(rb*3));e.moveTo(0,n*2),e.lineTo(-rb*n,-n),e.lineTo(rb*n,-n),e.closePath()}},ir=-.5,ar=kr(3)/2,N1=1/kr(12),gF=(N1/2+1)*3,bF={draw(e,t){const n=kr(t/gF),r=n/2,a=n*N1,s=r,l=n*N1+n,c=-s,f=l;e.moveTo(r,a),e.lineTo(s,l),e.lineTo(c,f),e.lineTo(ir*r-ar*a,ar*r+ir*a),e.lineTo(ir*s-ar*l,ar*s+ir*l),e.lineTo(ir*c-ar*f,ar*c+ir*f),e.lineTo(ir*r+ar*a,ir*a-ar*r),e.lineTo(ir*s+ar*l,ir*l-ar*s),e.lineTo(ir*c+ar*f,ir*f-ar*c),e.closePath()}};function xF(e,t){let n=null,r=Fw(a);e=typeof e=="function"?e:ct(e||Yw),t=typeof t=="function"?t:ct(t===void 0?64:+t);function a(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return a.type=function(s){return arguments.length?(e=typeof s=="function"?s:ct(s),a):e},a.size=function(s){return arguments.length?(t=typeof s=="function"?s:ct(+s),a):t},a.context=function(s){return arguments.length?(n=s??null,a):n},a}function mh(){}function yh(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 f$(e){this._context=e}f$.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:yh(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:yh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function SF(e){return new f$(e)}function d$(e){this._context=e}d$.prototype={areaStart:mh,areaEnd:mh,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:yh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wF(e){return new d$(e)}function h$(e){this._context=e}h$.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:yh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AF(e){return new h$(e)}function p$(e){this._context=e}p$.prototype={areaStart:mh,areaEnd:mh,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 jF(e){return new p$(e)}function KC(e){return e<0?-1:1}function YC(e,t,n){var r=e._x1-e._x0,a=t-e._x1,s=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(s*a+l*r)/(r+a);return(KC(s)+KC(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(c))||0}function XC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ib(e,t,n){var r=e._x0,a=e._y0,s=e._x1,l=e._y1,c=(s-r)/3;e._context.bezierCurveTo(r+c,a+c*t,s-c,l-c*n,s,l)}function vh(e){this._context=e}vh.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:ib(this,this._t0,XC(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,ib(this,XC(this,n=YC(this,e,t)),n);break;default:ib(this,this._t0,n=YC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function m$(e){this._context=new y$(e)}(m$.prototype=Object.create(vh.prototype)).point=function(e,t){vh.prototype.point.call(this,t,e)};function y$(e){this._context=e}y$.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,s){this._context.bezierCurveTo(t,e,r,n,s,a)}};function OF(e){return new vh(e)}function _F(e){return new m$(e)}function v$(e){this._context=e}v$.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=WC(e),a=WC(t),s=0,l=1;l<n;++s,++l)this._context.bezierCurveTo(r[0][s],a[0][s],r[1][s],a[1][s],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 WC(e){var t,n=e.length-1,r,a=new Array(n),s=new Array(n),l=new Array(n);for(a[0]=0,s[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,s[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,s[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/s[t-1],s[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/s[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/s[t];for(s[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-a[t+1];return[a,s]}function TF(e){return new v$(e)}function Np(e,t){this._context=e,this._t=t}Np.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function EF(e){return new Np(e,.5)}function CF(e){return new Np(e,0)}function MF(e){return new Np(e,1)}function Bs(e,t){if((l=e.length)>1)for(var n=1,r,a,s=e[t[0]],l,c=s.length;n<l;++n)for(a=s,s=e[t[n]],r=0;r<c;++r)s[r][1]+=s[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function R1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function PF(e,t){return e[t]}function NF(e){const t=[];return t.key=e,t}function RF(){var e=ct([]),t=R1,n=Bs,r=PF;function a(s){var l=Array.from(e.apply(this,arguments),NF),c,f=l.length,d=-1,p;for(const m of s)for(c=0,++d;c<f;++c)(l[c][d]=[0,+r(m,l[c].key,d,s)]).data=m;for(c=0,p=Kw(t(l));c<f;++c)l[p[c]].index=c;return n(l,p),l}return a.keys=function(s){return arguments.length?(e=typeof s=="function"?s:ct(Array.from(s)),a):e},a.value=function(s){return arguments.length?(r=typeof s=="function"?s:ct(+s),a):r},a.order=function(s){return arguments.length?(t=s==null?R1:typeof s=="function"?s:ct(Array.from(s)),a):t},a.offset=function(s){return arguments.length?(n=s??Bs,a):n},a}function DF(e,t){if((r=e.length)>0){for(var n,r,a=0,s=e[0].length,l;a<s;++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}Bs(e,t)}}function kF(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,s=r.length;n<s;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}Bs(e,t)}}function LF(e,t){if(!(!((l=e.length)>0)||!((s=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,s,l;r<s;++r){for(var c=0,f=0,d=0;c<l;++c){for(var p=e[t[c]],m=p[r][1]||0,g=p[r-1][1]||0,S=(m-g)/2,A=0;A<c;++A){var w=e[t[A]],x=w[r][1]||0,j=w[r-1][1]||0;S+=x-j}f+=m,d+=S*m}a[r-1][1]+=a[r-1][0]=n,f&&(n-=d/f)}a[r-1][1]+=a[r-1][0]=n,Bs(e,t)}}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)}var $F=["type","size","sizeType"];function D1(){return D1=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},D1.apply(this,arguments)}function ZC(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 QC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZC(Object(n),!0).forEach(function(r){zF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zF(e,t,n){return t=BF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BF(e){var t=qF(e,"string");return ac(t)=="symbol"?t:t+""}function qF(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 IF(e,t){if(e==null)return{};var n=UF(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UF(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 g$={symbolCircle:Yw,symbolCross:uF,symbolDiamond:fF,symbolSquare:dF,symbolStar:yF,symbolTriangle:vF,symbolWye:bF},VF=Math.PI/180,HF=function(t){var n="symbol".concat(Cp(t));return g$[n]||Yw},GF=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*VF;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}},FF=function(t,n){g$["symbol".concat(Cp(t))]=n},Xw=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,s=a===void 0?64:a,l=t.sizeType,c=l===void 0?"area":l,f=IF(t,$F),d=QC(QC({},f),{},{type:r,size:s,sizeType:c}),p=function(){var x=HF(r),j=xF().type(x).size(GF(s,c,r));return j()},m=d.className,g=d.cx,S=d.cy,A=be(d,!0);return g===+g&&S===+S&&s===+s?B.createElement("path",D1({},A,{className:Pe("recharts-symbols",m),transform:"translate(".concat(g,", ").concat(S,")"),d:p()})):null};Xw.registerSymbol=FF;function qs(e){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qs(e)}function 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 JC(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 KF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){oc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XF(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 WF(e,t,n){return t&&XF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZF(e,t,n){return t=gh(t),QF(e,b$()?Reflect.construct(t,n||[],gh(e).constructor):t.apply(e,n))}function QF(e,t){if(t&&(qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JF(e)}function JF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b$=function(){return!!e})()}function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gh(e)}function eK(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&&L1(e,t)}function L1(e,t){return L1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},L1(e,t)}function oc(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=tK(e,"string");return qs(t)=="symbol"?t:t+""}function tK(e,t){if(qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var or=32,Ww=(function(e){function t(){return YF(this,t),ZF(this,t,arguments)}return eK(t,e),WF(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,s=or/2,l=or/6,c=or/3,f=r.inactive?a:r.color;if(r.type==="plainline")return B.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:or,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return B.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(s,"h").concat(c,`
A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(s,`
H`).concat(or,"M").concat(2*c,",").concat(s,`
A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return B.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(or/8,"h").concat(or,"v").concat(or*3/4,"h").concat(-or,"z"),className:"recharts-legend-icon"});if(B.isValidElement(r.legendIcon)){var d=KF({},r);return delete d.legendIcon,B.cloneElement(r.legendIcon,d)}return B.createElement(Xw,{fill:f,cx:s,cy:s,size:or,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,s=a.payload,l=a.iconSize,c=a.layout,f=a.formatter,d=a.inactiveColor,p={x:0,y:0,width:or,height:or},m={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(S,A){var w=S.formatter||f,x=Pe(oc(oc({"recharts-legend-item":!0},"legend-item-".concat(A),!0),"inactive",S.inactive));if(S.type==="none")return null;var j=Oe(S.value)?null:S.value;Tr(!Oe(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?d:S.color;return B.createElement("li",k1({className:x,style:m,key:"legend-item-".concat(A)},xo(r.props,S,A)),B.createElement(E1,{width:l,height:l,viewBox:p,style:g},r.renderIcon(S)),B.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},w?w(j,S,A):j))})}},{key:"render",value:function(){var r=this.props,a=r.payload,s=r.layout,l=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:s==="horizontal"?l:"left"};return B.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(N.PureComponent);oc(Ww,"displayName","Legend");oc(Ww,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ab,eM;function nK(){if(eM)return ab;eM=1;var e=_p();function t(){this.__data__=new e,this.size=0}return ab=t,ab}var ob,tM;function rK(){if(tM)return ob;tM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ob=e,ob}var sb,nM;function iK(){if(nM)return sb;nM=1;function e(t){return this.__data__.get(t)}return sb=e,sb}var lb,rM;function aK(){if(rM)return lb;rM=1;function e(t){return this.__data__.has(t)}return lb=e,lb}var ub,iM;function oK(){if(iM)return ub;iM=1;var e=_p(),t=qw(),n=Iw(),r=200;function a(s,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([s,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(s,l),this.size=c.size,this}return ub=a,ub}var cb,aM;function S$(){if(aM)return cb;aM=1;var e=_p(),t=nK(),n=rK(),r=iK(),a=aK(),s=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=s,cb=l,cb}var fb,oM;function sK(){if(oM)return fb;oM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return fb=t,fb}var db,sM;function lK(){if(sM)return db;sM=1;function e(t){return this.__data__.has(t)}return db=e,db}var hb,lM;function w$(){if(lM)return hb;lM=1;var e=Iw(),t=sK(),n=lK();function r(a){var s=-1,l=a==null?0:a.length;for(this.__data__=new e;++s<l;)this.add(a[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,hb=r,hb}var pb,uM;function A$(){if(uM)return pb;uM=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 pb=e,pb}var mb,cM;function j$(){if(cM)return mb;cM=1;function e(t,n){return t.has(n)}return mb=e,mb}var yb,fM;function O$(){if(fM)return yb;fM=1;var e=w$(),t=A$(),n=j$(),r=1,a=2;function s(l,c,f,d,p,m){var g=f&r,S=l.length,A=c.length;if(S!=A&&!(g&&A>S))return!1;var w=m.get(l),x=m.get(c);if(w&&x)return w==c&&x==l;var j=-1,_=!0,T=f&a?new e:void 0;for(m.set(l,c),m.set(c,l);++j<S;){var M=l[j],O=c[j];if(d)var C=g?d(O,M,j,c,l,m):d(M,O,j,l,c,m);if(C!==void 0){if(C)continue;_=!1;break}if(T){if(!t(c,function(P,R){if(!n(T,R)&&(M===P||p(M,P,f,d,m)))return T.push(R)})){_=!1;break}}else if(!(M===O||p(M,O,f,d,m))){_=!1;break}}return m.delete(l),m.delete(c),_}return yb=s,yb}var vb,dM;function uK(){if(dM)return vb;dM=1;var e=Jr(),t=e.Uint8Array;return vb=t,vb}var gb,hM;function cK(){if(hM)return gb;hM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,s){r[++n]=[s,a]}),r}return gb=e,gb}var bb,pM;function Zw(){if(pM)return bb;pM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return bb=e,bb}var xb,mM;function fK(){if(mM)return xb;mM=1;var e=Fc(),t=uK(),n=Bw(),r=O$(),a=cK(),s=Zw(),l=1,c=2,f="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Map]",g="[object Number]",S="[object RegExp]",A="[object Set]",w="[object String]",x="[object Symbol]",j="[object ArrayBuffer]",_="[object DataView]",T=e?e.prototype:void 0,M=T?T.valueOf:void 0;function O(C,P,R,k,U,q,$){switch(R){case _:if(C.byteLength!=P.byteLength||C.byteOffset!=P.byteOffset)return!1;C=C.buffer,P=P.buffer;case j:return!(C.byteLength!=P.byteLength||!q(new t(C),new t(P)));case f:case d:case g:return n(+C,+P);case p:return C.name==P.name&&C.message==P.message;case S:case w:return C==P+"";case m:var F=a;case A:var X=k&l;if(F||(F=s),C.size!=P.size&&!X)return!1;var Y=$.get(C);if(Y)return Y==P;k|=c,$.set(C,P);var z=r(F(C),F(P),k,U,q,$);return $.delete(C),z;case x:if(M)return M.call(C)==M.call(P)}return!1}return xb=O,xb}var Sb,yM;function _$(){if(yM)return Sb;yM=1;function e(t,n){for(var r=-1,a=n.length,s=t.length;++r<a;)t[s+r]=n[r];return t}return Sb=e,Sb}var wb,vM;function dK(){if(vM)return wb;vM=1;var e=_$(),t=En();function n(r,a,s){var l=a(r);return t(r)?l:e(l,s(r))}return wb=n,wb}var Ab,gM;function hK(){if(gM)return Ab;gM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=0,l=[];++r<a;){var c=t[r];n(c,r,t)&&(l[s++]=c)}return l}return Ab=e,Ab}var jb,bM;function pK(){if(bM)return jb;bM=1;function e(){return[]}return jb=e,jb}var Ob,xM;function mK(){if(xM)return Ob;xM=1;var e=hK(),t=pK(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(l){return l==null?[]:(l=Object(l),e(a(l),function(c){return r.call(l,c)}))}:t;return Ob=s,Ob}var _b,SM;function yK(){if(SM)return _b;SM=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return _b=e,_b}var Tb,wM;function vK(){if(wM)return Tb;wM=1;var e=Di(),t=ki(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return Tb=r,Tb}var Eb,AM;function Qw(){if(AM)return Eb;AM=1;var e=vK(),t=ki(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return Eb=s,Eb}var zu={exports:{}},Cb,jM;function gK(){if(jM)return Cb;jM=1;function e(){return!1}return Cb=e,Cb}zu.exports;var OM;function T$(){return OM||(OM=1,(function(e,t){var n=Jr(),r=gK(),a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(zu,zu.exports)),zu.exports}var Mb,_M;function Jw(){if(_M)return Mb;_M=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var s=typeof r;return a=a??e,!!a&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Mb=n,Mb}var Pb,TM;function eA(){if(TM)return Pb;TM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Pb=t,Pb}var Nb,EM;function bK(){if(EM)return Nb;EM=1;var e=Di(),t=eA(),n=ki(),r="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",m="[object Object]",g="[object RegExp]",S="[object Set]",A="[object String]",w="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",M="[object Int8Array]",O="[object Int16Array]",C="[object Int32Array]",P="[object Uint8Array]",R="[object Uint8ClampedArray]",k="[object Uint16Array]",U="[object Uint32Array]",q={};q[_]=q[T]=q[M]=q[O]=q[C]=q[P]=q[R]=q[k]=q[U]=!0,q[r]=q[a]=q[x]=q[s]=q[j]=q[l]=q[c]=q[f]=q[d]=q[p]=q[m]=q[g]=q[S]=q[A]=q[w]=!1;function $(F){return n(F)&&t(F.length)&&!!q[e(F)]}return Nb=$,Nb}var Rb,CM;function E$(){if(CM)return Rb;CM=1;function e(t){return function(n){return t(n)}}return Rb=e,Rb}var Bu={exports:{}};Bu.exports;var MM;function xK(){return MM||(MM=1,(function(e,t){var n=KL(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,l=s&&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})(Bu,Bu.exports)),Bu.exports}var Db,PM;function C$(){if(PM)return Db;PM=1;var e=bK(),t=E$(),n=xK(),r=n&&n.isTypedArray,a=r?t(r):e;return Db=a,Db}var kb,NM;function SK(){if(NM)return kb;NM=1;var e=yK(),t=Qw(),n=En(),r=T$(),a=Jw(),s=C$(),l=Object.prototype,c=l.hasOwnProperty;function f(d,p){var m=n(d),g=!m&&t(d),S=!m&&!g&&r(d),A=!m&&!g&&!S&&s(d),w=m||g||S||A,x=w?e(d.length,String):[],j=x.length;for(var _ in d)(p||c.call(d,_))&&!(w&&(_=="length"||S&&(_=="offset"||_=="parent")||A&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,j)))&&x.push(_);return x}return kb=f,kb}var Lb,RM;function wK(){if(RM)return Lb;RM=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Lb=t,Lb}var $b,DM;function M$(){if(DM)return $b;DM=1;function e(t,n){return function(r){return t(n(r))}}return $b=e,$b}var zb,kM;function AK(){if(kM)return zb;kM=1;var e=M$(),t=e(Object.keys,Object);return zb=t,zb}var Bb,LM;function jK(){if(LM)return Bb;LM=1;var e=wK(),t=AK(),n=Object.prototype,r=n.hasOwnProperty;function a(s){if(!e(s))return t(s);var l=[];for(var c in Object(s))r.call(s,c)&&c!="constructor"&&l.push(c);return l}return Bb=a,Bb}var qb,$M;function Kc(){if($M)return qb;$M=1;var e=zw(),t=eA();function n(r){return r!=null&&t(r.length)&&!e(r)}return qb=n,qb}var Ib,zM;function Rp(){if(zM)return Ib;zM=1;var e=SK(),t=jK(),n=Kc();function r(a){return n(a)?e(a):t(a)}return Ib=r,Ib}var Ub,BM;function OK(){if(BM)return Ub;BM=1;var e=dK(),t=mK(),n=Rp();function r(a){return e(a,n,t)}return Ub=r,Ub}var Vb,qM;function _K(){if(qM)return Vb;qM=1;var e=OK(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(s,l,c,f,d,p){var m=c&t,g=e(s),S=g.length,A=e(l),w=A.length;if(S!=w&&!m)return!1;for(var x=S;x--;){var j=g[x];if(!(m?j in l:r.call(l,j)))return!1}var _=p.get(s),T=p.get(l);if(_&&T)return _==l&&T==s;var M=!0;p.set(s,l),p.set(l,s);for(var O=m;++x<S;){j=g[x];var C=s[j],P=l[j];if(f)var R=m?f(P,C,j,l,s,p):f(C,P,j,s,l,p);if(!(R===void 0?C===P||d(C,P,c,f,p):R)){M=!1;break}O||(O=j=="constructor")}if(M&&!O){var k=s.constructor,U=l.constructor;k!=U&&"constructor"in s&&"constructor"in l&&!(typeof k=="function"&&k instanceof k&&typeof U=="function"&&U instanceof U)&&(M=!1)}return p.delete(s),p.delete(l),M}return Vb=a,Vb}var Hb,IM;function TK(){if(IM)return Hb;IM=1;var e=Eo(),t=Jr(),n=e(t,"DataView");return Hb=n,Hb}var Gb,UM;function EK(){if(UM)return Gb;UM=1;var e=Eo(),t=Jr(),n=e(t,"Promise");return Gb=n,Gb}var Fb,VM;function P$(){if(VM)return Fb;VM=1;var e=Eo(),t=Jr(),n=e(t,"Set");return Fb=n,Fb}var Kb,HM;function CK(){if(HM)return Kb;HM=1;var e=Eo(),t=Jr(),n=e(t,"WeakMap");return Kb=n,Kb}var Yb,GM;function MK(){if(GM)return Yb;GM=1;var e=TK(),t=qw(),n=EK(),r=P$(),a=CK(),s=Di(),l=YL(),c="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",g="[object DataView]",S=l(e),A=l(t),w=l(n),x=l(r),j=l(a),_=s;return(e&&_(new e(new ArrayBuffer(1)))!=g||t&&_(new t)!=c||n&&_(n.resolve())!=d||r&&_(new r)!=p||a&&_(new a)!=m)&&(_=function(T){var M=s(T),O=M==f?T.constructor:void 0,C=O?l(O):"";if(C)switch(C){case S:return g;case A:return c;case w:return d;case x:return p;case j:return m}return M}),Yb=_,Yb}var Xb,FM;function PK(){if(FM)return Xb;FM=1;var e=S$(),t=O$(),n=fK(),r=_K(),a=MK(),s=En(),l=T$(),c=C$(),f=1,d="[object Arguments]",p="[object Array]",m="[object Object]",g=Object.prototype,S=g.hasOwnProperty;function A(w,x,j,_,T,M){var O=s(w),C=s(x),P=O?p:a(w),R=C?p:a(x);P=P==d?m:P,R=R==d?m:R;var k=P==m,U=R==m,q=P==R;if(q&&l(w)){if(!l(x))return!1;O=!0,k=!1}if(q&&!k)return M||(M=new e),O||c(w)?t(w,x,j,_,T,M):n(w,x,P,j,_,T,M);if(!(j&f)){var $=k&&S.call(w,"__wrapped__"),F=U&&S.call(x,"__wrapped__");if($||F){var X=$?w.value():w,Y=F?x.value():x;return M||(M=new e),T(X,Y,j,_,M)}}return q?(M||(M=new e),r(w,x,j,_,T,M)):!1}return Xb=A,Xb}var Wb,KM;function tA(){if(KM)return Wb;KM=1;var e=PK(),t=ki();function n(r,a,s,l,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,s,l,n,c)}return Wb=n,Wb}var Zb,YM;function NK(){if(YM)return Zb;YM=1;var e=S$(),t=tA(),n=1,r=2;function a(s,l,c,f){var d=c.length,p=d,m=!f;if(s==null)return!p;for(s=Object(s);d--;){var g=c[d];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<p;){g=c[d];var S=g[0],A=s[S],w=g[1];if(m&&g[2]){if(A===void 0&&!(S in s))return!1}else{var x=new e;if(f)var j=f(A,w,S,s,l,x);if(!(j===void 0?t(w,A,n|r,f,x):j))return!1}}return!0}return Zb=a,Zb}var Qb,XM;function N$(){if(XM)return Qb;XM=1;var e=Ta();function t(n){return n===n&&!e(n)}return Qb=t,Qb}var Jb,WM;function RK(){if(WM)return Jb;WM=1;var e=N$(),t=Rp();function n(r){for(var a=t(r),s=a.length;s--;){var l=a[s],c=r[l];a[s]=[l,c,e(c)]}return a}return Jb=n,Jb}var ex,ZM;function R$(){if(ZM)return ex;ZM=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return ex=e,ex}var tx,QM;function DK(){if(QM)return tx;QM=1;var e=NK(),t=RK(),n=R$();function r(a){var s=t(a);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===a||e(l,a,s)}}return tx=r,tx}var nx,JM;function kK(){if(JM)return nx;JM=1;function e(t,n){return t!=null&&n in Object(t)}return nx=e,nx}var rx,eP;function LK(){if(eP)return rx;eP=1;var e=ZL(),t=Qw(),n=En(),r=Jw(),a=eA(),s=Ep();function l(c,f,d){f=e(f,c);for(var p=-1,m=f.length,g=!1;++p<m;){var S=s(f[p]);if(!(g=c!=null&&d(c,S)))break;c=c[S]}return g||++p!=m?g:(m=c==null?0:c.length,!!m&&a(m)&&r(S,m)&&(n(c)||t(c)))}return rx=l,rx}var ix,tP;function $K(){if(tP)return ix;tP=1;var e=kK(),t=LK();function n(r,a){return r!=null&&t(r,a,e)}return ix=n,ix}var ax,nP;function zK(){if(nP)return ax;nP=1;var e=tA(),t=QL(),n=$K(),r=$w(),a=N$(),s=R$(),l=Ep(),c=1,f=2;function d(p,m){return r(p)&&a(m)?s(l(p),m):function(g){var S=t(g,p);return S===void 0&&S===m?n(g,p):e(m,S,c|f)}}return ax=d,ax}var ox,rP;function wl(){if(rP)return ox;rP=1;function e(t){return t}return ox=e,ox}var sx,iP;function BK(){if(iP)return sx;iP=1;function e(t){return function(n){return n==null?void 0:n[t]}}return sx=e,sx}var lx,aP;function qK(){if(aP)return lx;aP=1;var e=Vw();function t(n){return function(r){return e(r,n)}}return lx=t,lx}var ux,oP;function IK(){if(oP)return ux;oP=1;var e=BK(),t=qK(),n=$w(),r=Ep();function a(s){return n(s)?e(r(s)):t(s)}return ux=a,ux}var cx,sP;function ei(){if(sP)return cx;sP=1;var e=DK(),t=zK(),n=wl(),r=En(),a=IK();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):a(l)}return cx=s,cx}var fx,lP;function D$(){if(lP)return fx;lP=1;function e(t,n,r,a){for(var s=t.length,l=r+(a?1:-1);a?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return fx=e,fx}var dx,uP;function UK(){if(uP)return dx;uP=1;function e(t){return t!==t}return dx=e,dx}var hx,cP;function VK(){if(cP)return hx;cP=1;function e(t,n,r){for(var a=r-1,s=t.length;++a<s;)if(t[a]===n)return a;return-1}return hx=e,hx}var px,fP;function HK(){if(fP)return px;fP=1;var e=D$(),t=UK(),n=VK();function r(a,s,l){return s===s?n(a,s,l):e(a,t,l)}return px=r,px}var mx,dP;function GK(){if(dP)return mx;dP=1;var e=HK();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return mx=t,mx}var yx,hP;function FK(){if(hP)return yx;hP=1;function e(t,n,r){for(var a=-1,s=t==null?0:t.length;++a<s;)if(r(n,t[a]))return!0;return!1}return yx=e,yx}var vx,pP;function KK(){if(pP)return vx;pP=1;function e(){}return vx=e,vx}var gx,mP;function YK(){if(mP)return gx;mP=1;var e=P$(),t=KK(),n=Zw(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return gx=a,gx}var bx,yP;function XK(){if(yP)return bx;yP=1;var e=w$(),t=GK(),n=FK(),r=j$(),a=YK(),s=Zw(),l=200;function c(f,d,p){var m=-1,g=t,S=f.length,A=!0,w=[],x=w;if(p)A=!1,g=n;else if(S>=l){var j=d?null:a(f);if(j)return s(j);A=!1,g=r,x=new e}else x=d?[]:w;e:for(;++m<S;){var _=f[m],T=d?d(_):_;if(_=p||_!==0?_:0,A&&T===T){for(var M=x.length;M--;)if(x[M]===T)continue e;d&&x.push(T),w.push(_)}else g(x,T,p)||(x!==w&&x.push(T),w.push(_))}return w}return bx=c,bx}var xx,vP;function WK(){if(vP)return xx;vP=1;var e=ei(),t=XK();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return xx=n,xx}var ZK=WK();const gP=et(ZK);function k$(e,t,n){return t===!0?gP(e,n):Oe(t)?gP(e,t):e}function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}var QK=["ref"];function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Si(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){Dp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xP(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 eY(e,t,n){return t&&xP(e.prototype,t),n&&xP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tY(e,t,n){return t=bh(t),nY(e,L$()?Reflect.construct(t,n||[],bh(e).constructor):t.apply(e,n))}function nY(e,t){if(t&&(Is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rY(e)}function rY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L$=function(){return!!e})()}function bh(e){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bh(e)}function iY(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&&$1(e,t)}function $1(e,t){return $1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$1(e,t)}function Dp(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=aY(e,"string");return Is(t)=="symbol"?t:t+""}function aY(e,t){if(Is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function oY(e,t){if(e==null)return{};var n=sY(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sY(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 lY(e){return e.value}function uY(e,t){if(B.isValidElement(e))return B.cloneElement(e,t);if(typeof e=="function")return B.createElement(e,t);t.ref;var n=oY(t,QK);return B.createElement(Ww,n)}var SP=1,Ds=(function(e){function t(){var n;JK(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=tY(this,t,[].concat(a)),Dp(n,"lastBoundingBox",{width:-1,height:-1}),n}return iY(t,e),eY(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)>SP||Math.abs(a.height-this.lastBoundingBox.height)>SP)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Si({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,s=a.layout,l=a.align,c=a.verticalAlign,f=a.margin,d=a.chartWidth,p=a.chartHeight,m,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&s==="vertical"){var S=this.getBBoxSnapshot();m={left:((d||0)-S.width)/2}}else m=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 A=this.getBBoxSnapshot();g={top:((p||0)-A.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Si(Si({},m),g)}},{key:"render",value:function(){var r=this,a=this.props,s=a.content,l=a.width,c=a.height,f=a.wrapperStyle,d=a.payloadUniqBy,p=a.payload,m=Si(Si({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return B.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(S){r.wrapperNode=S}},uY(s,Si(Si({},this.props),{},{payload:k$(p,d,lY)})))}}],[{key:"getWithHeight",value:function(r,a){var s=Si(Si({},this.defaultProps),r.props),l=s.layout;return l==="vertical"&&ue(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])})(N.PureComponent);Dp(Ds,"displayName","Legend");Dp(Ds,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Sx,wP;function cY(){if(wP)return Sx;wP=1;var e=Fc(),t=Qw(),n=En(),r=e?e.isConcatSpreadable:void 0;function a(s){return n(s)||t(s)||!!(r&&s&&s[r])}return Sx=a,Sx}var wx,AP;function z$(){if(AP)return wx;AP=1;var e=_$(),t=cY();function n(r,a,s,l,c){var f=-1,d=r.length;for(s||(s=t),c||(c=[]);++f<d;){var p=r[f];a>0&&s(p)?a>1?n(p,a-1,s,l,c):e(c,p):l||(c[c.length]=p)}return c}return wx=n,wx}var Ax,jP;function fY(){if(jP)return Ax;jP=1;function e(t){return function(n,r,a){for(var s=-1,l=Object(n),c=a(n),f=c.length;f--;){var d=c[t?f:++s];if(r(l[d],d,l)===!1)break}return n}}return Ax=e,Ax}var jx,OP;function dY(){if(OP)return jx;OP=1;var e=fY(),t=e();return jx=t,jx}var Ox,_P;function B$(){if(_P)return Ox;_P=1;var e=dY(),t=Rp();function n(r,a){return r&&e(r,a,t)}return Ox=n,Ox}var _x,TP;function hY(){if(TP)return _x;TP=1;var e=Kc();function t(n,r){return function(a,s){if(a==null)return a;if(!e(a))return n(a,s);for(var l=a.length,c=r?l:-1,f=Object(a);(r?c--:++c<l)&&s(f[c],c,f)!==!1;);return a}}return _x=t,_x}var Tx,EP;function nA(){if(EP)return Tx;EP=1;var e=B$(),t=hY(),n=t(e);return Tx=n,Tx}var Ex,CP;function q$(){if(CP)return Ex;CP=1;var e=nA(),t=Kc();function n(r,a){var s=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,d){l[++s]=a(c,f,d)}),l}return Ex=n,Ex}var Cx,MP;function pY(){if(MP)return Cx;MP=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Cx=e,Cx}var Mx,PP;function mY(){if(PP)return Mx;PP=1;var e=bl();function t(n,r){if(n!==r){var a=n!==void 0,s=n===null,l=n===n,c=e(n),f=r!==void 0,d=r===null,p=r===r,m=e(r);if(!d&&!m&&!c&&n>r||c&&f&&p&&!d&&!m||s&&f&&p||!a&&p||!l)return 1;if(!s&&!c&&!m&&n<r||m&&a&&l&&!s&&!c||d&&a&&l||!f&&l||!p)return-1}return 0}return Mx=t,Mx}var Px,NP;function yY(){if(NP)return Px;NP=1;var e=mY();function t(n,r,a){for(var s=-1,l=n.criteria,c=r.criteria,f=l.length,d=a.length;++s<f;){var p=e(l[s],c[s]);if(p){if(s>=d)return p;var m=a[s];return p*(m=="desc"?-1:1)}}return n.index-r.index}return Px=t,Px}var Nx,RP;function vY(){if(RP)return Nx;RP=1;var e=Uw(),t=Vw(),n=ei(),r=q$(),a=pY(),s=E$(),l=yY(),c=wl(),f=En();function d(p,m,g){m.length?m=e(m,function(w){return f(w)?function(x){return t(x,w.length===1?w[0]:w)}:w}):m=[c];var S=-1;m=e(m,s(n));var A=r(p,function(w,x,j){var _=e(m,function(T){return T(w)});return{criteria:_,index:++S,value:w}});return a(A,function(w,x){return l(w,x,g)})}return Nx=d,Nx}var Rx,DP;function gY(){if(DP)return Rx;DP=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 Rx=e,Rx}var Dx,kP;function bY(){if(kP)return Dx;kP=1;var e=gY(),t=Math.max;function n(r,a,s){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,c=-1,f=t(l.length-a,0),d=Array(f);++c<f;)d[c]=l[a+c];c=-1;for(var p=Array(a+1);++c<a;)p[c]=l[c];return p[a]=s(d),e(r,this,p)}}return Dx=n,Dx}var kx,LP;function xY(){if(LP)return kx;LP=1;function e(t){return function(){return t}}return kx=e,kx}var Lx,$P;function I$(){if($P)return Lx;$P=1;var e=Eo(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Lx=t,Lx}var $x,zP;function SY(){if(zP)return $x;zP=1;var e=xY(),t=I$(),n=wl(),r=t?function(a,s){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return $x=r,$x}var zx,BP;function wY(){if(BP)return zx;BP=1;var e=800,t=16,n=Date.now;function r(a){var s=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++s>=e)return arguments[0]}else s=0;return a.apply(void 0,arguments)}}return zx=r,zx}var Bx,qP;function AY(){if(qP)return Bx;qP=1;var e=SY(),t=wY(),n=t(e);return Bx=n,Bx}var qx,IP;function jY(){if(IP)return qx;IP=1;var e=wl(),t=bY(),n=AY();function r(a,s){return n(t(a,s,e),a+"")}return qx=r,qx}var Ix,UP;function kp(){if(UP)return Ix;UP=1;var e=Bw(),t=Kc(),n=Jw(),r=Ta();function a(s,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],s):!1}return Ix=a,Ix}var Ux,VP;function OY(){if(VP)return Ux;VP=1;var e=z$(),t=vY(),n=jY(),r=kp(),a=n(function(s,l){if(s==null)return[];var c=l.length;return c>1&&r(s,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(s,e(l,1),[])});return Ux=a,Ux}var _Y=OY();const rA=et(_Y);function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(e)}function 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 TY(e,t){return PY(e)||MY(e,t)||CY(e,t)||EY()}function EY(){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 CY(e,t){if(e){if(typeof e=="string")return HP(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 HP(e,t)}}function HP(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 MY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function PY(e){if(Array.isArray(e))return e}function GP(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 Vx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GP(Object(n),!0).forEach(function(r){NY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NY(e,t,n){return t=RY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RY(e){var t=DY(e,"string");return sc(t)=="symbol"?t:t+""}function DY(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kY(e){return Array.isArray(e)&&Ht(e[0])&&Ht(e[1])?e.join(" ~ "):e}var LY=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,s=a===void 0?{}:a,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,d=f===void 0?{}:f,p=t.payload,m=t.formatter,g=t.itemSorter,S=t.wrapperClassName,A=t.labelClassName,w=t.label,x=t.labelFormatter,j=t.accessibilityLayer,_=j===void 0?!1:j,T=function(){if(p&&p.length){var $={padding:0,margin:0},F=(g?rA(p,g):p).map(function(X,Y){if(X.type==="none")return null;var z=Vx({display:"block",paddingTop:4,paddingBottom:4,color:X.color||"#000"},c),K=X.formatter||m||kY,Q=X.value,ie=X.name,se=Q,L=ie;if(K&&se!=null&&L!=null){var H=K(Q,ie,X,Y,p);if(Array.isArray(H)){var re=TY(H,2);se=re[0],L=re[1]}else se=H}return B.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Y),style:z},Ht(L)?B.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Ht(L)?B.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,B.createElement("span",{className:"recharts-tooltip-item-value"},se),B.createElement("span",{className:"recharts-tooltip-item-unit"},X.unit||""))});return B.createElement("ul",{className:"recharts-tooltip-item-list",style:$},F)}return null},M=Vx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),O=Vx({margin:0},d),C=!Te(w),P=C?w:"",R=Pe("recharts-default-tooltip",S),k=Pe("recharts-tooltip-label",A);C&&x&&p!==void 0&&p!==null&&(P=x(w,p));var U=_?{role:"status","aria-live":"assertive"}:{};return B.createElement("div",z1({className:R,style:M},U),B.createElement("p",{className:k,style:O},B.isValidElement(P)?P:"".concat(P)),T())};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 Cd(e,t,n){return t=$Y(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Y(e){var t=zY(e,"string");return lc(t)=="symbol"?t:t+""}function zY(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _u="recharts-tooltip-wrapper",BY={visibility:"hidden"};function qY(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Pe(_u,Cd(Cd(Cd(Cd({},"".concat(_u,"-right"),ue(n)&&t&&ue(t.x)&&n>=t.x),"".concat(_u,"-left"),ue(n)&&t&&ue(t.x)&&n<t.x),"".concat(_u,"-bottom"),ue(r)&&t&&ue(t.y)&&r>=t.y),"".concat(_u,"-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,s=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(s&&ue(s[r]))return s[r];var p=n[r]-c-a,m=n[r]+a;if(t[r])return l[r]?p:m;if(l[r]){var g=p,S=f[r];return g<S?Math.max(m,f[r]):Math.max(p,f[r])}var A=m+c,w=f[r]+d;return A>w?Math.max(p,f[r]):Math.max(m,f[r])}function IY(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 UY(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,p,m;return l.height>0&&l.width>0&&n?(p=FP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:s,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),m=FP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:s,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),d=IY({translateX:p,translateY:m,useTranslate3d:c})):d=BY,{cssProperties:d,cssClasses:qY({translateX:p,translateY:m,coordinate:n})}}function Us(e){"@babel/helpers - typeof";return Us=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},Us(e)}function KP(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?KP(Object(n),!0).forEach(function(r){q1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V$(r.key),r)}}function GY(e,t,n){return t&&HY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FY(e,t,n){return t=xh(t),KY(e,U$()?Reflect.construct(t,n||[],xh(e).constructor):t.apply(e,n))}function KY(e,t){if(t&&(Us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YY(e)}function YY(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 xh(e){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xh(e)}function XY(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&&B1(e,t)}function B1(e,t){return B1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},B1(e,t)}function q1(e,t,n){return t=V$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V$(e){var t=WY(e,"string");return Us(t)=="symbol"?t:t+""}function WY(e,t){if(Us(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XP=1,ZY=(function(e){function t(){var n;VY(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=FY(this,t,[].concat(a)),q1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),q1(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,f,d,p;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:(d=(p=n.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&d!==void 0?d:0}})}}),n}return XY(t,e),GY(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>XP||Math.abs(r.height-this.state.lastBoundingBox.height)>XP)&&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,s=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.children,p=a.coordinate,m=a.hasPayload,g=a.isAnimationActive,S=a.offset,A=a.position,w=a.reverseDirection,x=a.useTranslate3d,j=a.viewBox,_=a.wrapperStyle,T=UY({allowEscapeViewBox:l,coordinate:p,offsetTopLeft:S,position:A,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:j}),M=T.cssClasses,O=T.cssProperties,C=YP(YP({transition:g&&s?"transform ".concat(c,"ms ").concat(f):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&m?"visible":"hidden",position:"absolute",top:0,left:0},_);return B.createElement("div",{tabIndex:-1,className:M,style:C,ref:function(R){r.wrapperNode=R}},d)}}])})(N.PureComponent),QY=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ea={isSsr:QY()};function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}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 ZP(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){iA(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 JY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eX(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 tX(e,t,n){return t&&eX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nX(e,t,n){return t=Sh(t),rX(e,H$()?Reflect.construct(t,n||[],Sh(e).constructor):t.apply(e,n))}function rX(e,t){if(t&&(Vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iX(e)}function iX(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 Sh(e){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sh(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&&I1(e,t)}function I1(e,t){return I1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},I1(e,t)}function iA(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=oX(e,"string");return Vs(t)=="symbol"?t:t+""}function oX(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sX(e){return e.dataKey}function lX(e,t){return B.isValidElement(e)?B.cloneElement(e,t):typeof e=="function"?B.createElement(e,t):B.createElement(LY,t)}var Un=(function(e){function t(){return JY(this,t),nX(this,t,arguments)}return aX(t,e),tX(t,[{key:"render",value:function(){var r=this,a=this.props,s=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.content,p=a.coordinate,m=a.filterNull,g=a.isAnimationActive,S=a.offset,A=a.payload,w=a.payloadUniqBy,x=a.position,j=a.reverseDirection,_=a.useTranslate3d,T=a.viewBox,M=a.wrapperStyle,O=A??[];m&&O.length&&(O=k$(A.filter(function(P){return P.value!=null&&(P.hide!==!0||r.props.includeHidden)}),w,sX));var C=O.length>0;return B.createElement(ZY,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:s,coordinate:p,hasPayload:C,offset:S,position:x,reverseDirection:j,useTranslate3d:_,viewBox:T,wrapperStyle:M},lX(d,ZP(ZP({},this.props),{},{payload:O})))}}])})(N.PureComponent);iA(Un,"displayName","Tooltip");iA(Un,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ea.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 Hx,QP;function uX(){if(QP)return Hx;QP=1;var e=Jr(),t=function(){return e.Date.now()};return Hx=t,Hx}var Gx,JP;function cX(){if(JP)return Gx;JP=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Gx=t,Gx}var Fx,eN;function fX(){if(eN)return Fx;eN=1;var e=cX(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Fx=n,Fx}var Kx,tN;function F$(){if(tN)return Kx;tN=1;var e=fX(),t=Ta(),n=bl(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var p=typeof d.valueOf=="function"?d.valueOf():d;d=t(p)?p+"":p}if(typeof d!="string")return d===0?d:+d;d=e(d);var m=s.test(d);return m||l.test(d)?c(d.slice(2),m?2:8):a.test(d)?r:+d}return Kx=f,Kx}var Yx,nN;function dX(){if(nN)return Yx;nN=1;var e=Ta(),t=uX(),n=F$(),r="Expected a function",a=Math.max,s=Math.min;function l(c,f,d){var p,m,g,S,A,w,x=0,j=!1,_=!1,T=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(j=!!d.leading,_="maxWait"in d,g=_?a(n(d.maxWait)||0,f):g,T="trailing"in d?!!d.trailing:T);function M(F){var X=p,Y=m;return p=m=void 0,x=F,S=c.apply(Y,X),S}function O(F){return x=F,A=setTimeout(R,f),j?M(F):S}function C(F){var X=F-w,Y=F-x,z=f-X;return _?s(z,g-Y):z}function P(F){var X=F-w,Y=F-x;return w===void 0||X>=f||X<0||_&&Y>=g}function R(){var F=t();if(P(F))return k(F);A=setTimeout(R,C(F))}function k(F){return A=void 0,T&&p?M(F):(p=m=void 0,S)}function U(){A!==void 0&&clearTimeout(A),x=0,p=w=m=A=void 0}function q(){return A===void 0?S:k(t())}function $(){var F=t(),X=P(F);if(p=arguments,m=this,w=F,X){if(A===void 0)return O(w);if(_)return clearTimeout(A),A=setTimeout(R,f),M(w)}return A===void 0&&(A=setTimeout(R,f)),S}return $.cancel=U,$.flush=q,$}return Yx=l,Yx}var Xx,rN;function hX(){if(rN)return Xx;rN=1;var e=dX(),t=Ta(),n="Expected a function";function r(a,s,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,s,{leading:c,maxWait:s,trailing:f})}return Xx=r,Xx}var pX=hX();const K$=et(pX);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 iN(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 Md(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iN(Object(n),!0).forEach(function(r){mX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mX(e,t,n){return t=yX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yX(e){var t=vX(e,"string");return uc(t)=="symbol"?t:t+""}function vX(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 gX(e,t){return wX(e)||SX(e,t)||xX(e,t)||bX()}function bX(){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 xX(e,t){if(e){if(typeof e=="string")return aN(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 aN(e,t)}}function aN(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 SX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function wX(e){if(Array.isArray(e))return e}var wh=N.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,s=e.width,l=s===void 0?"100%":s,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,p=d===void 0?0:d,m=e.minHeight,g=e.maxHeight,S=e.children,A=e.debounce,w=A===void 0?0:A,x=e.id,j=e.className,_=e.onResize,T=e.style,M=T===void 0?{}:T,O=N.useRef(null),C=N.useRef();C.current=_,N.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 P=N.useState({containerWidth:a.width,containerHeight:a.height}),R=gX(P,2),k=R[0],U=R[1],q=N.useCallback(function(F,X){U(function(Y){var z=Math.round(F),K=Math.round(X);return Y.containerWidth===z&&Y.containerHeight===K?Y:{containerWidth:z,containerHeight:K}})},[]);N.useEffect(function(){var F=function(ie){var se,L=ie[0].contentRect,H=L.width,re=L.height;q(H,re),(se=C.current)===null||se===void 0||se.call(C,H,re)};w>0&&(F=K$(F,w,{trailing:!0,leading:!1}));var X=new ResizeObserver(F),Y=O.current.getBoundingClientRect(),z=Y.width,K=Y.height;return q(z,K),X.observe(O.current),function(){X.disconnect()}},[q,w]);var $=N.useMemo(function(){var F=k.containerWidth,X=k.containerHeight;if(F<0||X<0)return null;Tr(so(l)||so(f),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,l,f),Tr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Y=so(l)?F:l,z=so(f)?X:f;n&&n>0&&(Y?z=Y/n:z&&(Y=z*n),g&&z>g&&(z=g)),Tr(Y>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.`,Y,z,l,f,p,m,n);var K=!Array.isArray(S)&&Ti(S.type).endsWith("Chart");return B.Children.map(S,function(Q){return B.isValidElement(Q)?N.cloneElement(Q,Md({width:Y,height:z},K?{style:Md({height:"100%",width:"100%",maxHeight:z,maxWidth:Y},Q.props.style)}:{})):Q})},[n,S,f,g,m,p,k,l]);return B.createElement("div",{id:x?"".concat(x):void 0,className:Pe("recharts-responsive-container",j),style:Md(Md({},M),{},{width:l,height:f,minWidth:p,minHeight:m,maxHeight:g}),ref:O},$)}),Lp=function(t){return null};Lp.displayName="Cell";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 oN(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 U1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oN(Object(n),!0).forEach(function(r){AX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AX(e,t,n){return t=jX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jX(e){var t=OX(e,"string");return cc(t)=="symbol"?t:t+""}function OX(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 vs={widthCache:{},cacheCount:0},_X=2e3,TX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},sN="recharts_measurement_span";function EX(e){var t=U1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Fu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ea.isSsr)return{width:0,height:0};var r=EX(n),a=JSON.stringify({text:t,copyStyle:r});if(vs.widthCache[a])return vs.widthCache[a];try{var s=document.getElementById(sN);s||(s=document.createElement("span"),s.setAttribute("id",sN),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=U1(U1({},TX),r);Object.assign(s.style,l),s.textContent="".concat(t);var c=s.getBoundingClientRect(),f={width:c.width,height:c.height};return vs.widthCache[a]=f,++vs.cacheCount>_X&&(vs.cacheCount=0,vs.widthCache={}),f}catch{return{width:0,height:0}}},CX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ah(e,t){return RX(e)||NX(e,t)||PX(e,t)||MX()}function MX(){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 PX(e,t){if(e){if(typeof e=="string")return lN(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 lN(e,t)}}function lN(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 NX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function RX(e){if(Array.isArray(e))return e}function DX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uN(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,LX(r.key),r)}}function kX(e,t,n){return t&&uN(e.prototype,t),n&&uN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LX(e){var t=$X(e,"string");return fc(t)=="symbol"?t:t+""}function $X(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 String(e)}var cN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,BX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Y$={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},qX=Object.keys(Y$),_s="NaN";function IX(e,t){return e*Y$[t]}var Pd=(function(){function e(t,n){DX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!zX.test(n)&&(this.num=NaN,this.unit=""),qX.includes(n)&&(this.num=IX(t,n),this.unit="px")}return kX(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=BX.exec(n))!==null&&r!==void 0?r:[],s=Ah(a,3),l=s[1],c=s[2];return new e(parseFloat(l),c??"")}}])})();function X$(e){if(e.includes(_s))return _s;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=cN.exec(t))!==null&&n!==void 0?n:[],a=Ah(r,4),s=a[1],l=a[2],c=a[3],f=Pd.parse(s??""),d=Pd.parse(c??""),p=l==="*"?f.multiply(d):f.divide(d);if(p.isNaN())return _s;t=t.replace(cN,p.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,g=(m=fN.exec(t))!==null&&m!==void 0?m:[],S=Ah(g,4),A=S[1],w=S[2],x=S[3],j=Pd.parse(A??""),_=Pd.parse(x??""),T=w==="+"?j.add(_):j.subtract(_);if(T.isNaN())return _s;t=t.replace(fN,T.toString())}return t}var dN=/\(([^()]*)\)/;function UX(e){for(var t=e;t.includes("(");){var n=dN.exec(t),r=Ah(n,2),a=r[1];t=t.replace(dN,X$(a))}return t}function VX(e){var t=e.replace(/\s+/g,"");return t=UX(t),t=X$(t),t}function HX(e){try{return VX(e)}catch{return _s}}function Wx(e){var t=HX(e.slice(5,-1));return t===_s?"":t}var GX=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],FX=["dx","dy","angle","className","breakAll"];function V1(){return V1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V1.apply(this,arguments)}function hN(e,t){if(e==null)return{};var n=KX(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KX(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 pN(e,t){return ZX(e)||WX(e,t)||XX(e,t)||YX()}function YX(){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 XX(e,t){if(e){if(typeof e=="string")return mN(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 mN(e,t)}}function mN(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 WX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function ZX(e){if(Array.isArray(e))return e}var W$=/[ \f\n\r\t\v\u2028\u2029]+/,Z$=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var s=[];Te(n)||(r?s=n.toString().split(""):s=n.toString().split(W$));var l=s.map(function(f){return{word:f,width:Fu(f,a).width}}),c=r?0:Fu(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},QX=function(t,n,r,a,s){var l=t.maxLines,c=t.children,f=t.style,d=t.breakAll,p=ue(l),m=c,g=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Y.reduce(function(z,K){var Q=K.word,ie=K.width,se=z[z.length-1];if(se&&(a==null||s||se.width+ie+r<Number(a)))se.words.push(Q),se.width+=ie+r;else{var L={words:[Q],width:ie};z.push(L)}return z},[])},S=g(n),A=function(Y){return Y.reduce(function(z,K){return z.width>K.width?z:K})};if(!p)return S;for(var w="…",x=function(Y){var z=m.slice(0,Y),K=Z$({breakAll:d,style:f,children:z+w}).wordsWithComputedWidth,Q=g(K),ie=Q.length>l||A(Q).width>Number(a);return[ie,Q]},j=0,_=m.length-1,T=0,M;j<=_&&T<=m.length-1;){var O=Math.floor((j+_)/2),C=O-1,P=x(C),R=pN(P,2),k=R[0],U=R[1],q=x(O),$=pN(q,1),F=$[0];if(!k&&!F&&(j=O+1),k&&F&&(_=O-1),!k&&F){M=U;break}T++}return M||S},yN=function(t){var n=Te(t)?[]:t.toString().split(W$);return[{words:n}]},JX=function(t){var n=t.width,r=t.scaleToFit,a=t.children,s=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!Ea.isSsr){var f,d,p=Z$({breakAll:l,children:a,style:s});if(p){var m=p.wordsWithComputedWidth,g=p.spaceWidth;f=m,d=g}else return yN(a);return QX({breakAll:l,children:a,maxLines:c,style:s},f,d,n,r)}return yN(a)},vN="#808080",So=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,s=a===void 0?0:a,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,d=f===void 0?"0.71em":f,p=t.scaleToFit,m=p===void 0?!1:p,g=t.textAnchor,S=g===void 0?"start":g,A=t.verticalAnchor,w=A===void 0?"end":A,x=t.fill,j=x===void 0?vN:x,_=hN(t,GX),T=N.useMemo(function(){return JX({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:m,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,m,_.style,_.width]),M=_.dx,O=_.dy,C=_.angle,P=_.className,R=_.breakAll,k=hN(_,FX);if(!Ht(r)||!Ht(s))return null;var U=r+(ue(M)?M:0),q=s+(ue(O)?O:0),$;switch(w){case"start":$=Wx("calc(".concat(d,")"));break;case"middle":$=Wx("calc(".concat((T.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:$=Wx("calc(".concat(T.length-1," * -").concat(c,")"));break}var F=[];if(m){var X=T[0].width,Y=_.width;F.push("scale(".concat((ue(Y)?Y/X:1)/X,")"))}return C&&F.push("rotate(".concat(C,", ").concat(U,", ").concat(q,")")),F.length&&(k.transform=F.join(" ")),B.createElement("text",V1({},be(k,!0),{x:U,y:q,className:Pe("recharts-text",P),textAnchor:S,fill:j.includes("url")?vN:j}),T.map(function(z,K){var Q=z.words.join(R?"":" ");return B.createElement("tspan",{x:U,dy:K===0?$:c,key:"".concat(Q,"-").concat(K)},Q)}))};function ba(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function aA(e){let t,n,r;e.length!==2?(t=ba,n=(c,f)=>ba(e(c),f),r=(c,f)=>e(c)-f):(t=e===ba||e===eW?e:tW,n=e,r=e);function a(c,f,d=0,p=c.length){if(d<p){if(t(f,f)!==0)return p;do{const m=d+p>>>1;n(c[m],f)<0?d=m+1:p=m}while(d<p)}return d}function s(c,f,d=0,p=c.length){if(d<p){if(t(f,f)!==0)return p;do{const m=d+p>>>1;n(c[m],f)<=0?d=m+1:p=m}while(d<p)}return d}function l(c,f,d=0,p=c.length){const m=a(c,f,d,p-1);return m>d&&r(c[m-1],f)>-r(c[m],f)?m-1:m}return{left:a,center:l,right:s}}function tW(){return 0}function Q$(e){return e===null?NaN:+e}function*nW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const rW=aA(ba),Yc=rW.right;aA(Q$).center;class gN 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(bN(this,t))}has(t){return super.has(bN(this,t))}set(t,n){return super.set(iW(this,t),n)}delete(t){return super.delete(aW(this,t))}}function bN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function iW({_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 sW(e=ba){if(e===ba)return J$;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 J$(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const lW=Math.sqrt(50),uW=Math.sqrt(10),cW=Math.sqrt(2);function jh(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),s=r/Math.pow(10,a),l=s>=lW?10:s>=uW?5:s>=cW?2:1;let c,f,d;return a<0?(d=Math.pow(10,-a)/l,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,a)*l,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?jh(e,t,n*2):[c,f,d]}function H1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,s,l]=r?jh(t,e,n):jh(e,t,n);if(!(s>=a))return[];const c=s-a+1,f=new Array(c);if(r)if(l<0)for(let d=0;d<c;++d)f[d]=(s-d)/-l;else for(let d=0;d<c;++d)f[d]=(s-d)*l;else if(l<0)for(let d=0;d<c;++d)f[d]=(a+d)/-l;else for(let d=0;d<c;++d)f[d]=(a+d)*l;return f}function G1(e,t,n){return t=+t,e=+e,n=+n,jh(e,t,n)[2]}function F1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?G1(t,e,n):G1(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function xN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function SN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function ez(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?J$:sW(a);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,p=Math.log(f),m=.5*Math.exp(2*p/3),g=.5*Math.sqrt(p*m*(f-m)/f)*(d-f/2<0?-1:1),S=Math.max(n,Math.floor(t-d*m/f+g)),A=Math.min(r,Math.floor(t+(f-d)*m/f+g));ez(e,t,S,A,a)}const s=e[t];let l=n,c=r;for(Tu(e,n,t),a(e[r],s)>0&&Tu(e,n,r);l<c;){for(Tu(e,l,c),++l,--c;a(e[l],s)<0;)++l;for(;a(e[c],s)>0;)--c}a(e[n],s)===0?Tu(e,n,c):(++c,Tu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Tu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function fW(e,t,n){if(e=Float64Array.from(nW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return SN(e);if(t>=1)return xN(e);var r,a=(r-1)*t,s=Math.floor(a),l=xN(ez(e,s).subarray(0,s+1)),c=SN(e.subarray(s+1));return l+(c-l)*(a-s)}}function dW(e,t,n=Q$){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,s=Math.floor(a),l=+n(e[s],s,e),c=+n(e[s+1],s+1,e);return l+(c-l)*(a-s)}}function hW(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,s=new Array(a);++r<a;)s[r]=e+r*n;return s}function hr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Li(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 K1=Symbol("implicit");function oA(){var e=new gN,t=[],n=[],r=K1;function a(s){let l=e.get(s);if(l===void 0){if(r!==K1)return r;e.set(s,l=t.push(s)-1)}return n[l%n.length]}return a.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new gN;for(const l of s)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(s){return arguments.length?(n=Array.from(s),a):n.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return oA(t,n).unknown(r)},hr.apply(a,arguments),a}function dc(){var e=oA().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,s,l,c=!1,f=0,d=0,p=.5;delete e.unknown;function m(){var g=t().length,S=a<r,A=S?a:r,w=S?r:a;s=(w-A)/Math.max(1,g-f+d*2),c&&(s=Math.floor(s)),A+=(w-A-s*(g-f))*p,l=s*(1-f),c&&(A=Math.round(A),l=Math.round(l));var x=hW(g).map(function(j){return A+s*j});return n(S?x.reverse():x)}return e.domain=function(g){return arguments.length?(t(g),m()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,m()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,c=!0,m()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(g){return arguments.length?(c=!!g,m()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),m()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),m()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,m()):d},e.align=function(g){return arguments.length?(p=Math.max(0,Math.min(1,g)),m()):p},e.copy=function(){return dc(t(),[r,a]).round(c).paddingInner(f).paddingOuter(d).align(p)},hr.apply(m(),arguments)}function tz(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return tz(t())},e}function Ku(){return tz(dc.apply(null,arguments).paddingInner(1))}function sA(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function nz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Xc(){}var hc=.7,Oh=1/hc,ks="\\s*([+-]?\\d+)\\s*",pc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pW=/^#([0-9a-f]{3,8})$/,mW=new RegExp(`^rgb\\(${ks},${ks},${ks}\\)$`),yW=new RegExp(`^rgb\\(${Kr},${Kr},${Kr}\\)$`),vW=new RegExp(`^rgba\\(${ks},${ks},${ks},${pc}\\)$`),gW=new RegExp(`^rgba\\(${Kr},${Kr},${Kr},${pc}\\)$`),bW=new RegExp(`^hsl\\(${pc},${Kr},${Kr}\\)$`),xW=new RegExp(`^hsla\\(${pc},${Kr},${Kr},${pc}\\)$`),wN={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};sA(Xc,mc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:AN,formatHex:AN,formatHex8:SW,formatHsl:wW,formatRgb:jN,toString:jN});function AN(){return this.rgb().formatHex()}function SW(){return this.rgb().formatHex8()}function wW(){return rz(this).formatHsl()}function jN(){return this.rgb().formatRgb()}function mc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ON(t):n===3?new Tn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Nd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Nd(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=mW.exec(e))?new Tn(t[1],t[2],t[3],1):(t=yW.exec(e))?new Tn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vW.exec(e))?Nd(t[1],t[2],t[3],t[4]):(t=gW.exec(e))?Nd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=bW.exec(e))?EN(t[1],t[2]/100,t[3]/100,1):(t=xW.exec(e))?EN(t[1],t[2]/100,t[3]/100,t[4]):wN.hasOwnProperty(e)?ON(wN[e]):e==="transparent"?new Tn(NaN,NaN,NaN,0):null}function ON(e){return new Tn(e>>16&255,e>>8&255,e&255,1)}function Nd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Tn(e,t,n,r)}function AW(e){return e instanceof Xc||(e=mc(e)),e?(e=e.rgb(),new Tn(e.r,e.g,e.b,e.opacity)):new Tn}function Y1(e,t,n,r){return arguments.length===1?AW(e):new Tn(e,t,n,r??1)}function Tn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}sA(Tn,Y1,nz(Xc,{brighter(e){return e=e==null?Oh:Math.pow(Oh,e),new Tn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hc:Math.pow(hc,e),new Tn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Tn(mo(this.r),mo(this.g),mo(this.b),_h(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:_N,formatHex:_N,formatHex8:jW,formatRgb:TN,toString:TN}));function _N(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}`}function jW(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}${lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function TN(){const e=_h(this.opacity);return`${e===1?"rgb(":"rgba("}${mo(this.r)}, ${mo(this.g)}, ${mo(this.b)}${e===1?")":`, ${e})`}`}function _h(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lo(e){return e=mo(e),(e<16?"0":"")+e.toString(16)}function EN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jr(e,t,n,r)}function rz(e){if(e instanceof jr)return new jr(e.h,e.s,e.l,e.opacity);if(e instanceof Xc||(e=mc(e)),!e)return new jr;if(e instanceof jr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,c=s-a,f=(s+a)/2;return c?(t===s?l=(n-r)/c+(n<r)*6:n===s?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?s+a:2-s-a,l*=60):c=f>0&&f<1?0:l,new jr(l,c,f,e.opacity)}function OW(e,t,n,r){return arguments.length===1?rz(e):new jr(e,t,n,r??1)}function jr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}sA(jr,OW,nz(Xc,{brighter(e){return e=e==null?Oh:Math.pow(Oh,e),new jr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hc:Math.pow(hc,e),new jr(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 Tn(Zx(e>=240?e-240:e+120,a,r),Zx(e,a,r),Zx(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new jr(CN(this.h),Rd(this.s),Rd(this.l),_h(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=_h(this.opacity);return`${e===1?"hsl(":"hsla("}${CN(this.h)}, ${Rd(this.s)*100}%, ${Rd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function CN(e){return e=(e||0)%360,e<0?e+360:e}function Rd(e){return Math.max(0,Math.min(1,e||0))}function Zx(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 lA=e=>()=>e;function _W(e,t){return function(n){return e+n*t}}function TW(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 EW(e){return(e=+e)==1?iz:function(t,n){return n-t?TW(t,n,e):lA(isNaN(t)?n:t)}}function iz(e,t){var n=t-e;return n?_W(e,n):lA(isNaN(e)?t:e)}const MN=(function e(t){var n=EW(t);function r(a,s){var l=n((a=Y1(a)).r,(s=Y1(s)).r),c=n(a.g,s.g),f=n(a.b,s.b),d=iz(a.opacity,s.opacity);return function(p){return a.r=l(p),a.g=c(p),a.b=f(p),a.opacity=d(p),a+""}}return r.gamma=e,r})(1);function CW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(s){for(a=0;a<n;++a)r[a]=e[a]*(1-s)+t[a]*s;return r}}function MW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function PW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),s=new Array(n),l;for(l=0;l<r;++l)a[l]=Al(e[l],t[l]);for(;l<n;++l)s[l]=t[l];return function(c){for(l=0;l<r;++l)s[l]=a[l](c);return s}}function NW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Th(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function RW(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]=Al(e[a],t[a]):r[a]=t[a];return function(s){for(a in n)r[a]=n[a](s);return r}}var X1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qx=new RegExp(X1.source,"g");function DW(e){return function(){return e}}function kW(e){return function(t){return e(t)+""}}function LW(e,t){var n=X1.lastIndex=Qx.lastIndex=0,r,a,s,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=X1.exec(e))&&(a=Qx.exec(t));)(s=a.index)>n&&(s=t.slice(n,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:Th(r,a)})),n=Qx.lastIndex;return n<t.length&&(s=t.slice(n),c[l]?c[l]+=s:c[++l]=s),c.length<2?f[0]?kW(f[0].x):DW(t):(t=f.length,function(d){for(var p=0,m;p<t;++p)c[(m=f[p]).i]=m.x(d);return c.join("")})}function Al(e,t){var n=typeof t,r;return t==null||n==="boolean"?lA(t):(n==="number"?Th:n==="string"?(r=mc(t))?(t=r,MN):LW:t instanceof mc?MN:t instanceof Date?NW:MW(t)?CW:Array.isArray(t)?PW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RW:Th)(e,t)}function uA(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function $W(e,t){t===void 0&&(t=e,e=Al);for(var n=0,r=t.length-1,a=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return s[c](l-c)}}function zW(e){return function(){return e}}function Eh(e){return+e}var PN=[0,1];function vn(e){return e}function W1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:zW(isNaN(t)?NaN:.5)}function BW(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function qW(e,t,n){var r=e[0],a=e[1],s=t[0],l=t[1];return a<r?(r=W1(a,r),s=n(l,s)):(r=W1(r,a),s=n(s,l)),function(c){return s(r(c))}}function IW(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),s=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=W1(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(c){var f=Yc(e,c,1,r)-1;return s[f](a[f](c))}}function Wc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $p(){var e=PN,t=PN,n=Al,r,a,s,l=vn,c,f,d;function p(){var g=Math.min(e.length,t.length);return l!==vn&&(l=BW(e[0],e[g-1])),c=g>2?IW:qW,f=d=null,m}function m(g){return g==null||isNaN(g=+g)?s:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return m.invert=function(g){return l(a((d||(d=c(t,e.map(r),Th)))(g)))},m.domain=function(g){return arguments.length?(e=Array.from(g,Eh),p()):e.slice()},m.range=function(g){return arguments.length?(t=Array.from(g),p()):t.slice()},m.rangeRound=function(g){return t=Array.from(g),n=uA,p()},m.clamp=function(g){return arguments.length?(l=g?!0:vn,p()):l!==vn},m.interpolate=function(g){return arguments.length?(n=g,p()):n},m.unknown=function(g){return arguments.length?(s=g,m):s},function(g,S){return r=g,a=S,p()}}function cA(){return $p()(vn,vn)}function UW(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ch(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 Hs(e){return e=Ch(Math.abs(e)),e?e[1]:NaN}function VW(e,t){return function(n,r){for(var a=n.length,s=[],l=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),s.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return s.reverse().join(t)}}function HW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var GW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yc(e){if(!(t=GW.exec(e)))throw new Error("invalid format: "+e);var t;return new fA({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]})}yc.prototype=fA.prototype;function fA(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+""}fA.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 FW(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 Mh;function KW(e,t){var n=Ch(e,t);if(!n)return Mh=void 0,e.toPrecision(t);var r=n[0],a=n[1],s=a-(Mh=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return s===l?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Ch(e,Math.max(0,t+s-1))[0]}function NN(e,t){var n=Ch(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 RN={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:UW,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)=>NN(e*100,t),r:NN,s:KW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function DN(e){return e}var kN=Array.prototype.map,LN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function YW(e){var t=e.grouping===void 0||e.thousands===void 0?DN:VW(kN.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+"",s=e.numerals===void 0?DN:HW(kN.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 d(m,g){m=yc(m);var S=m.fill,A=m.align,w=m.sign,x=m.symbol,j=m.zero,_=m.width,T=m.comma,M=m.precision,O=m.trim,C=m.type;C==="n"?(T=!0,C="g"):RN[C]||(M===void 0&&(M=12),O=!0,C="g"),(j||S==="0"&&A==="=")&&(j=!0,S="0",A="=");var P=(g&&g.prefix!==void 0?g.prefix:"")+(x==="$"?n:x==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),R=(x==="$"?r:/[%p]/.test(C)?l:"")+(g&&g.suffix!==void 0?g.suffix:""),k=RN[C],U=/[defgprs%]/.test(C);M=M===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function q($){var F=P,X=R,Y,z,K;if(C==="c")X=k($)+X,$="";else{$=+$;var Q=$<0||1/$<0;if($=isNaN($)?f:k(Math.abs($),M),O&&($=FW($)),Q&&+$==0&&w!=="+"&&(Q=!1),F=(Q?w==="("?w:c:w==="-"||w==="("?"":w)+F,X=(C==="s"&&!isNaN($)&&Mh!==void 0?LN[8+Mh/3]:"")+X+(Q&&w==="("?")":""),U){for(Y=-1,z=$.length;++Y<z;)if(K=$.charCodeAt(Y),48>K||K>57){X=(K===46?a+$.slice(Y+1):$.slice(Y))+X,$=$.slice(0,Y);break}}}T&&!j&&($=t($,1/0));var ie=F.length+$.length+X.length,se=ie<_?new Array(_-ie+1).join(S):"";switch(T&&j&&($=t(se+$,se.length?_-X.length:1/0),se=""),A){case"<":$=F+$+X+se;break;case"=":$=F+se+$+X;break;case"^":$=se.slice(0,ie=se.length>>1)+F+$+X+se.slice(ie);break;default:$=se+F+$+X;break}return s($)}return q.toString=function(){return m+""},q}function p(m,g){var S=Math.max(-8,Math.min(8,Math.floor(Hs(g)/3)))*3,A=Math.pow(10,-S),w=d((m=yc(m),m.type="f",m),{suffix:LN[8+S/3]});return function(x){return w(A*x)}}return{format:d,formatPrefix:p}}var Dd,dA,az;XW({thousands:",",grouping:[3],currency:["$",""]});function XW(e){return Dd=YW(e),dA=Dd.format,az=Dd.formatPrefix,Dd}function WW(e){return Math.max(0,-Hs(Math.abs(e)))}function ZW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Hs(t)/3)))*3-Hs(Math.abs(e)))}function QW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Hs(t)-Hs(e))+1}function oz(e,t,n,r){var a=F1(e,t,n),s;switch(r=yc(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=ZW(a,l))&&(r.precision=s),az(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=QW(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=WW(a))&&(r.precision=s-(r.type==="%")*2);break}}return dA(r)}function Ca(e){var t=e.domain;return e.ticks=function(n){var r=t();return H1(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,s=r.length-1,l=r[a],c=r[s],f,d,p=10;for(c<l&&(d=l,l=c,c=d,d=a,a=s,s=d);p-- >0;){if(d=G1(l,c,n),d===f)return r[a]=l,r[s]=c,t(r);if(d>0)l=Math.floor(l/d)*d,c=Math.ceil(c/d)*d;else if(d<0)l=Math.ceil(l*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function Ph(){var e=cA();return e.copy=function(){return Wc(e,Ph())},hr.apply(e,arguments),Ca(e)}function sz(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,Eh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return sz(e).unknown(t)},e=arguments.length?Array.from(e,Eh):[0,1],Ca(n)}function lz(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],s=e[r],l;return s<a&&(l=n,n=r,r=l,l=a,a=s,s=l),e[n]=t.floor(a),e[r]=t.ceil(s),e}function $N(e){return Math.log(e)}function zN(e){return Math.exp(e)}function JW(e){return-Math.log(-e)}function eZ(e){return-Math.exp(-e)}function tZ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nZ(e){return e===10?tZ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function rZ(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 BN(e){return(t,n)=>-e(-t,n)}function hA(e){const t=e($N,zN),n=t.domain;let r=10,a,s;function l(){return a=rZ(r),s=nZ(r),n()[0]<0?(a=BN(a),s=BN(s),e(JW,eZ)):e($N,zN),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 d=f[0],p=f[f.length-1];const m=p<d;m&&([d,p]=[p,d]);let g=a(d),S=a(p),A,w;const x=c==null?10:+c;let j=[];if(!(r%1)&&S-g<x){if(g=Math.floor(g),S=Math.ceil(S),d>0){for(;g<=S;++g)for(A=1;A<r;++A)if(w=g<0?A/s(-g):A*s(g),!(w<d)){if(w>p)break;j.push(w)}}else for(;g<=S;++g)for(A=r-1;A>=1;--A)if(w=g>0?A/s(-g):A*s(g),!(w<d)){if(w>p)break;j.push(w)}j.length*2<x&&(j=H1(d,p,x))}else j=H1(g,S,Math.min(S-g,x)).map(s);return m?j.reverse():j},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=yc(f)).precision==null&&(f.trim=!0),f=dA(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return p=>{let m=p/s(Math.round(a(p)));return m*r<r-.5&&(m*=r),m<=d?f(p):""}},t.nice=()=>n(lz(n(),{floor:c=>s(Math.floor(a(c))),ceil:c=>s(Math.ceil(a(c)))})),t}function uz(){const e=hA($p()).domain([1,10]);return e.copy=()=>Wc(e,uz()).base(e.base()),hr.apply(e,arguments),e}function qN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function IN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pA(e){var t=1,n=e(qN(t),IN(t));return n.constant=function(r){return arguments.length?e(qN(t=+r),IN(t)):t},Ca(n)}function cz(){var e=pA($p());return e.copy=function(){return Wc(e,cz()).constant(e.constant())},hr.apply(e,arguments)}function UN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function iZ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function aZ(e){return e<0?-e*e:e*e}function mA(e){var t=e(vn,vn),n=1;function r(){return n===1?e(vn,vn):n===.5?e(iZ,aZ):e(UN(n),UN(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Ca(t)}function yA(){var e=mA($p());return e.copy=function(){return Wc(e,yA()).exponent(e.exponent())},hr.apply(e,arguments),e}function oZ(){return yA.apply(null,arguments).exponent(.5)}function VN(e){return Math.sign(e)*e*e}function sZ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function fz(){var e=cA(),t=[0,1],n=!1,r;function a(s){var l=sZ(e(s));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(s){return e.invert(VN(s))},a.domain=function(s){return arguments.length?(e.domain(s),a):e.domain()},a.range=function(s){return arguments.length?(e.range((t=Array.from(s,Eh)).map(VN)),a):t.slice()},a.rangeRound=function(s){return a.range(s).round(!0)},a.round=function(s){return arguments.length?(n=!!s,a):n},a.clamp=function(s){return arguments.length?(e.clamp(s),a):e.clamp()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return fz(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},hr.apply(a,arguments),Ca(a)}function dz(){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]=dW(e,l/c);return s}function s(l){return l==null||isNaN(l=+l)?r:t[Yc(n,l)]}return s.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]]},s.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(ba),a()},s.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},s.unknown=function(l){return arguments.length?(r=l,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return dz().domain(e).range(t).unknown(r)},hr.apply(s,arguments)}function hz(){var e=0,t=1,n=1,r=[.5],a=[0,1],s;function l(f){return f!=null&&f<=f?a[Yc(r,f,0,n)]:s}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 d=a.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},l.unknown=function(f){return arguments.length&&(s=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return hz().domain([e,t]).range(a).unknown(s)},hr.apply(Ca(l),arguments)}function pz(){var e=[.5],t=[0,1],n,r=1;function a(s){return s!=null&&s<=s?t[Yc(e,s,0,r)]:n}return a.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(s){var l=t.indexOf(s);return[e[l-1],e[l]]},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return pz().domain(e).range(t).unknown(n)},hr.apply(a,arguments)}const Jx=new Date,e0=new Date;function Gt(e,t,n,r){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a.floor=s=>(e(s=new Date(+s)),s),a.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),a.round=s=>{const l=a(s),c=a.ceil(s);return s-l<c-s?l:c},a.offset=(s,l)=>(t(s=new Date(+s),l==null?1:Math.floor(l)),s),a.range=(s,l,c)=>{const f=[];if(s=a.ceil(s),c=c==null?1:Math.floor(c),!(s<l)||!(c>0))return f;let d;do f.push(d=new Date(+s)),t(s,c),e(s);while(d<s&&s<l);return f},a.filter=s=>Gt(l=>{if(l>=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!s(l););else for(;--c>=0;)for(;t(l,1),!s(l););}),n&&(a.count=(s,l)=>(Jx.setTime(+s),e0.setTime(+l),e(Jx),e(e0),Math.floor(n(Jx,e0))),a.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(r?l=>r(l)%s===0:l=>a.count(0,l)%s===0):a)),a}const Nh=Gt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Nh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Gt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Nh);Nh.range;const ji=1e3,cr=ji*60,Oi=cr*60,Mi=Oi*24,vA=Mi*7,HN=Mi*30,t0=Mi*365,uo=Gt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ji)},(e,t)=>(t-e)/ji,e=>e.getUTCSeconds());uo.range;const gA=Gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ji)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getMinutes());gA.range;const bA=Gt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCMinutes());bA.range;const xA=Gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ji-e.getMinutes()*cr)},(e,t)=>{e.setTime(+e+t*Oi)},(e,t)=>(t-e)/Oi,e=>e.getHours());xA.range;const SA=Gt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Oi)},(e,t)=>(t-e)/Oi,e=>e.getUTCHours());SA.range;const Zc=Gt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cr)/Mi,e=>e.getDate()-1);Zc.range;const zp=Gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Mi,e=>e.getUTCDate()-1);zp.range;const mz=Gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Mi,e=>Math.floor(e/Mi));mz.range;function Mo(e){return Gt(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())*cr)/vA)}const Bp=Mo(0),Rh=Mo(1),lZ=Mo(2),uZ=Mo(3),Gs=Mo(4),cZ=Mo(5),fZ=Mo(6);Bp.range;Rh.range;lZ.range;uZ.range;Gs.range;cZ.range;fZ.range;function Po(e){return Gt(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)/vA)}const qp=Po(0),Dh=Po(1),dZ=Po(2),hZ=Po(3),Fs=Po(4),pZ=Po(5),mZ=Po(6);qp.range;Dh.range;dZ.range;hZ.range;Fs.range;pZ.range;mZ.range;const wA=Gt(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());wA.range;const AA=Gt(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());AA.range;const Pi=Gt(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gt(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)});Pi.range;const Ni=Gt(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());Ni.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gt(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)});Ni.range;function yz(e,t,n,r,a,s){const l=[[uo,1,ji],[uo,5,5*ji],[uo,15,15*ji],[uo,30,30*ji],[s,1,cr],[s,5,5*cr],[s,15,15*cr],[s,30,30*cr],[a,1,Oi],[a,3,3*Oi],[a,6,6*Oi],[a,12,12*Oi],[r,1,Mi],[r,2,2*Mi],[n,1,vA],[t,1,HN],[t,3,3*HN],[e,1,t0]];function c(d,p,m){const g=p<d;g&&([d,p]=[p,d]);const S=m&&typeof m.range=="function"?m:f(d,p,m),A=S?S.range(d,+p+1):[];return g?A.reverse():A}function f(d,p,m){const g=Math.abs(p-d)/m,S=aA(([,,x])=>x).right(l,g);if(S===l.length)return e.every(F1(d/t0,p/t0,m));if(S===0)return Nh.every(Math.max(F1(d,p,m),1));const[A,w]=l[g/l[S-1][2]<l[S][2]/g?S-1:S];return A.every(w)}return[c,f]}const[yZ,vZ]=yz(Ni,AA,qp,mz,SA,bA),[gZ,bZ]=yz(Pi,wA,Bp,Zc,xA,gA);function n0(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 r0(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 Eu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function xZ(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,s=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,d=Cu(a),p=Mu(a),m=Cu(s),g=Mu(s),S=Cu(l),A=Mu(l),w=Cu(c),x=Mu(c),j=Cu(f),_=Mu(f),T={a:K,A:Q,b:ie,B:se,c:null,d:WN,e:WN,f:VZ,g:JZ,G:tQ,H:qZ,I:IZ,j:UZ,L:vz,m:HZ,M:GZ,p:L,q:H,Q:JN,s:eR,S:FZ,u:KZ,U:YZ,V:XZ,w:WZ,W:ZZ,x:null,X:null,y:QZ,Y:eQ,Z:nQ,"%":QN},M={a:re,A:fe,b:ve,B:we,c:null,d:ZN,e:ZN,f:oQ,g:yQ,G:gQ,H:rQ,I:iQ,j:aQ,L:bz,m:sQ,M:lQ,p:Le,q:Ye,Q:JN,s:eR,S:uQ,u:cQ,U:fQ,V:dQ,w:hQ,W:pQ,x:null,X:null,y:mQ,Y:vQ,Z:bQ,"%":QN},O={a:U,A:q,b:$,B:F,c:X,d:YN,e:YN,f:LZ,g:KN,G:FN,H:XN,I:XN,j:NZ,L:kZ,m:PZ,M:RZ,p:k,q:MZ,Q:zZ,s:BZ,S:DZ,u:OZ,U:_Z,V:TZ,w:jZ,W:EZ,x:Y,X:z,y:KN,Y:FN,Z:CZ,"%":$Z};T.x=C(n,T),T.X=C(r,T),T.c=C(t,T),M.x=C(n,M),M.X=C(r,M),M.c=C(t,M);function C(ce,_e){return function(Ce){var le=[],dt=-1,Re=0,St=ce.length,wt,sn,pr;for(Ce instanceof Date||(Ce=new Date(+Ce));++dt<St;)ce.charCodeAt(dt)===37&&(le.push(ce.slice(Re,dt)),(sn=GN[wt=ce.charAt(++dt)])!=null?wt=ce.charAt(++dt):sn=wt==="e"?" ":"0",(pr=_e[wt])&&(wt=pr(Ce,sn)),le.push(wt),Re=dt+1);return le.push(ce.slice(Re,dt)),le.join("")}}function P(ce,_e){return function(Ce){var le=Eu(1900,void 0,1),dt=R(le,ce,Ce+="",0),Re,St;if(dt!=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(_e&&!("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?(Re=r0(Eu(le.y,0,1)),St=Re.getUTCDay(),Re=St>4||St===0?Dh.ceil(Re):Dh(Re),Re=zp.offset(Re,(le.V-1)*7),le.y=Re.getUTCFullYear(),le.m=Re.getUTCMonth(),le.d=Re.getUTCDate()+(le.w+6)%7):(Re=n0(Eu(le.y,0,1)),St=Re.getDay(),Re=St>4||St===0?Rh.ceil(Re):Rh(Re),Re=Zc.offset(Re,(le.V-1)*7),le.y=Re.getFullYear(),le.m=Re.getMonth(),le.d=Re.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),St="Z"in le?r0(Eu(le.y,0,1)).getUTCDay():n0(Eu(le.y,0,1)).getDay(),le.m=0,le.d="W"in le?(le.w+6)%7+le.W*7-(St+5)%7:le.w+le.U*7-(St+6)%7);return"Z"in le?(le.H+=le.Z/100|0,le.M+=le.Z%100,r0(le)):n0(le)}}function R(ce,_e,Ce,le){for(var dt=0,Re=_e.length,St=Ce.length,wt,sn;dt<Re;){if(le>=St)return-1;if(wt=_e.charCodeAt(dt++),wt===37){if(wt=_e.charAt(dt++),sn=O[wt in GN?_e.charAt(dt++):wt],!sn||(le=sn(ce,Ce,le))<0)return-1}else if(wt!=Ce.charCodeAt(le++))return-1}return le}function k(ce,_e,Ce){var le=d.exec(_e.slice(Ce));return le?(ce.p=p.get(le[0].toLowerCase()),Ce+le[0].length):-1}function U(ce,_e,Ce){var le=S.exec(_e.slice(Ce));return le?(ce.w=A.get(le[0].toLowerCase()),Ce+le[0].length):-1}function q(ce,_e,Ce){var le=m.exec(_e.slice(Ce));return le?(ce.w=g.get(le[0].toLowerCase()),Ce+le[0].length):-1}function $(ce,_e,Ce){var le=j.exec(_e.slice(Ce));return le?(ce.m=_.get(le[0].toLowerCase()),Ce+le[0].length):-1}function F(ce,_e,Ce){var le=w.exec(_e.slice(Ce));return le?(ce.m=x.get(le[0].toLowerCase()),Ce+le[0].length):-1}function X(ce,_e,Ce){return R(ce,t,_e,Ce)}function Y(ce,_e,Ce){return R(ce,n,_e,Ce)}function z(ce,_e,Ce){return R(ce,r,_e,Ce)}function K(ce){return l[ce.getDay()]}function Q(ce){return s[ce.getDay()]}function ie(ce){return f[ce.getMonth()]}function se(ce){return c[ce.getMonth()]}function L(ce){return a[+(ce.getHours()>=12)]}function H(ce){return 1+~~(ce.getMonth()/3)}function re(ce){return l[ce.getUTCDay()]}function fe(ce){return s[ce.getUTCDay()]}function ve(ce){return f[ce.getUTCMonth()]}function we(ce){return c[ce.getUTCMonth()]}function Le(ce){return a[+(ce.getUTCHours()>=12)]}function Ye(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var _e=C(ce+="",T);return _e.toString=function(){return ce},_e},parse:function(ce){var _e=P(ce+="",!1);return _e.toString=function(){return ce},_e},utcFormat:function(ce){var _e=C(ce+="",M);return _e.toString=function(){return ce},_e},utcParse:function(ce){var _e=P(ce+="",!0);return _e.toString=function(){return ce},_e}}}var GN={"-":"",_:" ",0:"0"},Zt=/^\s*\d+/,SZ=/^%/,wZ=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",s=a.length;return r+(s<n?new Array(n-s+1).join(t)+a:a)}function AZ(e){return e.replace(wZ,"\\$&")}function Cu(e){return new RegExp("^(?:"+e.map(AZ).join("|")+")","i")}function Mu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function jZ(e,t,n){var r=Zt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function OZ(e,t,n){var r=Zt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _Z(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function TZ(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EZ(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function FN(e,t,n){var r=Zt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function KN(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function CZ(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 MZ(e,t,n){var r=Zt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function PZ(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function YN(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function NZ(e,t,n){var r=Zt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function XN(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function RZ(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function DZ(e,t,n){var r=Zt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function kZ(e,t,n){var r=Zt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function LZ(e,t,n){var r=Zt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $Z(e,t,n){var r=SZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function zZ(e,t,n){var r=Zt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function BZ(e,t,n){var r=Zt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function WN(e,t){return Fe(e.getDate(),t,2)}function qZ(e,t){return Fe(e.getHours(),t,2)}function IZ(e,t){return Fe(e.getHours()%12||12,t,2)}function UZ(e,t){return Fe(1+Zc.count(Pi(e),e),t,3)}function vz(e,t){return Fe(e.getMilliseconds(),t,3)}function VZ(e,t){return vz(e,t)+"000"}function HZ(e,t){return Fe(e.getMonth()+1,t,2)}function GZ(e,t){return Fe(e.getMinutes(),t,2)}function FZ(e,t){return Fe(e.getSeconds(),t,2)}function KZ(e){var t=e.getDay();return t===0?7:t}function YZ(e,t){return Fe(Bp.count(Pi(e)-1,e),t,2)}function gz(e){var t=e.getDay();return t>=4||t===0?Gs(e):Gs.ceil(e)}function XZ(e,t){return e=gz(e),Fe(Gs.count(Pi(e),e)+(Pi(e).getDay()===4),t,2)}function WZ(e){return e.getDay()}function ZZ(e,t){return Fe(Rh.count(Pi(e)-1,e),t,2)}function QZ(e,t){return Fe(e.getFullYear()%100,t,2)}function JZ(e,t){return e=gz(e),Fe(e.getFullYear()%100,t,2)}function eQ(e,t){return Fe(e.getFullYear()%1e4,t,4)}function tQ(e,t){var n=e.getDay();return e=n>=4||n===0?Gs(e):Gs.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function nQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function ZN(e,t){return Fe(e.getUTCDate(),t,2)}function rQ(e,t){return Fe(e.getUTCHours(),t,2)}function iQ(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function aQ(e,t){return Fe(1+zp.count(Ni(e),e),t,3)}function bz(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function oQ(e,t){return bz(e,t)+"000"}function sQ(e,t){return Fe(e.getUTCMonth()+1,t,2)}function lQ(e,t){return Fe(e.getUTCMinutes(),t,2)}function uQ(e,t){return Fe(e.getUTCSeconds(),t,2)}function cQ(e){var t=e.getUTCDay();return t===0?7:t}function fQ(e,t){return Fe(qp.count(Ni(e)-1,e),t,2)}function xz(e){var t=e.getUTCDay();return t>=4||t===0?Fs(e):Fs.ceil(e)}function dQ(e,t){return e=xz(e),Fe(Fs.count(Ni(e),e)+(Ni(e).getUTCDay()===4),t,2)}function hQ(e){return e.getUTCDay()}function pQ(e,t){return Fe(Dh.count(Ni(e)-1,e),t,2)}function mQ(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function yQ(e,t){return e=xz(e),Fe(e.getUTCFullYear()%100,t,2)}function vQ(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function gQ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fs(e):Fs.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function bQ(){return"+0000"}function QN(){return"%"}function JN(e){return+e}function eR(e){return Math.floor(+e/1e3)}var gs,Sz,wz;xQ({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 xQ(e){return gs=xZ(e),Sz=gs.format,gs.parse,wz=gs.utcFormat,gs.utcParse,gs}function SQ(e){return new Date(e)}function wQ(e){return e instanceof Date?+e:+new Date(+e)}function jA(e,t,n,r,a,s,l,c,f,d){var p=cA(),m=p.invert,g=p.domain,S=d(".%L"),A=d(":%S"),w=d("%I:%M"),x=d("%I %p"),j=d("%a %d"),_=d("%b %d"),T=d("%B"),M=d("%Y");function O(C){return(f(C)<C?S:c(C)<C?A:l(C)<C?w:s(C)<C?x:r(C)<C?a(C)<C?j:_:n(C)<C?T:M)(C)}return p.invert=function(C){return new Date(m(C))},p.domain=function(C){return arguments.length?g(Array.from(C,wQ)):g().map(SQ)},p.ticks=function(C){var P=g();return e(P[0],P[P.length-1],C??10)},p.tickFormat=function(C,P){return P==null?O:d(P)},p.nice=function(C){var P=g();return(!C||typeof C.range!="function")&&(C=t(P[0],P[P.length-1],C??10)),C?g(lz(P,C)):p},p.copy=function(){return Wc(p,jA(e,t,n,r,a,s,l,c,f,d))},p}function AQ(){return hr.apply(jA(gZ,bZ,Pi,wA,Bp,Zc,xA,gA,uo,Sz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jQ(){return hr.apply(jA(yZ,vZ,Ni,AA,qp,zp,SA,bA,uo,wz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ip(){var e=0,t=1,n,r,a,s,l=vn,c=!1,f;function d(m){return m==null||isNaN(m=+m)?f:l(a===0?.5:(m=(s(m)-n)*a,c?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t]=m,n=s(e=+e),r=s(t=+t),a=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(m){return arguments.length?(c=!!m,d):c},d.interpolator=function(m){return arguments.length?(l=m,d):l};function p(m){return function(g){var S,A;return arguments.length?([S,A]=g,l=m(S,A),d):[l(0),l(1)]}}return d.range=p(Al),d.rangeRound=p(uA),d.unknown=function(m){return arguments.length?(f=m,d):f},function(m){return s=m,n=m(e),r=m(t),a=n===r?0:1/(r-n),d}}function Ma(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Az(){var e=Ca(Ip()(vn));return e.copy=function(){return Ma(e,Az())},Li.apply(e,arguments)}function jz(){var e=hA(Ip()).domain([1,10]);return e.copy=function(){return Ma(e,jz()).base(e.base())},Li.apply(e,arguments)}function Oz(){var e=pA(Ip());return e.copy=function(){return Ma(e,Oz()).constant(e.constant())},Li.apply(e,arguments)}function OA(){var e=mA(Ip());return e.copy=function(){return Ma(e,OA()).exponent(e.exponent())},Li.apply(e,arguments)}function OQ(){return OA.apply(null,arguments).exponent(.5)}function _z(){var e=[],t=vn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Yc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(ba),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,s)=>fW(e,s/r))},n.copy=function(){return _z(t).domain(e)},Li.apply(n,arguments)}function Up(){var e=0,t=.5,n=1,r=1,a,s,l,c,f,d=vn,p,m=!1,g;function S(w){return isNaN(w=+w)?g:(w=.5+((w=+p(w))-s)*(r*w<r*s?c:f),d(m?Math.max(0,Math.min(1,w)):w))}S.domain=function(w){return arguments.length?([e,t,n]=w,a=p(e=+e),s=p(t=+t),l=p(n=+n),c=a===s?0:.5/(s-a),f=s===l?0:.5/(l-s),r=s<a?-1:1,S):[e,t,n]},S.clamp=function(w){return arguments.length?(m=!!w,S):m},S.interpolator=function(w){return arguments.length?(d=w,S):d};function A(w){return function(x){var j,_,T;return arguments.length?([j,_,T]=x,d=$W(w,[j,_,T]),S):[d(0),d(.5),d(1)]}}return S.range=A(Al),S.rangeRound=A(uA),S.unknown=function(w){return arguments.length?(g=w,S):g},function(w){return p=w,a=w(e),s=w(t),l=w(n),c=a===s?0:.5/(s-a),f=s===l?0:.5/(l-s),r=s<a?-1:1,S}}function Tz(){var e=Ca(Up()(vn));return e.copy=function(){return Ma(e,Tz())},Li.apply(e,arguments)}function Ez(){var e=hA(Up()).domain([.1,1,10]);return e.copy=function(){return Ma(e,Ez()).base(e.base())},Li.apply(e,arguments)}function Cz(){var e=pA(Up());return e.copy=function(){return Ma(e,Cz()).constant(e.constant())},Li.apply(e,arguments)}function _A(){var e=mA(Up());return e.copy=function(){return Ma(e,_A()).exponent(e.exponent())},Li.apply(e,arguments)}function _Q(){return _A.apply(null,arguments).exponent(.5)}const tR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:dc,scaleDiverging:Tz,scaleDivergingLog:Ez,scaleDivergingPow:_A,scaleDivergingSqrt:_Q,scaleDivergingSymlog:Cz,scaleIdentity:sz,scaleImplicit:K1,scaleLinear:Ph,scaleLog:uz,scaleOrdinal:oA,scalePoint:Ku,scalePow:yA,scaleQuantile:dz,scaleQuantize:hz,scaleRadial:fz,scaleSequential:Az,scaleSequentialLog:jz,scaleSequentialPow:OA,scaleSequentialQuantile:_z,scaleSequentialSqrt:OQ,scaleSequentialSymlog:Oz,scaleSqrt:oZ,scaleSymlog:cz,scaleThreshold:pz,scaleTime:AQ,scaleUtc:jQ,tickFormat:oz},Symbol.toStringTag,{value:"Module"}));var i0,nR;function Vp(){if(nR)return i0;nR=1;var e=bl();function t(n,r,a){for(var s=-1,l=n.length;++s<l;){var c=n[s],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):a(f,d)))var d=f,p=c}return p}return i0=t,i0}var a0,rR;function Mz(){if(rR)return a0;rR=1;function e(t,n){return t>n}return a0=e,a0}var o0,iR;function TQ(){if(iR)return o0;iR=1;var e=Vp(),t=Mz(),n=wl();function r(a){return a&&a.length?e(a,n,t):void 0}return o0=r,o0}var EQ=TQ();const va=et(EQ);var s0,aR;function Pz(){if(aR)return s0;aR=1;function e(t,n){return t<n}return s0=e,s0}var l0,oR;function CQ(){if(oR)return l0;oR=1;var e=Vp(),t=Pz(),n=wl();function r(a){return a&&a.length?e(a,n,t):void 0}return l0=r,l0}var MQ=CQ();const Hp=et(MQ);var u0,sR;function PQ(){if(sR)return u0;sR=1;var e=Uw(),t=ei(),n=q$(),r=En();function a(s,l){var c=r(s)?e:n;return c(s,t(l,3))}return u0=a,u0}var c0,lR;function NQ(){if(lR)return c0;lR=1;var e=z$(),t=PQ();function n(r,a){return e(t(r,a),1)}return c0=n,c0}var RQ=NQ();const DQ=et(RQ);var f0,uR;function kQ(){if(uR)return f0;uR=1;var e=tA();function t(n,r){return e(n,r)}return f0=t,f0}var LQ=kQ();const wo=et(LQ);var jl=1e9,$Q={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},EA,bt=!0,dr="[DecimalError] ",yo=dr+"Invalid argument: ",TA=dr+"Exponent out of range: ",Ol=Math.floor,ro=Math.pow,zQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vn,Yt=1e7,yt=7,Nz=9007199254740991,kh=Ol(Nz/yt),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,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===a?0:r>a^s.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*yt;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 Ei(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,n=t.constructor;return lt(Ei(t,new n(e),0,1),n.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return zt(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,s=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Vn))throw Error(dr+"NaN");if(n.s<1)throw Error(dr+(n.s?"NaN":"-Infinity"));return n.eq(Vn)?new r(0):(bt=!1,t=Ei(vc(n,s),vc(e,s),s),bt=!0,lt(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kz(t,e):Rz(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(dr+"NaN");return n.s?(bt=!1,t=Ei(n,e,0,1).times(e),bt=!0,n.minus(t)):lt(new r(n),a)};pe.naturalExponential=pe.exp=function(){return Dz(this)};pe.naturalLogarithm=pe.ln=function(){return vc(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?Rz(t,e):kz(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(yo+e);if(t=zt(a)+1,r=a.d.length-1,n=r*yt+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,s,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(dr+"NaN")}for(e=zt(c),bt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=Vr(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Ol((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(s=r,r=s.plus(Ei(c,s,l+2)).times(.5),Vr(s.d).slice(0,l)===(t=Vr(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(lt(s,n+1,0),s.times(s).eq(c)){r=s;break}}else if(t!="9999")break;l+=4}return bt=!0,lt(r,n)};pe.times=pe.mul=function(e){var t,n,r,a,s,l,c,f,d,p=this,m=p.constructor,g=p.d,S=(e=new m(e)).d;if(!p.s||!e.s)return new m(0);for(e.s*=p.s,n=p.e+e.e,f=g.length,d=S.length,f<d&&(s=g,g=S,S=s,l=f,f=d,d=l),s=[],l=f+d,r=l;r--;)s.push(0);for(r=d;--r>=0;){for(t=0,a=f+r;a>r;)c=s[a]+S[r]*g[a-r-1]+t,s[a--]=c%Yt|0,t=c/Yt|0;s[a]=(s[a]+t)%Yt|0}for(;!s[--l];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,bt?lt(e,m.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Qr(e,0,jl),t===void 0?t=r.rounding:Qr(t,0,8),lt(n,e+zt(n)+1,t))};pe.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=Ao(r,!0):(Qr(e,0,jl),t===void 0?t=a.rounding:Qr(t,0,8),r=lt(new a(r),e+1,t),n=Ao(r,!0,e+1)),n};pe.toFixed=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?Ao(a):(Qr(e,0,jl),t===void 0?t=s.rounding:Qr(t,0,8),r=lt(new s(a),e+zt(a)+1,t),n=Ao(r.abs(),!1,e+zt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return lt(new t(e),zt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,n,r,a,s,l,c=this,f=c.constructor,d=12,p=+(e=new f(e));if(!e.s)return new f(Vn);if(c=new f(c),!c.s){if(e.s<1)throw Error(dr+"Infinity");return c}if(c.eq(Vn))return c;if(r=f.precision,e.eq(Vn))return lt(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=c.s,l){if((n=p<0?-p:p)<=Nz){for(a=new f(Vn),t=Math.ceil(r/yt+4),bt=!1;n%2&&(a=a.times(c),fR(a.d,t)),n=Ol(n/2),n!==0;)c=c.times(c),fR(c.d,t);return bt=!0,e.s<0?new f(Vn).div(a):lt(a,r)}}else if(s<0)throw Error(dr+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,bt=!1,a=e.times(vc(c,r+d)),bt=!0,a=Dz(a),a.s=s,a};pe.toPrecision=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?(n=zt(a),r=Ao(a,n<=s.toExpNeg||n>=s.toExpPos)):(Qr(e,1,jl),t===void 0?t=s.rounding:Qr(t,0,8),a=lt(new s(a),e,t),n=zt(a),r=Ao(a,e<=n||n<=s.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):(Qr(e,1,jl),t===void 0?t=r.rounding:Qr(t,0,8)),lt(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=zt(e),n=e.constructor;return Ao(e,t<=n.toExpNeg||t>=n.toExpPos)};function Rz(e,t){var n,r,a,s,l,c,f,d,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),bt?lt(t,m):t;if(f=e.d,d=t.d,l=e.e,a=t.e,f=f.slice(),s=l-a,s){for(s<0?(r=f,s=-s,c=d.length):(r=d,a=l,c=f.length),l=Math.ceil(m/yt),c=l>c?l+1:c+1,s>c&&(s=c,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(c=f.length,s=d.length,c-s<0&&(s=c,r=d,d=f,f=r),n=0;s;)n=(f[--s]=f[s]+d[s]+n)/Yt|0,f[s]%=Yt;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,bt?lt(t,m):t}function Qr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(yo+e)}function Vr(e){var t,n,r,a=e.length-1,s="",l=e[0];if(a>0){for(s+=l,t=1;t<a;t++)r=e[t]+"",n=yt-r.length,n&&(s+=pa(n)),s+=r;l=e[t],r=l+"",n=yt-r.length,n&&(s+=pa(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return s+l}var Ei=(function(){function e(r,a){var s,l=0,c=r.length;for(r=r.slice();c--;)s=r[c]*a+l,r[c]=s%Yt|0,l=s/Yt|0;return l&&r.unshift(l),r}function t(r,a,s,l){var c,f;if(s!=l)f=s>l?1:-1;else for(c=f=0;c<s;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,s){for(var l=0;s--;)r[s]-=l,l=r[s]<a[s]?1:0,r[s]=l*Yt+r[s]-a[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,s,l){var c,f,d,p,m,g,S,A,w,x,j,_,T,M,O,C,P,R,k=r.constructor,U=r.s==a.s?1:-1,q=r.d,$=a.d;if(!r.s)return new k(r);if(!a.s)throw Error(dr+"Division by zero");for(f=r.e-a.e,P=$.length,O=q.length,S=new k(U),A=S.d=[],d=0;$[d]==(q[d]||0);)++d;if($[d]>(q[d]||0)&&--f,s==null?_=s=k.precision:l?_=s+(zt(r)-zt(a))+1:_=s,_<0)return new k(0);if(_=_/yt+2|0,d=0,P==1)for(p=0,$=$[0],_++;(d<O||p)&&_--;d++)T=p*Yt+(q[d]||0),A[d]=T/$|0,p=T%$|0;else{for(p=Yt/($[0]+1)|0,p>1&&($=e($,p),q=e(q,p),P=$.length,O=q.length),M=P,w=q.slice(0,P),x=w.length;x<P;)w[x++]=0;R=$.slice(),R.unshift(0),C=$[0],$[1]>=Yt/2&&++C;do p=0,c=t($,w,P,x),c<0?(j=w[0],P!=x&&(j=j*Yt+(w[1]||0)),p=j/C|0,p>1?(p>=Yt&&(p=Yt-1),m=e($,p),g=m.length,x=w.length,c=t(m,w,g,x),c==1&&(p--,n(m,P<g?R:$,g))):(p==0&&(c=p=1),m=$.slice()),g=m.length,g<x&&m.unshift(0),n(w,m,x),c==-1&&(x=w.length,c=t($,w,P,x),c<1&&(p++,n(w,P<x?R:$,x))),x=w.length):c===0&&(p++,w=[0]),A[d++]=p,c&&w[0]?w[x++]=q[M]||0:(w=[q[M]],x=1);while((M++<O||w[0]!==void 0)&&_--)}return A[0]||A.shift(),S.e=f,lt(S,l?s+zt(S)+1:s)}})();function Dz(e,t){var n,r,a,s,l,c,f=0,d=0,p=e.constructor,m=p.precision;if(zt(e)>16)throw Error(TA+zt(e));if(!e.s)return new p(Vn);for(bt=!1,c=m,l=new p(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(ro(2,d))/Math.LN10*2+5|0,c+=r,n=a=s=new p(Vn),p.precision=c;;){if(a=lt(a.times(e),c),n=n.times(++f),l=s.plus(Ei(a,n,c)),Vr(l.d).slice(0,c)===Vr(s.d).slice(0,c)){for(;d--;)s=lt(s.times(s),c);return p.precision=m,t==null?(bt=!0,lt(s,m)):s}s=l}}function zt(e){for(var t=e.e*yt,n=e.d[0];n>=10;n/=10)t++;return t}function d0(e,t,n){if(t>e.LN10.sd())throw bt=!0,n&&(e.precision=n),Error(dr+"LN10 precision limit exceeded");return lt(new e(e.LN10),t)}function pa(e){for(var t="";e--;)t+="0";return t}function vc(e,t){var n,r,a,s,l,c,f,d,p,m=1,g=10,S=e,A=S.d,w=S.constructor,x=w.precision;if(S.s<1)throw Error(dr+(S.s?"NaN":"-Infinity"));if(S.eq(Vn))return new w(0);if(t==null?(bt=!1,d=x):d=t,S.eq(10))return t==null&&(bt=!0),d0(w,d);if(d+=g,w.precision=d,n=Vr(A),r=n.charAt(0),s=zt(S),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)S=S.times(e),n=Vr(S.d),r=n.charAt(0),m++;s=zt(S),r>1?(S=new w("0."+n),s++):S=new w(r+"."+n.slice(1))}else return f=d0(w,d+2,x).times(s+""),S=vc(new w(r+"."+n.slice(1)),d-g).plus(f),w.precision=x,t==null?(bt=!0,lt(S,x)):S;for(c=l=S=Ei(S.minus(Vn),S.plus(Vn),d),p=lt(S.times(S),d),a=3;;){if(l=lt(l.times(p),d),f=c.plus(Ei(l,new w(a),d)),Vr(f.d).slice(0,d)===Vr(c.d).slice(0,d))return c=c.times(2),s!==0&&(c=c.plus(d0(w,d+2,x).times(s+""))),c=Ei(c,new w(m),d),w.precision=x,t==null?(bt=!0,lt(c,x)):c;c=f,a+=2}}function cR(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Ol(n/yt),e.d=[],r=(n+1)%yt,n<0&&(r+=yt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=yt;r<a;)e.d.push(+t.slice(r,r+=yt));t=t.slice(r),r=yt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),bt&&(e.e>kh||e.e<-kh))throw Error(TA+n)}else e.s=0,e.e=0,e.d=[0];return e}function lt(e,t,n){var r,a,s,l,c,f,d,p,m=e.d;for(l=1,s=m[0];s>=10;s/=10)l++;if(r=t-l,r<0)r+=yt,a=t,d=m[p=0];else{if(p=Math.ceil((r+1)/yt),s=m.length,p>=s)return e;for(d=s=m[p],l=1;s>=10;s/=10)l++;r%=yt,a=r-yt+l}if(n!==void 0&&(s=ro(10,l-a-1),c=d/s%10|0,f=t<0||m[p+1]!==void 0||d%s,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?d/ro(10,l-a):0:m[p-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return f?(s=zt(e),m.length=1,t=t-s-1,m[0]=ro(10,(yt-t%yt)%yt),e.e=Ol(-t/yt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=p,s=1,p--):(m.length=p+1,s=ro(10,yt-r),m[p]=a>0?(d/ro(10,l-a)%ro(10,a)|0)*s:0),f)for(;;)if(p==0){(m[0]+=s)==Yt&&(m[0]=1,++e.e);break}else{if(m[p]+=s,m[p]!=Yt)break;m[p--]=0,s=1}for(r=m.length;m[--r]===0;)m.pop();if(bt&&(e.e>kh||e.e<-kh))throw Error(TA+zt(e));return e}function kz(e,t){var n,r,a,s,l,c,f,d,p,m,g=e.constructor,S=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),bt?lt(t,S):t;if(f=e.d,m=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(p=l<0,p?(n=f,l=-l,c=m.length):(n=m,r=d,c=f.length),a=Math.max(Math.ceil(S/yt),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=m.length,p=a<c,p&&(c=a),a=0;a<c;a++)if(f[a]!=m[a]){p=f[a]<m[a];break}l=0}for(p&&(n=f,f=m,m=n,t.s=-t.s),c=f.length,a=m.length-c;a>0;--a)f[c++]=0;for(a=m.length;a>l;){if(f[--a]<m[a]){for(s=a;s&&f[--s]===0;)f[s]=Yt-1;--f[s],f[a]+=Yt}f[a]-=m[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,bt?lt(t,S):t):new g(0)}function Ao(e,t,n){var r,a=zt(e),s=Vr(e.d),l=s.length;return t?(n&&(r=n-l)>0?s=s.charAt(0)+"."+s.slice(1)+pa(r):l>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(a<0?"e":"e+")+a):a<0?(s="0."+pa(-a-1)+s,n&&(r=n-l)>0&&(s+=pa(r))):a>=l?(s+=pa(a+1-l),n&&(r=n-a-1)>0&&(s=s+"."+pa(r))):((r=a+1)<l&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(s+="."),s+=pa(r))),e.s<0?"-"+s:s}function fR(e,t){if(e.length>t)return e.length=t,!0}function Lz(e){var t,n,r;function a(s){var l=this;if(!(l instanceof a))return new a(s);if(l.constructor=a,s instanceof a){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(yo+s);if(s>0)l.s=1;else if(s<0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&&s<1e7){l.e=0,l.d=[s];return}return cR(l,s.toString())}else if(typeof s!="string")throw Error(yo+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,zQ.test(s))cR(l,s);else throw Error(yo+s)}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=Lz,a.config=a.set=BQ,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 BQ(e){if(!e||typeof e!="object")throw Error(dr+"Object expected");var t,n,r,a=["precision",1,jl,"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(Ol(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(yo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(yo+n+": "+r);return this}var EA=Lz($Q);Vn=new EA(1);const it=EA;function qQ(e){return HQ(e)||VQ(e)||UQ(e)||IQ()}function IQ(){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 UQ(e,t){if(e){if(typeof e=="string")return Z1(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 Z1(e,t)}}function VQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function HQ(e){if(Array.isArray(e))return Z1(e)}function Z1(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 GQ=function(t){return t},$z={},zz=function(t){return t===$z},dR=function(t){return function n(){return arguments.length===0||arguments.length===1&&zz(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},FQ=function e(t,n){return t===1?n:dR(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];var l=a.filter(function(c){return c!==$z}).length;return l>=t?n.apply(void 0,a):e(t-l,dR(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var p=a.map(function(m){return zz(m)?f.shift():m});return n.apply(void 0,qQ(p).concat(f))}))})},Gp=function(t){return FQ(t.length,t)},Q1=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},KQ=Gp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),YQ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return GQ;var a=n.reverse(),s=a[0],l=a.slice(1);return function(){return l.reduce(function(c,f){return f(c)},s.apply(void 0,arguments))}},J1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Bz=function(t){var n=null,r=null;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n&&s.every(function(c,f){return c===n[f]})||(n=s,r=t.apply(void 0,s)),r}};function XQ(e){var t;return e===0?t=1:t=Math.floor(new it(e).abs().log(10).toNumber())+1,t}function WQ(e,t,n){for(var r=new it(e),a=0,s=[];r.lt(t)&&a<1e5;)s.push(r.toNumber()),r=r.add(n),a++;return s}var ZQ=Gp(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),QQ=Gp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),JQ=Gp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Fp={rangeStep:WQ,getDigitCount:XQ,interpolateNumber:ZQ,uninterpolateNumber:QQ,uninterpolateTruncation:JQ};function eS(e){return nJ(e)||tJ(e)||qz(e)||eJ()}function eJ(){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 tJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nJ(e){if(Array.isArray(e))return tS(e)}function gc(e,t){return aJ(e)||iJ(e,t)||qz(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 qz(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 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 iJ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,s=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,s=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw s}}return n}}function aJ(e){if(Array.isArray(e))return e}function Iz(e){var t=gc(e,2),n=t[0],r=t[1],a=n,s=r;return n>r&&(a=r,s=n),[a,s]}function Uz(e,t,n){if(e.lte(0))return new it(0);var r=Fp.getDigitCount(e.toNumber()),a=new it(10).pow(r),s=e.div(a),l=r!==1?.05:.1,c=new it(Math.ceil(s.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?f:new it(Math.ceil(f))}function oJ(e,t,n){var r=1,a=new it(e);if(!a.isint()&&n){var s=Math.abs(e);s<1?(r=new it(10).pow(Fp.getDigitCount(e)-1),a=new it(Math.floor(a.div(r).toNumber())).mul(r)):s>1&&(a=new it(Math.floor(e)))}else e===0?a=new it(Math.floor((t-1)/2)):n||(a=new it(Math.floor(e)));var l=Math.floor((t-1)/2),c=YQ(KQ(function(f){return a.add(new it(f-l).mul(r)).toNumber()}),Q1);return c(0,t)}function Vz(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 it(0),tickMin:new it(0),tickMax:new it(0)};var s=Uz(new it(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new it(0):(l=new it(e).add(t).div(2),l=l.sub(new it(l).mod(s)));var c=Math.ceil(l.sub(e).div(s).toNumber()),f=Math.ceil(new it(t).sub(l).div(s).toNumber()),d=c+f+1;return d>n?Vz(e,t,n,r,a+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:s,tickMin:l.sub(new it(c).mul(s)),tickMax:l.add(new it(f).mul(s))})}function sJ(e){var t=gc(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),c=Iz([n,r]),f=gc(c,2),d=f[0],p=f[1];if(d===-1/0||p===1/0){var m=p===1/0?[d].concat(eS(Q1(0,a-1).map(function(){return 1/0}))):[].concat(eS(Q1(0,a-1).map(function(){return-1/0})),[p]);return n>r?J1(m):m}if(d===p)return oJ(d,a,s);var g=Vz(d,p,l,s),S=g.step,A=g.tickMin,w=g.tickMax,x=Fp.rangeStep(A,w.add(new it(.1).mul(S)),S);return n>r?J1(x):x}function lJ(e,t){var n=gc(e,2),r=n[0],a=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Iz([r,a]),c=gc(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,a];if(f===d)return[f];var p=Math.max(t,2),m=Uz(new it(d).sub(f).div(p-1),s,0),g=[].concat(eS(Fp.rangeStep(new it(f),new it(d).sub(new it(.99).mul(m)),m)),[d]);return r>a?J1(g):g}var uJ=Bz(sJ),cJ=Bz(lJ),fJ="Invariant failed";function jo(e,t){throw new Error(fJ)}var dJ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(this,arguments)}function hJ(e,t){return vJ(e)||yJ(e,t)||mJ(e,t)||pJ()}function pJ(){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 mJ(e,t){if(e){if(typeof e=="string")return hR(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 hR(e,t)}}function hR(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 yJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function vJ(e){if(Array.isArray(e))return e}function gJ(e,t){if(e==null)return{};var n=bJ(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bJ(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 xJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SJ(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,Fz(r.key),r)}}function wJ(e,t,n){return t&&SJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AJ(e,t,n){return t=$h(t),jJ(e,Hz()?Reflect.construct(t,n||[],$h(e).constructor):t.apply(e,n))}function jJ(e,t){if(t&&(Ks(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OJ(e)}function OJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hz=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function _J(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&&nS(e,t)}function nS(e,t){return nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},nS(e,t)}function Gz(e,t,n){return t=Fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fz(e){var t=TJ(e,"string");return Ks(t)=="symbol"?t:t+""}function TJ(e,t){if(Ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qc=(function(e){function t(){return xJ(this,t),AJ(this,t,arguments)}return _J(t,e),wJ(t,[{key:"render",value:function(){var r=this.props,a=r.offset,s=r.layout,l=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,p=r.xAxis,m=r.yAxis,g=gJ(r,dJ),S=be(g,!1);this.props.direction==="x"&&p.type!=="number"&&jo();var A=f.map(function(w){var x=d(w,c),j=x.x,_=x.y,T=x.value,M=x.errorVal;if(!M)return null;var O=[],C,P;if(Array.isArray(M)){var R=hJ(M,2);C=R[0],P=R[1]}else C=P=M;if(s==="vertical"){var k=p.scale,U=_+a,q=U+l,$=U-l,F=k(T-C),X=k(T+P);O.push({x1:X,y1:q,x2:X,y2:$}),O.push({x1:F,y1:U,x2:X,y2:U}),O.push({x1:F,y1:q,x2:F,y2:$})}else if(s==="horizontal"){var Y=m.scale,z=j+a,K=z-l,Q=z+l,ie=Y(T-C),se=Y(T+P);O.push({x1:K,y1:se,x2:Q,y2:se}),O.push({x1:z,y1:ie,x2:z,y2:se}),O.push({x1:K,y1:ie,x2:Q,y2:ie})}return B.createElement(Be,Lh({className:"recharts-errorBar",key:"bar-".concat(O.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},S),O.map(function(L){return B.createElement("line",Lh({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return B.createElement(Be,{className:"recharts-errorBars"},A)}}])})(B.Component);Gz(Qc,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Gz(Qc,"displayName","ErrorBar");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 pR(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 Za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pR(Object(n),!0).forEach(function(r){EJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EJ(e,t,n){return t=CJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CJ(e){var t=MJ(e,"string");return bc(t)=="symbol"?t:t+""}function MJ(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)}var Kz=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,s=t.legendContent,l=In(n,Ds);if(!l)return null;var c=Ds.defaultProps,f=c!==void 0?Za(Za({},c),l.props):{},d;return l.props&&l.props.payload?d=l.props&&l.props.payload:s==="children"?d=(r||[]).reduce(function(p,m){var g=m.item,S=m.props,A=S.sectors||S.data||[];return p.concat(A.map(function(w){return{type:l.props.iconType||g.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):d=(r||[]).map(function(p){var m=p.item,g=m.type.defaultProps,S=g!==void 0?Za(Za({},g),m.props):{},A=S.dataKey,w=S.name,x=S.legendType,j=S.hide;return{inactive:j,dataKey:A,type:f.iconType||x||"square",color:CA(m),value:w||A,payload:S}}),Za(Za(Za({},f),Ds.getWithHeight(l,a)),{},{payload:d,item:l})};function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}function mR(e){return DJ(e)||RJ(e)||NJ(e)||PJ()}function PJ(){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 NJ(e,t){if(e){if(typeof e=="string")return rS(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 rS(e,t)}}function RJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DJ(e){if(Array.isArray(e))return rS(e)}function rS(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 yR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yR(Object(n),!0).forEach(function(r){Ls(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ls(e,t,n){return t=kJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kJ(e){var t=LJ(e,"string");return xc(t)=="symbol"?t:t+""}function LJ(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ct(e,t,n){return Te(e)||Te(t)?n:Ht(t)?Gn(e,t,n):Oe(t)?t(e):n}function Yu(e,t,n,r){var a=DQ(e,function(c){return Ct(c,t)});if(n==="number"){var s=a.filter(function(c){return ue(c)||parseFloat(c)});return s.length?[Hp(s),va(s)]:[1/0,-1/0]}var l=r?a.filter(function(c){return!Te(c)}):a;return l.map(function(c){return Ht(c)||c instanceof Date?c:""})}var $J=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,s=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(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var f=s.range,d=0;d<c;d++){var p=d>0?a[d-1].coordinate:a[c-1].coordinate,m=a[d].coordinate,g=d>=c-1?a[0].coordinate:a[d+1].coordinate,S=void 0;if(mn(m-p)!==mn(g-m)){var A=[];if(mn(g-m)===mn(f[1]-f[0])){S=g;var w=m+f[1]-f[0];A[0]=Math.min(w,(w+p)/2),A[1]=Math.max(w,(w+p)/2)}else{S=p;var x=g+f[1]-f[0];A[0]=Math.min(m,(x+m)/2),A[1]=Math.max(m,(x+m)/2)}var j=[Math.min(m,(S+m)/2),Math.max(m,(S+m)/2)];if(t>j[0]&&t<=j[1]||t>=A[0]&&t<=A[1]){l=a[d].index;break}}else{var _=Math.min(p,g),T=Math.max(p,g);if(t>(_+m)/2&&t<=(T+m)/2){l=a[d].index;break}}}else for(var M=0;M<c;M++)if(M===0&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M>0&&M<c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M===c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2){l=r[M].index;break}return l},CA=function(t){var n,r=t,a=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,l=s.stroke,c=s.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},zJ=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,s=a===void 0?{}:a;if(!s)return{};for(var l={},c=Object.keys(s),f=0,d=c.length;f<d;f++)for(var p=s[c[f]].stackGroups,m=Object.keys(p),g=0,S=m.length;g<S;g++){var A=p[m[g]],w=A.items,x=A.cateAxisId,j=w.filter(function(P){return Ti(P.type).indexOf("Bar")>=0});if(j&&j.length){var _=j[0].type.defaultProps,T=_!==void 0?_t(_t({},_),j[0].props):j[0].props,M=T.barSize,O=T[x];l[O]||(l[O]=[]);var C=Te(M)?n:M;l[O].push({item:j[0],stackList:j.slice(1),barSize:Te(C)?void 0:yn(C,r,0)})}}return l},BJ=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,s=t.sizeList,l=s===void 0?[]:s,c=t.maxBarSize,f=l.length;if(f<1)return null;var d=yn(n,a,0,!0),p,m=[];if(l[0].barSize===+l[0].barSize){var g=!1,S=a/f,A=l.reduce(function(M,O){return M+O.barSize||0},0);A+=(f-1)*d,A>=a&&(A-=(f-1)*d,d=0),A>=a&&S>0&&(g=!0,S*=.9,A=f*S);var w=(a-A)/2>>0,x={offset:w-d,size:0};p=l.reduce(function(M,O){var C={item:O.item,position:{offset:x.offset+x.size+d,size:g?S:O.barSize}},P=[].concat(mR(M),[C]);return x=P[P.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(R){P.push({item:R,position:x})}),P},m)}else{var j=yn(r,a,0,!0);a-2*j-(f-1)*d<=0&&(d=0);var _=(a-2*j-(f-1)*d)/f;_>1&&(_>>=0);var T=c===+c?Math.min(_,c):_;p=l.reduce(function(M,O,C){var P=[].concat(mR(M),[{item:O.item,position:{offset:j+(_+d)*C+(_-T)/2,size:T}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(R){P.push({item:R,position:P[P.length-1].position})}),P},m)}return p},qJ=function(t,n,r,a){var s=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),d=Kz({children:s,legendWidth:f});if(d){var p=a||{},m=p.width,g=p.height,S=d.align,A=d.verticalAlign,w=d.layout;if((w==="vertical"||w==="horizontal"&&A==="middle")&&S!=="center"&&ue(t[S]))return _t(_t({},t),{},Ls({},S,t[S]+(m||0)));if((w==="horizontal"||w==="vertical"&&S==="center")&&A!=="middle"&&ue(t[A]))return _t(_t({},t),{},Ls({},A,t[A]+(g||0)))}return t},IJ=function(t,n,r){return Te(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Yz=function(t,n,r,a,s){var l=n.props.children,c=Fn(l,Qc).filter(function(d){return IJ(a,s,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,p){var m=Ct(p,r);if(Te(m))return d;var g=Array.isArray(m)?[Hp(m),va(m)]:[m,m],S=f.reduce(function(A,w){var x=Ct(p,w,0),j=g[0]-Math.abs(Array.isArray(x)?x[0]:x),_=g[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(j,A[0]),Math.max(_,A[1])]},[1/0,-1/0]);return[Math.min(S[0],d[0]),Math.max(S[1],d[1])]},[1/0,-1/0])}return null},UJ=function(t,n,r,a,s){var l=n.map(function(c){return Yz(t,c,r,s,a)}).filter(function(c){return!Te(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},Xz=function(t,n,r,a,s){var l=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&Yz(t,f,d,a)||Yu(t,d,r,s)});if(r==="number")return l.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,d){for(var p=0,m=d.length;p<m;p++)c[d[p]]||(c[d[p]]=!0,f.push(d[p]));return f},[])},Wz=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Zz=function(t,n,r,a){if(a)return t.map(function(f){return f.coordinate});var s,l,c=t.map(function(f){return f.coordinate===n&&(s=!0),f.coordinate===r&&(l=!0),f.coordinate});return s||c.push(n),l||c.push(r),c},_i=function(t,n,r){if(!t)return null;var a=t.scale,s=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,d=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?mn(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var p=(t.ticks||t.niceTicks).map(function(m){var g=s?s.indexOf(m):m;return{coordinate:a(g)+d,value:m,offset:d}});return p.filter(function(m){return!Sl(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,g){return{coordinate:a(m)+d,value:m,index:g,offset:d}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(m){return{coordinate:a(m)+d,value:m,offset:d}}):a.domain().map(function(m,g){return{coordinate:a(m)+d,value:s?s[m]:m,index:g,offset:d}})},h0=new WeakMap,kd=function(t,n){if(typeof n!="function")return t;h0.has(t)||h0.set(t,new WeakMap);var r=h0.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},Qz=function(t,n,r){var a=t.scale,s=t.type,l=t.layout,c=t.axisType;if(a==="auto")return l==="radial"&&c==="radiusAxis"?{scale:dc(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:Ph(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ku(),realScaleType:"point"}:s==="category"?{scale:dc(),realScaleType:"band"}:{scale:Ph(),realScaleType:"linear"};if(bo(a)){var f="scale".concat(Cp(a));return{scale:(tR[f]||Ku)(),realScaleType:tR[f]?f:"point"}}return Oe(a)?{scale:a}:{scale:Ku(),realScaleType:"point"}},vR=1e-4,Jz=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),s=Math.min(a[0],a[1])-vR,l=Math.max(a[0],a[1])+vR,c=t(n[0]),f=t(n[r-1]);(c<s||c>l||f<s||f>l)&&t.domain([n[0],n[r-1]])}},VJ=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},HJ=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]),s=[t[0],t[1]];return(!ue(t[0])||t[0]<r)&&(s[0]=r),(!ue(t[1])||t[1]>a)&&(s[1]=a),s[0]>a&&(s[0]=a),s[1]<r&&(s[1]=r),s},GJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var s=0,l=0,c=0;c<n;++c){var f=Sl(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},FJ=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var s=0,l=0;l<n;++l){var c=Sl(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=s,t[l][r][1]=s+c,s=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},KJ={sign:GJ,expand:DF,none:Bs,silhouette:kF,wiggle:LF,positive:FJ},YJ=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),s=KJ[r],l=RF().keys(a).value(function(c,f){return+Ct(c,f,0)}).order(R1).offset(s);return l(t)},XJ=function(t,n,r,a,s,l){if(!t)return null;var c=l?n.reverse():n,f={},d=c.reduce(function(m,g){var S,A=(S=g.type)!==null&&S!==void 0&&S.defaultProps?_t(_t({},g.type.defaultProps),g.props):g.props,w=A.stackId,x=A.hide;if(x)return m;var j=A[r],_=m[j]||{hasStack:!1,stackGroups:{}};if(Ht(w)){var T=_.stackGroups[w]||{numericAxisId:r,cateAxisId:a,items:[]};T.items.push(g),_.hasStack=!0,_.stackGroups[w]=T}else _.stackGroups[Co("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[g]};return _t(_t({},m),{},Ls({},j,_))},f),p={};return Object.keys(d).reduce(function(m,g){var S=d[g];if(S.hasStack){var A={};S.stackGroups=Object.keys(S.stackGroups).reduce(function(w,x){var j=S.stackGroups[x];return _t(_t({},w),{},Ls({},x,{numericAxisId:r,cateAxisId:a,items:j.items,stackedData:YJ(t,j.items,s)}))},A)}return _t(_t({},m),{},Ls({},g,S))},p)},eB=function(t,n){var r=n.realScaleType,a=n.type,s=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(s&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var d=t.domain();if(!d.length)return null;var p=uJ(d,s,c);return t.domain([Hp(p),va(p)]),{niceTicks:p}}if(s&&a==="number"){var m=t.domain(),g=cJ(m,s,c);return{niceTicks:g}}return null};function zh(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,s=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Te(a[t.dataKey])){var c=fh(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var f=Ct(a,Te(l)?t.dataKey:l);return Te(f)?null:t.scale(f)}var gR=function(t){var n=t.axis,r=t.ticks,a=t.offset,s=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var f=Ct(l,n.dataKey,n.domain[c]);return Te(f)?null:n.scale(f)-s/2+a},WJ=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return a<=0&&s>=0?0:s<0?s:a}return r[0]},ZJ=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,s=a.stackId;if(Ht(s)){var l=n[s];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},QJ=function(t){return t.reduce(function(n,r){return[Hp(r.concat([n[0]]).filter(ue)),va(r.concat([n[1]]).filter(ue))]},[1/0,-1/0])},tB=function(t,n,r){return Object.keys(t).reduce(function(a,s){var l=t[s],c=l.stackedData,f=c.reduce(function(d,p){var m=QJ(p.slice(n,r+1));return[Math.min(d[0],m[0]),Math.max(d[1],m[1])]},[1/0,-1/0]);return[Math.min(f[0],a[0]),Math.max(f[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},bR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,iS=function(t,n,r){if(Oe(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(ue(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(bR.test(t[0])){var s=+bR.exec(t[0])[1];a[0]=n[0]-s}else Oe(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(xR.test(t[1])){var l=+xR.exec(t[1])[1];a[1]=n[1]+l}else Oe(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Bh=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 s=rA(n,function(m){return m.coordinate}),l=1/0,c=1,f=s.length;c<f;c++){var d=s[c],p=s[c-1];l=Math.min((d.coordinate||0)-(p.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},SR=function(t,n,r){return!t||!t.length||wo(t,Gn(r,"type.defaultProps.domain"))?n:t},nB=function(t,n){var r=t.type.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,a=r.dataKey,s=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,p=r.hide;return _t(_t({},be(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:s||a,color:CA(t),value:Ct(n,a),type:f,payload:n,chartType:d,hide:p})};function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function wR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wR(Object(n),!0).forEach(function(r){rB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rB(e,t,n){return t=JJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JJ(e){var t=eee(e,"string");return Sc(t)=="symbol"?t:t+""}function eee(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tee(e,t){return aee(e)||iee(e,t)||ree(e,t)||nee()}function nee(){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 ree(e,t){if(e){if(typeof e=="string")return AR(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 AR(e,t)}}function AR(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 iee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function aee(e){if(Array.isArray(e))return e}var qh=Math.PI/180,oee=function(t){return t*180/Math.PI},ft=function(t,n,r,a){return{x:t+Math.cos(-qh*a)*r,y:n+Math.sin(-qh*a)*r}},iB=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},see=function(t,n,r,a,s){var l=t.width,c=t.height,f=t.startAngle,d=t.endAngle,p=yn(t.cx,l,l/2),m=yn(t.cy,c,c/2),g=iB(l,c,r),S=yn(t.innerRadius,g,0),A=yn(t.outerRadius,g,g*.8),w=Object.keys(n);return w.reduce(function(x,j){var _=n[j],T=_.domain,M=_.reversed,O;if(Te(_.range))a==="angleAxis"?O=[f,d]:a==="radiusAxis"&&(O=[S,A]),M&&(O=[O[1],O[0]]);else{O=_.range;var C=O,P=tee(C,2);f=P[0],d=P[1]}var R=Qz(_,s),k=R.realScaleType,U=R.scale;U.domain(T).range(O),Jz(U);var q=eB(U,Ai(Ai({},_),{},{realScaleType:k})),$=Ai(Ai(Ai({},_),q),{},{range:O,radius:A,realScaleType:k,scale:U,cx:p,cy:m,innerRadius:S,outerRadius:A,startAngle:f,endAngle:d});return Ai(Ai({},x),{},rB({},j,$))},{})},lee=function(t,n){var r=t.x,a=t.y,s=n.x,l=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(a-l,2))},uee=function(t,n){var r=t.x,a=t.y,s=n.cx,l=n.cy,c=lee({x:r,y:a},{x:s,y:l});if(c<=0)return{radius:c};var f=(r-s)/c,d=Math.acos(f);return a>l&&(d=2*Math.PI-d),{radius:c,angle:oee(d),angleInRadian:d}},cee=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),s=Math.floor(r/360),l=Math.min(a,s);return{startAngle:n-l*360,endAngle:r-l*360}},fee=function(t,n){var r=n.startAngle,a=n.endAngle,s=Math.floor(r/360),l=Math.floor(a/360),c=Math.min(s,l);return t+c*360},jR=function(t,n){var r=t.x,a=t.y,s=uee({x:r,y:a},n),l=s.radius,c=s.angle,f=n.innerRadius,d=n.outerRadius;if(l<f||l>d)return!1;if(l===0)return!0;var p=cee(n),m=p.startAngle,g=p.endAngle,S=c,A;if(m<=g){for(;S>g;)S-=360;for(;S<m;)S+=360;A=S>=m&&S<=g}else{for(;S>m;)S-=360;for(;S<g;)S+=360;A=S>=g&&S<=m}return A?Ai(Ai({},n),{},{radius:l,angle:fee(S,n)}):null},aB=function(t){return!N.isValidElement(t)&&!Oe(t)&&typeof t!="boolean"?t.className:""};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)}var dee=["offset"];function hee(e){return vee(e)||yee(e)||mee(e)||pee()}function pee(){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 mee(e,t){if(e){if(typeof e=="string")return aS(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 aS(e,t)}}function yee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vee(e){if(Array.isArray(e))return aS(e)}function aS(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 gee(e,t){if(e==null)return{};var n=bee(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bee(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 OR(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 It(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OR(Object(n),!0).forEach(function(r){xee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xee(e,t,n){return t=See(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function See(e){var t=wee(e,"string");return wc(t)=="symbol"?t:t+""}function wee(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(this,arguments)}var Aee=function(t){var n=t.value,r=t.formatter,a=Te(t.children)?n:t.children;return Oe(r)?r(a):a},jee=function(t,n){var r=mn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Oee=function(t,n,r){var a=t.position,s=t.viewBox,l=t.offset,c=t.className,f=s,d=f.cx,p=f.cy,m=f.innerRadius,g=f.outerRadius,S=f.startAngle,A=f.endAngle,w=f.clockWise,x=(m+g)/2,j=jee(S,A),_=j>=0?1:-1,T,M;a==="insideStart"?(T=S+_*l,M=w):a==="insideEnd"?(T=A-_*l,M=!w):a==="end"&&(T=A+_*l,M=w),M=j<=0?M:!M;var O=ft(d,p,x,T),C=ft(d,p,x,T+(M?1:-1)*359),P="M".concat(O.x,",").concat(O.y,`
A`).concat(x,",").concat(x,",0,1,").concat(M?0:1,`,
`).concat(C.x,",").concat(C.y),R=Te(t.id)?Co("recharts-radial-line-"):t.id;return B.createElement("text",Ac({},r,{dominantBaseline:"central",className:Pe("recharts-radial-bar-label",c)}),B.createElement("defs",null,B.createElement("path",{id:R,d:P})),B.createElement("textPath",{xlinkHref:"#".concat(R)},n))},_ee=function(t){var n=t.viewBox,r=t.offset,a=t.position,s=n,l=s.cx,c=s.cy,f=s.innerRadius,d=s.outerRadius,p=s.startAngle,m=s.endAngle,g=(p+m)/2;if(a==="outside"){var S=ft(l,c,d+r,g),A=S.x,w=S.y;return{x:A,y:w,textAnchor:A>=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 x=(f+d)/2,j=ft(l,c,x,g),_=j.x,T=j.y;return{x:_,y:T,textAnchor:"middle",verticalAnchor:"middle"}},Tee=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,s=t.position,l=n,c=l.x,f=l.y,d=l.width,p=l.height,m=p>=0?1:-1,g=m*a,S=m>0?"end":"start",A=m>0?"start":"end",w=d>=0?1:-1,x=w*a,j=w>0?"end":"start",_=w>0?"start":"end";if(s==="top"){var T={x:c+d/2,y:f-m*a,textAnchor:"middle",verticalAnchor:S};return It(It({},T),r?{height:Math.max(f-r.y,0),width:d}:{})}if(s==="bottom"){var M={x:c+d/2,y:f+p+g,textAnchor:"middle",verticalAnchor:A};return It(It({},M),r?{height:Math.max(r.y+r.height-(f+p),0),width:d}:{})}if(s==="left"){var O={x:c-x,y:f+p/2,textAnchor:j,verticalAnchor:"middle"};return It(It({},O),r?{width:Math.max(O.x-r.x,0),height:p}:{})}if(s==="right"){var C={x:c+d+x,y:f+p/2,textAnchor:_,verticalAnchor:"middle"};return It(It({},C),r?{width:Math.max(r.x+r.width-C.x,0),height:p}:{})}var P=r?{width:d,height:p}:{};return s==="insideLeft"?It({x:c+x,y:f+p/2,textAnchor:_,verticalAnchor:"middle"},P):s==="insideRight"?It({x:c+d-x,y:f+p/2,textAnchor:j,verticalAnchor:"middle"},P):s==="insideTop"?It({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:A},P):s==="insideBottom"?It({x:c+d/2,y:f+p-g,textAnchor:"middle",verticalAnchor:S},P):s==="insideTopLeft"?It({x:c+x,y:f+g,textAnchor:_,verticalAnchor:A},P):s==="insideTopRight"?It({x:c+d-x,y:f+g,textAnchor:j,verticalAnchor:A},P):s==="insideBottomLeft"?It({x:c+x,y:f+p-g,textAnchor:_,verticalAnchor:S},P):s==="insideBottomRight"?It({x:c+d-x,y:f+p-g,textAnchor:j,verticalAnchor:S},P):xl(s)&&(ue(s.x)||so(s.x))&&(ue(s.y)||so(s.y))?It({x:c+yn(s.x,d),y:f+yn(s.y,p),textAnchor:"end",verticalAnchor:"end"},P):It({x:c+d/2,y:f+p/2,textAnchor:"middle",verticalAnchor:"middle"},P)},Eee=function(t){return"cx"in t&&ue(t.cx)};function Wt(e){var t=e.offset,n=t===void 0?5:t,r=gee(e,dee),a=It({offset:n},r),s=a.viewBox,l=a.position,c=a.value,f=a.children,d=a.content,p=a.className,m=p===void 0?"":p,g=a.textBreakAll;if(!s||Te(c)&&Te(f)&&!N.isValidElement(d)&&!Oe(d))return null;if(N.isValidElement(d))return N.cloneElement(d,a);var S;if(Oe(d)){if(S=N.createElement(d,a),N.isValidElement(S))return S}else S=Aee(a);var A=Eee(s),w=be(a,!0);if(A&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Oee(a,S,w);var x=A?_ee(a):Tee(a);return B.createElement(So,Ac({className:Pe("recharts-label",m)},w,x,{breakAll:g}),S)}Wt.displayName="Label";var oB=function(t){var n=t.cx,r=t.cy,a=t.angle,s=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,p=t.outerRadius,m=t.x,g=t.y,S=t.top,A=t.left,w=t.width,x=t.height,j=t.clockWise,_=t.labelViewBox;if(_)return _;if(ue(w)&&ue(x)){if(ue(m)&&ue(g))return{x:m,y:g,width:w,height:x};if(ue(S)&&ue(A))return{x:S,y:A,width:w,height:x}}return ue(m)&&ue(g)?{x:m,y:g,width:0,height:0}:ue(n)&&ue(r)?{cx:n,cy:r,startAngle:s||a||0,endAngle:l||a||0,innerRadius:d||0,outerRadius:p||f||c||0,clockWise:j}:t.viewBox?t.viewBox:{}},Cee=function(t,n){return t?t===!0?B.createElement(Wt,{key:"label-implicit",viewBox:n}):Ht(t)?B.createElement(Wt,{key:"label-implicit",viewBox:n,value:t}):N.isValidElement(t)?t.type===Wt?N.cloneElement(t,{key:"label-implicit",viewBox:n}):B.createElement(Wt,{key:"label-implicit",content:t,viewBox:n}):Oe(t)?B.createElement(Wt,{key:"label-implicit",content:t,viewBox:n}):xl(t)?B.createElement(Wt,Ac({viewBox:n},t,{key:"label-implicit"})):null:null},Mee=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,s=oB(t),l=Fn(a,Wt).map(function(f,d){return N.cloneElement(f,{viewBox:n||s,key:"label-".concat(d)})});if(!r)return l;var c=Cee(t.label,n||s);return[c].concat(hee(l))};Wt.parseViewBox=oB;Wt.renderCallByParent=Mee;var p0,_R;function Pee(){if(_R)return p0;_R=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return p0=e,p0}var Nee=Pee();const Ree=et(Nee);function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}var Dee=["valueAccessor"],kee=["data","dataKey","clockWise","id","textBreakAll"];function Lee(e){return qee(e)||Bee(e)||zee(e)||$ee()}function $ee(){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 zee(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 Bee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qee(e){if(Array.isArray(e))return oS(e)}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 Ih(){return Ih=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},Ih.apply(this,arguments)}function TR(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 ER(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TR(Object(n),!0).forEach(function(r){Iee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iee(e,t,n){return t=Uee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uee(e){var t=Vee(e,"string");return jc(t)=="symbol"?t:t+""}function Vee(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CR(e,t){if(e==null)return{};var n=Hee(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hee(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 Gee=function(t){return Array.isArray(t.value)?Ree(t.value):t.value};function Yr(e){var t=e.valueAccessor,n=t===void 0?Gee:t,r=CR(e,Dee),a=r.data,s=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,d=CR(r,kee);return!a||!a.length?null:B.createElement(Be,{className:"recharts-label-list"},a.map(function(p,m){var g=Te(s)?n(p,m):Ct(p&&p.payload,s),S=Te(c)?{}:{id:"".concat(c,"-").concat(m)};return B.createElement(Wt,Ih({},be(p,!0),d,S,{parentViewBox:p.parentViewBox,value:g,textBreakAll:f,viewBox:Wt.parseViewBox(Te(l)?p:ER(ER({},p),{},{clockWise:l})),key:"label-".concat(m),index:m}))}))}Yr.displayName="LabelList";function Fee(e,t){return e?e===!0?B.createElement(Yr,{key:"labelList-implicit",data:t}):B.isValidElement(e)||Oe(e)?B.createElement(Yr,{key:"labelList-implicit",data:t,content:e}):xl(e)?B.createElement(Yr,Ih({data:t},e,{key:"labelList-implicit"})):null:null}function Kee(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=Fn(r,Yr).map(function(l,c){return N.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var s=Fee(e.label,t);return[s].concat(Lee(a))}Yr.renderCallByParent=Kee;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 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 MR(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 PR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MR(Object(n),!0).forEach(function(r){Yee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yee(e,t,n){return t=Xee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xee(e){var t=Wee(e,"string");return Oc(t)=="symbol"?t:t+""}function Wee(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zee=function(t,n){var r=mn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Ld=function(t){var n=t.cx,r=t.cy,a=t.radius,s=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,p=f*(c?1:-1)+a,m=Math.asin(f/p)/qh,g=d?s:s+l*m,S=ft(n,r,p,g),A=ft(n,r,a,g),w=d?s-l*m:s,x=ft(n,r,p*Math.cos(m*qh),w);return{center:S,circleTangency:A,lineTangency:x,theta:m}},sB=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,s=t.outerRadius,l=t.startAngle,c=t.endAngle,f=Zee(l,c),d=l+f,p=ft(n,r,s,l),m=ft(n,r,s,d),g="M ".concat(p.x,",").concat(p.y,`
A `).concat(s,",").concat(s,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(l>d),`,
`).concat(m.x,",").concat(m.y,`
`);if(a>0){var S=ft(n,r,a,l),A=ft(n,r,a,d);g+="L ".concat(A.x,",").concat(A.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(l<=d),`,
`).concat(S.x,",").concat(S.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},Qee=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,s=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,p=t.endAngle,m=mn(p-d),g=Ld({cx:n,cy:r,radius:s,angle:d,sign:m,cornerRadius:l,cornerIsExternal:f}),S=g.circleTangency,A=g.lineTangency,w=g.theta,x=Ld({cx:n,cy:r,radius:s,angle:p,sign:-m,cornerRadius:l,cornerIsExternal:f}),j=x.circleTangency,_=x.lineTangency,T=x.theta,M=f?Math.abs(d-p):Math.abs(d-p)-w-T;if(M<0)return c?"M ".concat(A.x,",").concat(A.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
`):sB({cx:n,cy:r,innerRadius:a,outerRadius:s,startAngle:d,endAngle:p});var O="M ".concat(A.x,",").concat(A.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(S.x,",").concat(S.y,`
A`).concat(s,",").concat(s,",0,").concat(+(M>180),",").concat(+(m<0),",").concat(j.x,",").concat(j.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(_.x,",").concat(_.y,`
`);if(a>0){var C=Ld({cx:n,cy:r,radius:a,angle:d,sign:m,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),P=C.circleTangency,R=C.lineTangency,k=C.theta,U=Ld({cx:n,cy:r,radius:a,angle:p,sign:-m,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),q=U.circleTangency,$=U.lineTangency,F=U.theta,X=f?Math.abs(d-p):Math.abs(d-p)-k-F;if(X<0&&l===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat($.x,",").concat($.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(q.x,",").concat(q.y,`
A`).concat(a,",").concat(a,",0,").concat(+(X>180),",").concat(+(m>0),",").concat(P.x,",").concat(P.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(m<0),",").concat(R.x,",").concat(R.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},Jee={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},lB=function(t){var n=PR(PR({},Jee),t),r=n.cx,a=n.cy,s=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,p=n.startAngle,m=n.endAngle,g=n.className;if(l<s||p===m)return null;var S=Pe("recharts-sector",g),A=l-s,w=yn(c,A,0,!0),x;return w>0&&Math.abs(p-m)<360?x=Qee({cx:r,cy:a,innerRadius:s,outerRadius:l,cornerRadius:Math.min(w,A/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:p,endAngle:m}):x=sB({cx:r,cy:a,innerRadius:s,outerRadius:l,startAngle:p,endAngle:m}),B.createElement("path",sS({},be(n,!0),{className:S,d:x,role:"img"}))};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 lS(){return lS=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},lS.apply(this,arguments)}function NR(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 RR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NR(Object(n),!0).forEach(function(r){ete(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ete(e,t,n){return t=tte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tte(e){var t=nte(e,"string");return _c(t)=="symbol"?t:t+""}function nte(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 DR={curveBasisClosed:wF,curveBasisOpen:AF,curveBasis:SF,curveBumpX:sF,curveBumpY:lF,curveLinearClosed:jF,curveLinear:Pp,curveMonotoneX:OF,curveMonotoneY:_F,curveNatural:TF,curveStep:EF,curveStepAfter:MF,curveStepBefore:CF},$d=function(t){return t.x===+t.x&&t.y===+t.y},Pu=function(t){return t.x},Nu=function(t){return t.y},rte=function(t,n){if(Oe(t))return t;var r="curve".concat(Cp(t));return(r==="curveMonotone"||r==="curveBump")&&n?DR["".concat(r).concat(n==="vertical"?"Y":"X")]:DR[r]||Pp},ite=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,s=a===void 0?[]:a,l=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,p=rte(r,c),m=d?s.filter(function(w){return $d(w)}):s,g;if(Array.isArray(l)){var S=d?l.filter(function(w){return $d(w)}):l,A=m.map(function(w,x){return RR(RR({},w),{},{base:S[x]})});return c==="vertical"?g=Ed().y(Nu).x1(Pu).x0(function(w){return w.base.x}):g=Ed().x(Pu).y1(Nu).y0(function(w){return w.base.y}),g.defined($d).curve(p),g(A)}return c==="vertical"&&ue(l)?g=Ed().y(Nu).x1(Pu).x0(l):ue(l)?g=Ed().x(Pu).y1(Nu).y0(l):g=s$().x(Pu).y(Nu),g.defined($d).curve(p),g(m)},vo=function(t){var n=t.className,r=t.points,a=t.path,s=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?ite(t):a;return N.createElement("path",lS({},be(t,!1),dh(t),{className:Pe("recharts-curve",n),d:l,ref:s}))},m0={exports:{}},y0,kR;function ate(){if(kR)return y0;kR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return y0=e,y0}var v0,LR;function ote(){if(LR)return v0;LR=1;var e=ate();function t(){}function n(){}return n.resetWarningCache=t,v0=function(){function r(l,c,f,d,p,m){if(m!==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 s={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 s.PropTypes=s,s},v0}var $R;function ste(){return $R||($R=1,m0.exports=ote()()),m0.exports}var lte=ste();const We=et(lte),{getOwnPropertyNames:ute,getOwnPropertySymbols:cte}=Object,{hasOwnProperty:fte}=Object.prototype;function g0(e,t){return function(r,a,s){return e(r,a,s)&&t(r,a,s)}}function zd(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:s}=a,l=s.get(n),c=s.get(r);if(l&&c)return l===r&&c===n;s.set(n,r),s.set(r,n);const f=e(n,r,a);return s.delete(n),s.delete(r),f}}function dte(e){return e!=null?e[Symbol.toStringTag]:void 0}function zR(e){return ute(e).concat(cte(e))}const hte=Object.hasOwn||((e,t)=>fte.call(e,t));function No(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const pte="__v",mte="__o",yte="_owner",{getOwnPropertyDescriptor:BR,keys:qR}=Object;function vte(e,t){return e.byteLength===t.byteLength&&Uh(new Uint8Array(e),new Uint8Array(t))}function gte(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 bte(e,t){return e.byteLength===t.byteLength&&Uh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function xte(e,t){return No(e.getTime(),t.getTime())}function Ste(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function wte(e,t){return e===t}function IR(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),s=e.entries();let l,c,f=0;for(;(l=s.next())&&!l.done;){const d=t.entries();let p=!1,m=0;for(;(c=d.next())&&!c.done;){if(a[m]){m++;continue}const g=l.value,S=c.value;if(n.equals(g[0],S[0],f,m,e,t,n)&&n.equals(g[1],S[1],g[0],S[0],e,t,n)){p=a[m]=!0;break}m++}if(!p)return!1;f++}return!0}const Ate=No;function jte(e,t,n){const r=qR(e);let a=r.length;if(qR(t).length!==a)return!1;for(;a-- >0;)if(!uB(e,t,n,r[a]))return!1;return!0}function Ru(e,t,n){const r=zR(e);let a=r.length;if(zR(t).length!==a)return!1;let s,l,c;for(;a-- >0;)if(s=r[a],!uB(e,t,n,s)||(l=BR(e,s),c=BR(t,s),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function Ote(e,t){return No(e.valueOf(),t.valueOf())}function _te(e,t){return e.source===t.source&&e.flags===t.flags}function UR(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),s=e.values();let l,c;for(;(l=s.next())&&!l.done;){const f=t.values();let d=!1,p=0;for(;(c=f.next())&&!c.done;){if(!a[p]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){d=a[p]=!0;break}p++}if(!d)return!1}return!0}function Uh(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 Tte(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 uB(e,t,n,r){return(r===yte||r===mte||r===pte)&&(e.$$typeof||t.$$typeof)?!0:hte(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Ete="[object ArrayBuffer]",Cte="[object Arguments]",Mte="[object Boolean]",Pte="[object DataView]",Nte="[object Date]",Rte="[object Error]",Dte="[object Map]",kte="[object Number]",Lte="[object Object]",$te="[object RegExp]",zte="[object Set]",Bte="[object String]",qte={"[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},Ite="[object URL]",Ute=Object.prototype.toString;function Vte({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:s,areMapsEqual:l,areNumbersEqual:c,areObjectsEqual:f,arePrimitiveWrappersEqual:d,areRegExpsEqual:p,areSetsEqual:m,areTypedArraysEqual:g,areUrlsEqual:S,unknownTagComparators:A}){return function(x,j,_){if(x===j)return!0;if(x==null||j==null)return!1;const T=typeof x;if(T!==typeof j)return!1;if(T!=="object")return T==="number"?c(x,j,_):T==="function"?s(x,j,_):!1;const M=x.constructor;if(M!==j.constructor)return!1;if(M===Object)return f(x,j,_);if(Array.isArray(x))return t(x,j,_);if(M===Date)return r(x,j,_);if(M===RegExp)return p(x,j,_);if(M===Map)return l(x,j,_);if(M===Set)return m(x,j,_);const O=Ute.call(x);if(O===Nte)return r(x,j,_);if(O===$te)return p(x,j,_);if(O===Dte)return l(x,j,_);if(O===zte)return m(x,j,_);if(O===Lte)return typeof x.then!="function"&&typeof j.then!="function"&&f(x,j,_);if(O===Ite)return S(x,j,_);if(O===Rte)return a(x,j,_);if(O===Cte)return f(x,j,_);if(qte[O])return g(x,j,_);if(O===Ete)return e(x,j,_);if(O===Pte)return n(x,j,_);if(O===Mte||O===kte||O===Bte)return d(x,j,_);if(A){let C=A[O];if(!C){const P=dte(x);P&&(C=A[P])}if(C)return C(x,j,_)}return!1}}function Hte({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:vte,areArraysEqual:n?Ru:gte,areDataViewsEqual:bte,areDatesEqual:xte,areErrorsEqual:Ste,areFunctionsEqual:wte,areMapsEqual:n?g0(IR,Ru):IR,areNumbersEqual:Ate,areObjectsEqual:n?Ru:jte,arePrimitiveWrappersEqual:Ote,areRegExpsEqual:_te,areSetsEqual:n?g0(UR,Ru):UR,areTypedArraysEqual:n?g0(Uh,Ru):Uh,areUrlsEqual:Tte,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=zd(r.areArraysEqual),s=zd(r.areMapsEqual),l=zd(r.areObjectsEqual),c=zd(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return r}function Gte(e){return function(t,n,r,a,s,l,c){return e(t,n,c)}}function Fte({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(c,f){const{cache:d=e?new WeakMap:void 0,meta:p}=n();return t(c,f,{cache:d,equals:r,meta:p,strict:a})};if(e)return function(c,f){return t(c,f,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const s={cache:void 0,equals:r,meta:void 0,strict:a};return function(c,f){return t(c,f,s)}}const Kte=Pa();Pa({strict:!0});Pa({circular:!0});Pa({circular:!0,strict:!0});Pa({createInternalComparator:()=>No});Pa({strict:!0,createInternalComparator:()=>No});Pa({circular:!0,createInternalComparator:()=>No});Pa({circular:!0,createInternalComparator:()=>No,strict:!0});function Pa(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,s=Hte(e),l=Vte(s),c=n?n(l):Gte(l);return Fte({circular:t,comparator:l,createState:r,equals:c,strict:a})}function Yte(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function VR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(s){n<0&&(n=s),s-n>t?(e(s),n=-1):Yte(a)};requestAnimationFrame(r)}function uS(e){"@babel/helpers - typeof";return uS=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},uS(e)}function Xte(e){return Jte(e)||Qte(e)||Zte(e)||Wte()}function Wte(){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 Zte(e,t){if(e){if(typeof e=="string")return HR(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 HR(e,t)}}function HR(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 Qte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jte(e){if(Array.isArray(e))return e}function ene(){var e={},t=function(){return null},n=!1,r=function a(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var l=s,c=Xte(l),f=c[0],d=c.slice(1);if(typeof f=="number"){VR(a.bind(null,d),f);return}a(f),VR(a.bind(null,d));return}uS(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function Tc(e){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(e)}function GR(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 FR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GR(Object(n),!0).forEach(function(r){cB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cB(e,t,n){return t=tne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tne(e){var t=nne(e,"string");return Tc(t)==="symbol"?t:String(t)}function nne(e,t){if(Tc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rne=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(s){return a.includes(s)})})},ine=function(t){return t},ane=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Xu=function(t,n){return Object.keys(n).reduce(function(r,a){return FR(FR({},r),{},cB({},a,t(a,n[a])))},{})},KR=function(t,n,r){return t.map(function(a){return"".concat(ane(a)," ").concat(n,"ms ").concat(r)}).join(",")};function one(e,t){return une(e)||lne(e,t)||fB(e,t)||sne()}function sne(){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 lne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function une(e){if(Array.isArray(e))return e}function cne(e){return hne(e)||dne(e)||fB(e)||fne()}function fne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fB(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 dne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hne(e){if(Array.isArray(e))return 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 Vh=1e-4,dB=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},hB=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},YR=function(t,n){return function(r){var a=dB(t,n);return hB(a,r)}},pne=function(t,n){return function(r){var a=dB(t,n),s=[].concat(cne(a.map(function(l,c){return l*c}).slice(1)),[0]);return hB(s,r)}},XR=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],s=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,s=0,l=1,c=1;break;case"ease":a=.25,s=.1,l=.25,c=1;break;case"ease-in":a=.42,s=0,l=1,c=1;break;case"ease-out":a=.42,s=0,l=.58,c=1;break;case"ease-in-out":a=0,s=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 d=f[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),p=one(d,4);a=p[0],s=p[1],l=p[2],c=p[3]}}}var m=YR(a,l),g=YR(s,c),S=pne(a,l),A=function(j){return j>1?1:j<0?0:j},w=function(j){for(var _=j>1?1:j,T=_,M=0;M<8;++M){var O=m(T)-_,C=S(T);if(Math.abs(O-_)<Vh||C<Vh)return g(T);T=A(T-O/C)}return g(T)};return w.isStepper=!1,w},mne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,s=a===void 0?8:a,l=t.dt,c=l===void 0?17:l,f=function(p,m,g){var S=-(p-m)*r,A=g*s,w=g+(S-A)*c/1e3,x=g*c/1e3+p;return Math.abs(x-m)<Vh&&Math.abs(w)<Vh?[m,0]:[x,w]};return f.isStepper=!0,f.dt=c,f},yne=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 XR(a);case"spring":return mne();default:if(a.split("(")[0]==="cubic-bezier")return XR(a)}return typeof a=="function"?a:null};function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}function WR(e){return bne(e)||gne(e)||pB(e)||vne()}function vne(){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 gne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bne(e){if(Array.isArray(e))return dS(e)}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 rn(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){fS(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 fS(e,t,n){return t=xne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xne(e){var t=Sne(e,"string");return Ec(t)==="symbol"?t:String(t)}function Sne(e,t){if(Ec(e)!=="object"||e===null)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 wne(e,t){return One(e)||jne(e,t)||pB(e,t)||Ane()}function Ane(){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 pB(e,t){if(e){if(typeof e=="string")return dS(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 dS(e,t)}}function dS(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 jne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function One(e){if(Array.isArray(e))return e}var Hh=function(t,n,r){return t+(n-t)*r},hS=function(t){var n=t.from,r=t.to;return n!==r},_ne=function e(t,n,r){var a=Xu(function(s,l){if(hS(l)){var c=t(l.from,l.to,l.velocity),f=wne(c,2),d=f[0],p=f[1];return rn(rn({},l),{},{from:d,velocity:p})}return l},n);return r<1?Xu(function(s,l){return hS(l)?rn(rn({},l),{},{velocity:Hh(l.velocity,a[s].velocity,r),from:Hh(l.from,a[s].from,r)}):l},n):e(t,a,r-1)};const Tne=(function(e,t,n,r,a){var s=rne(e,t),l=s.reduce(function(x,j){return rn(rn({},x),{},fS({},j,[e[j],t[j]]))},{}),c=s.reduce(function(x,j){return rn(rn({},x),{},fS({},j,{from:e[j],velocity:0,to:t[j]}))},{}),f=-1,d,p,m=function(){return null},g=function(){return Xu(function(j,_){return _.from},c)},S=function(){return!Object.values(c).filter(hS).length},A=function(j){d||(d=j);var _=j-d,T=_/n.dt;c=_ne(n,c,T),a(rn(rn(rn({},e),t),g())),d=j,S()||(f=requestAnimationFrame(m))},w=function(j){p||(p=j);var _=(j-p)/r,T=Xu(function(O,C){return Hh.apply(void 0,WR(C).concat([n(_)]))},l);if(a(rn(rn(rn({},e),t),T)),_<1)f=requestAnimationFrame(m);else{var M=Xu(function(O,C){return Hh.apply(void 0,WR(C).concat([n(1)]))},l);a(rn(rn(rn({},e),t),M))}};return m=n.isStepper?A:w,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(f)}}});function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}var Ene=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Cne(e,t){if(e==null)return{};var n=Mne(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function b0(e){return Dne(e)||Rne(e)||Nne(e)||Pne()}function Pne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nne(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 Rne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dne(e){if(Array.isArray(e))return pS(e)}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 QR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(n),!0).forEach(function(r){qu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qu(e,t,n){return t=mB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lne(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,mB(r.key),r)}}function $ne(e,t,n){return t&&Lne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mB(e){var t=zne(e,"string");return Ys(t)==="symbol"?t:String(t)}function zne(e,t){if(Ys(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ys(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bne(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 qne(e){var t=Ine();return function(){var r=Gh(e),a;if(t){var s=Gh(this).constructor;a=Reflect.construct(r,arguments,s)}else a=r.apply(this,arguments);return yS(this,a)}}function yS(e,t){if(t&&(Ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vS(e)}function vS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ine(){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 Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}var Cr=(function(e){Bne(n,e);var t=qne(n);function n(r,a){var s;kne(this,n),s=t.call(this,r,a);var l=s.props,c=l.isActive,f=l.attributeName,d=l.from,p=l.to,m=l.steps,g=l.children,S=l.duration;if(s.handleStyleChange=s.handleStyleChange.bind(vS(s)),s.changeStyle=s.changeStyle.bind(vS(s)),!c||S<=0)return s.state={style:{}},typeof g=="function"&&(s.state={style:p}),yS(s);if(m&&m.length)s.state={style:m[0].style};else if(d){if(typeof g=="function")return s.state={style:d},yS(s);s.state={style:f?qu({},f,d):d}}else s.state={style:{}};return s}return $ne(n,[{key:"componentDidMount",value:function(){var a=this.props,s=a.isActive,l=a.canBegin;this.mounted=!0,!(!s||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var s=this.props,l=s.isActive,c=s.canBegin,f=s.attributeName,d=s.shouldReAnimate,p=s.to,m=s.from,g=this.state.style;if(c){if(!l){var S={style:f?qu({},f,p):p};this.state&&g&&(f&&g[f]!==p||!f&&g!==p)&&this.setState(S);return}if(!(Kte(a.to,p)&&a.canBegin&&a.isActive)){var A=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=A||d?m:a.to;if(this.state&&g){var x={style:f?qu({},f,w):w};(f&&g[f]!==w||!f&&g!==w)&&this.setState(x)}this.runAnimation(xr(xr({},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 s=this,l=a.from,c=a.to,f=a.duration,d=a.easing,p=a.begin,m=a.onAnimationEnd,g=a.onAnimationStart,S=Tne(l,c,yne(d),f,this.changeStyle),A=function(){s.stopJSAnimation=S()};this.manager.start([g,p,A,f,m])}},{key:"runStepAnimation",value:function(a){var s=this,l=a.steps,c=a.begin,f=a.onAnimationStart,d=l[0],p=d.style,m=d.duration,g=m===void 0?0:m,S=function(w,x,j){if(j===0)return w;var _=x.duration,T=x.easing,M=T===void 0?"ease":T,O=x.style,C=x.properties,P=x.onAnimationEnd,R=j>0?l[j-1]:x,k=C||Object.keys(O);if(typeof M=="function"||M==="spring")return[].concat(b0(w),[s.runJSAnimation.bind(s,{from:R.style,to:O,duration:_,easing:M}),_]);var U=KR(k,_,M),q=xr(xr(xr({},R.style),O),{},{transition:U});return[].concat(b0(w),[q,_,P]).filter(ine)};return this.manager.start([f].concat(b0(l.reduce(S,[p,Math.max(g,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=ene());var s=a.begin,l=a.duration,c=a.attributeName,f=a.to,d=a.easing,p=a.onAnimationStart,m=a.onAnimationEnd,g=a.steps,S=a.children,A=this.manager;if(this.unSubscribe=A.subscribe(this.handleStyleChange),typeof d=="function"||typeof S=="function"||d==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var w=c?qu({},c,f):f,x=KR(Object.keys(w),l,d);A.start([p,s,xr(xr({},w),{},{transition:x}),l,m])}},{key:"render",value:function(){var a=this.props,s=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=Cne(a,Ene),d=N.Children.count(s),p=this.state.style;if(typeof s=="function")return s(p);if(!c||d===0||l<=0)return s;var m=function(S){var A=S.props,w=A.style,x=w===void 0?{}:w,j=A.className,_=N.cloneElement(S,xr(xr({},f),{},{style:xr(xr({},x),p),className:j}));return _};return d===1?m(N.Children.only(s)):B.createElement("div",null,N.Children.map(s,function(g){return m(g)}))}}]),n})(N.PureComponent);Cr.displayName="Animate";Cr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Cr.propTypes={from:We.oneOfType([We.object,We.string]),to:We.oneOfType([We.object,We.string]),attributeName:We.string,duration:We.number,begin:We.number,easing:We.oneOfType([We.string,We.func]),steps:We.arrayOf(We.shape({duration:We.number.isRequired,style:We.object.isRequired,easing:We.oneOfType([We.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),We.func]),properties:We.arrayOf("string"),onAnimationEnd:We.func})),children:We.oneOfType([We.node,We.func]),isActive:We.bool,canBegin:We.bool,onAnimationEnd:We.func,shouldReAnimate:We.bool,onAnimationStart:We.func,onAnimationReStart:We.func};function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function 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 Une(e,t){return Fne(e)||Gne(e,t)||Hne(e,t)||Vne()}function Vne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hne(e,t){if(e){if(typeof e=="string")return JR(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 JR(e,t)}}function JR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Fne(e){if(Array.isArray(e))return e}function eD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function tD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eD(Object(n),!0).forEach(function(r){Kne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kne(e,t,n){return t=Yne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yne(e){var t=Xne(e,"string");return Cc(t)=="symbol"?t:t+""}function Xne(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 nD=function(t,n,r,a,s){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,f=r>=0?1:-1,d=a>=0&&r>=0||a<0&&r<0?1:0,p;if(l>0&&s instanceof Array){for(var m=[0,0,0,0],g=0,S=4;g<S;g++)m[g]=s[g]>l?l:s[g];p="M".concat(t,",").concat(n+c*m[0]),m[0]>0&&(p+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(d,",").concat(t+f*m[0],",").concat(n)),p+="L ".concat(t+r-f*m[1],",").concat(n),m[1]>0&&(p+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(d,`,
`).concat(t+r,",").concat(n+c*m[1])),p+="L ".concat(t+r,",").concat(n+a-c*m[2]),m[2]>0&&(p+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(d,`,
`).concat(t+r-f*m[2],",").concat(n+a)),p+="L ".concat(t+f*m[3],",").concat(n+a),m[3]>0&&(p+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(d,`,
`).concat(t,",").concat(n+a-c*m[3])),p+="Z"}else if(l>0&&s===+s&&s>0){var A=Math.min(l,s);p="M ".concat(t,",").concat(n+c*A,`
A `).concat(A,",").concat(A,",0,0,").concat(d,",").concat(t+f*A,",").concat(n,`
L `).concat(t+r-f*A,",").concat(n,`
A `).concat(A,",").concat(A,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*A,`
L `).concat(t+r,",").concat(n+a-c*A,`
A `).concat(A,",").concat(A,",0,0,").concat(d,",").concat(t+r-f*A,",").concat(n+a,`
L `).concat(t+f*A,",").concat(n+a,`
A `).concat(A,",").concat(A,",0,0,").concat(d,",").concat(t,",").concat(n+a-c*A," Z")}else p="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return p},Wne=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,s=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(s,s+c),p=Math.max(s,s+c),m=Math.min(l,l+f),g=Math.max(l,l+f);return r>=d&&r<=p&&a>=m&&a<=g}return!1},Zne={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},MA=function(t){var n=tD(tD({},Zne),t),r=N.useRef(),a=N.useState(-1),s=Une(a,2),l=s[0],c=s[1];N.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var M=r.current.getTotalLength();M&&c(M)}catch{}},[]);var f=n.x,d=n.y,p=n.width,m=n.height,g=n.radius,S=n.className,A=n.animationEasing,w=n.animationDuration,x=n.animationBegin,j=n.isAnimationActive,_=n.isUpdateAnimationActive;if(f!==+f||d!==+d||p!==+p||m!==+m||p===0||m===0)return null;var T=Pe("recharts-rectangle",S);return _?B.createElement(Cr,{canBegin:l>0,from:{width:p,height:m,x:f,y:d},to:{width:p,height:m,x:f,y:d},duration:w,animationEasing:A,isActive:_},function(M){var O=M.width,C=M.height,P=M.x,R=M.y;return B.createElement(Cr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:w,isActive:j,easing:A},B.createElement("path",Fh({},be(n,!0),{className:T,d:nD(P,R,O,C,g),ref:r})))}):B.createElement("path",Fh({},be(n,!0),{className:T,d:nD(f,d,p,m,g)}))},Qne=["points","className","baseLinePoints","connectNulls"];function Ts(){return Ts=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},Ts.apply(this,arguments)}function Jne(e,t){if(e==null)return{};var n=ere(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ere(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rD(e){return ire(e)||rre(e)||nre(e)||tre()}function tre(){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 nre(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 rre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ire(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}var iD=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){iD(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),iD(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Wu=function(t,n){var r=are(t);n&&(r=[r.reduce(function(s,l){return[].concat(rD(s),rD(l))},[])]);var a=r.map(function(s){return s.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=Wu(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(Wu(n.reverse(),r).slice(1))},sre=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,s=t.connectNulls,l=Jne(t,Qne);if(!n||!n.length)return null;var c=Pe("recharts-polygon",r);if(a&&a.length){var f=l.stroke&&l.stroke!=="none",d=ore(n,a,s);return B.createElement("g",{className:c},B.createElement("path",Ts({},be(l,!0),{fill:d.slice(-1)==="Z"?l.fill:"none",stroke:"none",d})),f?B.createElement("path",Ts({},be(l,!0),{fill:"none",d:Wu(n,s)})):null,f?B.createElement("path",Ts({},be(l,!0),{fill:"none",d:Wu(a,s)})):null)}var p=Wu(n,s);return B.createElement("path",Ts({},be(l,!0),{fill:p.slice(-1)==="Z"?l.fill:"none",className:c,d:p}))};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)}var Jc=function(t){var n=t.cx,r=t.cy,a=t.r,s=t.className,l=Pe("recharts-dot",s);return n===+n&&r===+r&&a===+a?N.createElement("circle",bS({},be(t,!1),dh(t),{className:l,cx:n,cy:r,r:a})):null};function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}var lre=["x","y","top","left","width","height","className"];function xS(){return xS=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},xS.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 ure(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){cre(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 cre(e,t,n){return t=fre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fre(e){var t=dre(e,"string");return Mc(t)=="symbol"?t:t+""}function dre(e,t){if(Mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hre(e,t){if(e==null)return{};var n=pre(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pre(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 mre=function(t,n,r,a,s,l){return"M".concat(t,",").concat(s,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},yre=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,s=a===void 0?0:a,l=t.top,c=l===void 0?0:l,f=t.left,d=f===void 0?0:f,p=t.width,m=p===void 0?0:p,g=t.height,S=g===void 0?0:g,A=t.className,w=hre(t,lre),x=ure({x:r,y:s,top:c,left:d,width:m,height:S},w);return!ue(r)||!ue(s)||!ue(m)||!ue(S)||!ue(c)||!ue(d)?null:B.createElement("path",xS({},be(x,!0),{className:Pe("recharts-cross",A),d:mre(r,s,m,S,c,d)}))},x0,oD;function vre(){if(oD)return x0;oD=1;var e=Vp(),t=Mz(),n=ei();function r(a,s){return a&&a.length?e(a,n(s,2),t):void 0}return x0=r,x0}var gre=vre();const bre=et(gre);var S0,sD;function xre(){if(sD)return S0;sD=1;var e=Vp(),t=ei(),n=Pz();function r(a,s){return a&&a.length?e(a,t(s,2),n):void 0}return S0=r,S0}var Sre=xre();const wre=et(Sre);var Are=["cx","cy","angle","ticks","axisLine"],jre=["ticks","tick","angle","tickFormatter","stroke"];function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function Zu(){return Zu=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},Zu.apply(this,arguments)}function lD(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 Qa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lD(Object(n),!0).forEach(function(r){Kp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uD(e,t){if(e==null)return{};var n=Ore(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ore(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vB(r.key),r)}}function Tre(e,t,n){return t&&cD(e.prototype,t),n&&cD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ere(e,t,n){return t=Kh(t),Cre(e,yB()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function Cre(e,t){if(t&&(Xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mre(e)}function Mre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yB=function(){return!!e})()}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function Pre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SS(e,t)}function SS(e,t){return SS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},SS(e,t)}function Kp(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=Nre(e,"string");return Xs(t)=="symbol"?t:t+""}function Nre(e,t){if(Xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yp=(function(e){function t(){return _re(this,t),Ere(this,t,arguments)}return Pre(t,e),Tre(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,s=this.props,l=s.angle,c=s.cx,f=s.cy;return ft(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,s=r.cy,l=r.angle,c=r.ticks,f=bre(c,function(p){return p.coordinate||0}),d=wre(c,function(p){return p.coordinate||0});return{cx:a,cy:s,startAngle:l,endAngle:l,innerRadius:d.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,s=r.cy,l=r.angle,c=r.ticks,f=r.axisLine,d=uD(r,Are),p=c.reduce(function(A,w){return[Math.min(A[0],w.coordinate),Math.max(A[1],w.coordinate)]},[1/0,-1/0]),m=ft(a,s,p[0],l),g=ft(a,s,p[1],l),S=Qa(Qa(Qa({},be(d,!1)),{},{fill:"none"},be(f,!1)),{},{x1:m.x,y1:m.y,x2:g.x,y2:g.y});return B.createElement("line",Zu({className:"recharts-polar-radius-axis-line"},S))}},{key:"renderTicks",value:function(){var r=this,a=this.props,s=a.ticks,l=a.tick,c=a.angle,f=a.tickFormatter,d=a.stroke,p=uD(a,jre),m=this.getTickTextAnchor(),g=be(p,!1),S=be(l,!1),A=s.map(function(w,x){var j=r.getTickValueCoord(w),_=Qa(Qa(Qa(Qa({textAnchor:m,transform:"rotate(".concat(90-c,", ").concat(j.x,", ").concat(j.y,")")},g),{},{stroke:"none",fill:d},S),{},{index:x},j),{},{payload:w});return B.createElement(Be,Zu({className:Pe("recharts-polar-radius-axis-tick",aB(l)),key:"tick-".concat(w.coordinate)},xo(r.props,w,x)),t.renderTickItem(l,_,f?f(w.value,x):w.value))});return B.createElement(Be,{className:"recharts-polar-radius-axis-ticks"},A)}},{key:"render",value:function(){var r=this.props,a=r.ticks,s=r.axisLine,l=r.tick;return!a||!a.length?null:B.createElement(Be,{className:Pe("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),l&&this.renderTicks(),Wt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,s){var l;return B.isValidElement(r)?l=B.cloneElement(r,a):Oe(r)?l=r(a):l=B.createElement(So,Zu({},a,{className:"recharts-polar-radius-axis-tick-value"}),s),l}}])})(N.PureComponent);Kp(Yp,"displayName","PolarRadiusAxis");Kp(Yp,"axisType","radiusAxis");Kp(Yp,"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 Ws(e){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(e)}function io(){return io=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},io.apply(this,arguments)}function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(n),!0).forEach(function(r){Xp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dD(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,bB(r.key),r)}}function Dre(e,t,n){return t&&dD(e.prototype,t),n&&dD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kre(e,t,n){return t=Yh(t),Lre(e,gB()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}function Lre(e,t){if(t&&(Ws(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $re(e)}function $re(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gB=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yh(e)}function zre(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 Xp(e,t,n){return t=bB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bB(e){var t=Bre(e,"string");return Ws(t)=="symbol"?t:t+""}function Bre(e,t){if(Ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qre=Math.PI/180,hD=1e-5,Wp=(function(e){function t(){return Rre(this,t),kre(this,t,arguments)}return zre(t,e),Dre(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,s=a.cx,l=a.cy,c=a.radius,f=a.orientation,d=a.tickSize,p=d||8,m=ft(s,l,c,r.coordinate),g=ft(s,l,c+(f==="inner"?-1:1)*p,r.coordinate);return{x1:m.x,y1:m.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,s=Math.cos(-r.coordinate*qre),l;return s>hD?l=a==="outer"?"start":"end":s<-hD?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,s=r.cy,l=r.radius,c=r.axisLine,f=r.axisLineType,d=Ja(Ja({},be(this.props,!1)),{},{fill:"none"},be(c,!1));if(f==="circle")return B.createElement(Jc,io({className:"recharts-polar-angle-axis-line"},d,{cx:a,cy:s,r:l}));var p=this.props.ticks,m=p.map(function(g){return ft(a,s,l,g.coordinate)});return B.createElement(sre,io({className:"recharts-polar-angle-axis-line"},d,{points:m}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,s=a.ticks,l=a.tick,c=a.tickLine,f=a.tickFormatter,d=a.stroke,p=be(this.props,!1),m=be(l,!1),g=Ja(Ja({},p),{},{fill:"none"},be(c,!1)),S=s.map(function(A,w){var x=r.getTickLineCoord(A),j=r.getTickTextAnchor(A),_=Ja(Ja(Ja({textAnchor:j},p),{},{stroke:"none",fill:d},m),{},{index:w,payload:A,x:x.x2,y:x.y2});return B.createElement(Be,io({className:Pe("recharts-polar-angle-axis-tick",aB(l)),key:"tick-".concat(A.coordinate)},xo(r.props,A,w)),c&&B.createElement("line",io({className:"recharts-polar-angle-axis-tick-line"},g,x)),l&&t.renderTickItem(l,_,f?f(A.value,w):A.value))});return B.createElement(Be,{className:"recharts-polar-angle-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,a=r.ticks,s=r.radius,l=r.axisLine;return s<=0||!a||!a.length?null:B.createElement(Be,{className:Pe("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,s){var l;return B.isValidElement(r)?l=B.cloneElement(r,a):Oe(r)?l=r(a):l=B.createElement(So,io({},a,{className:"recharts-polar-angle-axis-tick-value"}),s),l}}])})(N.PureComponent);Xp(Wp,"displayName","PolarAngleAxis");Xp(Wp,"axisType","angleAxis");Xp(Wp,"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 w0,pD;function Ire(){if(pD)return w0;pD=1;var e=M$(),t=e(Object.getPrototypeOf,Object);return w0=t,w0}var A0,mD;function Ure(){if(mD)return A0;mD=1;var e=Di(),t=Ire(),n=ki(),r="[object Object]",a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,f=l.call(Object);function d(p){if(!n(p)||e(p)!=r)return!1;var m=t(p);if(m===null)return!0;var g=c.call(m,"constructor")&&m.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return A0=d,A0}var Vre=Ure();const Hre=et(Vre);var j0,yD;function Gre(){if(yD)return j0;yD=1;var e=Di(),t=ki(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return j0=r,j0}var Fre=Gre();const Kre=et(Fre);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 Xh(){return Xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xh.apply(this,arguments)}function Yre(e,t){return Qre(e)||Zre(e,t)||Wre(e,t)||Xre()}function Xre(){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 Wre(e,t){if(e){if(typeof e=="string")return vD(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 vD(e,t)}}function vD(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 Zre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Qre(e){if(Array.isArray(e))return e}function gD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gD(Object(n),!0).forEach(function(r){Jre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jre(e,t,n){return t=eie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eie(e){var t=tie(e,"string");return Pc(t)=="symbol"?t:t+""}function tie(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 xD=function(t,n,r,a,s){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+s),c+="L ".concat(t+r-l/2-a,",").concat(n+s),c+="L ".concat(t,",").concat(n," Z"),c},nie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rie=function(t){var n=bD(bD({},nie),t),r=N.useRef(),a=N.useState(-1),s=Yre(a,2),l=s[0],c=s[1];N.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&c(T)}catch{}},[]);var f=n.x,d=n.y,p=n.upperWidth,m=n.lowerWidth,g=n.height,S=n.className,A=n.animationEasing,w=n.animationDuration,x=n.animationBegin,j=n.isUpdateAnimationActive;if(f!==+f||d!==+d||p!==+p||m!==+m||g!==+g||p===0&&m===0||g===0)return null;var _=Pe("recharts-trapezoid",S);return j?B.createElement(Cr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:p,lowerWidth:m,height:g,x:f,y:d},duration:w,animationEasing:A,isActive:j},function(T){var M=T.upperWidth,O=T.lowerWidth,C=T.height,P=T.x,R=T.y;return B.createElement(Cr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:w,easing:A},B.createElement("path",Xh({},be(n,!0),{className:_,d:xD(P,R,M,O,C),ref:r})))}):B.createElement("g",null,B.createElement("path",Xh({},be(n,!0),{className:_,d:xD(f,d,p,m,g)})))},iie=["option","shapeType","propTransformer","activeClassName","isActive"];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 aie(e,t){if(e==null)return{};var n=oie(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[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 SD(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 Wh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SD(Object(n),!0).forEach(function(r){sie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sie(e,t,n){return t=lie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lie(e){var t=uie(e,"string");return Nc(t)=="symbol"?t:t+""}function uie(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cie(e,t){return Wh(Wh({},t),e)}function fie(e,t){return e==="symbols"}function wD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return B.createElement(MA,n);case"trapezoid":return B.createElement(rie,n);case"sector":return B.createElement(lB,n);case"symbols":if(fie(t))return B.createElement(Xw,n);break;default:return null}}function die(e){return N.isValidElement(e)?e.props:e}function xB(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?cie:r,s=e.activeClassName,l=s===void 0?"recharts-active-shape":s,c=e.isActive,f=aie(e,iie),d;if(N.isValidElement(t))d=N.cloneElement(t,Wh(Wh({},f),die(t)));else if(Oe(t))d=t(f);else if(Hre(t)&&!Kre(t)){var p=a(t,f);d=B.createElement(wD,{shapeType:n,elementProps:p})}else{var m=f;d=B.createElement(wD,{shapeType:n,elementProps:m})}return c?B.createElement(Be,{className:l},d):d}function Zp(e,t){return t!=null&&"trapezoids"in e.props}function Qp(e,t){return t!=null&&"sectors"in e.props}function Rc(e,t){return t!=null&&"points"in e.props}function hie(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,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&s}function pie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function mie(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function yie(e,t){var n;return Zp(e,t)?n=hie:Qp(e,t)?n=pie:Rc(e,t)&&(n=mie),n}function vie(e,t){var n;return Zp(e,t)?n="trapezoids":Qp(e,t)?n="sectors":Rc(e,t)&&(n="points"),n}function gie(e,t){if(Zp(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(Qp(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 Rc(e,t)?t.payload:{}}function bie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=vie(n,t),s=gie(n,t),l=r.filter(function(f,d){var p=wo(s,f),m=n.props[a].filter(function(A){var w=yie(n,t);return w(A,t)}),g=n.props[a].indexOf(m[m.length-1]),S=d===g;return p&&S}),c=r.indexOf(l[l.length-1]);return c}var Qd;function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(e)}function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Es.apply(this,arguments)}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 ut(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){lr(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 xie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wB(r.key),r)}}function Sie(e,t,n){return t&&jD(e.prototype,t),n&&jD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wie(e,t,n){return t=Zh(t),Aie(e,SB()?Reflect.construct(t,n||[],Zh(e).constructor):t.apply(e,n))}function Aie(e,t){if(t&&(Zs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jie(e)}function jie(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 Zh(e){return Zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zh(e)}function Oie(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&&AS(e,t)}function AS(e,t){return AS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},AS(e,t)}function lr(e,t,n){return t=wB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wB(e){var t=_ie(e,"string");return Zs(t)=="symbol"?t:t+""}function _ie(e,t){if(Zs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $i=(function(e){function t(n){var r;return xie(this,t),r=wie(this,t,[n]),lr(r,"pieRef",null),lr(r,"sectorRefs",[]),lr(r,"id",Co("recharts-pie-")),lr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Oe(a)&&a()}),lr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Oe(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Oie(t,e),Sie(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 s=this.props,l=s.label,c=s.labelLine,f=s.dataKey,d=s.valueKey,p=be(this.props,!1),m=be(l,!1),g=be(c,!1),S=l&&l.offsetRadius||20,A=r.map(function(w,x){var j=(w.startAngle+w.endAngle)/2,_=ft(w.cx,w.cy,w.outerRadius+S,j),T=ut(ut(ut(ut({},p),w),{},{stroke:"none"},m),{},{index:x,textAnchor:t.getTextAnchor(_.x,w.cx)},_),M=ut(ut(ut(ut({},p),w),{},{fill:"none",stroke:w.fill},g),{},{index:x,points:[ft(w.cx,w.cy,w.outerRadius,j),_]}),O=f;return Te(f)&&Te(d)?O="value":Te(f)&&(O=d),B.createElement(Be,{key:"label-".concat(w.startAngle,"-").concat(w.endAngle,"-").concat(w.midAngle,"-").concat(x)},c&&t.renderLabelLineItem(c,M,"line"),t.renderLabelItem(l,T,Ct(w,O)))});return B.createElement(Be,{className:"recharts-pie-labels"},A)}},{key:"renderSectorsStatically",value:function(r){var a=this,s=this.props,l=s.activeShape,c=s.blendStroke,f=s.inactiveShape;return r.map(function(d,p){if((d==null?void 0:d.startAngle)===0&&(d==null?void 0:d.endAngle)===0&&r.length!==1)return null;var m=a.isActiveIndex(p),g=f&&a.hasActiveIndex()?f:null,S=m?l:g,A=ut(ut({},d),{},{stroke:c?d.fill:d.stroke,tabIndex:-1});return B.createElement(Be,Es({ref:function(x){x&&!a.sectorRefs.includes(x)&&a.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},xo(a.props,d,p),{key:"sector-".concat(d==null?void 0:d.startAngle,"-").concat(d==null?void 0:d.endAngle,"-").concat(d.midAngle,"-").concat(p)}),B.createElement(xB,Es({option:S,isActive:m,shapeType:"sector"},A)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,s=a.sectors,l=a.isAnimationActive,c=a.animationBegin,f=a.animationDuration,d=a.animationEasing,p=a.animationId,m=this.state,g=m.prevSectors,S=m.prevIsAnimationActive;return B.createElement(Cr,{begin:c,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(p,"-").concat(S),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(A){var w=A.t,x=[],j=s&&s[0],_=j.startAngle;return s.forEach(function(T,M){var O=g&&g[M],C=M>0?Gn(T,"paddingAngle",0):0;if(O){var P=Vt(O.endAngle-O.startAngle,T.endAngle-T.startAngle),R=ut(ut({},T),{},{startAngle:_+C,endAngle:_+P(w)+C});x.push(R),_=R.endAngle}else{var k=T.endAngle,U=T.startAngle,q=Vt(0,k-U),$=q(w),F=ut(ut({},T),{},{startAngle:_+C,endAngle:_+$+C});x.push(F),_=F.endAngle}}),B.createElement(Be,null,r.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(s){if(!s.altKey)switch(s.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,s=r.isAnimationActive,l=this.state.prevSectors;return s&&a&&a.length&&(!l||!wo(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,s=a.hide,l=a.sectors,c=a.className,f=a.label,d=a.cx,p=a.cy,m=a.innerRadius,g=a.outerRadius,S=a.isAnimationActive,A=this.state.isAnimationFinished;if(s||!l||!l.length||!ue(d)||!ue(p)||!ue(m)||!ue(g))return null;var w=Pe("recharts-pie",c);return B.createElement(Be,{tabIndex:this.props.rootTabIndex,className:w,ref:function(j){r.pieRef=j}},this.renderSectors(),f&&this.renderLabels(l),Wt.renderCallByParent(this.props,null,!1),(!S||A)&&Yr.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,s){if(B.isValidElement(r))return B.cloneElement(r,a);if(Oe(r))return r(a);var l=Pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return B.createElement(vo,Es({},a,{key:s,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,s){if(B.isValidElement(r))return B.cloneElement(r,a);var l=s;if(Oe(r)&&(l=r(a),B.isValidElement(l)))return l;var c=Pe("recharts-pie-label-text",typeof r!="boolean"&&!Oe(r)?r.className:"");return B.createElement(So,Es({},a,{alignmentBaseline:"middle",className:c}),l)}}])})(N.PureComponent);Qd=$i;lr($i,"displayName","Pie");lr($i,"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:!Ea.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});lr($i,"parseDeltaAngle",function(e,t){var n=mn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});lr($i,"getRealPieData",function(e){var t=e.data,n=e.children,r=be(e,!1),a=Fn(n,Lp);return t&&t.length?t.map(function(s,l){return ut(ut(ut({payload:s},r),s),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(s){return ut(ut({},r),s.props)}):[]});lr($i,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,s=t.height,l=iB(a,s),c=r+yn(e.cx,a,a/2),f=n+yn(e.cy,s,s/2),d=yn(e.innerRadius,l,0),p=yn(e.outerRadius,l,l*.8),m=e.maxRadius||Math.sqrt(a*a+s*s)/2;return{cx:c,cy:f,innerRadius:d,outerRadius:p,maxRadius:m}});lr($i,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?ut(ut({},t.type.defaultProps),t.props):t.props,a=Qd.getRealPieData(r);if(!a||!a.length)return null;var s=r.cornerRadius,l=r.startAngle,c=r.endAngle,f=r.paddingAngle,d=r.dataKey,p=r.nameKey,m=r.valueKey,g=r.tooltipType,S=Math.abs(r.minAngle),A=Qd.parseCoordinateOfPie(r,n),w=Qd.parseDeltaAngle(l,c),x=Math.abs(w),j=d;Te(d)&&Te(m)?(Tr(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),j="value"):Te(d)&&(Tr(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),j=m);var _=a.filter(function(R){return Ct(R,j,0)!==0}).length,T=(x>=360?_:_-1)*f,M=x-_*S-T,O=a.reduce(function(R,k){var U=Ct(k,j,0);return R+(ue(U)?U:0)},0),C;if(O>0){var P;C=a.map(function(R,k){var U=Ct(R,j,0),q=Ct(R,p,k),$=(ue(U)?U:0)/O,F;k?F=P.endAngle+mn(w)*f*(U!==0?1:0):F=l;var X=F+mn(w)*((U!==0?S:0)+$*M),Y=(F+X)/2,z=(A.innerRadius+A.outerRadius)/2,K=[{name:q,value:U,payload:R,dataKey:j,type:g}],Q=ft(A.cx,A.cy,z,Y);return P=ut(ut(ut({percent:$,cornerRadius:s,name:q,tooltipPayload:K,midAngle:Y,middleRadius:z,tooltipPosition:Q},R),A),{},{value:Ct(R,j),startAngle:F,endAngle:X,payload:R,paddingAngle:mn(w)*f}),P})}return ut(ut({},A),{},{sectors:C,data:a})});var O0,OD;function Tie(){if(OD)return O0;OD=1;var e=Math.ceil,t=Math.max;function n(r,a,s,l){for(var c=-1,f=t(e((a-r)/(s||1)),0),d=Array(f);f--;)d[l?f:++c]=r,r+=s;return d}return O0=n,O0}var _0,_D;function AB(){if(_D)return _0;_D=1;var e=F$(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var s=a<0?-1:1;return s*n}return a===a?a:0}return _0=r,_0}var T0,TD;function Eie(){if(TD)return T0;TD=1;var e=Tie(),t=kp(),n=AB();function r(a){return function(s,l,c){return c&&typeof c!="number"&&t(s,l,c)&&(l=c=void 0),s=n(s),l===void 0?(l=s,s=0):l=n(l),c=c===void 0?s<l?1:-1:n(c),e(s,l,c,a)}}return T0=r,T0}var E0,ED;function Cie(){if(ED)return E0;ED=1;var e=Eie(),t=e();return E0=t,E0}var Mie=Cie();const Qh=et(Mie);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 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 MD(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){jB(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 jB(e,t,n){return t=Pie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pie(e){var t=Nie(e,"string");return Dc(t)=="symbol"?t:t+""}function Nie(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 Rie=["Webkit","Moz","O","ms"],Die=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),a=Rie.reduce(function(s,l){return MD(MD({},s),{},jB({},l+r,n))},{});return a[t]=n,a};function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(this,arguments)}function PD(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 C0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kie(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,_B(r.key),r)}}function Lie(e,t,n){return t&&ND(e.prototype,t),n&&ND(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ie(e,t,n){return t=ep(t),zie(e,OB()?Reflect.construct(t,n||[],ep(e).constructor):t.apply(e,n))}function zie(e,t){if(t&&(Qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bie(e)}function Bie(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 ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ep(e)}function qie(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&&jS(e,t)}function jS(e,t){return jS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},jS(e,t)}function qn(e,t,n){return t=_B(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _B(e){var t=Iie(e,"string");return Qs(t)=="symbol"?t:t+""}function Iie(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Uie=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,s=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=Ku().domain(Qh(0,f)).range([s,s+l-c]),p=d.domain().map(function(m){return d(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(a),scale:d,scaleValues:p}},RD=function(t){return t.changedTouches&&!!t.changedTouches.length},Js=(function(e){function t(n){var r;return kie(this,t),r=$ie(this,t,[n]),qn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),qn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),qn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,s=a.endIndex,l=a.onDragEnd,c=a.startIndex;l==null||l({endIndex:s,startIndex:c})}),r.detachDragEndListener()}),qn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),qn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),qn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),qn(r,"handleSlideDragStart",function(a){var s=RD(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return qie(t,e),Lie(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,s=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,p=d.length-1,m=Math.min(a,s),g=Math.max(a,s),S=t.getIndexInRange(l,m),A=t.getIndexInRange(l,g);return{startIndex:S-S%f,endIndex:A===p?p:A-A%f}}},{key:"getTextOfTick",value:function(r){var a=this.props,s=a.data,l=a.tickFormatter,c=a.dataKey,f=Ct(s[r],c,r);return Oe(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,s=a.slideMoveStartX,l=a.startX,c=a.endX,f=this.props,d=f.x,p=f.width,m=f.travellerWidth,g=f.startIndex,S=f.endIndex,A=f.onChange,w=r.pageX-s;w>0?w=Math.min(w,d+p-m-c,d+p-m-l):w<0&&(w=Math.max(w,d-l,d-c));var x=this.getIndex({startX:l+w,endX:c+w});(x.startIndex!==g||x.endIndex!==S)&&A&&A(x),this.setState({startX:l+w,endX:c+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var s=RD(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,s=a.brushMoveStartX,l=a.movingTravellerId,c=a.endX,f=a.startX,d=this.state[l],p=this.props,m=p.x,g=p.width,S=p.travellerWidth,A=p.onChange,w=p.gap,x=p.data,j={startX:this.state.startX,endX:this.state.endX},_=r.pageX-s;_>0?_=Math.min(_,m+g-S-d):_<0&&(_=Math.max(_,m-d)),j[l]=d+_;var T=this.getIndex(j),M=T.startIndex,O=T.endIndex,C=function(){var R=x.length-1;return l==="startX"&&(c>f?M%w===0:O%w===0)||c<f&&O===R||l==="endX"&&(c>f?O%w===0:M%w===0)||c>f&&O===R};this.setState(qn(qn({},l,d+_),"brushMoveStartX",r.pageX),function(){A&&C()&&A(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var s=this,l=this.state,c=l.scaleValues,f=l.startX,d=l.endX,p=this.state[a],m=c.indexOf(p);if(m!==-1){var g=m+r;if(!(g===-1||g>=c.length)){var S=c[g];a==="startX"&&S>=d||a==="endX"&&S<=f||this.setState(qn({},a,S),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.fill,d=r.stroke;return B.createElement("rect",{stroke:d,fill:f,x:a,y:s,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.data,d=r.children,p=r.padding,m=N.Children.only(d);return m?B.cloneElement(m,{x:a,y:s,width:l,height:c,margin:p,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,a){var s,l,c=this,f=this.props,d=f.y,p=f.travellerWidth,m=f.height,g=f.traveller,S=f.ariaLabel,A=f.data,w=f.startIndex,x=f.endIndex,j=Math.max(r,this.props.x),_=C0(C0({},be(this.props,!1)),{},{x:j,y:d,width:p,height:m}),T=S||"Min value: ".concat((s=A[w])===null||s===void 0?void 0:s.name,", Max value: ").concat((l=A[x])===null||l===void 0?void 0:l.name);return B.createElement(Be,{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 s=this.props,l=s.y,c=s.height,f=s.stroke,d=s.travellerWidth,p=Math.min(r,a)+d,m=Math.max(Math.abs(a-r)-d,0);return B.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:p,y:l,width:m,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,s=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,p=this.state,m=p.startX,g=p.endX,S=5,A={pointerEvents:"none",fill:d};return B.createElement(Be,{className:"recharts-brush-texts"},B.createElement(So,Jh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,g)-S,y:l+c/2},A),this.getTextOfTick(a)),B.createElement(So,Jh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,g)+f+S,y:l+c/2},A),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,a=r.data,s=r.className,l=r.children,c=r.x,f=r.y,d=r.width,p=r.height,m=r.alwaysShowText,g=this.state,S=g.startX,A=g.endX,w=g.isTextActive,x=g.isSlideMoving,j=g.isTravellerMoving,_=g.isTravellerFocused;if(!a||!a.length||!ue(c)||!ue(f)||!ue(d)||!ue(p)||d<=0||p<=0)return null;var T=Pe("recharts-brush",s),M=B.Children.count(l)===1,O=Die("userSelect","none");return B.createElement(Be,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(S,A),this.renderTravellerLayer(S,"startX"),this.renderTravellerLayer(A,"endX"),(w||x||j||_||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,s=r.y,l=r.width,c=r.height,f=r.stroke,d=Math.floor(s+c/2)-1;return B.createElement(B.Fragment,null,B.createElement("rect",{x:a,y:s,width:l,height:c,fill:f,stroke:"none"}),B.createElement("line",{x1:a+1,y1:d,x2:a+l-1,y2:d,fill:"none",stroke:"#fff"}),B.createElement("line",{x1:a+1,y1:d+2,x2:a+l-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var s;return B.isValidElement(r)?s=B.cloneElement(r,a):Oe(r)?s=r(a):s=t.renderDefaultTraveller(a),s}},{key:"getDerivedStateFromProps",value:function(r,a){var s=r.data,l=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,p=r.startIndex,m=r.endIndex;if(s!==a.prevData||d!==a.prevUpdateId)return C0({prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l},s&&s.length?Uie({data:s,width:l,x:c,travellerWidth:f,startIndex:p,endIndex:m}):{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:s,prevTravellerWidth:f,prevUpdateId:d,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 s=r.length,l=0,c=s-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>a?c=f:l=f}return a>=r[c]?c:l}}])})(N.PureComponent);qn(Js,"displayName","Brush");qn(Js,"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 M0,DD;function Vie(){if(DD)return M0;DD=1;var e=nA();function t(n,r){var a;return e(n,function(s,l,c){return a=r(s,l,c),!a}),!!a}return M0=t,M0}var P0,kD;function Hie(){if(kD)return P0;kD=1;var e=A$(),t=ei(),n=Vie(),r=En(),a=kp();function s(l,c,f){var d=r(l)?e:n;return f&&a(l,c,f)&&(c=void 0),d(l,t(c,3))}return P0=s,P0}var Gie=Hie();const Fie=et(Gie);var Xr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},N0,LD;function Kie(){if(LD)return N0;LD=1;var e=I$();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return N0=t,N0}var R0,$D;function Yie(){if($D)return R0;$D=1;var e=Kie(),t=B$(),n=ei();function r(a,s){var l={};return s=n(s,3),t(a,function(c,f,d){e(l,f,s(c,f,d))}),l}return R0=r,R0}var Xie=Yie();const Wie=et(Xie);var D0,zD;function Zie(){if(zD)return D0;zD=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 D0=e,D0}var k0,BD;function Qie(){if(BD)return k0;BD=1;var e=nA();function t(n,r){var a=!0;return e(n,function(s,l,c){return a=!!r(s,l,c),a}),a}return k0=t,k0}var L0,qD;function Jie(){if(qD)return L0;qD=1;var e=Zie(),t=Qie(),n=ei(),r=En(),a=kp();function s(l,c,f){var d=r(l)?e:t;return f&&a(l,c,f)&&(c=void 0),d(l,n(c,3))}return L0=s,L0}var eae=Jie();const TB=et(eae);var tae=["x","y"];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 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 ID(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ID(Object(n),!0).forEach(function(r){nae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ID(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nae(e,t,n){return t=rae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rae(e){var t=iae(e,"string");return kc(t)=="symbol"?t:t+""}function iae(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)}function aae(e,t){if(e==null)return{};var n=oae(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[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 sae(e,t){var n=e.x,r=e.y,a=aae(e,tae),s="".concat(n),l=parseInt(s,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||a.height),p=parseInt(d,10),m="".concat(t.width||a.width),g=parseInt(m,10);return Du(Du(Du(Du(Du({},t),a),l?{x:l}:{}),f?{y:f}:{}),{},{height:p,width:g,name:t.name,radius:t.radius})}function UD(e){return B.createElement(xB,OS({shapeType:"rectangle",propTransformer:sae,activeClassName:"recharts-active-bar"},e))}var lae=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 s=ue(r)||CG(r);return s?t(r,a):(s||jo(),n)}},uae=["value","background"],EB;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 cae(e,t){if(e==null)return{};var n=fae(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fae(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 tp(){return tp=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},tp.apply(this,arguments)}function VD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dt(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){ga(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 dae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MB(r.key),r)}}function hae(e,t,n){return t&&HD(e.prototype,t),n&&HD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pae(e,t,n){return t=np(t),mae(e,CB()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}function mae(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 yae(e)}function yae(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 np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},np(e)}function vae(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&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_S(e,t)}function ga(e,t,n){return t=MB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MB(e){var t=gae(e,"string");return el(t)=="symbol"?t:t+""}function gae(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 wa=(function(e){function t(){var n;dae(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=pae(this,t,[].concat(a)),ga(n,"state",{isAnimationFinished:!1}),ga(n,"id",Co("recharts-bar-")),ga(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),ga(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return vae(t,e),hae(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,s=this.props,l=s.shape,c=s.dataKey,f=s.activeIndex,d=s.activeBar,p=be(this.props,!1);return r&&r.map(function(m,g){var S=g===f,A=S?d:l,w=Dt(Dt(Dt({},p),m),{},{isActive:S,option:A,index:g,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return B.createElement(Be,tp({className:"recharts-bar-rectangle"},xo(a.props,m,g),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(g)}),B.createElement(UD,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,s=a.data,l=a.layout,c=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,m=a.animationId,g=this.state.prevData;return B.createElement(Cr,{begin:f,duration:d,isActive:c,easing:p,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var A=S.t,w=s.map(function(x,j){var _=g&&g[j];if(_){var T=Vt(_.x,x.x),M=Vt(_.y,x.y),O=Vt(_.width,x.width),C=Vt(_.height,x.height);return Dt(Dt({},x),{},{x:T(A),y:M(A),width:O(A),height:C(A)})}if(l==="horizontal"){var P=Vt(0,x.height),R=P(A);return Dt(Dt({},x),{},{y:x.y+x.height-R,height:R})}var k=Vt(0,x.width),U=k(A);return Dt(Dt({},x),{},{width:U})});return B.createElement(Be,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,s=r.isAnimationActive,l=this.state.prevData;return s&&a&&a.length&&(!l||!wo(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,s=a.data,l=a.dataKey,c=a.activeIndex,f=be(this.props.background,!1);return s.map(function(d,p){d.value;var m=d.background,g=cae(d,uae);if(!m)return null;var S=Dt(Dt(Dt(Dt(Dt({},g),{},{fill:"#eee"},m),f),xo(r.props,d,p)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:p,className:"recharts-bar-background-rectangle"});return B.createElement(UD,tp({key:"background-bar-".concat(p),option:r.props.background,isActive:p===c},S))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.data,c=s.xAxis,f=s.yAxis,d=s.layout,p=s.children,m=Fn(p,Qc);if(!m)return null;var g=d==="vertical"?l[0].height/2:l[0].width/2,S=function(x,j){var _=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:_,errorVal:Ct(x,j)}},A={clipPath:r?"url(#clipPath-".concat(a,")"):null};return B.createElement(Be,A,m.map(function(w){return B.cloneElement(w,{key:"error-bar-".concat(a,"-").concat(w.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,offset:g,dataPointFormatter:S})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,s=r.data,l=r.className,c=r.xAxis,f=r.yAxis,d=r.left,p=r.top,m=r.width,g=r.height,S=r.isAnimationActive,A=r.background,w=r.id;if(a||!s||!s.length)return null;var x=this.state.isAnimationFinished,j=Pe("recharts-bar",l),_=c&&c.allowDataOverflow,T=f&&f.allowDataOverflow,M=_||T,O=Te(w)?this.id:w;return B.createElement(Be,{className:j},_||T?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(O)},B.createElement("rect",{x:_?d:d-m/2,y:T?p:p-g/2,width:_?m:m*2,height:T?g:g*2}))):null,B.createElement(Be,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(O,")"):null},A?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,O),(!S||x)&&Yr.renderCallByParent(this.props,s))}}],[{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}}])})(N.PureComponent);EB=wa;ga(wa,"displayName","Bar");ga(wa,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ea.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ga(wa,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,s=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,p=e.dataStartIndex,m=e.displayedData,g=e.offset,S=VJ(r,n);if(!S)return null;var A=t.layout,w=n.type.defaultProps,x=w!==void 0?Dt(Dt({},w),n.props):n.props,j=x.dataKey,_=x.children,T=x.minPointSize,M=A==="horizontal"?l:s,O=d?M.scale.domain():null,C=WJ({numericAxis:M}),P=Fn(_,Lp),R=m.map(function(k,U){var q,$,F,X,Y,z;d?q=HJ(d[p+U],O):(q=Ct(k,j),Array.isArray(q)||(q=[C,q]));var K=lae(T,EB.defaultProps.minPointSize)(q[1],U);if(A==="horizontal"){var Q,ie=[l.scale(q[0]),l.scale(q[1])],se=ie[0],L=ie[1];$=gR({axis:s,ticks:c,bandSize:a,offset:S.offset,entry:k,index:U}),F=(Q=L??se)!==null&&Q!==void 0?Q:void 0,X=S.size;var H=se-L;if(Y=Number.isNaN(H)?0:H,z={x:$,y:l.y,width:X,height:l.height},Math.abs(K)>0&&Math.abs(Y)<Math.abs(K)){var re=mn(Y||K)*(Math.abs(K)-Math.abs(Y));F-=re,Y+=re}}else{var fe=[s.scale(q[0]),s.scale(q[1])],ve=fe[0],we=fe[1];if($=ve,F=gR({axis:l,ticks:f,bandSize:a,offset:S.offset,entry:k,index:U}),X=we-ve,Y=S.size,z={x:s.x,y:F,width:s.width,height:Y},Math.abs(K)>0&&Math.abs(X)<Math.abs(K)){var Le=mn(X||K)*(Math.abs(K)-Math.abs(X));X+=Le}}return Dt(Dt(Dt({},k),{},{x:$,y:F,width:X,height:Y,value:d?q:q[1],payload:k,background:z},P&&P[U]&&P[U].props),{},{tooltipPayload:[nB(n,k)],tooltipPosition:{x:$+X/2,y:F+Y/2}})});return Dt({data:R,layout:A},g)});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 bae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GD(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 xae(e,t,n){return t&&GD(e.prototype,t),n&&GD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FD(Object(n),!0).forEach(function(r){Jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jp(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=Sae(e,"string");return Lc(t)=="symbol"?t:t+""}function Sae(e,t){if(Lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PA=function(t,n,r,a,s){var l=t.width,c=t.height,f=t.layout,d=t.children,p=Object.keys(n),m={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=!!In(d,wa);return p.reduce(function(S,A){var w=n[A],x=w.orientation,j=w.domain,_=w.padding,T=_===void 0?{}:_,M=w.mirror,O=w.reversed,C="".concat(x).concat(M?"Mirror":""),P,R,k,U,q;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var $=j[1]-j[0],F=1/0,X=w.categoricalDomain.sort(NG);if(X.forEach(function(fe,ve){ve>0&&(F=Math.min((fe||0)-(X[ve-1]||0),F))}),Number.isFinite(F)){var Y=F/$,z=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(P=Y*z/2),w.padding==="no-gap"){var K=yn(t.barCategoryGap,Y*z),Q=Y*z/2;P=Q-K-(Q-K)/z*K}}}a==="xAxis"?R=[r.left+(T.left||0)+(P||0),r.left+r.width-(T.right||0)-(P||0)]:a==="yAxis"?R=f==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(P||0),r.top+r.height-(T.bottom||0)-(P||0)]:R=w.range,O&&(R=[R[1],R[0]]);var ie=Qz(w,s,g),se=ie.scale,L=ie.realScaleType;se.domain(j).range(R),Jz(se);var H=eB(se,wr(wr({},w),{},{realScaleType:L}));a==="xAxis"?(q=x==="top"&&!M||x==="bottom"&&M,k=r.left,U=m[C]-q*w.height):a==="yAxis"&&(q=x==="left"&&!M||x==="right"&&M,k=m[C]-q*w.width,U=r.top);var re=wr(wr(wr({},w),H),{},{realScaleType:L,x:k,y:U,scale:se,width:a==="xAxis"?r.width:w.width,height:a==="yAxis"?r.height:w.height});return re.bandSize=Bh(re,H),!w.hide&&a==="xAxis"?m[C]+=(q?-1:1)*re.height:w.hide||(m[C]+=(q?-1:1)*re.width),wr(wr({},S),{},Jp({},A,re))},{})},NB=function(t,n){var r=t.x,a=t.y,s=n.x,l=n.y;return{x:Math.min(r,s),y:Math.min(a,l),width:Math.abs(s-r),height:Math.abs(l-a)}},wae=function(t){var n=t.x1,r=t.y1,a=t.x2,s=t.y2;return NB({x:n,y:r},{x:a,y:s})},RB=(function(){function e(t){bae(this,e),this.scale=t}return xae(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,s=r.position;if(n!==void 0){if(s)switch(s){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],s=r[r.length-1];return a<=s?n>=a&&n<=s:n>=s&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();Jp(RB,"EPS",1e-4);var NA=function(t){var n=Object.keys(t).reduce(function(r,a){return wr(wr({},r),{},Jp({},a,RB.create(t[a])))},{});return wr(wr({},n),{},{apply:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.bandAware,c=s.position;return Wie(a,function(f,d){return n[d].apply(f,{bandAware:l,position:c})})},isInRange:function(a){return TB(a,function(s,l){return n[l].isInRange(s)})}})};function Aae(e){return(e%180+180)%180}var jae=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=Aae(a),l=s*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)},$0,KD;function Oae(){if(KD)return $0;KD=1;var e=ei(),t=Kc(),n=Rp();function r(a){return function(s,l,c){var f=Object(s);if(!t(s)){var d=e(l,3);s=n(s),l=function(m){return d(f[m],m,f)}}var p=a(s,l,c);return p>-1?f[d?s[p]:p]:void 0}}return $0=r,$0}var z0,YD;function _ae(){if(YD)return z0;YD=1;var e=AB();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return z0=t,z0}var B0,XD;function Tae(){if(XD)return B0;XD=1;var e=D$(),t=ei(),n=_ae(),r=Math.max;function a(s,l,c){var f=s==null?0:s.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(s,t(l,3),d)}return B0=a,B0}var q0,WD;function Eae(){if(WD)return q0;WD=1;var e=Oae(),t=Tae(),n=e(t);return q0=n,q0}var Cae=Eae();const Mae=et(Cae);var Pae=XL();const Nae=et(Pae);var Rae=Nae(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("")}),RA=N.createContext(void 0),DA=N.createContext(void 0),DB=N.createContext(void 0),kB=N.createContext({}),LB=N.createContext(void 0),$B=N.createContext(0),zB=N.createContext(0),ZD=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,s=n.offset,l=t.clipPathId,c=t.children,f=t.width,d=t.height,p=Rae(s);return B.createElement(RA.Provider,{value:r},B.createElement(DA.Provider,{value:a},B.createElement(kB.Provider,{value:s},B.createElement(DB.Provider,{value:p},B.createElement(LB.Provider,{value:l},B.createElement($B.Provider,{value:d},B.createElement(zB.Provider,{value:f},c)))))))},Dae=function(){return N.useContext(LB)},BB=function(t){var n=N.useContext(RA);n==null&&jo();var r=n[t];return r==null&&jo(),r},kae=function(){var t=N.useContext(RA);return ma(t)},Lae=function(){var t=N.useContext(DA),n=Mae(t,function(r){return TB(r.domain,Number.isFinite)});return n||ma(t)},qB=function(t){var n=N.useContext(DA);n==null&&jo();var r=n[t];return r==null&&jo(),r},$ae=function(){var t=N.useContext(DB);return t},zae=function(){return N.useContext(kB)},kA=function(){return N.useContext(zB)},LA=function(){return N.useContext($B)};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 Bae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qae(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 Iae(e,t,n){return t&&qae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uae(e,t,n){return t=rp(t),Vae(e,IB()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function Vae(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 Hae(e)}function Hae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IB=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function Gae(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&&TS(e,t)}function TS(e,t){return TS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},TS(e,t)}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 JD(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){$A(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 $A(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=Fae(e,"string");return tl(t)=="symbol"?t:t+""}function Fae(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kae(e,t){return Zae(e)||Wae(e,t)||Xae(e,t)||Yae()}function Yae(){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 Xae(e,t){if(e){if(typeof e=="string")return ek(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 ek(e,t)}}function ek(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 Wae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Zae(e){if(Array.isArray(e))return e}function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES.apply(this,arguments)}var Qae=function(t,n){var r;return B.isValidElement(t)?r=B.cloneElement(t,n):Oe(t)?r=t(n):r=B.createElement("line",ES({},n,{className:"recharts-reference-line-line"})),r},Jae=function(t,n,r,a,s,l,c,f,d){var p=s.x,m=s.y,g=s.width,S=s.height;if(r){var A=d.y,w=t.y.apply(A,{position:l});if(Xr(d,"discard")&&!t.y.isInRange(w))return null;var x=[{x:p+g,y:w},{x:p,y:w}];return f==="left"?x.reverse():x}if(n){var j=d.x,_=t.x.apply(j,{position:l});if(Xr(d,"discard")&&!t.x.isInRange(_))return null;var T=[{x:_,y:m+S},{x:_,y:m}];return c==="top"?T.reverse():T}if(a){var M=d.segment,O=M.map(function(C){return t.apply(C,{position:l})});return Xr(d,"discard")&&Fie(O,function(C){return!t.isInRange(C)})?null:O}return null};function eoe(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,s=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,d=Dae(),p=BB(a),m=qB(s),g=$ae();if(!d||!g)return null;Tr(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var S=NA({x:p.scale,y:m.scale}),A=Ht(t),w=Ht(n),x=r&&r.length===2,j=Jae(S,A,w,x,g,e.position,p.orientation,m.orientation,e);if(!j)return null;var _=Kae(j,2),T=_[0],M=T.x,O=T.y,C=_[1],P=C.x,R=C.y,k=Xr(e,"hidden")?"url(#".concat(d,")"):void 0,U=JD(JD({clipPath:k},be(e,!0)),{},{x1:M,y1:O,x2:P,y2:R});return B.createElement(Be,{className:Pe("recharts-reference-line",c)},Qae(l,U),Wt.renderCallByParent(e,wae({x1:M,y1:O,x2:P,y2:R})))}var zA=(function(e){function t(){return Bae(this,t),Uae(this,t,arguments)}return Gae(t,e),Iae(t,[{key:"render",value:function(){return B.createElement(eoe,this.props)}}])})(B.Component);$A(zA,"displayName","ReferenceLine");$A(zA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CS.apply(this,arguments)}function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function 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 nk(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){em(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 toe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function noe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HB(r.key),r)}}function roe(e,t,n){return t&&noe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ioe(e,t,n){return t=ip(t),aoe(e,VB()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function aoe(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ooe(e)}function ooe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VB=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function soe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 em(e,t,n){return t=HB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HB(e){var t=loe(e,"string");return nl(t)=="symbol"?t:t+""}function loe(e,t){if(nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uoe=function(t){var n=t.x,r=t.y,a=t.xAxis,s=t.yAxis,l=NA({x:a.scale,y:s.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return Xr(t,"discard")&&!l.isInRange(c)?null:c},tm=(function(e){function t(){return toe(this,t),ioe(this,t,arguments)}return soe(t,e),roe(t,[{key:"render",value:function(){var r=this.props,a=r.x,s=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,d=Ht(a),p=Ht(s);if(Tr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!p)return null;var m=uoe(this.props);if(!m)return null;var g=m.x,S=m.y,A=this.props,w=A.shape,x=A.className,j=Xr(this.props,"hidden")?"url(#".concat(f,")"):void 0,_=nk(nk({clipPath:j},be(this.props,!0)),{},{cx:g,cy:S});return B.createElement(Be,{className:Pe("recharts-reference-dot",x)},t.renderDot(w,_),Wt.renderCallByParent(this.props,{x:g-l,y:S-l,width:2*l,height:2*l}))}}])})(B.Component);em(tm,"displayName","ReferenceDot");em(tm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});em(tm,"renderDot",function(e,t){var n;return B.isValidElement(e)?n=B.cloneElement(e,t):Oe(e)?n=e(t):n=B.createElement(Jc,CS({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});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 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 rk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ik(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rk(Object(n),!0).forEach(function(r){nm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function coe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function foe(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 doe(e,t,n){return t&&foe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hoe(e,t,n){return t=ap(t),poe(e,GB()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}function poe(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 moe(e)}function moe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GB=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ap(e)}function yoe(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&&NS(e,t)}function NS(e,t){return NS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},NS(e,t)}function nm(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=voe(e,"string");return rl(t)=="symbol"?t:t+""}function voe(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 goe=function(t,n,r,a,s){var l=s.x1,c=s.x2,f=s.y1,d=s.y2,p=s.xAxis,m=s.yAxis;if(!p||!m)return null;var g=NA({x:p.scale,y:m.scale}),S={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},A={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:a?g.y.apply(d,{position:"end"}):g.y.rangeMax};return Xr(s,"discard")&&(!g.isInRange(S)||!g.isInRange(A))?null:NB(S,A)},rm=(function(e){function t(){return coe(this,t),hoe(this,t,arguments)}return yoe(t,e),doe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,s=r.x2,l=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,p=r.clipPathId;Tr(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Ht(a),g=Ht(s),S=Ht(l),A=Ht(c),w=this.props.shape;if(!m&&!g&&!S&&!A&&!w)return null;var x=goe(m,g,S,A,this.props);if(!x&&!w)return null;var j=Xr(this.props,"hidden")?"url(#".concat(p,")"):void 0;return B.createElement(Be,{className:Pe("recharts-reference-area",f)},t.renderRect(w,ik(ik({clipPath:j},be(this.props,!0)),x)),Wt.renderCallByParent(this.props,x))}}])})(B.Component);nm(rm,"displayName","ReferenceArea");nm(rm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});nm(rm,"renderRect",function(e,t){var n;return B.isValidElement(e)?n=B.cloneElement(e,t):Oe(e)?n=e(t):n=B.createElement(MA,PS({},t,{className:"recharts-reference-area-rect"})),n});function KB(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 boe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return jae(r,n)}function xoe(e,t,n){var r=n==="width",a=e.x,s=e.y,l=e.width,c=e.height;return t===1?{start:r?a:s,end:r?a+l:s+c}:{start:r?a+l:s+c,end:r?a:s}}function op(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-a)<=0}function Soe(e,t){return KB(e,t+1)}function woe(e,t,n,r,a){for(var s=(r||[]).slice(),l=t.start,c=t.end,f=0,d=1,p=l,m=function(){var A=r==null?void 0:r[f];if(A===void 0)return{v:KB(r,d)};var w=f,x,j=function(){return x===void 0&&(x=n(A,w)),x},_=A.coordinate,T=f===0||op(e,_,j,p,c);T||(f=0,p=l,d+=1),T&&(p=_+e*(j()/2+a),f+=d)},g;d<=s.length;)if(g=m(),g)return g.v;return[]}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 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 cn(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){Aoe(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 Aoe(e,t,n){return t=joe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function joe(e){var t=Ooe(e,"string");return $c(t)=="symbol"?t:t+""}function Ooe(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 _oe(e,t,n,r,a){for(var s=(r||[]).slice(),l=s.length,c=t.start,f=t.end,d=function(g){var S=s[g],A,w=function(){return A===void 0&&(A=n(S,g)),A};if(g===l-1){var x=e*(S.coordinate+e*w()/2-f);s[g]=S=cn(cn({},S),{},{tickCoord:x>0?S.coordinate-x*e:S.coordinate})}else s[g]=S=cn(cn({},S),{},{tickCoord:S.coordinate});var j=op(e,S.tickCoord,w,c,f);j&&(f=S.tickCoord-e*(w()/2+a),s[g]=cn(cn({},S),{},{isShow:!0}))},p=l-1;p>=0;p--)d(p);return s}function Toe(e,t,n,r,a,s){var l=(r||[]).slice(),c=l.length,f=t.start,d=t.end;if(s){var p=r[c-1],m=n(p,c-1),g=e*(p.coordinate+e*m/2-d);l[c-1]=p=cn(cn({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate});var S=op(e,p.tickCoord,function(){return m},f,d);S&&(d=p.tickCoord-e*(m/2+a),l[c-1]=cn(cn({},p),{},{isShow:!0}))}for(var A=s?c-1:c,w=function(_){var T=l[_],M,O=function(){return M===void 0&&(M=n(T,_)),M};if(_===0){var C=e*(T.coordinate-e*O()/2-f);l[_]=T=cn(cn({},T),{},{tickCoord:C<0?T.coordinate-C*e:T.coordinate})}else l[_]=T=cn(cn({},T),{},{tickCoord:T.coordinate});var P=op(e,T.tickCoord,O,f,d);P&&(f=T.tickCoord+e*(O()/2+a),l[_]=cn(cn({},T),{},{isShow:!0}))},x=0;x<A;x++)w(x);return l}function BA(e,t,n){var r=e.tick,a=e.ticks,s=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,p=e.unit,m=e.angle;if(!a||!a.length||!r)return[];if(ue(f)||Ea.isSsr)return Soe(a,typeof f=="number"&&ue(f)?f:0);var g=[],S=c==="top"||c==="bottom"?"width":"height",A=p&&S==="width"?Fu(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(T,M){var O=Oe(d)?d(T.value,M):T.value;return S==="width"?boe(Fu(O,{fontSize:t,letterSpacing:n}),A,m):Fu(O,{fontSize:t,letterSpacing:n})[S]},x=a.length>=2?mn(a[1].coordinate-a[0].coordinate):1,j=xoe(s,x,S);return f==="equidistantPreserveStart"?woe(x,j,w,a,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Toe(x,j,w,a,l,f==="preserveStartEnd"):g=_oe(x,j,w,a,l),g.filter(function(_){return _.isShow}))}var Eoe=["viewBox"],Coe=["viewBox"],Moe=["ticks"];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 Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cs.apply(this,arguments)}function 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 qt(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){qA(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 I0(e,t){if(e==null)return{};var n=Poe(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Poe(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 Noe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XB(r.key),r)}}function Roe(e,t,n){return t&&sk(e.prototype,t),n&&sk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Doe(e,t,n){return t=sp(t),koe(e,YB()?Reflect.construct(t,n||[],sp(e).constructor):t.apply(e,n))}function koe(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 Loe(e)}function Loe(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 sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sp(e)}function $oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RS(e,t)}function RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},RS(e,t)}function qA(e,t,n){return t=XB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XB(e){var t=zoe(e,"string");return il(t)=="symbol"?t:t+""}function zoe(e,t){if(il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _l=(function(e){function t(n){var r;return Noe(this,t),r=Doe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return $oe(t,e),Roe(t,[{key:"shouldComponentUpdate",value:function(r,a){var s=r.viewBox,l=I0(r,Eoe),c=this.props,f=c.viewBox,d=I0(c,Coe);return!Rs(s,f)||!Rs(l,d)||!Rs(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,s=a.x,l=a.y,c=a.width,f=a.height,d=a.orientation,p=a.tickSize,m=a.mirror,g=a.tickMargin,S,A,w,x,j,_,T=m?-1:1,M=r.tickSize||p,O=ue(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":S=A=r.coordinate,x=l+ +!m*f,w=x-T*M,_=w-T*g,j=O;break;case"left":w=x=r.coordinate,A=s+ +!m*c,S=A-T*M,j=S-T*g,_=O;break;case"right":w=x=r.coordinate,A=s+ +m*c,S=A+T*M,j=S+T*g,_=O;break;default:S=A=r.coordinate,x=l+ +m*f,w=x+T*M,_=w+T*g,j=O;break}return{line:{x1:S,y1:w,x2:A,y2:x},tick:{x:j,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,s=r.mirror,l;switch(a){case"left":l=s?"start":"end";break;case"right":l=s?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,s=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=s?"start":"end";break;default:l=s?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.orientation,d=r.mirror,p=r.axisLine,m=qt(qt(qt({},be(this.props,!1)),be(p,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);m=qt(qt({},m),{},{x1:a,y1:s+g*c,x2:a+l,y2:s+g*c})}else{var S=+(f==="left"&&!d||f==="right"&&d);m=qt(qt({},m),{},{x1:a+S*l,y1:s,x2:a+S*l,y2:s+c})}return B.createElement("line",Cs({},m,{className:Pe("recharts-cartesian-axis-line",Gn(p,"className"))}))}},{key:"renderTicks",value:function(r,a,s){var l=this,c=this.props,f=c.tickLine,d=c.stroke,p=c.tick,m=c.tickFormatter,g=c.unit,S=BA(qt(qt({},this.props),{},{ticks:r}),a,s),A=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),x=be(this.props,!1),j=be(p,!1),_=qt(qt({},x),{},{fill:"none"},be(f,!1)),T=S.map(function(M,O){var C=l.getTickLineCoord(M),P=C.line,R=C.tick,k=qt(qt(qt(qt({textAnchor:A,verticalAnchor:w},x),{},{stroke:"none",fill:d},j),R),{},{index:O,payload:M,visibleTicksCount:S.length,tickFormatter:m});return B.createElement(Be,Cs({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},xo(l.props,M,O)),f&&B.createElement("line",Cs({},_,P,{className:Pe("recharts-cartesian-axis-tick-line",Gn(f,"className"))})),p&&t.renderTickItem(p,k,"".concat(Oe(m)?m(M.value,O):M.value).concat(g||"")))});return B.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,a=this.props,s=a.axisLine,l=a.width,c=a.height,f=a.ticksGenerator,d=a.className,p=a.hide;if(p)return null;var m=this.props,g=m.ticks,S=I0(m,Moe),A=g;return Oe(f)&&(A=g&&g.length>0?f(this.props):f(S)),l<=0||c<=0||!A||!A.length?null:B.createElement(Be,{className:Pe("recharts-cartesian-axis",d),ref:function(x){r.layerReference=x}},s&&this.renderAxisLine(),this.renderTicks(A,this.state.fontSize,this.state.letterSpacing),Wt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,s){var l,c=Pe(a.className,"recharts-cartesian-axis-tick-value");return B.isValidElement(r)?l=B.cloneElement(r,qt(qt({},a),{},{className:c})):Oe(r)?l=r(qt(qt({},a),{},{className:c})):l=B.createElement(So,Cs({},a,{className:"recharts-cartesian-axis-tick-value"}),s),l}}])})(N.Component);qA(_l,"displayName","CartesianAxis");qA(_l,"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 Boe=["x1","y1","x2","y2","key"],qoe=["offset"];function Oo(e){"@babel/helpers - typeof";return Oo=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},Oo(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 fn(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){Ioe(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 Ioe(e,t,n){return t=Uoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uoe(e){var t=Voe(e,"string");return Oo(t)=="symbol"?t:t+""}function Voe(e,t){if(Oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}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 uk(e,t){if(e==null)return{};var n=Hoe(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hoe(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 Goe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,s=t.y,l=t.width,c=t.height,f=t.ry;return B.createElement("rect",{x:a,y:s,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function WB(e,t){var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(Oe(e))n=e(t);else{var r=t.x1,a=t.y1,s=t.x2,l=t.y2,c=t.key,f=uk(t,Boe),d=be(f,!1);d.offset;var p=uk(d,qoe);n=B.createElement("line",co({},p,{x1:r,y1:a,x2:s,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,s=e.horizontalPoints;if(!a||!s||!s.length)return null;var l=s.map(function(c,f){var d=fn(fn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return WB(a,d)});return B.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function Koe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,s=e.verticalPoints;if(!a||!s||!s.length)return null;var l=s.map(function(c,f){var d=fn(fn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return WB(a,d)});return B.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function Yoe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,s=e.width,l=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var p=c.map(function(g){return Math.round(g+a-a)}).sort(function(g,S){return g-S});a!==p[0]&&p.unshift(0);var m=p.map(function(g,S){var A=!p[S+1],w=A?a+l-g:p[S+1]-g;if(w<=0)return null;var x=S%t.length;return B.createElement("rect",{key:"react-".concat(S),y:g,x:r,height:w,width:s,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function Xoe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,s=e.x,l=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var p=d.map(function(g){return Math.round(g+s-s)}).sort(function(g,S){return g-S});s!==p[0]&&p.unshift(0);var m=p.map(function(g,S){var A=!p[S+1],w=A?s+c-g:p[S+1]-g;if(w<=0)return null;var x=S%r.length;return B.createElement("rect",{key:"react-".concat(S),x:g,y:l,width:w,height:f,stroke:"none",fill:r[x],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var Woe=function(t,n){var r=t.xAxis,a=t.width,s=t.height,l=t.offset;return Zz(BA(fn(fn(fn({},_l.defaultProps),r),{},{ticks:_i(r,!0),viewBox:{x:0,y:0,width:a,height:s}})),l.left,l.left+l.width,n)},Zoe=function(t,n){var r=t.yAxis,a=t.width,s=t.height,l=t.offset;return Zz(BA(fn(fn(fn({},_l.defaultProps),r),{},{ticks:_i(r,!0),viewBox:{x:0,y:0,width:a,height:s}})),l.top,l.top+l.height,n)},bs={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function lp(e){var t,n,r,a,s,l,c=kA(),f=LA(),d=zae(),p=fn(fn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:bs.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:bs.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:bs.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:bs.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:bs.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:bs.verticalFill,x:ue(e.x)?e.x:d.left,y:ue(e.y)?e.y:d.top,width:ue(e.width)?e.width:d.width,height:ue(e.height)?e.height:d.height}),m=p.x,g=p.y,S=p.width,A=p.height,w=p.syncWithTicks,x=p.horizontalValues,j=p.verticalValues,_=kae(),T=Lae();if(!ue(S)||S<=0||!ue(A)||A<=0||!ue(m)||m!==+m||!ue(g)||g!==+g)return null;var M=p.verticalCoordinatesGenerator||Woe,O=p.horizontalCoordinatesGenerator||Zoe,C=p.horizontalPoints,P=p.verticalPoints;if((!C||!C.length)&&Oe(O)){var R=x&&x.length,k=O({yAxis:T?fn(fn({},T),{},{ticks:R?x:T.ticks}):void 0,width:c,height:f,offset:d},R?!0:w);Tr(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Oo(k),"]")),Array.isArray(k)&&(C=k)}if((!P||!P.length)&&Oe(M)){var U=j&&j.length,q=M({xAxis:_?fn(fn({},_),{},{ticks:U?j:_.ticks}):void 0,width:c,height:f,offset:d},U?!0:w);Tr(Array.isArray(q),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Oo(q),"]")),Array.isArray(q)&&(P=q)}return B.createElement("g",{className:"recharts-cartesian-grid"},B.createElement(Goe,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),B.createElement(Foe,co({},p,{offset:d,horizontalPoints:C,xAxis:_,yAxis:T})),B.createElement(Koe,co({},p,{offset:d,verticalPoints:P,xAxis:_,yAxis:T})),B.createElement(Yoe,co({},p,{horizontalPoints:C})),B.createElement(Xoe,co({},p,{verticalPoints:P})))}lp.displayName="CartesianGrid";var Qoe=["type","layout","connectNulls","ref"],Joe=["key"];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 ck(e,t){if(e==null)return{};var n=ese(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ese(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 Qu(){return Qu=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},Qu.apply(this,arguments)}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 Bn(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){Ar(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 xs(e){return ise(e)||rse(e)||nse(e)||tse()}function tse(){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 nse(e,t){if(e){if(typeof e=="string")return DS(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 DS(e,t)}}function rse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ise(e){if(Array.isArray(e))return DS(e)}function DS(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 ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QB(r.key),r)}}function ose(e,t,n){return t&&dk(e.prototype,t),n&&dk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sse(e,t,n){return t=up(t),lse(e,ZB()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function lse(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 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 ZB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZB=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(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&&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 Ar(e,t,n){return t=QB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QB(e){var t=fse(e,"string");return al(t)=="symbol"?t:t+""}function fse(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 ef=(function(e){function t(){var n;ase(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=sse(this,t,[].concat(a)),Ar(n,"state",{isAnimationFinished:!0,totalLength:0}),Ar(n,"generateSimpleStrokeDasharray",function(l,c){return"".concat(c,"px ").concat(l-c,"px")}),Ar(n,"getStrokeDasharray",function(l,c,f){var d=f.reduce(function(j,_){return j+_});if(!d)return n.generateSimpleStrokeDasharray(c,l);for(var p=Math.floor(l/d),m=l%d,g=c-l,S=[],A=0,w=0;A<f.length;w+=f[A],++A)if(w+f[A]>m){S=[].concat(xs(f.slice(0,A)),[m-w]);break}var x=S.length%2===0?[0,g]:[g];return[].concat(xs(t.repeat(f,p)),xs(S),x).map(function(j){return"".concat(j,"px")}).join(", ")}),Ar(n,"id",Co("recharts-line-")),Ar(n,"pathRef",function(l){n.mainCurve=l}),Ar(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ar(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return cse(t,e),ose(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 s=this.props,l=s.points,c=s.xAxis,f=s.yAxis,d=s.layout,p=s.children,m=Fn(p,Qc);if(!m)return null;var g=function(w,x){return{x:w.x,y:w.y,value:w.value,errorVal:Ct(w.payload,x)}},S={clipPath:r?"url(#clipPath-".concat(a,")"):null};return B.createElement(Be,S,m.map(function(A){return B.cloneElement(A,{key:"bar-".concat(A.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,a,s){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,p=c.dataKey,m=be(this.props,!1),g=be(f,!0),S=d.map(function(w,x){var j=Bn(Bn(Bn({key:"dot-".concat(x),r:3},m),g),{},{index:x,cx:w.x,cy:w.y,value:w.value,dataKey:p,payload:w.payload,points:d});return t.renderDotItem(f,j)}),A={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(s,")"):null};return B.createElement(Be,Qu({className:"recharts-line-dots",key:"dots"},A),S)}},{key:"renderCurveStatically",value:function(r,a,s,l){var c=this.props,f=c.type,d=c.layout,p=c.connectNulls;c.ref;var m=ck(c,Qoe),g=Bn(Bn(Bn({},be(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(s,")"):null,points:r},l),{},{type:f,layout:d,connectNulls:p});return B.createElement(vo,Qu({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var s=this,l=this.props,c=l.points,f=l.strokeDasharray,d=l.isAnimationActive,p=l.animationBegin,m=l.animationDuration,g=l.animationEasing,S=l.animationId,A=l.animateNewValues,w=l.width,x=l.height,j=this.state,_=j.prevPoints,T=j.totalLength;return B.createElement(Cr,{begin:p,duration:m,isActive:d,easing:g,from:{t:0},to:{t:1},key:"line-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(M){var O=M.t;if(_){var C=_.length/c.length,P=c.map(function($,F){var X=Math.floor(F*C);if(_[X]){var Y=_[X],z=Vt(Y.x,$.x),K=Vt(Y.y,$.y);return Bn(Bn({},$),{},{x:z(O),y:K(O)})}if(A){var Q=Vt(w*2,$.x),ie=Vt(x/2,$.y);return Bn(Bn({},$),{},{x:Q(O),y:ie(O)})}return Bn(Bn({},$),{},{x:$.x,y:$.y})});return s.renderCurveStatically(P,r,a)}var R=Vt(0,T),k=R(O),U;if(f){var q="".concat(f).split(/[,\s]+/gim).map(function($){return parseFloat($)});U=s.getStrokeDasharray(k,T,q)}else U=s.generateSimpleStrokeDasharray(T,k);return s.renderCurveStatically(c,r,a,{strokeDasharray:U})})}},{key:"renderCurve",value:function(r,a){var s=this.props,l=s.points,c=s.isAnimationActive,f=this.state,d=f.prevPoints,p=f.totalLength;return c&&l&&l.length&&(!d&&p>0||!wo(d,l))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(l,r,a)}},{key:"render",value:function(){var r,a=this.props,s=a.hide,l=a.dot,c=a.points,f=a.className,d=a.xAxis,p=a.yAxis,m=a.top,g=a.left,S=a.width,A=a.height,w=a.isAnimationActive,x=a.id;if(s||!c||!c.length)return null;var j=this.state.isAnimationFinished,_=c.length===1,T=Pe("recharts-line",f),M=d&&d.allowDataOverflow,O=p&&p.allowDataOverflow,C=M||O,P=Te(x)?this.id:x,R=(r=be(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},k=R.r,U=k===void 0?3:k,q=R.strokeWidth,$=q===void 0?2:q,F=e$(l)?l:{},X=F.clipDot,Y=X===void 0?!0:X,z=U*2+$;return B.createElement(Be,{className:T},M||O?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(P)},B.createElement("rect",{x:M?g:g-S/2,y:O?m:m-A/2,width:M?S:S*2,height:O?A:A*2})),!Y&&B.createElement("clipPath",{id:"clipPath-dots-".concat(P)},B.createElement("rect",{x:g-z/2,y:m-z/2,width:S+z,height:A+z}))):null,!_&&this.renderCurve(C,P),this.renderErrorBar(C,P),(_||l)&&this.renderDots(C,Y,P),(!w||j)&&Yr.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 s=r.length%2!==0?[].concat(xs(r),[0]):r,l=[],c=0;c<a;++c)l=[].concat(xs(l),xs(s));return l}},{key:"renderDotItem",value:function(r,a){var s;if(B.isValidElement(r))s=B.cloneElement(r,a);else if(Oe(r))s=r(a);else{var l=a.key,c=ck(a,Joe),f=Pe("recharts-line-dot",typeof r!="boolean"?r.className:"");s=B.createElement(Jc,Qu({key:l},c,{className:f}))}return s}}])})(N.PureComponent);Ar(ef,"displayName","Line");Ar(ef,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ea.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ar(ef,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,l=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,p=t.layout,m=f.map(function(g,S){var A=Ct(g,l);return p==="horizontal"?{x:zh({axis:n,ticks:a,bandSize:c,entry:g,index:S}),y:Te(A)?null:r.scale(A),value:A,payload:g}:{x:Te(A)?null:n.scale(A),y:zh({axis:r,ticks:s,bandSize:c,entry:g,index:S}),value:A,payload:g}});return Bn({points:m,layout:p},d)});var dse=["layout","type","stroke","connectNulls","isRange","ref"],hse=["key"],JB;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 e4(e,t){if(e==null)return{};var n=pse(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pse(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 fo(){return fo=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},fo.apply(this,arguments)}function hk(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 ha(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hk(Object(n),!0).forEach(function(r){Hr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function 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,n4(r.key),r)}}function yse(e,t,n){return t&&pk(e.prototype,t),n&&pk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vse(e,t,n){return t=cp(t),gse(e,t4()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function gse(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 bse(e)}function bse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t4=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function xse(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 Hr(e,t,n){return t=n4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n4(e){var t=Sse(e,"string");return ol(t)=="symbol"?t:t+""}function Sse(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 Ri=(function(e){function t(){var n;mse(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=vse(this,t,[].concat(a)),Hr(n,"state",{isAnimationFinished:!0}),Hr(n,"id",Co("recharts-area-")),Hr(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Oe(l)&&l()}),Hr(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Oe(l)&&l()}),n}return xse(t,e),yse(t,[{key:"renderDots",value:function(r,a,s){var l=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(l&&!c)return null;var f=this.props,d=f.dot,p=f.points,m=f.dataKey,g=be(this.props,!1),S=be(d,!0),A=p.map(function(x,j){var _=ha(ha(ha({key:"dot-".concat(j),r:3},g),S),{},{index:j,cx:x.x,cy:x.y,dataKey:m,value:x.value,payload:x.payload,points:p});return t.renderDotItem(d,_)}),w={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(s,")"):null};return B.createElement(Be,fo({className:"recharts-area-dots"},w),A)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,s=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].x,d=l[l.length-1].x,p=r*Math.abs(f-d),m=va(l.map(function(g){return g.y||0}));return ue(s)&&typeof s=="number"?m=Math.max(s,m):s&&Array.isArray(s)&&s.length&&(m=Math.max(va(s.map(function(g){return g.y||0})),m)),ue(m)?B.createElement("rect",{x:f<d?f:f-p,y:0,width:p,height:Math.floor(m+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,s=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].y,d=l[l.length-1].y,p=r*Math.abs(f-d),m=va(l.map(function(g){return g.x||0}));return ue(s)&&typeof s=="number"?m=Math.max(s,m):s&&Array.isArray(s)&&s.length&&(m=Math.max(va(s.map(function(g){return g.x||0})),m)),ue(m)?B.createElement("rect",{x:0,y:f<d?f:f-p,width:m+(c?parseInt("".concat(c),10):1),height:Math.floor(p)}):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,s,l){var c=this.props,f=c.layout,d=c.type,p=c.stroke,m=c.connectNulls,g=c.isRange;c.ref;var S=e4(c,dse);return B.createElement(Be,{clipPath:s?"url(#clipPath-".concat(l,")"):null},B.createElement(vo,fo({},be(S,!0),{points:r,connectNulls:m,type:d,baseLine:a,layout:f,stroke:"none",className:"recharts-area-area"})),p!=="none"&&B.createElement(vo,fo({},be(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:m,fill:"none",points:r})),p!=="none"&&g&&B.createElement(vo,fo({},be(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:m,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var s=this,l=this.props,c=l.points,f=l.baseLine,d=l.isAnimationActive,p=l.animationBegin,m=l.animationDuration,g=l.animationEasing,S=l.animationId,A=this.state,w=A.prevPoints,x=A.prevBaseLine;return B.createElement(Cr,{begin:p,duration:m,isActive:d,easing:g,from:{t:0},to:{t:1},key:"area-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var _=j.t;if(w){var T=w.length/c.length,M=c.map(function(R,k){var U=Math.floor(k*T);if(w[U]){var q=w[U],$=Vt(q.x,R.x),F=Vt(q.y,R.y);return ha(ha({},R),{},{x:$(_),y:F(_)})}return R}),O;if(ue(f)&&typeof f=="number"){var C=Vt(x,f);O=C(_)}else if(Te(f)||Sl(f)){var P=Vt(x,0);O=P(_)}else O=f.map(function(R,k){var U=Math.floor(k*T);if(x[U]){var q=x[U],$=Vt(q.x,R.x),F=Vt(q.y,R.y);return ha(ha({},R),{},{x:$(_),y:F(_)})}return R});return s.renderAreaStatically(M,O,r,a)}return B.createElement(Be,null,B.createElement("defs",null,B.createElement("clipPath",{id:"animationClipPath-".concat(a)},s.renderClipRect(_))),B.createElement(Be,{clipPath:"url(#animationClipPath-".concat(a,")")},s.renderAreaStatically(c,f,r,a)))})}},{key:"renderArea",value:function(r,a){var s=this.props,l=s.points,c=s.baseLine,f=s.isAnimationActive,d=this.state,p=d.prevPoints,m=d.prevBaseLine,g=d.totalLength;return f&&l&&l.length&&(!p&&g>0||!wo(p,l)||!wo(m,c))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,c,r,a)}},{key:"render",value:function(){var r,a=this.props,s=a.hide,l=a.dot,c=a.points,f=a.className,d=a.top,p=a.left,m=a.xAxis,g=a.yAxis,S=a.width,A=a.height,w=a.isAnimationActive,x=a.id;if(s||!c||!c.length)return null;var j=this.state.isAnimationFinished,_=c.length===1,T=Pe("recharts-area",f),M=m&&m.allowDataOverflow,O=g&&g.allowDataOverflow,C=M||O,P=Te(x)?this.id:x,R=(r=be(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},k=R.r,U=k===void 0?3:k,q=R.strokeWidth,$=q===void 0?2:q,F=e$(l)?l:{},X=F.clipDot,Y=X===void 0?!0:X,z=U*2+$;return B.createElement(Be,{className:T},M||O?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(P)},B.createElement("rect",{x:M?p:p-S/2,y:O?d:d-A/2,width:M?S:S*2,height:O?A:A*2})),!Y&&B.createElement("clipPath",{id:"clipPath-dots-".concat(P)},B.createElement("rect",{x:p-z/2,y:d-z/2,width:S+z,height:A+z}))):null,_?null:this.renderArea(C,P),(l||_)&&this.renderDots(C,Y,P),(!w||j)&&Yr.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}}])})(N.PureComponent);JB=Ri;Hr(Ri,"displayName","Area");Hr(Ri,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ea.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Hr(Ri,"getBaseValue",function(e,t,n,r){var a=e.layout,s=e.baseValue,l=t.props.baseValue,c=l??s;if(ue(c)&&typeof c=="number")return c;var f=a==="horizontal"?r:n,d=f.scale.domain();if(f.type==="number"){var p=Math.max(d[0],d[1]),m=Math.min(d[0],d[1]);return c==="dataMin"?m:c==="dataMax"||p<0?p:Math.max(Math.min(d[0],d[1]),0)}return c==="dataMin"?d[0]:c==="dataMax"?d[1]:d[0]});Hr(Ri,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,f=e.dataKey,d=e.stackedData,p=e.dataStartIndex,m=e.displayedData,g=e.offset,S=t.layout,A=d&&d.length,w=JB.getBaseValue(t,n,r,a),x=S==="horizontal",j=!1,_=m.map(function(M,O){var C;A?C=d[p+O]:(C=Ct(M,f),Array.isArray(C)?j=!0:C=[w,C]);var P=C[1]==null||A&&Ct(M,f)==null;return x?{x:zh({axis:r,ticks:s,bandSize:c,entry:M,index:O}),y:P?null:a.scale(C[1]),value:C,payload:M}:{x:P?null:r.scale(C[1]),y:zh({axis:a,ticks:l,bandSize:c,entry:M,index:O}),value:C,payload:M}}),T;return A||j?T=_.map(function(M){var O=Array.isArray(M.value)?M.value[0]:null;return x?{x:M.x,y:O!=null&&M.y!=null?a.scale(O):null}:{x:O!=null?r.scale(O):null,y:M.y}}):T=x?a.scale(w):r.scale(w),ha({points:_,baseLine:T,layout:S,isRange:j},g)});Hr(Ri,"renderDotItem",function(e,t){var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(Oe(e))n=e(t);else{var r=Pe("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,s=e4(t,hse);n=B.createElement(Jc,fo({},s,{key:a,className:r}))}return n});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 wse(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,a4(r.key),r)}}function jse(e,t,n){return t&&Ase(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ose(e,t,n){return t=fp(t),_se(e,r4()?Reflect.construct(t,n||[],fp(e).constructor):t.apply(e,n))}function _se(e,t){if(t&&(sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tse(e)}function Tse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r4=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fp(e)}function Ese(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$S(e,t)}function $S(e,t){return $S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$S(e,t)}function i4(e,t,n){return t=a4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a4(e){var t=Cse(e,"string");return sl(t)=="symbol"?t:t+""}function Cse(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)}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 Mse(e){var t=e.xAxisId,n=kA(),r=LA(),a=BB(t);return a==null?null:N.createElement(_l,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 _i(l,!0)}}))}var Aa=(function(e){function t(){return wse(this,t),Ose(this,t,arguments)}return Ese(t,e),jse(t,[{key:"render",value:function(){return N.createElement(Mse,this.props)}}])})(N.Component);i4(Aa,"displayName","XAxis");i4(Aa,"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 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 Pse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nse(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,l4(r.key),r)}}function Rse(e,t,n){return t&&Nse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dse(e,t,n){return t=dp(t),kse(e,o4()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function kse(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 Lse(e)}function Lse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o4=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(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&&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 s4(e,t,n){return t=l4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l4(e){var t=zse(e,"string");return ll(t)=="symbol"?t:t+""}function zse(e,t){if(ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function qS(){return qS=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},qS.apply(this,arguments)}var Bse=function(t){var n=t.yAxisId,r=kA(),a=LA(),s=qB(n);return s==null?null:N.createElement(_l,qS({},s,{className:Pe("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return _i(c,!0)}}))},ja=(function(e){function t(){return Pse(this,t),Dse(this,t,arguments)}return $se(t,e),Rse(t,[{key:"render",value:function(){return N.createElement(Bse,this.props)}}])})(N.Component);s4(ja,"displayName","YAxis");s4(ja,"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 mk(e){return Vse(e)||Use(e)||Ise(e)||qse()}function qse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ise(e,t){if(e){if(typeof e=="string")return IS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IS(e,t)}}function Use(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vse(e){if(Array.isArray(e))return IS(e)}function IS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var US=function(t,n,r,a,s){var l=Fn(t,zA),c=Fn(t,tm),f=[].concat(mk(l),mk(c)),d=Fn(t,rm),p="".concat(a,"Id"),m=a[0],g=n;if(f.length&&(g=f.reduce(function(w,x){if(x.props[p]===r&&Xr(x.props,"extendDomain")&&ue(x.props[m])){var j=x.props[m];return[Math.min(w[0],j),Math.max(w[1],j)]}return w},g)),d.length){var S="".concat(m,"1"),A="".concat(m,"2");g=d.reduce(function(w,x){if(x.props[p]===r&&Xr(x.props,"extendDomain")&&ue(x.props[S])&&ue(x.props[A])){var j=x.props[S],_=x.props[A];return[Math.min(w[0],j,_),Math.max(w[1],j,_)]}return w},g)}return s&&s.length&&(g=s.reduce(function(w,x){return ue(x)?[Math.min(w[0],x),Math.max(w[1],x)]:w},g)),g},U0={exports:{}},yk;function Hse(){return yk||(yk=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,d,p){this.fn=f,this.context=d,this.once=p||!1}function s(f,d,p,m,g){if(typeof p!="function")throw new TypeError("The listener must be a function");var S=new a(p,m||f,g),A=n?n+d:d;return f._events[A]?f._events[A].fn?f._events[A]=[f._events[A],S]:f._events[A].push(S):(f._events[A]=S,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],p,m;if(this._eventsCount===0)return d;for(m in p=this._events)t.call(p,m)&&d.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},c.prototype.listeners=function(d){var p=n?n+d:d,m=this._events[p];if(!m)return[];if(m.fn)return[m.fn];for(var g=0,S=m.length,A=new Array(S);g<S;g++)A[g]=m[g].fn;return A},c.prototype.listenerCount=function(d){var p=n?n+d:d,m=this._events[p];return m?m.fn?1:m.length:0},c.prototype.emit=function(d,p,m,g,S,A){var w=n?n+d:d;if(!this._events[w])return!1;var x=this._events[w],j=arguments.length,_,T;if(x.fn){switch(x.once&&this.removeListener(d,x.fn,void 0,!0),j){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,p),!0;case 3:return x.fn.call(x.context,p,m),!0;case 4:return x.fn.call(x.context,p,m,g),!0;case 5:return x.fn.call(x.context,p,m,g,S),!0;case 6:return x.fn.call(x.context,p,m,g,S,A),!0}for(T=1,_=new Array(j-1);T<j;T++)_[T-1]=arguments[T];x.fn.apply(x.context,_)}else{var M=x.length,O;for(T=0;T<M;T++)switch(x[T].once&&this.removeListener(d,x[T].fn,void 0,!0),j){case 1:x[T].fn.call(x[T].context);break;case 2:x[T].fn.call(x[T].context,p);break;case 3:x[T].fn.call(x[T].context,p,m);break;case 4:x[T].fn.call(x[T].context,p,m,g);break;default:if(!_)for(O=1,_=new Array(j-1);O<j;O++)_[O-1]=arguments[O];x[T].fn.apply(x[T].context,_)}}return!0},c.prototype.on=function(d,p,m){return s(this,d,p,m,!1)},c.prototype.once=function(d,p,m){return s(this,d,p,m,!0)},c.prototype.removeListener=function(d,p,m,g){var S=n?n+d:d;if(!this._events[S])return this;if(!p)return l(this,S),this;var A=this._events[S];if(A.fn)A.fn===p&&(!g||A.once)&&(!m||A.context===m)&&l(this,S);else{for(var w=0,x=[],j=A.length;w<j;w++)(A[w].fn!==p||g&&!A[w].once||m&&A[w].context!==m)&&x.push(A[w]);x.length?this._events[S]=x.length===1?x[0]:x:l(this,S)}return this},c.prototype.removeAllListeners=function(d){var p;return d?(p=n?n+d:d,this._events[p]&&l(this,p)):(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})(U0)),U0.exports}var Gse=Hse();const Fse=et(Gse);var V0=new Fse,H0="recharts.syncMouseEvents";function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}function Kse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yse(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,u4(r.key),r)}}function Xse(e,t,n){return t&&Yse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G0(e,t,n){return t=u4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u4(e){var t=Wse(e,"string");return zc(t)=="symbol"?t:t+""}function Wse(e,t){if(zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zse=(function(){function e(){Kse(this,e),G0(this,"activeIndex",0),G0(this,"coordinateList",[]),G0(this,"layout","horizontal")}return Xse(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,s=a===void 0?null:a,l=n.container,c=l===void 0?null:l,f=n.layout,d=f===void 0?null:f,p=n.offset,m=p===void 0?null:p,g=n.mouseHandlerCallback,S=g===void 0?null:g;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=m??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(),s=a.x,l=a.y,c=a.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,p=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=s+f+d,g=l+this.offset.top+c/2+p;this.mouseHandlerCallback({pageX:m,pageY:g})}}}])})();function Qse(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 Jse(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 c4(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,s=e.endAngle,l=ft(t,n,r,a),c=ft(t,n,r,s);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:s}}function ele(e,t,n){var r,a,s,l;if(e==="horizontal")r=t.x,s=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,p=t.outerRadius,m=t.angle,g=ft(c,f,d,m),S=ft(c,f,p,m);r=g.x,a=g.y,s=S.x,l=S.y}else return c4(t);return[{x:r,y:a},{x:s,y:l}]}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 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 Bd(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){tle(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 tle(e,t,n){return t=nle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nle(e){var t=rle(e,"string");return Bc(t)=="symbol"?t:t+""}function rle(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 ile(e){var t,n,r=e.element,a=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,p=e.tooltipAxisBandSize,m=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||!s||!l||g!=="ScatterChart"&&a!=="axis")return null;var A,w=vo;if(g==="ScatterChart")A=l,w=yre;else if(g==="BarChart")A=Jse(m,l,f,p),w=MA;else if(m==="radial"){var x=c4(l),j=x.cx,_=x.cy,T=x.radius,M=x.startAngle,O=x.endAngle;A={cx:j,cy:_,startAngle:M,endAngle:O,innerRadius:T,outerRadius:T},w=lB}else A={points:ele(m,l,f)},w=vo;var C=Bd(Bd(Bd(Bd({stroke:"#ccc",pointerEvents:"none"},f),A),be(S,!1)),{},{payload:c,payloadIndex:d,className:Pe("recharts-tooltip-cursor",S.className)});return N.isValidElement(S)?N.cloneElement(S,C):N.createElement(w,C)}var ale=["item"],ole=["children","className","width","height","style","compact","title","desc"];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 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 gk(e,t){return ule(e)||lle(e,t)||d4(e,t)||sle()}function sle(){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 lle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(p){d=!0,a=p}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function ule(e){if(Array.isArray(e))return e}function bk(e,t){if(e==null)return{};var n=cle(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cle(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 fle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dle(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,h4(r.key),r)}}function hle(e,t,n){return t&&dle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ple(e,t,n){return t=hp(t),mle(e,f4()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function mle(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 yle(e)}function yle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f4=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function vle(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 cl(e){return xle(e)||ble(e)||d4(e)||gle()}function gle(){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 d4(e,t){if(e){if(typeof e=="string")return HS(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 HS(e,t)}}function ble(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xle(e){if(Array.isArray(e))return HS(e)}function HS(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 xk(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?xk(Object(n),!0).forEach(function(r){je(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function je(e,t,n){return t=h4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h4(e){var t=Sle(e,"string");return ul(t)=="symbol"?t:t+""}function Sle(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(t==="string"?String:Number)(e)}var wle={xAxis:["bottom","top"],yAxis:["left","right"]},Ale={width:"100%",height:"100%"},p4={x:0,y:0};function qd(e){return e}var jle=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Ole=function(t,n,r,a){var s=n.find(function(p){return p&&p.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:s.coordinate};if(t==="centric"){var l=s.coordinate,c=a.radius;return ne(ne(ne({},a),ft(a.cx,a.cy,c,l)),{},{angle:l,radius:c})}var f=s.coordinate,d=a.angle;return ne(ne(ne({},a),ft(a.cx,a.cy,f,d)),{},{angle:d,radius:f})}return p4},im=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,s=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(cl(c),cl(d)):c},[]);return l.length>0?l:t&&t.length&&ue(a)&&ue(s)?t.slice(a,s+1):[]};function m4(e){return e==="number"?[0,"auto"]:void 0}var GS=function(t,n,r,a){var s=t.graphicalItems,l=t.tooltipAxis,c=im(n,t);return r<0||!s||!s.length||r>=c.length?null:s.reduce(function(f,d){var p,m=(p=d.props.data)!==null&&p!==void 0?p:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var S=m===void 0?c:m;g=fh(S,l.dataKey,a)}else g=m&&m[r]||c[r];return g?[].concat(cl(f),[nB(d,g)]):f},[])},Sk=function(t,n,r,a){var s=a||{x:t.chartX,y:t.chartY},l=jle(s,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,p=$J(l,c,d,f);if(p>=0&&d){var m=d[p]&&d[p].value,g=GS(t,n,p,m),S=Ole(r,c,p,s);return{activeTooltipIndex:p,activeLabel:m,activePayload:g,activeCoordinate:S}}return null},_le=function(t,n){var r=n.axes,a=n.graphicalItems,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,p=t.layout,m=t.children,g=t.stackOffset,S=Wz(p,s);return r.reduce(function(A,w){var x,j=w.type.defaultProps!==void 0?ne(ne({},w.type.defaultProps),w.props):w.props,_=j.type,T=j.dataKey,M=j.allowDataOverflow,O=j.allowDuplicatedCategory,C=j.scale,P=j.ticks,R=j.includeHidden,k=j[l];if(A[k])return A;var U=im(t.data,{graphicalItems:a.filter(function(H){var re,fe=l in H.props?H.props[l]:(re=H.type.defaultProps)===null||re===void 0?void 0:re[l];return fe===k}),dataStartIndex:f,dataEndIndex:d}),q=U.length,$,F,X;Qse(j.domain,M,_)&&($=iS(j.domain,null,M),S&&(_==="number"||C!=="auto")&&(X=Yu(U,T,"category")));var Y=m4(_);if(!$||$.length===0){var z,K=(z=j.domain)!==null&&z!==void 0?z:Y;if(T){if($=Yu(U,T,_),_==="category"&&S){var Q=PG($);O&&Q?(F=$,$=Qh(0,q)):O||($=SR(K,$,w).reduce(function(H,re){return H.indexOf(re)>=0?H:[].concat(cl(H),[re])},[]))}else if(_==="category")O?$=$.filter(function(H){return H!==""&&!Te(H)}):$=SR(K,$,w).reduce(function(H,re){return H.indexOf(re)>=0||re===""||Te(re)?H:[].concat(cl(H),[re])},[]);else if(_==="number"){var ie=UJ(U,a.filter(function(H){var re,fe,ve=l in H.props?H.props[l]:(re=H.type.defaultProps)===null||re===void 0?void 0:re[l],we="hide"in H.props?H.props.hide:(fe=H.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return ve===k&&(R||!we)}),T,s,p);ie&&($=ie)}S&&(_==="number"||C!=="auto")&&(X=Yu(U,T,"category"))}else S?$=Qh(0,q):c&&c[k]&&c[k].hasStack&&_==="number"?$=g==="expand"?[0,1]:tB(c[k].stackGroups,f,d):$=Xz(U,a.filter(function(H){var re=l in H.props?H.props[l]:H.type.defaultProps[l],fe="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return re===k&&(R||!fe)}),_,p,!0);if(_==="number")$=US(m,$,k,s,P),K&&($=iS(K,$,M));else if(_==="category"&&K){var se=K,L=$.every(function(H){return se.indexOf(H)>=0});L&&($=se)}}return ne(ne({},A),{},je({},k,ne(ne({},j),{},{axisType:s,domain:$,categoricalDomain:X,duplicateDomain:F,originalDomain:(x=j.domain)!==null&&x!==void 0?x:Y,isCategorical:S,layout:p})))},{})},Tle=function(t,n){var r=n.graphicalItems,a=n.Axis,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,p=t.layout,m=t.children,g=im(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),S=g.length,A=Wz(p,s),w=-1;return r.reduce(function(x,j){var _=j.type.defaultProps!==void 0?ne(ne({},j.type.defaultProps),j.props):j.props,T=_[l],M=m4("number");if(!x[T]){w++;var O;return A?O=Qh(0,S):c&&c[T]&&c[T].hasStack?(O=tB(c[T].stackGroups,f,d),O=US(m,O,T,s)):(O=iS(M,Xz(g,r.filter(function(C){var P,R,k=l in C.props?C.props[l]:(P=C.type.defaultProps)===null||P===void 0?void 0:P[l],U="hide"in C.props?C.props.hide:(R=C.type.defaultProps)===null||R===void 0?void 0:R.hide;return k===T&&!U}),"number",p),a.defaultProps.allowDataOverflow),O=US(m,O,T,s)),ne(ne({},x),{},je({},T,ne(ne({axisType:s},a.defaultProps),{},{hide:!0,orientation:Gn(wle,"".concat(s,".").concat(w%2),null),domain:O,originalDomain:M,isCategorical:A,layout:p})))}return x},{})},Ele=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,s=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,p=t.children,m="".concat(a,"Id"),g=Fn(p,s),S={};return g&&g.length?S=_le(t,{axes:g,graphicalItems:l,axisType:a,axisIdKey:m,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):l&&l.length&&(S=Tle(t,{Axis:s,graphicalItems:l,axisType:a,axisIdKey:m,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),S},Cle=function(t){var n=ma(t),r=_i(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:rA(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Bh(n,r)}},wk=function(t){var n=t.children,r=t.defaultShowTooltip,a=In(n,Js),s=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(s=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Mle=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ti(n&&n.type);return r&&r.indexOf("Bar")>=0})},Ak=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"}},Ple=function(t,n){var r=t.props,a=t.graphicalItems,s=t.xAxisMap,l=s===void 0?{}:s,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,p=r.height,m=r.children,g=r.margin||{},S=In(m,Js),A=In(m,Ds),w=Object.keys(f).reduce(function(O,C){var P=f[C],R=P.orientation;return!P.mirror&&!P.hide?ne(ne({},O),{},je({},R,O[R]+P.width)):O},{left:g.left||0,right:g.right||0}),x=Object.keys(l).reduce(function(O,C){var P=l[C],R=P.orientation;return!P.mirror&&!P.hide?ne(ne({},O),{},je({},R,Gn(O,"".concat(R))+P.height)):O},{top:g.top||0,bottom:g.bottom||0}),j=ne(ne({},x),w),_=j.bottom;S&&(j.bottom+=S.props.height||Js.defaultProps.height),A&&n&&(j=qJ(j,a,r,n));var T=d-j.left-j.right,M=p-j.top-j.bottom;return ne(ne({brushBottom:_},j),{},{width:Math.max(T,0),height:Math.max(M,0)})},Nle=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},am=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,s=a===void 0?"axis":a,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,d=t.legendContent,p=t.formatAxisMap,m=t.defaultProps,g=function(j,_){var T=_.graphicalItems,M=_.stackGroups,O=_.offset,C=_.updateId,P=_.dataStartIndex,R=_.dataEndIndex,k=j.barSize,U=j.layout,q=j.barGap,$=j.barCategoryGap,F=j.maxBarSize,X=Ak(U),Y=X.numericAxisName,z=X.cateAxisName,K=Mle(T),Q=[];return T.forEach(function(ie,se){var L=im(j.data,{graphicalItems:[ie],dataStartIndex:P,dataEndIndex:R}),H=ie.type.defaultProps!==void 0?ne(ne({},ie.type.defaultProps),ie.props):ie.props,re=H.dataKey,fe=H.maxBarSize,ve=H["".concat(Y,"Id")],we=H["".concat(z,"Id")],Le={},Ye=f.reduce(function(mr,ti){var Tl=_["".concat(ti.axisType,"Map")],ln=H["".concat(ti.axisType,"Id")];Tl&&Tl[ln]||ti.axisType==="zAxis"||jo();var tf=Tl[ln];return ne(ne({},mr),{},je(je({},ti.axisType,tf),"".concat(ti.axisType,"Ticks"),_i(tf)))},Le),ce=Ye[z],_e=Ye["".concat(z,"Ticks")],Ce=M&&M[ve]&&M[ve].hasStack&&ZJ(ie,M[ve].stackGroups),le=Ti(ie.type).indexOf("Bar")>=0,dt=Bh(ce,_e),Re=[],St=K&&zJ({barSize:k,stackGroups:M,totalSize:Nle(Ye,z)});if(le){var wt,sn,pr=Te(fe)?F:fe,Lr=(wt=(sn=Bh(ce,_e,!0))!==null&&sn!==void 0?sn:pr)!==null&&wt!==void 0?wt:0;Re=BJ({barGap:q,barCategoryGap:$,bandSize:Lr!==dt?Lr:dt,sizeList:St[we],maxBarSize:pr}),Lr!==dt&&(Re=Re.map(function(mr){return ne(ne({},mr),{},{position:ne(ne({},mr.position),{},{offset:mr.position.offset-Lr/2})})}))}var zi=ie&&ie.type&&ie.type.getComposedData;zi&&Q.push({props:ne(ne({},zi(ne(ne({},Ye),{},{displayedData:L,props:j,dataKey:re,item:ie,bandSize:dt,barPosition:Re,offset:O,stackedData:Ce,layout:U,dataStartIndex:P,dataEndIndex:R}))),{},je(je(je({key:ie.key||"item-".concat(se)},Y,Ye[Y]),z,Ye[z]),"animationId",C)),childIndex:VG(ie,j.children),item:ie})}),Q},S=function(j,_){var T=j.props,M=j.dataStartIndex,O=j.dataEndIndex,C=j.updateId;if(!LC({props:T}))return null;var P=T.children,R=T.layout,k=T.stackOffset,U=T.data,q=T.reverseStackOrder,$=Ak(R),F=$.numericAxisName,X=$.cateAxisName,Y=Fn(P,r),z=XJ(U,Y,"".concat(F,"Id"),"".concat(X,"Id"),k,q),K=f.reduce(function(H,re){var fe="".concat(re.axisType,"Map");return ne(ne({},H),{},je({},fe,Ele(T,ne(ne({},re),{},{graphicalItems:Y,stackGroups:re.axisType===F&&z,dataStartIndex:M,dataEndIndex:O}))))},{}),Q=Ple(ne(ne({},K),{},{props:T,graphicalItems:Y}),_==null?void 0:_.legendBBox);Object.keys(K).forEach(function(H){K[H]=p(T,K[H],Q,H.replace("Map",""),n)});var ie=K["".concat(X,"Map")],se=Cle(ie),L=g(T,ne(ne({},K),{},{dataStartIndex:M,dataEndIndex:O,updateId:C,graphicalItems:Y,stackGroups:z,offset:Q}));return ne(ne({formattedGraphicalItems:L,graphicalItems:Y,offset:Q,stackGroups:z},se),K)},A=(function(x){function j(_){var T,M,O;return fle(this,j),O=ple(this,j,[_]),je(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),je(O,"accessibilityManager",new Zse),je(O,"handleLegendBBoxUpdate",function(C){if(C){var P=O.state,R=P.dataStartIndex,k=P.dataEndIndex,U=P.updateId;O.setState(ne({legendBBox:C},S({props:O.props,dataStartIndex:R,dataEndIndex:k,updateId:U},ne(ne({},O.state),{},{legendBBox:C}))))}}),je(O,"handleReceiveSyncEvent",function(C,P,R){if(O.props.syncId===C){if(R===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(P)}}),je(O,"handleBrushChange",function(C){var P=C.startIndex,R=C.endIndex;if(P!==O.state.dataStartIndex||R!==O.state.dataEndIndex){var k=O.state.updateId;O.setState(function(){return ne({dataStartIndex:P,dataEndIndex:R},S({props:O.props,dataStartIndex:P,dataEndIndex:R,updateId:k},O.state))}),O.triggerSyncEvent({dataStartIndex:P,dataEndIndex:R})}}),je(O,"handleMouseEnter",function(C){var P=O.getMouseInfo(C);if(P){var R=ne(ne({},P),{},{isTooltipActive:!0});O.setState(R),O.triggerSyncEvent(R);var k=O.props.onMouseEnter;Oe(k)&&k(R,C)}}),je(O,"triggeredAfterMouseMove",function(C){var P=O.getMouseInfo(C),R=P?ne(ne({},P),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(R),O.triggerSyncEvent(R);var k=O.props.onMouseMove;Oe(k)&&k(R,C)}),je(O,"handleItemMouseEnter",function(C){O.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),je(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),je(O,"handleMouseMove",function(C){C.persist(),O.throttleTriggeredAfterMouseMove(C)}),je(O,"handleMouseLeave",function(C){O.throttleTriggeredAfterMouseMove.cancel();var P={isTooltipActive:!1};O.setState(P),O.triggerSyncEvent(P);var R=O.props.onMouseLeave;Oe(R)&&R(P,C)}),je(O,"handleOuterEvent",function(C){var P=UG(C),R=Gn(O.props,"".concat(P));if(P&&Oe(R)){var k,U;/.*touch.*/i.test(P)?U=O.getMouseInfo(C.changedTouches[0]):U=O.getMouseInfo(C),R((k=U)!==null&&k!==void 0?k:{},C)}}),je(O,"handleClick",function(C){var P=O.getMouseInfo(C);if(P){var R=ne(ne({},P),{},{isTooltipActive:!0});O.setState(R),O.triggerSyncEvent(R);var k=O.props.onClick;Oe(k)&&k(R,C)}}),je(O,"handleMouseDown",function(C){var P=O.props.onMouseDown;if(Oe(P)){var R=O.getMouseInfo(C);P(R,C)}}),je(O,"handleMouseUp",function(C){var P=O.props.onMouseUp;if(Oe(P)){var R=O.getMouseInfo(C);P(R,C)}}),je(O,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),je(O,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseDown(C.changedTouches[0])}),je(O,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseUp(C.changedTouches[0])}),je(O,"handleDoubleClick",function(C){var P=O.props.onDoubleClick;if(Oe(P)){var R=O.getMouseInfo(C);P(R,C)}}),je(O,"handleContextMenu",function(C){var P=O.props.onContextMenu;if(Oe(P)){var R=O.getMouseInfo(C);P(R,C)}}),je(O,"triggerSyncEvent",function(C){O.props.syncId!==void 0&&V0.emit(H0,O.props.syncId,C,O.eventEmitterSymbol)}),je(O,"applySyncEvent",function(C){var P=O.props,R=P.layout,k=P.syncMethod,U=O.state.updateId,q=C.dataStartIndex,$=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)O.setState(ne({dataStartIndex:q,dataEndIndex:$},S({props:O.props,dataStartIndex:q,dataEndIndex:$,updateId:U},O.state)));else if(C.activeTooltipIndex!==void 0){var F=C.chartX,X=C.chartY,Y=C.activeTooltipIndex,z=O.state,K=z.offset,Q=z.tooltipTicks;if(!K)return;if(typeof k=="function")Y=k(Q,C);else if(k==="value"){Y=-1;for(var ie=0;ie<Q.length;ie++)if(Q[ie].value===C.activeLabel){Y=ie;break}}var se=ne(ne({},K),{},{x:K.left,y:K.top}),L=Math.min(F,se.x+se.width),H=Math.min(X,se.y+se.height),re=Q[Y]&&Q[Y].value,fe=GS(O.state,O.props.data,Y),ve=Q[Y]?{x:R==="horizontal"?Q[Y].coordinate:L,y:R==="horizontal"?H:Q[Y].coordinate}:p4;O.setState(ne(ne({},C),{},{activeLabel:re,activeCoordinate:ve,activePayload:fe,activeTooltipIndex:Y}))}else O.setState(C)}),je(O,"renderCursor",function(C){var P,R=O.state,k=R.isTooltipActive,U=R.activeCoordinate,q=R.activePayload,$=R.offset,F=R.activeTooltipIndex,X=R.tooltipAxisBandSize,Y=O.getTooltipEventType(),z=(P=C.props.active)!==null&&P!==void 0?P:k,K=O.props.layout,Q=C.key||"_recharts-cursor";return B.createElement(ile,{key:Q,activeCoordinate:U,activePayload:q,activeTooltipIndex:F,chartName:n,element:C,isActive:z,layout:K,offset:$,tooltipAxisBandSize:X,tooltipEventType:Y})}),je(O,"renderPolarAxis",function(C,P,R){var k=Gn(C,"type.axisType"),U=Gn(O.state,"".concat(k,"Map")),q=C.type.defaultProps,$=q!==void 0?ne(ne({},q),C.props):C.props,F=U&&U[$["".concat(k,"Id")]];return N.cloneElement(C,ne(ne({},F),{},{className:Pe(k,F.className),key:C.key||"".concat(P,"-").concat(R),ticks:_i(F,!0)}))}),je(O,"renderPolarGrid",function(C){var P=C.props,R=P.radialLines,k=P.polarAngles,U=P.polarRadius,q=O.state,$=q.radiusAxisMap,F=q.angleAxisMap,X=ma($),Y=ma(F),z=Y.cx,K=Y.cy,Q=Y.innerRadius,ie=Y.outerRadius;return N.cloneElement(C,{polarAngles:Array.isArray(k)?k:_i(Y,!0).map(function(se){return se.coordinate}),polarRadius:Array.isArray(U)?U:_i(X,!0).map(function(se){return se.coordinate}),cx:z,cy:K,innerRadius:Q,outerRadius:ie,key:C.key||"polar-grid",radialLines:R})}),je(O,"renderLegend",function(){var C=O.state.formattedGraphicalItems,P=O.props,R=P.children,k=P.width,U=P.height,q=O.props.margin||{},$=k-(q.left||0)-(q.right||0),F=Kz({children:R,formattedGraphicalItems:C,legendWidth:$,legendContent:d});if(!F)return null;var X=F.item,Y=bk(F,ale);return N.cloneElement(X,ne(ne({},Y),{},{chartWidth:k,chartHeight:U,margin:q,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),je(O,"renderTooltip",function(){var C,P=O.props,R=P.children,k=P.accessibilityLayer,U=In(R,Un);if(!U)return null;var q=O.state,$=q.isTooltipActive,F=q.activeCoordinate,X=q.activePayload,Y=q.activeLabel,z=q.offset,K=(C=U.props.active)!==null&&C!==void 0?C:$;return N.cloneElement(U,{viewBox:ne(ne({},z),{},{x:z.left,y:z.top}),active:K,label:Y,payload:K?X:[],coordinate:F,accessibilityLayer:k})}),je(O,"renderBrush",function(C){var P=O.props,R=P.margin,k=P.data,U=O.state,q=U.offset,$=U.dataStartIndex,F=U.dataEndIndex,X=U.updateId;return N.cloneElement(C,{key:C.key||"_recharts-brush",onChange:kd(O.handleBrushChange,C.props.onChange),data:k,x:ue(C.props.x)?C.props.x:q.left,y:ue(C.props.y)?C.props.y:q.top+q.height+q.brushBottom-(R.bottom||0),width:ue(C.props.width)?C.props.width:q.width,startIndex:$,endIndex:F,updateId:"brush-".concat(X)})}),je(O,"renderReferenceElement",function(C,P,R){if(!C)return null;var k=O,U=k.clipPathId,q=O.state,$=q.xAxisMap,F=q.yAxisMap,X=q.offset,Y=C.type.defaultProps||{},z=C.props,K=z.xAxisId,Q=K===void 0?Y.xAxisId:K,ie=z.yAxisId,se=ie===void 0?Y.yAxisId:ie;return N.cloneElement(C,{key:C.key||"".concat(P,"-").concat(R),xAxis:$[Q],yAxis:F[se],viewBox:{x:X.left,y:X.top,width:X.width,height:X.height},clipPathId:U})}),je(O,"renderActivePoints",function(C){var P=C.item,R=C.activePoint,k=C.basePoint,U=C.childIndex,q=C.isRange,$=[],F=P.props.key,X=P.item.type.defaultProps!==void 0?ne(ne({},P.item.type.defaultProps),P.item.props):P.item.props,Y=X.activeDot,z=X.dataKey,K=ne(ne({index:U,dataKey:z,cx:R.x,cy:R.y,r:4,fill:CA(P.item),strokeWidth:2,stroke:"#fff",payload:R.payload,value:R.value},be(Y,!1)),dh(Y));return $.push(j.renderActiveDot(Y,K,"".concat(F,"-activePoint-").concat(U))),k?$.push(j.renderActiveDot(Y,ne(ne({},K),{},{cx:k.x,cy:k.y}),"".concat(F,"-basePoint-").concat(U))):q&&$.push(null),$}),je(O,"renderGraphicChild",function(C,P,R){var k=O.filterFormatItem(C,P,R);if(!k)return null;var U=O.getTooltipEventType(),q=O.state,$=q.isTooltipActive,F=q.tooltipAxis,X=q.activeTooltipIndex,Y=q.activeLabel,z=O.props.children,K=In(z,Un),Q=k.props,ie=Q.points,se=Q.isRange,L=Q.baseLine,H=k.item.type.defaultProps!==void 0?ne(ne({},k.item.type.defaultProps),k.item.props):k.item.props,re=H.activeDot,fe=H.hide,ve=H.activeBar,we=H.activeShape,Le=!!(!fe&&$&&K&&(re||ve||we)),Ye={};U!=="axis"&&K&&K.props.trigger==="click"?Ye={onClick:kd(O.handleItemMouseEnter,C.props.onClick)}:U!=="axis"&&(Ye={onMouseLeave:kd(O.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:kd(O.handleItemMouseEnter,C.props.onMouseEnter)});var ce=N.cloneElement(C,ne(ne({},k.props),Ye));function _e(ti){return typeof F.dataKey=="function"?F.dataKey(ti.payload):null}if(Le)if(X>=0){var Ce,le;if(F.dataKey&&!F.allowDuplicatedCategory){var dt=typeof F.dataKey=="function"?_e:"payload.".concat(F.dataKey.toString());Ce=fh(ie,dt,Y),le=se&&L&&fh(L,dt,Y)}else Ce=ie==null?void 0:ie[X],le=se&&L&&L[X];if(we||ve){var Re=C.props.activeIndex!==void 0?C.props.activeIndex:X;return[N.cloneElement(C,ne(ne(ne({},k.props),Ye),{},{activeIndex:Re})),null,null]}if(!Te(Ce))return[ce].concat(cl(O.renderActivePoints({item:k,activePoint:Ce,basePoint:le,childIndex:X,isRange:se})))}else{var St,wt=(St=O.getItemByXY(O.state.activeCoordinate))!==null&&St!==void 0?St:{graphicalItem:ce},sn=wt.graphicalItem,pr=sn.item,Lr=pr===void 0?C:pr,zi=sn.childIndex,mr=ne(ne(ne({},k.props),Ye),{},{activeIndex:zi});return[N.cloneElement(Lr,mr),null,null]}return se?[ce,null,null]:[ce,null]}),je(O,"renderCustomized",function(C,P,R){return N.cloneElement(C,ne(ne({key:"recharts-customized-".concat(R)},O.props),O.state))}),je(O,"renderMap",{CartesianGrid:{handler:qd,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:qd},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:qd},YAxis:{handler:qd},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:Co("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=K$(O.triggeredAfterMouseMove,(M=_.throttleDelay)!==null&&M!==void 0?M:1e3/60),O.state={},O}return vle(j,x),hle(j,[{key:"componentDidMount",value:function(){var T,M;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,M=T.children,O=T.data,C=T.height,P=T.layout,R=In(M,Un);if(R){var k=R.props.defaultIndex;if(!(typeof k!="number"||k<0||k>this.state.tooltipTicks.length-1)){var U=this.state.tooltipTicks[k]&&this.state.tooltipTicks[k].value,q=GS(this.state,O,k,U),$=this.state.tooltipTicks[k].coordinate,F=(this.state.offset.top+C)/2,X=P==="horizontal",Y=X?{x:$,y:F}:{y:$,x:F},z=this.state.formattedGraphicalItems.find(function(Q){var ie=Q.item;return ie.type.name==="Scatter"});z&&(Y=ne(ne({},Y),z.props.points[k].tooltipPosition),q=z.props.points[k].tooltipPayload);var K={activeTooltipIndex:k,isTooltipActive:!0,activeLabel:U,activePayload:q,activeCoordinate:Y};this.setState(K),this.renderCursor(R),this.accessibilityManager.setIndex(k)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,M){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==M.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,C;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(T){_1([In(T.children,Un)],[In(this.props.children,Un)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=In(this.props.children,Un);if(T&&typeof T.props.shared=="boolean"){var M=T.props.shared?"axis":"item";return c.indexOf(M)>=0?M:s}return s}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var M=this.container,O=M.getBoundingClientRect(),C=CX(O),P={chartX:Math.round(T.pageX-C.left),chartY:Math.round(T.pageY-C.top)},R=O.width/M.offsetWidth||1,k=this.inRange(P.chartX,P.chartY,R);if(!k)return null;var U=this.state,q=U.xAxisMap,$=U.yAxisMap,F=this.getTooltipEventType(),X=Sk(this.state,this.props.data,this.props.layout,k);if(F!=="axis"&&q&&$){var Y=ma(q).scale,z=ma($).scale,K=Y&&Y.invert?Y.invert(P.chartX):null,Q=z&&z.invert?z.invert(P.chartY):null;return ne(ne({},P),{},{xValue:K,yValue:Q},X)}return X?ne(ne({},P),X):null}},{key:"inRange",value:function(T,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,P=T/O,R=M/O;if(C==="horizontal"||C==="vertical"){var k=this.state.offset,U=P>=k.left&&P<=k.left+k.width&&R>=k.top&&R<=k.top+k.height;return U?{x:P,y:R}:null}var q=this.state,$=q.angleAxisMap,F=q.radiusAxisMap;if($&&F){var X=ma($);return jR({x:P,y:R},X)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,M=this.getTooltipEventType(),O=In(T,Un),C={};O&&M==="axis"&&(O.props.trigger==="click"?C={onClick:this.handleClick}:C={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 P=dh(this.props,this.handleOuterEvent);return ne(ne({},P),C)}},{key:"addListener",value:function(){V0.on(H0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){V0.removeListener(H0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,M,O){for(var C=this.state.formattedGraphicalItems,P=0,R=C.length;P<R;P++){var k=C[P];if(k.item===T||k.props.key===T.key||M===Ti(k.item.type)&&O===k.childIndex)return k}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,M=this.state.offset,O=M.left,C=M.top,P=M.height,R=M.width;return B.createElement("defs",null,B.createElement("clipPath",{id:T},B.createElement("rect",{x:O,y:C,height:P,width:R})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(M,O){var C=gk(O,2),P=C[0],R=C[1];return ne(ne({},M),{},je({},P,R.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(M,O){var C=gk(O,2),P=C[0],R=C[1];return ne(ne({},M),{},je({},P,R.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var M;return(M=this.state.xAxisMap)===null||M===void 0||(M=M[T])===null||M===void 0?void 0:M.scale}},{key:"getYScaleByAxisId",value:function(T){var M;return(M=this.state.yAxisMap)===null||M===void 0||(M=M[T])===null||M===void 0?void 0:M.scale}},{key:"getItemByXY",value:function(T){var M=this.state,O=M.formattedGraphicalItems,C=M.activeItem;if(O&&O.length)for(var P=0,R=O.length;P<R;P++){var k=O[P],U=k.props,q=k.item,$=q.type.defaultProps!==void 0?ne(ne({},q.type.defaultProps),q.props):q.props,F=Ti(q.type);if(F==="Bar"){var X=(U.data||[]).find(function(Q){return Wne(T,Q)});if(X)return{graphicalItem:k,payload:X}}else if(F==="RadialBar"){var Y=(U.data||[]).find(function(Q){return jR(T,Q)});if(Y)return{graphicalItem:k,payload:Y}}else if(Zp(k,C)||Qp(k,C)||Rc(k,C)){var z=bie({graphicalItem:k,activeTooltipItem:C,itemData:$.data}),K=$.activeIndex===void 0?z:$.activeIndex;return{graphicalItem:ne(ne({},k),{},{childIndex:K}),payload:Rc(k,C)?$.data[z]:k.props.data[z]}}}return null}},{key:"render",value:function(){var T=this;if(!LC(this))return null;var M=this.props,O=M.children,C=M.className,P=M.width,R=M.height,k=M.style,U=M.compact,q=M.title,$=M.desc,F=bk(M,ole),X=be(F,!1);if(U)return B.createElement(ZD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},B.createElement(E1,Ms({},X,{width:P,height:R,title:q,desc:$}),this.renderClipPath(),zC(O,this.renderMap)));if(this.props.accessibilityLayer){var Y,z;X.tabIndex=(Y=this.props.tabIndex)!==null&&Y!==void 0?Y: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 B.createElement(ZD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},B.createElement("div",Ms({className:Pe("recharts-wrapper",C),style:ne({position:"relative",cursor:"default",width:P,height:R},k)},K,{ref:function(ie){T.container=ie}}),B.createElement(E1,Ms({},X,{width:P,height:R,title:q,desc:$,style:Ale}),this.renderClipPath(),zC(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);je(A,"displayName",n),je(A,"defaultProps",ne({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),je(A,"getDerivedStateFromProps",function(x,j){var _=x.dataKey,T=x.data,M=x.children,O=x.width,C=x.height,P=x.layout,R=x.stackOffset,k=x.margin,U=j.dataStartIndex,q=j.dataEndIndex;if(j.updateId===void 0){var $=wk(x);return ne(ne(ne({},$),{},{updateId:0},S(ne(ne({props:x},$),{},{updateId:0}),j)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:C,prevLayout:P,prevStackOffset:R,prevMargin:k,prevChildren:M})}if(_!==j.prevDataKey||T!==j.prevData||O!==j.prevWidth||C!==j.prevHeight||P!==j.prevLayout||R!==j.prevStackOffset||!Rs(k,j.prevMargin)){var F=wk(x),X={chartX:j.chartX,chartY:j.chartY,isTooltipActive:j.isTooltipActive},Y=ne(ne({},Sk(j,T,P)),{},{updateId:j.updateId+1}),z=ne(ne(ne({},F),X),Y);return ne(ne(ne({},z),S(ne({props:x},z),j)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:C,prevLayout:P,prevStackOffset:R,prevMargin:k,prevChildren:M})}if(!_1(M,j.prevChildren)){var K,Q,ie,se,L=In(M,Js),H=L&&(K=(Q=L.props)===null||Q===void 0?void 0:Q.startIndex)!==null&&K!==void 0?K:U,re=L&&(ie=(se=L.props)===null||se===void 0?void 0:se.endIndex)!==null&&ie!==void 0?ie:q,fe=H!==U||re!==q,ve=!Te(T),we=ve&&!fe?j.updateId:j.updateId+1;return ne(ne({updateId:we},S(ne(ne({props:x},j),{},{updateId:we,dataStartIndex:H,dataEndIndex:re}),j)),{},{prevChildren:M,dataStartIndex:H,dataEndIndex:re})}return null}),je(A,"renderActiveDot",function(x,j,_){var T;return N.isValidElement(x)?T=N.cloneElement(x,j):Oe(x)?T=x(j):T=B.createElement(Jc,j),B.createElement(Be,{className:"recharts-active-dot",key:_},T)});var w=N.forwardRef(function(j,_){return B.createElement(A,Ms({},j,{ref:_}))});return w.displayName=A.displayName,w},Rle=am({chartName:"LineChart",GraphicalChild:ef,axisComponents:[{axisType:"xAxis",AxisComp:Aa},{axisType:"yAxis",AxisComp:ja}],formatAxisMap:PA}),Dle=am({chartName:"BarChart",GraphicalChild:wa,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Aa},{axisType:"yAxis",AxisComp:ja}],formatAxisMap:PA}),kle=am({chartName:"PieChart",GraphicalChild:$i,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Wp},{axisType:"radiusAxis",AxisComp:Yp}],formatAxisMap:see,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Lle=am({chartName:"AreaChart",GraphicalChild:Ri,axisComponents:[{axisType:"xAxis",AxisComp:Aa},{axisType:"yAxis",AxisComp:ja}],formatAxisMap:PA});function Se({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 y.jsx(sr.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.18,ease:"easeOut"},className:$t("bg-surface rounded-[20px] card-shadow",a[r],n&&"transition-shadow duration-200 hover:shadow-hover cursor-pointer",t),children:e})}function _n({title:e,subtitle:t,action:n,className:r}){return y.jsxs("div",{className:$t("flex items-start justify-between mb-6",r),children:[y.jsxs("div",{children:[y.jsx("h3",{className:"text-base font-semibold text-text-primary",children:e}),t&&y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:t})]}),n&&y.jsx("div",{children:n})]})}const $le=[{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}],zle=[{key:"revenue",label:"Revenue"},{key:"mrr",label:"MRR"},{key:"arr",label:"ARR"}];function Ble(e){return`${(e/1e3).toFixed(0)}k`}function qle(){const[e,t]=N.useState("revenue");return y.jsxs(Se,{children:[y.jsx(_n,{title:"Revenue Overview",subtitle:"Monthly revenue vs target",action:y.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:zle.map(n=>y.jsx("button",{onClick:()=>t(n.key),className:$t("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))})}),y.jsx("div",{className:"h-[280px]",children:y.jsx(wh,{width:"100%",height:"100%",children:y.jsxs(Lle,{data:$le,margin:{top:5,right:5,left:-10,bottom:0},children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"colorRevenue",x1:"0",y1:"0",x2:"0",y2:"1",children:[y.jsx("stop",{offset:"5%",stopColor:"#2563EB",stopOpacity:.08}),y.jsx("stop",{offset:"95%",stopColor:"#2563EB",stopOpacity:0})]})}),y.jsx(lp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),y.jsx(Aa,{dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),y.jsx(ja,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:Ble,dx:-5}),y.jsx(Un,{content:({active:n,payload:r,label:a})=>!n||!(r!=null&&r.length)?null:y.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[y.jsx("p",{className:"text-xs font-medium text-text-secondary mb-2",children:a}),r.map((s,l)=>y.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[y.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.color||"#2563EB"}}),y.jsxs("span",{className:"text-text-secondary",children:[s.name,":"]}),y.jsxs("span",{className:"font-semibold text-text-primary",children:["€",Number(s.value).toLocaleString()]})]},l))]})}),y.jsx(Ri,{type:"monotone",dataKey:"revenue",stroke:"#2563EB",strokeWidth:2,fill:"url(#colorRevenue)",dot:!1,activeDot:{r:4,strokeWidth:0,fill:"#2563EB"}}),y.jsx(Ri,{type:"monotone",dataKey:"target",stroke:"#9CA3AF",strokeWidth:1.5,strokeDasharray:"4 4",fill:"none",dot:!1})]})})})]})}function Lt({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"},s={sm:"px-2 py-0.5 text-[11px]",md:"px-2.5 py-1 text-xs"};return y.jsx("span",{className:$t("inline-flex items-center rounded-full font-medium",a[t],s[n],r),children:e})}const Ile=[{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"}],Ule={deal:{icon:To,color:"primary",label:"Deal"},customer:{icon:go,color:"success",label:"Customer"},invoice:{icon:Ps,color:"warning",label:"Invoice"},contract:{icon:kL,color:"primary",label:"Contract"},employee:{icon:S1,color:"success",label:"HR"}};function Vle(){return y.jsxs(Se,{children:[y.jsx(_n,{title:"Recent Activity",subtitle:"Latest updates across your organization"}),y.jsx("div",{className:"space-y-0",children:Ile.map((e,t)=>{const n=Ule[e.type],r=n.icon;return y.jsxs(sr.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:[y.jsx("div",{className:`w-9 h-9 rounded-xl bg-${n.color}-light flex items-center justify-center shrink-0`,children:y.jsx(r,{size:16,className:`text-${n.color}`})}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("p",{className:"text-sm font-medium text-text-primary truncate",children:e.title}),y.jsx(Lt,{variant:n.color,size:"sm",children:n.label})]}),y.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.description}),y.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[y.jsx("span",{className:"text-[11px] text-text-secondary/60",children:Lw(e.time)}),e.user&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-[11px] text-text-secondary/40",children:"·"}),y.jsx("span",{className:"text-[11px] text-text-secondary/60",children:e.user})]})]})]})]},e.id)})})]})}function vt({className:e}){return y.jsx("div",{className:$t("animate-pulse rounded-[14px] bg-text-secondary/8",e)})}function Mr({children:e,className:t}){return y.jsx("div",{className:"w-full overflow-x-auto",children:y.jsx("table",{className:$t("w-full",t),children:e})})}function Pr({children:e,className:t}){return y.jsx("thead",{className:$t("border-b border-border",t),children:e})}function Nr({children:e,className:t}){return y.jsx("tbody",{className:t,children:e})}function Ze({children:e,className:t}){return y.jsx("tr",{className:$t("border-b border-border/50 transition-colors hover:bg-bg/50",t),children:e})}function he({children:e,className:t,align:n="left",colSpan:r}){const a={left:"text-left",center:"text-center",right:"text-right"};return y.jsx("th",{colSpan:r,className:$t("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 y.jsx("td",{colSpan:r,className:$t("py-3.5 px-4 text-sm text-text-primary",a[n],t),children:e})}function Hle(){const[e,t]=N.useState(!0),[n,r]=N.useState(""),[a,s]=N.useState(0),[l,c]=N.useState(0),[f,d]=N.useState(0),[p,m]=N.useState([]),[g,S]=N.useState(0);N.useEffect(()=>{async function w(){t(!0),r("");try{const[x,j,_,T]=await Promise.all([to.balance(),Os.mrr(),Zd.customers(),Os.deals()]);s(x.total_assets||0),c(j.mrr||0),d(_.total||0);const C=T;m(C.deals||[]),S(C.total||0)}catch(x){r(x instanceof Error?x.message:"Failed to load dashboard data")}finally{t(!1)}}w()},[]);const A=[{label:"Total Assets",value:Ue(a),change:0,changeLabel:"vs last month",icon:y.jsx(DL,{size:18})},{label:"Active Customers",value:String(f),change:0,changeLabel:"vs last month",icon:y.jsx(go,{size:18})},{label:"MRR",value:Ue(l),change:0,changeLabel:"vs last month",icon:y.jsx(To,{size:18})},{label:"Open Deals",value:String(g),change:0,changeLabel:"vs last month",icon:y.jsx(Q7,{size:18})}];return e?y.jsxs("div",{className:"space-y-10",children:[y.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:Array.from({length:4}).map((w,x)=>y.jsx(vt,{className:"h-[140px]"},x))}),y.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6",children:[y.jsx(vt,{className:"h-[320px] xl:col-span-2"}),y.jsx(vt,{className:"h-[320px]"})]}),y.jsx(vt,{className:"h-[300px]"})]}):n?y.jsx("div",{className:"flex items-center justify-center h-64",children:y.jsx("p",{className:"text-danger",children:n})}):y.jsxs("div",{className:"space-y-10",children:[y.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:A.map((w,x)=>y.jsx(U9,{...w,index:x},w.label))}),y.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6",children:[y.jsx("div",{className:"xl:col-span-2",children:y.jsx(qle,{})}),y.jsx("div",{children:y.jsx(Vle,{})})]}),y.jsxs(Se,{children:[y.jsx(_n,{title:"Recent Deals",subtitle:"Latest deals across your pipeline",action:y.jsxs("button",{className:"text-sm text-primary font-medium flex items-center gap-1 hover:underline",children:["View all ",y.jsx(x1,{size:14})]})}),y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Deal"}),y.jsx(he,{children:"Company"}),y.jsx(he,{align:"right",children:"Value"}),y.jsx(he,{children:"Stage"}),y.jsx(he,{align:"right",children:"Probability"}),y.jsx(he,{children:"Close Date"})]})}),y.jsxs(Nr,{children:[p.length===0&&y.jsx(Ze,{children:y.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No deals found"})}),p.map(w=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsx("span",{className:"font-medium",children:w.name})}),y.jsx(de,{children:w.company}),y.jsx(de,{align:"right",children:Ue(w.value)}),y.jsx(de,{children:y.jsx(Lt,{variant:w.stage==="Closed Won"?"success":w.stage==="Negotiation"?"primary":"default",children:w.stage})}),y.jsxs(de,{align:"right",children:[w.probability,"%"]}),y.jsx(de,{children:Fr(w.expectedClose)})]},w.id))]})]})]})]})}function jk({icon:e,title:t,description:n,action:r,className:a}){return y.jsxs("div",{className:$t("flex flex-col items-center justify-center py-16 text-center",a),children:[e&&y.jsx("div",{className:"mb-4 text-text-secondary/40",children:e}),y.jsx("h3",{className:"text-sm font-medium text-text-primary",children:t}),n&&y.jsx("p",{className:"mt-1 text-sm text-text-secondary max-w-sm",children:n}),r&&y.jsx("div",{className:"mt-4",children:r})]})}const Gle=["Customers","Leads","Pipeline"];function Fle(){const[e,t]=N.useState("Customers"),[n,r]=N.useState(""),[a,s]=N.useState(!0),[l,c]=N.useState(""),[f,d]=N.useState([]),[p,m]=N.useState(0),[g,S]=N.useState([]),[A,w]=N.useState([]);N.useEffect(()=>{async function T(){s(!0),c("");try{const[M,O,C]=await Promise.all([Zd.customers(),Zd.leads(),Zd.pipeline()]);d(M.customers),m(M.total),S(O.leads);const P=C;w(P.stages||P.pipeline||[])}catch(M){c(M instanceof Error?M.message:"Failed to load CRM data")}finally{s(!1)}}T()},[]);const x=f.filter(T=>T.name.toLowerCase().includes(n.toLowerCase())||(T.company||"").toLowerCase().includes(n.toLowerCase())),j=g.filter(T=>T.name.toLowerCase().includes(n.toLowerCase())||(T.company||"").toLowerCase().includes(n.toLowerCase())),_=A.reduce((T,M)=>T+(M.value||0),0);return a?y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"})]}),y.jsx(vt,{className:"h-[400px]"})]}):l?y.jsx("div",{className:"flex items-center justify-center h-64",children:y.jsx("p",{className:"text-danger",children:l})}):y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"CRM"}),y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Manage customers, leads, and pipeline"})]}),y.jsx(gn,{icon:y.jsx(_a,{size:16}),children:"Add Contact"})]}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(go,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:p}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Total Customers"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:y.jsx(ic,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:g.length}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Active Leads"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:y.jsx(D7,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",maximumFractionDigits:0}).format(_)}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Pipeline Value"})]})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[y.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:Gle.map(T=>y.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))}),y.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[y.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[y.jsx(_o,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),y.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"})]}),y.jsx(gn,{variant:"secondary",size:"sm",icon:y.jsx(vl,{size:14}),children:"Filter"})]})]}),e==="Customers"&&y.jsxs(Se,{children:[y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Customer"}),y.jsx(he,{children:"Company"}),y.jsx(he,{children:"Status"}),y.jsx(he,{children:"Phone"}),y.jsx(he,{children:"Created"}),y.jsx(he,{align:"right"})]})}),y.jsx(Nr,{children:x.map(T=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.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)}),y.jsxs("div",{children:[y.jsx("p",{className:"font-medium text-text-primary",children:T.name}),y.jsx("p",{className:"text-xs text-text-secondary",children:T.email})]})]})}),y.jsx(de,{children:T.company||"—"}),y.jsx(de,{children:y.jsx(Lt,{variant:T.status==="active"?"success":T.status==="lead"?"primary":"default",children:T.status})}),y.jsx(de,{children:T.phone||"—"}),y.jsx(de,{children:Fr(T.created_at)}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},T.id))})]}),x.length===0&&y.jsx(jk,{icon:y.jsx(go,{size:32}),title:"No customers found",description:"Try adjusting your search or filters"})]}),e==="Leads"&&y.jsxs(Se,{children:[y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Lead"}),y.jsx(he,{children:"Company"}),y.jsx(he,{children:"Source"}),y.jsx(he,{children:"Status"}),y.jsx(he,{children:"Created"}),y.jsx(he,{align:"right"})]})}),y.jsx(Nr,{children:j.map(T=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.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)}),y.jsxs("div",{children:[y.jsx("p",{className:"font-medium text-text-primary",children:T.name}),y.jsx("p",{className:"text-xs text-text-secondary",children:T.email})]})]})}),y.jsx(de,{children:T.company||"—"}),y.jsx(de,{children:T.source||"—"}),y.jsx(de,{children:y.jsx(Lt,{variant:T.status==="qualified"?"success":T.status==="contacted"?"primary":T.status==="lost"?"danger":"default",children:T.status})}),y.jsx(de,{children:Fr(T.created_at)}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},T.id))})]}),j.length===0&&y.jsx(jk,{icon:y.jsx(ic,{size:32}),title:"No leads found",description:"Try adjusting your search or filters"})]}),e==="Pipeline"&&y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:[A.length===0&&y.jsx("div",{className:"col-span-full text-center text-text-secondary py-12",children:"No pipeline stages found"}),A.map(T=>y.jsxs(Se,{hover:!0,children:[y.jsxs("div",{className:"flex items-center justify-between mb-4",children:[y.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:T.name}),y.jsxs(Lt,{variant:"default",children:[T.deals," deals"]})]}),y.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):"—"}),y.jsx("div",{className:"mt-4 h-1.5 bg-bg rounded-full overflow-hidden",children:y.jsx("div",{className:"h-full bg-primary rounded-full transition-all",style:{width:`${_>0?T.value/_*100:0}%`}})})]},T.id))]})]})}const Kle=["Deals","Products","MRR","ARR"];function Yle(){const[e,t]=N.useState("Deals"),[n,r]=N.useState(""),[a,s]=N.useState(!0),[l,c]=N.useState(""),[f,d]=N.useState([]),[p,m]=N.useState([]),[g,S]=N.useState([]),[A,w]=N.useState([]),[x,j]=N.useState(0);N.useEffect(()=>{async function O(){s(!0),c("");try{const[C,P,R,k]=await Promise.all([Os.deals(),Os.products(),Os.mrr(),Os.arr()]);d(C.deals||[]),m(P.products||[]),j(R.mrr||0),S([]);const q=k;w([])}catch(C){c(C instanceof Error?C.message:"Failed to load sales data")}finally{s(!1)}}O()},[]);const _=f.reduce((O,C)=>O+(C.value||0),0),T=f.filter(O=>O.stage==="Closed Won").reduce((O,C)=>O+(C.value||0),0),M=p.filter(O=>O.active).length;return a?y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"})]}),y.jsx(vt,{className:"h-[400px]"})]}):l?y.jsx("div",{className:"flex items-center justify-center h-64",children:y.jsx("p",{className:"text-danger",children:l})}):y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Sales"}),y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Deals, products, and revenue metrics"})]}),y.jsx(gn,{icon:y.jsx(_a,{size:16}),children:"New Deal"})]}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(DL,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue(_)}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Total Pipeline"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:y.jsx(To,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue(T)}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Closed Won"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:y.jsx(W7,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:M}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Active Products"})]})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[y.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:Kle.map(O=>y.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))}),y.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[y.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[y.jsx(_o,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),y.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"})]}),y.jsx(gn,{variant:"secondary",size:"sm",icon:y.jsx(vl,{size:14}),children:"Filter"})]})]}),e==="Deals"&&y.jsx(Se,{children:y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Deal"}),y.jsx(he,{children:"Company"}),y.jsx(he,{align:"right",children:"Value"}),y.jsx(he,{children:"Stage"}),y.jsx(he,{align:"right",children:"Probability"}),y.jsx(he,{children:"Owner"}),y.jsx(he,{align:"right"})]})}),y.jsxs(Nr,{children:[f.length===0&&y.jsx(Ze,{children:y.jsx(de,{colSpan:7,className:"text-center text-text-secondary py-8",children:"No deals found"})}),f.map(O=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsx("span",{className:"font-medium",children:O.name})}),y.jsx(de,{children:O.company}),y.jsx(de,{align:"right",children:Ue(O.value)}),y.jsx(de,{children:y.jsx(Lt,{variant:O.stage==="Closed Won"?"success":O.stage==="Negotiation"?"primary":"default",children:O.stage})}),y.jsxs(de,{align:"right",children:[O.probability,"%"]}),y.jsx(de,{children:O.owner}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},O.id))]})]})}),e==="Products"&&y.jsx(Se,{children:y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Product"}),y.jsx(he,{children:"SKU"}),y.jsx(he,{align:"right",children:"Price"}),y.jsx(he,{children:"Type"}),y.jsx(he,{children:"Status"}),y.jsx(he,{align:"right"})]})}),y.jsxs(Nr,{children:[p.length===0&&y.jsx(Ze,{children:y.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No products found"})}),p.map(O=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsx("span",{className:"font-medium",children:O.name})}),y.jsx(de,{children:y.jsx("code",{className:"text-xs bg-bg px-2 py-0.5 rounded-md",children:O.sku})}),y.jsx(de,{align:"right",children:Ue(O.price)}),y.jsx(de,{children:y.jsx(Lt,{variant:O.recurring?"primary":"default",children:O.recurring?"Recurring":"One-time"})}),y.jsx(de,{children:y.jsx(Lt,{variant:O.active?"success":"danger",children:O.active?"Active":"Inactive"})}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},O.id))]})]})}),e==="MRR"&&y.jsxs(Se,{children:[y.jsx(_n,{title:"Monthly Recurring Revenue",subtitle:`Current MRR: ${Ue(x)}`}),g.length>0?y.jsx("div",{className:"h-[320px]",children:y.jsx(wh,{width:"100%",height:"100%",children:y.jsxs(Dle,{data:g,margin:{top:5,right:5,left:-10,bottom:0},children:[y.jsx(lp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),y.jsx(Aa,{dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),y.jsx(ja,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:O=>`${(O/1e3).toFixed(0)}k`,dx:-5}),y.jsx(Un,{content:({active:O,payload:C,label:P})=>!O||!(C!=null&&C.length)?null:y.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[y.jsx("p",{className:"text-xs font-medium text-text-secondary mb-2",children:P}),C.map((R,k)=>y.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[y.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:R.color}}),y.jsxs("span",{className:"text-text-secondary",children:[R.name,":"]}),y.jsx("span",{className:"font-semibold text-text-primary",children:Ue(Number(R.value))})]},k))]})}),y.jsx(wa,{dataKey:"mrr",fill:"#2563EB",radius:[4,4,0,0]}),y.jsx(wa,{dataKey:"arr",fill:"#16A34A",radius:[4,4,0,0]})]})})}):y.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No MRR history data available"})]}),e==="ARR"&&y.jsxs(Se,{children:[y.jsx(_n,{title:"Annual Recurring Revenue",subtitle:"ARR growth by quarter"}),A.length>0?y.jsx("div",{className:"h-[320px]",children:y.jsx(wh,{width:"100%",height:"100%",children:y.jsxs(Rle,{data:A,margin:{top:5,right:5,left:-10,bottom:0},children:[y.jsx(lp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),y.jsx(Aa,{dataKey:"quarter",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),y.jsx(ja,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:O=>`${(O/1e3).toFixed(0)}k`,dx:-5}),y.jsx(Un,{content:({active:O,payload:C,label:P})=>!O||!(C!=null&&C.length)?null:y.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[y.jsx("p",{className:"text-xs font-medium text-text-secondary mb-1",children:P}),y.jsx("p",{className:"text-sm font-semibold text-text-primary",children:Ue(Number(C[0].value))})]})}),y.jsx(ef,{type:"monotone",dataKey:"arr",stroke:"#2563EB",strokeWidth:2,dot:{r:4,strokeWidth:0,fill:"#2563EB"},activeDot:{r:6}})]})})}):y.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No ARR history data available"})]})]})}const Xle=["Balance","Income","MOMS","Accounts","Invoices","Cashflow"],Ok=["#2563EB","#16A34A","#D97706","#DC2626","#9CA3AF"];function Wle(){const[e,t]=N.useState("Balance"),[n,r]=N.useState(""),[a,s]=N.useState(!0),[l,c]=N.useState(""),[f,d]=N.useState(null),[p,m]=N.useState(null),[g,S]=N.useState(null),[A,w]=N.useState([]),[x,j]=N.useState([]),[_,T]=N.useState(null);N.useEffect(()=>{async function P(){s(!0),c("");try{const[R,k,U,q,$,F]=await Promise.all([to.balance(),to.income(),to.moms(),to.accounts(),to.invoices(),to.cashflow()]);d(R),m(k),S(U),w(q.accounts||[]),j($.invoices||[]),T(F)}catch(R){c(R instanceof Error?R.message:"Failed to load finance data")}finally{s(!1)}}P()},[]);const M=A.filter(P=>P.name.toLowerCase().includes(n.toLowerCase())||P.id.toLowerCase().includes(n.toLowerCase())),O=x.filter(P=>P.customer.toLowerCase().includes(n.toLowerCase())||P.id.toLowerCase().includes(n.toLowerCase())),C=(p==null?void 0:p.expenses.map((P,R)=>({name:P.account,value:P.amount,color:Ok[R%Ok.length]})))||[];return a?y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"})]}),y.jsx(vt,{className:"h-[400px]"})]}):l?y.jsx("div",{className:"flex items-center justify-center h-64",children:y.jsx("p",{className:"text-danger",children:l})}):y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Finance"}),y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Financial reports and accounting"})]}),y.jsx(gn,{icon:y.jsx(_a,{size:16}),children:"New Invoice"})]}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(BL,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue((f==null?void 0:f.total_assets)||0)}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Total Assets"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:y.jsx(To,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue((p==null?void 0:p.total_revenue)||0)}),y.jsx("p",{className:"text-xs text-text-secondary",children:"YTD Revenue"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:y.jsx(zL,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue((p==null?void 0:p.total_expenses)||0)}),y.jsx("p",{className:"text-xs text-text-secondary",children:"YTD Expenses"})]})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[y.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto max-w-full",children:Xle.map(P=>y.jsx("button",{onClick:()=>t(P),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap ${e===P?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:P},P))}),y.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[y.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[y.jsx(_o,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),y.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:P=>r(P.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"})]}),y.jsx(gn,{variant:"secondary",size:"sm",icon:y.jsx(vl,{size:14}),children:"Filter"})]})]}),e==="Balance"&&y.jsxs("div",{className:"space-y-6",children:[y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[y.jsxs(Se,{children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsx("span",{className:"text-sm text-text-secondary",children:"Assets"}),y.jsx(x1,{size:14,className:"text-success"})]}),y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue((f==null?void 0:f.total_assets)||0)})]}),y.jsxs(Se,{children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsx("span",{className:"text-sm text-text-secondary",children:"Liabilities"}),y.jsx(P7,{size:14,className:"text-danger"})]}),y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue((f==null?void 0:f.total_liabilities)||0)})]}),y.jsxs(Se,{children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsx("span",{className:"text-sm text-text-secondary",children:"Equity"}),y.jsx(x1,{size:14,className:"text-success"})]}),y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue((f==null?void 0:f.total_equity)||0)})]})]}),y.jsxs(Se,{children:[y.jsx(_n,{title:"Balance Sheet",subtitle:`Period: ${(f==null?void 0:f.period)||""}`}),y.jsxs("div",{className:"space-y-6",children:[y.jsxs("div",{children:[y.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Assets"}),y.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.assets.map((P,R)=>y.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[y.jsx("div",{children:y.jsx("p",{className:"text-sm text-text-primary",children:P.account})}),y.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ue(P.amount)})]},R)),(!(f!=null&&f.assets)||f.assets.length===0)&&y.jsx("p",{className:"text-text-secondary text-sm",children:"No asset accounts"})]})]}),y.jsxs("div",{children:[y.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Liabilities"}),y.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.liabilities.map((P,R)=>y.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[y.jsx("div",{children:y.jsx("p",{className:"text-sm text-text-primary",children:P.account})}),y.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ue(P.amount)})]},R)),(!(f!=null&&f.liabilities)||f.liabilities.length===0)&&y.jsx("p",{className:"text-text-secondary text-sm",children:"No liability accounts"})]})]}),y.jsxs("div",{children:[y.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Equity"}),y.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.equity.map((P,R)=>y.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[y.jsx("div",{children:y.jsx("p",{className:"text-sm text-text-primary",children:P.account})}),y.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ue(P.amount)})]},R)),(!(f!=null&&f.equity)||f.equity.length===0)&&y.jsx("p",{className:"text-text-secondary text-sm",children:"No equity accounts"})]})]})]})]})]}),e==="Income"&&y.jsx("div",{className:"space-y-6",children:y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[y.jsxs(Se,{className:"lg:col-span-2",children:[y.jsx(_n,{title:"Income Statement",subtitle:`Period: ${(p==null?void 0:p.period)||""}`}),y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Revenue"}),y.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ue((p==null?void 0:p.total_revenue)||0)})]}),y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Expenses"}),y.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ue((p==null?void 0:p.total_expenses)||0)})]}),y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Net Income"}),y.jsx("p",{className:"text-lg font-semibold text-success",children:Ue((p==null?void 0:p.net_income)||0)})]})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h4",{className:"text-sm font-semibold text-text-primary",children:"Revenue Accounts"}),p==null?void 0:p.revenue.map((P,R)=>y.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[y.jsx("p",{className:"text-sm text-text-primary",children:P.account}),y.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ue(P.amount)})]},R))]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h4",{className:"text-sm font-semibold text-text-primary",children:"Expense Accounts"}),p==null?void 0:p.expenses.map((P,R)=>y.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[y.jsx("p",{className:"text-sm text-text-primary",children:P.account}),y.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ue(P.amount)})]},R))]})]})]}),y.jsxs(Se,{children:[y.jsx(_n,{title:"Expense Breakdown",subtitle:"By category"}),C.length>0?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"h-[220px]",children:y.jsx(wh,{width:"100%",height:"100%",children:y.jsxs(kle,{children:[y.jsx($i,{data:C,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:4,dataKey:"value",children:C.map((P,R)=>y.jsx(Lp,{fill:P.color},`cell-${R}`))}),y.jsx(Un,{content:({active:P,payload:R})=>{if(!P||!(R!=null&&R.length))return null;const k=R[0].payload;return y.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-3 py-2",children:[y.jsx("p",{className:"text-sm font-medium text-text-primary",children:k.name}),y.jsx("p",{className:"text-xs text-text-secondary",children:Ue(k.value)})]})}})]})})}),y.jsx("div",{className:"space-y-2 mt-2",children:C.map(P=>y.jsxs("div",{className:"flex items-center justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:P.color}}),y.jsx("span",{className:"text-text-secondary",children:P.name})]}),y.jsx("span",{className:"font-medium text-text-primary",children:Ue(P.value)})]},P.name))})]}):y.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No expense data"})]})]})}),e==="MOMS"&&y.jsxs(Se,{children:[y.jsx(_n,{title:"MOMS Report",subtitle:`Period: ${(g==null?void 0:g.period)||""}`}),y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-6",children:[y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS In (Input VAT)"}),y.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ue((g==null?void 0:g.moms_in)||0)})]}),y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS Ut (Output VAT)"}),y.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ue((g==null?void 0:g.moms_ut)||0)})]}),y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS att betala"}),y.jsx("p",{className:"text-lg font-semibold text-success",children:Ue((g==null?void 0:g.moms_att_betala)||0)})]})]})]}),e==="Accounts"&&y.jsxs(Se,{children:[y.jsx(_n,{title:"Chart of Accounts",subtitle:"General ledger accounts"}),y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Account"}),y.jsx(he,{children:"Number"}),y.jsx(he,{children:"Type"}),y.jsx(he,{align:"right",children:"Balance"}),y.jsx(he,{align:"right"})]})}),y.jsxs(Nr,{children:[M.map(P=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsx("span",{className:"font-medium",children:P.name})}),y.jsx(de,{children:y.jsx("code",{className:"text-xs bg-bg px-2 py-0.5 rounded-md",children:P.id})}),y.jsx(de,{children:y.jsx(Lt,{variant:P.type==="asset"?"success":P.type==="equity"?"primary":"warning",children:P.type})}),y.jsx(de,{align:"right",children:Ue(P.balance)}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},P.id)),M.length===0&&y.jsx(Ze,{children:y.jsx(de,{colSpan:5,className:"text-center text-text-secondary py-8",children:"No accounts found"})})]})]})]}),e==="Invoices"&&y.jsxs(Se,{children:[y.jsx(_n,{title:"Invoices",subtitle:"All invoices"}),y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Number"}),y.jsx(he,{children:"Customer"}),y.jsx(he,{align:"right",children:"Amount"}),y.jsx(he,{children:"Status"}),y.jsx(he,{children:"Due Date"}),y.jsx(he,{align:"right"})]})}),y.jsxs(Nr,{children:[O.map(P=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsx("span",{className:"font-medium",children:P.id})}),y.jsx(de,{children:P.customer}),y.jsx(de,{align:"right",children:Ue(P.amount)}),y.jsx(de,{children:y.jsx(Lt,{variant:P.status==="paid"?"success":P.status==="overdue"?"danger":P.status==="sent"||P.status==="pending"?"primary":"default",children:P.status})}),y.jsx(de,{children:Fr(P.due_date)}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},P.id)),O.length===0&&y.jsx(Ze,{children:y.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No invoices found"})})]})]})]}),e==="Cashflow"&&y.jsxs(Se,{children:[y.jsx(_n,{title:"Cash Flow",subtitle:`Period: ${(_==null?void 0:_.period)||""}`}),y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-6",children:[y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Inflow"}),y.jsx("p",{className:"text-lg font-semibold text-success",children:Ue((_==null?void 0:_.inflow)||0)})]}),y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Outflow"}),y.jsx("p",{className:"text-lg font-semibold text-danger",children:Ue((_==null?void 0:_.outflow)||0)})]}),y.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[y.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Net"}),y.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ue((_==null?void 0:_.net)||0)})]})]})]})]})}const Zle=["Employees","Leaves"],Qle={Sales:"primary",Engineering:"success",Finance:"warning",HR:"primary",Legal:"default"};function Jle(){const[e,t]=N.useState("Employees"),[n,r]=N.useState(""),[a,s]=N.useState(!0),[l,c]=N.useState(""),[f,d]=N.useState([]),[p,m]=N.useState([]);N.useEffect(()=>{async function j(){s(!0),c("");try{const[_,T]=await Promise.all([T2.employees(),T2.leaves()]);d(_.employees||[]),m(T.leaves||[])}catch(_){c(_ instanceof Error?_.message:"Failed to load HR data")}finally{s(!1)}}j()},[]);const g=f.filter(j=>j.status==="active").length,S=f.filter(j=>j.status==="on_leave").length,A=p.filter(j=>j.status==="pending").length,w=f.filter(j=>j.name.toLowerCase().includes(n.toLowerCase())||j.department.toLowerCase().includes(n.toLowerCase())||j.role.toLowerCase().includes(n.toLowerCase())),x=p.filter(j=>j.employeeName.toLowerCase().includes(n.toLowerCase())||j.type.toLowerCase().includes(n.toLowerCase()));return a?y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"})]}),y.jsx(vt,{className:"h-[400px]"})]}):l?y.jsx("div",{className:"flex items-center justify-center h-64",children:y.jsx("p",{className:"text-danger",children:l})}):y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"HR"}),y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Employees and leave management"})]}),y.jsx(gn,{icon:y.jsx(_a,{size:16}),children:"Add Employee"})]}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(go,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:g}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Active Employees"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:y.jsx(Dw,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:S}),y.jsx("p",{className:"text-xs text-text-secondary",children:"On Leave"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:y.jsx(k7,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:A}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Pending Requests"})]})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[y.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:Zle.map(j=>y.jsx("button",{onClick:()=>t(j),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===j?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:j},j))}),y.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[y.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[y.jsx(_o,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),y.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:j=>r(j.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"})]}),y.jsx(gn,{variant:"secondary",size:"sm",icon:y.jsx(vl,{size:14}),children:"Filter"})]})]}),e==="Employees"&&y.jsx(Se,{children:y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Employee"}),y.jsx(he,{children:"Department"}),y.jsx(he,{children:"Role"}),y.jsx(he,{children:"Status"}),y.jsx(he,{children:"Start Date"}),y.jsx(he,{align:"right"})]})}),y.jsxs(Nr,{children:[w.map(j=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:j.name.split(" ").map(_=>_[0]).join("")}),y.jsxs("div",{children:[y.jsx("p",{className:"font-medium text-text-primary",children:j.name}),y.jsx("p",{className:"text-xs text-text-secondary",children:j.email})]})]})}),y.jsx(de,{children:y.jsx(Lt,{variant:Qle[j.department]||"default",children:j.department})}),y.jsx(de,{children:j.role}),y.jsx(de,{children:y.jsx(Lt,{variant:j.status==="active"?"success":j.status==="on_leave"?"warning":"danger",children:j.status.replace("_"," ")})}),y.jsx(de,{children:Fr(j.startDate)}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},j.id)),w.length===0&&y.jsx(Ze,{children:y.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No employees found"})})]})]})}),e==="Leaves"&&y.jsx(Se,{children:y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Employee"}),y.jsx(he,{children:"Type"}),y.jsx(he,{children:"Period"}),y.jsx(he,{align:"right",children:"Days"}),y.jsx(he,{children:"Status"}),y.jsx(he,{align:"right"})]})}),y.jsxs(Nr,{children:[x.map(j=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:j.employeeName.split(" ").map(_=>_[0]).join("")}),y.jsx("span",{className:"font-medium text-text-primary",children:j.employeeName})]})}),y.jsx(de,{children:y.jsx(Lt,{variant:j.type==="vacation"?"primary":j.type==="sick"?"warning":"default",children:j.type})}),y.jsx(de,{children:y.jsxs("span",{className:"text-sm text-text-primary",children:[Fr(j.startDate)," — ",Fr(j.endDate)]})}),y.jsx(de,{align:"right",children:y.jsx("span",{className:"font-medium",children:j.days})}),y.jsx(de,{children:y.jsx(Lt,{variant:j.status==="approved"?"success":j.status==="pending"?"warning":"danger",children:j.status})}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},j.id)),x.length===0&&y.jsx(Ze,{children:y.jsx(de,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No leave requests found"})})]})]})})]})}const eue=["All","Signed","Review","Draft","Expired"];function tue(){const[e,t]=N.useState("All"),[n,r]=N.useState(""),[a,s]=N.useState(!0),[l,c]=N.useState(""),[f,d]=N.useState([]);N.useEffect(()=>{async function A(){s(!0),c("");try{const w=await q9.contracts();d(w.contracts||[])}catch(w){c(w instanceof Error?w.message:"Failed to load contracts")}finally{s(!1)}}A()},[]);const p=f.filter(A=>A.status==="signed").length,m=f.filter(A=>A.status==="review").length,g=f.reduce((A,w)=>A+(w.value||0),0),S=f.filter(A=>{const w=A.title.toLowerCase().includes(n.toLowerCase())||A.counterparty.toLowerCase().includes(n.toLowerCase()),x=e==="All"||A.status===e.toLowerCase();return w&&x});return a?y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"}),y.jsx(vt,{className:"h-[80px]"})]}),y.jsx(vt,{className:"h-[400px]"})]}):l?y.jsx("div",{className:"flex items-center justify-center h-64",children:y.jsx("p",{className:"text-danger",children:l})}):y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Legal"}),y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Contracts and legal documents"})]}),y.jsx(gn,{icon:y.jsx(_a,{size:16}),children:"New Contract"})]}),y.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(Ps,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:f.length}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Total Contracts"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:y.jsx(kL,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:p}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Signed"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:y.jsx(Dw,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:m}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Under Review"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(Ps,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ue(g)}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Total Value"})]})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[y.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:eue.map(A=>y.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))}),y.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[y.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[y.jsx(_o,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),y.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"})]}),y.jsx(gn,{variant:"secondary",size:"sm",icon:y.jsx(vl,{size:14}),children:"Filter"})]})]}),y.jsx(Se,{children:y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Contract"}),y.jsx(he,{children:"Counterparty"}),y.jsx(he,{children:"Type"}),y.jsx(he,{align:"right",children:"Value"}),y.jsx(he,{children:"Status"}),y.jsx(he,{children:"Period"}),y.jsx(he,{align:"right"})]})}),y.jsxs(Nr,{children:[S.map(A=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center",children:y.jsx(Ps,{size:14})}),y.jsx("span",{className:"font-medium text-text-primary",children:A.title})]})}),y.jsx(de,{children:A.counterparty}),y.jsx(de,{children:y.jsx(Lt,{variant:"default",children:A.type})}),y.jsx(de,{align:"right",children:A.value&&A.value>0?Ue(A.value):"—"}),y.jsx(de,{children:y.jsx(Lt,{variant:A.status==="signed"?"success":A.status==="review"?"warning":A.status==="draft"?"default":"danger",children:A.status})}),y.jsx(de,{children:y.jsxs("span",{className:"text-sm text-text-secondary",children:[Fr(A.startDate),A.endDate&&`${Fr(A.endDate)}`]})}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},A.id)),S.length===0&&y.jsx(Ze,{children:y.jsx(de,{colSpan:7,className:"text-center text-text-secondary py-8",children:"No contracts found"})})]})]})})]})}const nue=[{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 rue(){return y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Marketing"}),y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Campaigns and marketing metrics"})]}),y.jsx(gn,{icon:y.jsx(_a,{size:16}),children:"New Campaign"})]}),y.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx($L,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"4"}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Campaigns"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:y.jsx(go,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"24.1K"}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Total Reach"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:y.jsx(J7,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"10.4%"}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Avg. Engagement"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(To,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"1,040"}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Conversions"})]})]})})]}),y.jsxs(Se,{children:[y.jsx(_n,{title:"Campaigns",subtitle:"Active and recent marketing campaigns"}),y.jsx("div",{className:"space-y-4",children:nue.map(e=>y.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-bg/50 hover:bg-bg transition-colors",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:e.channel==="Email"?y.jsx(ic,{size:18}):y.jsx(L7,{size:18})}),y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"font-medium text-text-primary",children:e.name}),y.jsx(Lt,{variant:e.status==="active"?"success":e.status==="scheduled"?"primary":"default",size:"sm",children:e.status})]}),y.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.channel})]})]}),y.jsxs("div",{className:"flex items-center gap-8 text-right",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.reach>0?e.reach.toLocaleString():"—"}),y.jsx("p",{className:"text-[11px] text-text-secondary",children:"Reach"})]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.engagement>0?`${e.engagement}%`:"—"}),y.jsx("p",{className:"text-[11px] text-text-secondary",children:"Engagement"})]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.conversions>0?e.conversions.toLocaleString():"—"}),y.jsx("p",{className:"text-[11px] text-text-secondary",children:"Conversions"})]})]})]},e.id))})]})]})}const ku=[{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()}],iue=["All","Open","In Progress","Resolved"];function aue(){const[e,t]=N.useState("All"),[n,r]=N.useState(""),a=ku.filter(f=>f.status==="open").length,s=ku.filter(f=>f.status==="in_progress").length,l=ku.filter(f=>f.status==="resolved").length,c=ku.filter(f=>{const d=f.subject.toLowerCase().includes(n.toLowerCase())||f.customer.toLowerCase().includes(n.toLowerCase())||f.id.toLowerCase().includes(n.toLowerCase()),p=e==="All"||f.status===e.toLowerCase().replace(" ","_");return d&&p});return y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Support"}),y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Customer support tickets"})]}),y.jsx(gn,{icon:y.jsx(_a,{size:16}),children:"New Ticket"})]}),y.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(LL,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:ku.length}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Total Tickets"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:y.jsx(q7,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:a}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Open"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(Dw,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:s}),y.jsx("p",{className:"text-xs text-text-secondary",children:"In Progress"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:y.jsx(RL,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:l}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Resolved"})]})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[y.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:iue.map(f=>y.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))}),y.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[y.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[y.jsx(_o,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),y.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"})]}),y.jsx(gn,{variant:"secondary",size:"sm",icon:y.jsx(vl,{size:14}),children:"Filter"})]})]}),y.jsx(Se,{children:y.jsxs(Mr,{children:[y.jsx(Pr,{children:y.jsxs(Ze,{children:[y.jsx(he,{children:"Ticket"}),y.jsx(he,{children:"Subject"}),y.jsx(he,{children:"Customer"}),y.jsx(he,{children:"Priority"}),y.jsx(he,{children:"Status"}),y.jsx(he,{children:"Assigned"}),y.jsx(he,{children:"Created"}),y.jsx(he,{align:"right"})]})}),y.jsx(Nr,{children:c.map(f=>y.jsxs(Ze,{children:[y.jsx(de,{children:y.jsx("span",{className:"font-medium text-sm",children:f.id})}),y.jsx(de,{children:y.jsx("span",{className:"text-sm text-text-primary",children:f.subject})}),y.jsx(de,{children:f.customer}),y.jsx(de,{children:y.jsx(Lt,{variant:f.priority==="high"?"danger":f.priority==="medium"?"warning":"default",size:"sm",children:f.priority})}),y.jsx(de,{children:y.jsx(Lt,{variant:f.status==="resolved"?"success":f.status==="in_progress"?"primary":"warning",size:"sm",children:f.status.replace("_"," ")})}),y.jsx(de,{children:f.assigned}),y.jsx(de,{children:y.jsx("span",{className:"text-xs text-text-secondary",children:Lw(f.created)})}),y.jsx(de,{align:"right",children:y.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:y.jsx(Zr,{size:16})})})]},f.id))})]})})]})}const Lu=[{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}],oue={"Send Email":y.jsx(ic,{size:12}),"Slack Message":y.jsx(Y7,{size:12}),"Create Task":y.jsx(Ps,{size:12}),"Add to CRM":y.jsx(S1,{size:12}),"Update HR":y.jsx(S1,{size:12})};function sue(){const e=Lu.filter(n=>n.status==="active").length,t=Lu.reduce((n,r)=>n+r.runs,0);return y.jsxs("div",{className:"space-y-8",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Automation"}),y.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Workflows and automated tasks"})]}),y.jsx(gn,{icon:y.jsx(_a,{size:16}),children:"New Workflow"})]}),y.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(qL,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Lu.length}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Workflows"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:y.jsx(w2,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:e}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Active"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:y.jsx(S2,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Lu.length-e}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Paused"})]})]})}),y.jsx(Se,{padding:"md",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:y.jsx(RL,{size:18})}),y.jsxs("div",{children:[y.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:t.toLocaleString()}),y.jsx("p",{className:"text-xs text-text-secondary",children:"Total Runs"})]})]})})]}),y.jsxs(Se,{children:[y.jsx(_n,{title:"Workflows",subtitle:"Automated processes and triggers"}),y.jsx("div",{className:"space-y-3",children:Lu.map(n=>y.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-bg/50 hover:bg-bg transition-colors",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.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"?y.jsx(w2,{size:18}):y.jsx(S2,{size:18})}),y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"font-medium text-text-primary",children:n.name}),y.jsx(Lt,{variant:n.status==="active"?"success":"warning",size:"sm",children:n.status})]}),y.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:n.description}),y.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsx(V7,{size:12,className:"text-text-secondary/60"}),y.jsx("span",{className:"text-[11px] text-text-secondary",children:n.trigger})]}),y.jsx("div",{className:"flex items-center gap-1",children:n.actions.map((r,a)=>y.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 bg-bg rounded text-[10px] text-text-secondary",children:[oue[r],r]},a))})]})]})]}),y.jsxs("div",{className:"flex items-center gap-6 text-right",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-text-primary",children:n.runs.toLocaleString()}),y.jsx("p",{className:"text-[11px] text-text-secondary",children:"runs"})]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-sm font-medium text-text-primary",children:n.lastRun}),y.jsx("p",{className:"text-[11px] text-text-secondary",children:"last run"})]}),y.jsx("div",{className:"flex items-center",children:y.jsx("div",{className:"w-9 h-5 rounded-full bg-success/20 relative cursor-pointer",children:y.jsx("div",{className:"absolute right-0.5 top-0.5 w-4 h-4 rounded-full bg-success"})})})]})]},n.id))})]})]})}function lue({children:e}){const{isAuthenticated:t}=gp();return t?y.jsx(y.Fragment,{children:e}):y.jsx(JS,{to:"/login",replace:!0})}function uue({children:e}){const{isAuthenticated:t}=gp();return t?y.jsx(JS,{to:"/",replace:!0}):y.jsx(y.Fragment,{children:e})}function cue(){return y.jsxs(F8,{children:[y.jsx(zn,{path:"/login",element:y.jsx(uue,{children:y.jsx(I9,{})})}),y.jsxs(zn,{element:y.jsx(lue,{children:y.jsx($9,{})}),children:[y.jsx(zn,{path:"/",element:y.jsx(Hle,{})}),y.jsx(zn,{path:"/crm",element:y.jsx(Fle,{})}),y.jsx(zn,{path:"/sales",element:y.jsx(Yle,{})}),y.jsx(zn,{path:"/finance",element:y.jsx(Wle,{})}),y.jsx(zn,{path:"/hr",element:y.jsx(Jle,{})}),y.jsx(zn,{path:"/legal",element:y.jsx(tue,{})}),y.jsx(zn,{path:"/marketing",element:y.jsx(rue,{})}),y.jsx(zn,{path:"/support",element:y.jsx(aue,{})}),y.jsx(zn,{path:"/automation",element:y.jsx(sue,{})})]}),y.jsx(zn,{path:"*",element:y.jsx(JS,{to:"/",replace:!0})})]})}H6.createRoot(document.getElementById("root")).render(y.jsx(N.StrictMode,{children:y.jsx(yq,{children:y.jsx(cue,{})})}));